/* CI4 integration layer for the Porto 2026 theme. Keep project overrides here. */
.theme-product-card .product-title > a {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

/* Shared 2026 catalog layout: /san-pham and /{catalog-slug}. */
.catalog-listing-section {
    padding-top: .8rem;
}

.catalog-category-banner figure {
    margin: 0;
}

.catalog-category-banner figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.catalog-banner-eyebrow,
.catalog-banner-headline {
    color: #222529;
    font-weight: 700;
    line-height: 1.15;
}

.catalog-banner-eyebrow {
    font-size: 2.5rem;
}

.catalog-banner-headline {
    font-size: 3rem;
}

.catalog-offer-label,
.catalog-offer-value {
    line-height: 1.2;
}

.catalog-offer-label {
    padding: .7rem 1rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.catalog-offer-value {
    padding: .6rem 1rem;
}

.catalog-toolbox .sidebar-toggle {
    align-items: center;
    gap: .7rem;
}

.catalog-result-count {
    color: #6f7780;
    font-size: 1.3rem;
    font-weight: 600;
}

.shop-product-grid > .catalog-product-cell {
    min-width: 0;
    border: 1px solid #e4e8ec;
    background: #fff;
}

.shop-product-grid .catalog-product-card {
    height: 100%;
    margin: 0;
    border: 0;
}

.shop-product-grid .catalog-product-card figure {
    margin: .5rem;
    overflow: hidden;
    background: #fff;
}

.shop-product-grid .catalog-product-card figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.shop-product-grid .catalog-product-card .product-details {
    min-height: 24rem;
}

.shop-product-grid .catalog-product-card .product-title {
    display: block;
    min-height: 0;
    overflow: visible;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: initial;
}

.shop-product-grid .catalog-product-card .product-title a {
    font-weight: 600;
}

.shop-product-grid .catalog-product-card .shop-card-cart {
    margin-top: auto !important;
    margin-bottom: .3rem !important;
}

.catalog-empty-state {
    padding: 5rem 2rem;
    border: 1px solid #e4e8ec;
    text-align: center;
}

.catalog-empty-state > i {
    margin-bottom: 1.5rem;
    color: #14599d;
    font-size: 4rem;
}

.catalog-description {
    padding: 2.5rem;
    border: 1px solid #e4e8ec;
    background: #fff;
}

.catalog-description .product-desc-content {
    font-family: "Open Sans", sans-serif;
}

.catalog-description .product-desc-content h2 {
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.catalog-description .product-desc-content h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.catalog-description-content {
    position: relative;
    max-height: 36rem;
    overflow: hidden;
    transition: max-height .35s ease;
}

.catalog-description-content::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 9rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
    pointer-events: none;
    content: "";
}

.catalog-description.is-expanded .catalog-description-content::after,
.catalog-description.is-not-collapsible .catalog-description-content::after {
    display: none;
}

.catalog-description .button-container-show-hide {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.catalog-content-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-width: 13rem;
    min-height: 4.2rem;
    padding: .8rem 2rem;
    border: 1px solid #14599d;
    border-radius: 2.2rem;
    background: #fff;
    color: #14599d;
    font-family: "Open Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.catalog-content-toggle:hover,
.catalog-content-toggle:focus {
    background: #14599d;
    color: #fff;
}

.catalog-content-toggle i {
    transition: transform .25s ease;
}

.catalog-description.is-expanded .catalog-content-toggle i {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .catalog-category-banner {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .catalog-banner-eyebrow,
    .catalog-banner-headline {
        text-align: center !important;
    }

    .catalog-category-banner .coupon-sale-text {
        align-items: center !important;
    }
}

@media (max-width: 575px) {
    .catalog-category-banner .col-sm-4:first-child,
    .catalog-category-banner .col-sm-4:last-child {
        text-align: center;
    }

    .catalog-banner-eyebrow {
        font-size: 2rem;
    }

    .catalog-banner-headline {
        font-size: 2.4rem;
    }

    .shop-product-grid .catalog-product-card .product-details {
        min-height: 23rem;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .catalog-description {
        padding: 1.8rem 1.5rem;
    }

    .catalog-description-content {
        max-height: 30rem;
    }
}

.theme-preview-main {
    min-height: 32rem;
}

.theme-preview-panel {
    margin: 4rem 0;
    padding: 3rem;
    border: 1px solid #e7edf3;
    border-left: 4px solid #0b73ba;
    background: #fff;
}

.theme-preview-panel h1 {
    margin-bottom: 1.5rem;
    color: #145da0;
}

.theme-preview-panel .theme-preview-note {
    margin-bottom: 0;
    color: #66788a;
}

.theme-component-section {
    margin: 0 0 5rem;
}

.theme-component-title {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e9ed;
    color: #14599d;
    font-family: "Open Sans", sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
}

.theme-component-title i {
    color: #079bd3;
}

.theme-component-product-grid,
.theme-component-content-grid {
    display: grid;
    gap: 2rem;
}

.theme-component-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-component-product-grid .theme-product-card {
    height: 100%;
    margin: 0;
    border: 1px solid #e1e7ed;
    background: #fff;
}

.theme-component-product-grid .theme-product-card figure {
    margin: .5rem;
}

.theme-component-product-grid .theme-product-card .product-details {
    min-height: 23rem;
    padding: 1.8rem 1.5rem 1.5rem;
}

.theme-component-product-grid .theme-product-card .product-title {
    min-height: 0;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.45;
}

.theme-component-product-grid .theme-product-card .product-title a {
    font-weight: 600;
}

.theme-component-product-grid .theme-product-card .price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .6rem;
}

.theme-component-product-grid .theme-product-card .old-price {
    color: #8b9197;
    font-size: 1.3rem;
    text-decoration: line-through;
}

.theme-component-product-grid .theme-product-card .product-price {
    color: #222529;
    font-size: 1.85rem;
    font-weight: 600;
}

.theme-component-content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-component-content-grid .theme-content-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e1e7ed;
    background: #fff;
}

.theme-component-content-grid .news-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.theme-component-content-grid .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-component-content-grid .news-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.8rem;
}

.theme-component-content-grid .news-card-content h3 {
    margin-bottom: .8rem;
    font-size: 1.6rem;
    line-height: 1.45;
}

.theme-component-content-grid .news-read-more {
    margin-top: auto;
    padding-top: 1.2rem;
}

.theme-component-detail-demo {
    padding: 2.4rem;
    border: 1px solid #e1e7ed;
    background: #fff;
}

.theme-component-detail-demo > h3 {
    margin: 0 0 2rem;
    color: #222529;
    font-family: "Open Sans", sans-serif;
    font-size: 2.2rem;
}

.theme-detail-content,
.theme-detail-body {
    width: 100%;
    max-width: none;
}

.theme-detail-cover {
    margin: 0 0 2.5rem;
}

.theme-detail-cover img,
.theme-detail-body img,
.tech-product-content img,
.product-desc-content img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

.theme-detail-body > img,
.theme-detail-body > p > img,
.theme-detail-body > p > a > img,
.tech-product-content > img,
.tech-product-content > p > img,
.tech-product-content > p > a > img,
.product-desc-content > img,
.product-desc-content > p > img,
.product-desc-content > p > a > img {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.theme-detail-body figure.image,
.tech-product-content figure.image,
.product-desc-content figure.image {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem auto 2.5rem !important;
    text-align: center;
}

.theme-detail-body figure.image > a,
.tech-product-content figure.image > a,
.product-desc-content figure.image > a {
    display: block;
    width: 100%;
}

.theme-detail-body figure.image img,
.tech-product-content figure.image img,
.product-desc-content figure.image img {
    margin: 0 auto;
}

.theme-detail-body figure.image figcaption,
.tech-product-content figure.image figcaption,
.product-desc-content figure.image figcaption {
    padding: .8rem 1rem 0;
    color: #6c757d;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.theme-detail-body {
    color: #313940;
    font-family: "Open Sans", sans-serif;
    font-size: 1.6rem;
    line-height: 1.75;
}

.theme-detail-body h2,
.theme-detail-body h3 {
    font-family: "Open Sans", sans-serif;
}

.theme-component-section .tech-cart-panel,
.theme-component-section .tech-detail-card {
    margin-bottom: 0;
}

.theme-component-section .tech-detail-layout {
    align-items: flex-start;
}

.theme-component-section .tech-detail-summary {
    top: 2rem;
}

@media (max-width: 991px) {
    .theme-component-product-grid,
    .theme-component-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .theme-preview-panel {
        margin: 2.5rem 0;
        padding: 2rem;
    }

    .theme-component-section {
        margin-bottom: 3.5rem;
    }

    .theme-component-title {
        font-size: 1.8rem;
    }

    .theme-component-product-grid,
    .theme-component-content-grid {
        grid-template-columns: 1fr;
    }

    .theme-component-detail-demo {
        padding: 1.6rem;
    }
}

/* Homepage 2026: dynamic CI4 data mapped to the approved Porto layout. */
.product-default .btn-quickview {
    display: none !important;
}

.home-page-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.home-data-intro .home-slider,
.home-data-intro .home-data-slide,
.home-data-intro .home-data-slide .slide-bg {
    width: 100%;
    height: 100%;
}

.home-data-intro .home-slider {
    aspect-ratio: 835 / 415;
    overflow: hidden;
    background: #f4f6f8;
}

.home-data-intro .home-data-slide {
    display: block;
}

.home-data-intro .home-data-slide .slide-bg {
    position: static;
    object-fit: cover;
}

.home-data-intro .home-slider .owl-nav button.owl-prev,
.home-data-intro .home-slider .owl-nav button.owl-next,
.home-data-intro .home-slider .owl-nav button.owl-prev:hover,
.home-data-intro .home-slider .owl-nav button.owl-next:hover,
.home-data-intro .home-slider .owl-nav button.owl-prev:focus,
.home-data-intro .home-slider .owl-nav button.owl-next:focus {
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

.home-data-intro .home-flash-deal > figure {
    position: relative;
}

.home-data-intro .home-flash-deal > figure .label-sale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.home-data-intro .home-flash-countdown {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    width: 100%;
    max-width: 30rem;
    min-height: 4.4rem;
    margin: 1.2rem auto 0;
    padding: .75rem 1rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid #e3e8ee;
    border-radius: 2.2rem;
    background: #f4f5f7;
    color: #273444;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.intro-section.home-data-intro .featured-products-slider .home-flash-deal .home-flash-countdown .product-countdown-title {
    flex: 0 0 auto;
    margin: 0;
    color: #14599d;
    font-family: "Open Sans", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: none;
}

.home-data-intro .home-flash-countdown .product-countdown {
	padding-top: 3px;
    min-width: 0;
    color: #273444;
    font-family: "Open Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.top-categories .categories-slider .owl-nav button.owl-prev,
.top-categories .categories-slider .owl-nav button.owl-next {
    top: 6.4rem;
    width: 3.6rem;
    height: 3.6rem;
    margin: 0;
    border: 1px solid #dce7f1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--techglobal-primary);
    line-height: 3.4rem;
    box-shadow: 0 .2rem .8rem rgba(20, 89, 157, .1);
}

.top-categories .categories-slider .owl-nav button.owl-prev {
    left: .4rem;
}

.top-categories .categories-slider .owl-nav button.owl-next {
    right: .4rem;
}

.top-categories .categories-slider .owl-nav button:hover,
.top-categories .categories-slider .owl-nav button:focus {
    border-color: var(--techglobal-primary);
    background: var(--techglobal-primary);
    color: #fff;
}

.android-combo-gifts li {
    margin-bottom: .55rem;
    padding-left: 2.2rem;
    color: #4f5963;
    font-size: 1.4rem;
    line-height: 1.55;
}

.android-combo-gifts li::before {
    top: .05rem;
    font-size: 1.35rem;
}

@media (max-width: 767px) {
    .top-categories {
        display: none !important;
    }
}

.service-benefits .info-box-content h3 {
    margin: 0 0 .5rem;
    color: #222529;
    font-size: 1.4rem;
    font-weight: 600;
}

.home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.home-section-heading .section-title {
    flex: 1;
    margin-bottom: 0 !important;
    border-bottom: 0;
}

.home-section-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .7rem;
    margin-top: .3rem;
    color: #14599d;
    font-size: 1.35rem;
    font-weight: 600;
}

.home-section-all:hover,
.home-section-all:focus {
    color: #079bd3;
}

.most-viewed-products .theme-product-card {
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #e1e7ed;
    background: #fff;
}

.most-viewed-products .theme-product-card figure {
    aspect-ratio: 1 / 1;
    margin: .5rem;
    overflow: hidden;
}

.most-viewed-products .theme-product-card figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.most-viewed-products .theme-product-card .product-details {
    display: flex;
    min-height: 24rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
}

.most-viewed-products .theme-product-card .product-title {
    width: 100%;
    min-height: 0;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.45;
}

.most-viewed-products .theme-product-card .product-title a {
    font-weight: 600;
}

.most-viewed-products .theme-product-card .home-product-cart {
    margin-top: auto;
}

.home-product-section .category-showcase-grid > .grid-item:not(:first-child) .theme-product-card {
    height: 100%;
    margin: 0;
}

.home-product-section .category-showcase-grid > .grid-item:not(:first-child) .theme-product-card figure {
    margin: .5rem;
}

.home-product-section .category-showcase-grid > .grid-item:first-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
    justify-self: stretch;
}

.home-product-section .category-showcase-grid > .grid-item:not(:first-child) .theme-product-card figure img {
    padding: 0;
    object-fit: contain;
}

.home-product-section .category-showcase-grid > .grid-item:not(:first-child) .theme-product-card .product-title {
    display: block;
    min-height: 0;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.45;
}

.home-product-section .category-showcase-grid > .grid-item:not(:first-child) .theme-product-card .product-title a {
    font-weight: 600;
}

.home-product-section .category-showcase-grid > .grid-item:not(:first-child) .home-product-warranty {
    min-height: 2rem;
    margin: 0 0 .6rem;
    color: #e52629;
    font-size: 1.15rem;
}

.home-product-section .home-showcase-banner,
.home-product-section .home-showcase-banner figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.home-product-section .category-showcase-grid > .grid-item:first-child .home-showcase-banner figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
}

.home-main-2026 .news-section .theme-content-card .news-read-more {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    color: #14599d;
    font-weight: 700;
    text-transform: uppercase;
}

.home-main-2026 .news-sidebar-ads img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 991px) {
    .home-data-intro .col-lg-3 {
        display: none;
    }

    .home-section-heading {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .home-data-intro .home-slider {
        aspect-ratio: 16 / 9;
    }

    .home-section-heading {
        gap: 1rem;
    }

    .home-section-all {
        font-size: 1.2rem;
    }

    .most-viewed-products .theme-product-card .product-details {
        min-height: 22rem;
        padding: 1.2rem;
    }
}

@media (max-width: 479px) {
    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .home-section-all {
        align-self: flex-end;
        margin: -3.6rem 0 1.6rem;
    }
}
