@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600&family=Noto+Serif:wght@400;500;600&display=swap');

/* Minh Tâm Bảo — Kho Online */
body.mtb-kho-online {
    background: #f5f2eb;
    color: #17392f;
}

body.mtb-kho-online .warehouse-intro {
    background: #fffdf8 !important;
    padding-top: 32px !important;
    padding-bottom: 24px !important;
}

body.mtb-kho-online .warehouse-intro .section-title {
    margin: 0 !important;
    color: #17392f !important;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 3rem) !important;
    font-weight: 500 !important;
    letter-spacing: -.025em;
}

body.mtb-kho-online .store-section {
    background: #f5f2eb !important;
    padding-top: 28px !important;
}

body.mtb-kho-online .store-toolbar,
body.mtb-kho-online .sidebar-widget,
body.mtb-kho-online .sort-options,
body.mtb-kho-online .product-card {
    border-color: rgba(23,57,47,.10) !important;
    box-shadow: 0 10px 30px rgba(23,57,47,.06) !important;
}

body.mtb-kho-online .store-toolbar,
body.mtb-kho-online .sidebar-widget,
body.mtb-kho-online .sort-options {
    background: #fff !important;
    border-radius: 16px !important;
}

body.mtb-kho-online .store-title,
body.mtb-kho-online .widget-title,
body.mtb-kho-online .category-collapsible-header,
body.mtb-kho-online .filter-section-label {
    color: #17392f !important;
}

body.mtb-kho-online .text-primary,
body.mtb-kho-online .category-list .category-item.active,
body.mtb-kho-online .product-link-wrapper:hover .product-name {
    color: #17392f !important;
}

body.mtb-kho-online .category-list .category-item.active {
    background: #eef3ef !important;
    border-left-color: #b8924d !important;
}

body.mtb-kho-online .advanced-filters-v2 .advanced-filters-title:before {
    background: #b8924d !important;
}

body.mtb-kho-online .btn-primary,
body.mtb-kho-online .product-card .product-actions .btn-primary,
body.mtb-kho-online #open-filters-fab {
    background: #17392f !important;
    border-color: #17392f !important;
    box-shadow: none !important;
}

body.mtb-kho-online .btn-primary:hover,
body.mtb-kho-online .product-card .product-actions .btn-primary:hover,
body.mtb-kho-online #open-filters-fab:hover {
    background: #214d40 !important;
    border-color: #214d40 !important;
}

body.mtb-kho-online .btn-outline-primary {
    color: #17392f !important;
    border-color: rgba(23,57,47,.35) !important;
}

body.mtb-kho-online .btn-outline-primary:hover {
    color: #fff !important;
    background: #17392f !important;
    border-color: #17392f !important;
}

body.mtb-kho-online .product-card:hover {
    border-color: rgba(184,146,77,.65) !important;
    box-shadow: 0 16px 38px rgba(23,57,47,.12) !important;
}

/* Banner PC riêng của Kho Online */
.mtb-kho-hero {
    width: min(calc(100% - 40px), 1920px);
    margin: 24px auto 0;
    overflow: hidden;
    border: 1px solid rgba(23,57,47,.12);
    border-radius: 26px;
    background: #ebe4d7;
    box-shadow: 0 18px 52px rgba(23,57,47,.11);
}

.mtb-kho-hero__media {
    position: relative;
    aspect-ratio: 48 / 13;
    min-height: 320px;
    max-height: 500px;
    overflow: hidden;
}

.mtb-kho-hero__media > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.mtb-kho-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(255,252,245,.95) 0%, rgba(255,252,245,.82) 23%, rgba(255,252,245,.20) 45%, rgba(255,252,245,0) 64%);
}

.mtb-kho-hero__copy {
    width: min(42%, 650px);
    margin-left: clamp(34px, 5vw, 92px);
}

.mtb-kho-hero__copy img {
    display: block;
    width: auto;
    height: clamp(50px, 5vw, 78px);
    max-width: 180px;
    margin: 0 0 12px;
    object-fit: contain;
}

.mtb-kho-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #9b7a3e;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mtb-kho-hero h1 {
    margin: 0;
    color: #17392f;
    font-family: 'Noto Serif', Georgia, serif;
    font-size: clamp(2rem, 3.1vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
}

.mtb-kho-hero p {
    max-width: 530px;
    margin: 14px 0 0;
    color: #405c52;
    font-size: clamp(.92rem, 1.05vw, 1.08rem);
    font-weight: 600;
    line-height: 1.55;
}

.mtb-kho-hero__bar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px clamp(18px, 3vw, 34px);
    background: #fffdf8;
    border-top: 1px solid rgba(23,57,47,.10);
}

.mtb-kho-hero__bar a {
    color: #17392f;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.mtb-kho-hero__bar span {
    color: #9b7a3e;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    body.mtb-kho-online .warehouse-banner {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .mtb-kho-hero { display: none !important; }

    body.mtb-kho-online .warehouse-banner .carousel-item img {
        max-height: 240px !important;
    }

    body.mtb-kho-online .warehouse-intro {
        padding-top: 20px !important;
        padding-bottom: 16px !important;
    }
}

@media (max-width: 576px) {
    body.mtb-kho-online .warehouse-intro .section-title {
        font-size: 1.55rem !important;
    }

    body.mtb-kho-online .store-section {
        padding-top: 18px !important;
    }
}


/* Minh Tâm Bảo: API-fed photographic product category index.
   The historic product search/listing remains available after selecting a real API category. */
.warehouse-intro {
    display: none !important;
}

.mtb-product-category-landing[hidden],
.mtb-product-listing--hidden {
    display: none !important;
}

.mtb-product-category-landing {
    background: #fff;
    color: #181a17;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    min-height: 60vh;
}

.mtb-product-category-landing,
.mtb-product-category-landing * {
    box-sizing: border-box;
}

.mtb-product-category-landing__inner {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
    padding: clamp(50px, 5vw, 82px) 0 70px;
}

.mtb-product-category-landing__head {
    margin-bottom: 27px;
}

.mtb-product-category-landing__head h1 {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    color: #161616;
    font-weight: 500;
    letter-spacing: -.04em;
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    line-height: 1.14;
    margin: 0 0 5px;
}

.mtb-product-category-landing__head p {
    margin: 0;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    color: #58617a;
    font-size: clamp(1rem, 1.55vw, 1.35rem);
    line-height: 1.6;
}

.mtb-product-category-landing__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(16px, 2.3vw, 33px);
    row-gap: 20px;
    align-items: start;
}

.mtb-product-category-landing__card {
    display: block;
    color: #151515;
    min-width: 0;
    text-decoration: none;
    transition: color .2s ease;
}

.mtb-product-category-landing__card img,
.mtb-product-category-landing__fallback {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.13 / 1;
    object-fit: cover;
    object-position: center;
    background: #f3eee7;
}

.mtb-product-category-landing__fallback {
    background: linear-gradient(135deg, #f5efe5, #e4d8c7);
}

.mtb-product-category-landing__card h2 {
    margin: 10px 0 2px;
    color: #1e1e1e;
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 2.6vw, 2.85rem);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.mtb-product-category-landing__card span {
    color: #c8343e;
    font-size: clamp(.95rem, 1.16vw, 1.18rem);
    font-weight: 500;
    line-height: 1.7;
}

.mtb-product-category-landing__card b {
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    line-height: 0;
    font-weight: 400;
    margin-left: 3px;
    transition: transform .2s ease;
    display: inline-block;
}

.mtb-product-category-landing__card:hover h2,
.mtb-product-category-landing__card:focus-visible h2 {
    color: #a4202d;
}

.mtb-product-category-landing__card:hover b {
    transform: translateX(4px);
}

.mtb-product-category-landing__card:focus-visible {
    outline: 2px solid #a4202d;
    outline-offset: 5px;
}

.mtb-product-category-landing__status {
    grid-column: 1 / -1;
    color: #54616b;
    font: 1rem/1.7 'Noto Sans', Arial, sans-serif;
    margin: 16px 0 50px;
}

.mtb-product-category-landing__status--error {
    color: #aa2537;
}

.mtb-product-category-landing__all {
    margin-top: 28px;
    font-family: 'Noto Sans', Arial, sans-serif;
    text-align: right;
}

.mtb-product-category-landing__all a,
.mtb-product-listing__back a {
    color: #a61d2d;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.mtb-product-category-landing__all a:hover,
.mtb-product-listing__back a:hover {
    color: #741a25;
}

.mtb-product-listing__back {
    width: min(100% - 36px, 1200px);
    margin: 0 auto 14px;
    padding-top: 5px;
    font: 500 1rem/1.5 'Noto Sans', Arial, sans-serif;
}

@media (max-width: 767px) {
    .mtb-product-category-landing__inner {
        width: calc(100% - 28px);
        padding: 34px 0 42px;
    }
    .mtb-product-category-landing__head {
        margin-bottom: 22px;
    }
    .mtb-product-category-landing__head h1 {
        font-size: clamp(2.25rem, 8.5vw, 3.6rem);
    }
    .mtb-product-category-landing__head p {
        font-size: clamp(.92rem, 3.35vw, 1.06rem);
    }
    .mtb-product-category-landing__grid {
        gap: 20px 12px;
    }
    .mtb-product-category-landing__card img,
    .mtb-product-category-landing__fallback {
        aspect-ratio: 1 / 1;
    }
    .mtb-product-category-landing__card h2 {
        font-size: clamp(1.15rem, 4.6vw, 1.75rem);
        margin-top: 8px;
    }
    .mtb-product-category-landing__card span {
        font-size: .91rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mtb-product-category-landing__card,
    .mtb-product-category-landing__card b {
        transition: none;
    }
}
