/* ==================================================
   THE KHATOON SHOP — BRAND MARKETPLACE
================================================== */

.home-brands {
    overflow: hidden;
}

.brand-carousel {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 46px;
}

.brand-carousel-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.brand-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.brand-carousel-track {
    display: flex;
    gap: 14px;
    padding: 6px 2px 18px;
}

.brand-carousel-card {
    flex: 0 0 calc((100% - 70px) / 6);
    min-width: 0;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid #eadfe3;
    border-radius: 12px;
    background: #fff;
    color: #222;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.brand-carousel-card:hover,
.brand-carousel-card:focus-visible {
    border-color: #e3a9ba;
    box-shadow: 0 14px 28px rgba(177, 61, 96, .11);
    transform: translateY(-3px);
}

.brand-carousel-logo {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-carousel-logo img {
    width: auto;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.brand-carousel-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.15;
}

.brand-carousel-card small {
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.brand-carousel-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e4d8dc;
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .09);
    cursor: pointer;
    transform: translateY(-62%);
}

.brand-carousel-prev { left: 0; }
.brand-carousel-next { right: 0; }

.brand-carousel-control:hover,
.brand-carousel-control:focus-visible {
    border-color: var(--khatoon-pink-dark, #bd3d61);
    color: var(--khatoon-pink-dark, #bd3d61);
}

.brand-carousel.is-static .brand-carousel-control {
    display: none;
}

.home-brands-footer {
    margin-top: 8px;
    text-align: center;
}

.home-brands-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 4px;
    border-bottom: 1px solid currentColor;
    color: #222;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.home-brands-all:hover,
.home-brands-all:focus-visible {
    color: var(--khatoon-pink-dark, #bd3d61);
}

/* Directory */
.brands-directory-page {
    background: #fff;
}

.brands-directory-hero {
    padding: 72px 24px 64px;
    background: linear-gradient(135deg, #fff7f9 0%, #fff 58%, #f8f1e2 100%);
    border-bottom: 1px solid #eee2e5;
    text-align: center;
}

.brands-directory-hero-inner {
    width: min(100%, 820px);
    margin: 0 auto;
}

.brands-directory-kicker {
    color: var(--khatoon-pink-dark, #bd3d61);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brands-directory-hero h1 {
    margin: 8px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 66px);
    font-weight: 400;
    line-height: 1.05;
}

.brands-directory-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.75;
}

.brands-search {
    width: min(100%, 610px);
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 30px auto 0;
    padding: 0 18px;
    border: 1px solid #decfd4;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
    color: #777;
}

.brands-search input {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
}

.brands-directory-content {
    width: min(100% - 48px, 1240px);
    margin: 0 auto;
    padding: 44px 0 80px;
}

.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
}

.brands-alphabet a,
.brands-alphabet span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.brands-alphabet a {
    background: #fff4f7;
    color: #8f2f4b;
}

.brands-alphabet a:hover,
.brands-alphabet a:focus-visible {
    background: #222;
    color: #fff;
}

.brands-alphabet span {
    color: #c7c7c7;
}

.brands-results-count {
    margin: 26px 0 8px;
    color: #6d6d6d;
    font-size: 13px;
    text-align: right;
}

.brands-letter-group {
    padding: 26px 0 8px;
    scroll-margin-top: 120px;
}

.brands-letter-group > h2 {
    margin: 0 0 15px;
    padding-bottom: 9px;
    border-bottom: 1px solid #ece3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
}

.brands-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.brands-directory-card {
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #ece5e7;
    border-radius: 10px;
    background: #fff;
    color: #222;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.brands-directory-card:hover,
.brands-directory-card:focus-visible {
    border-color: #dfafbd;
    box-shadow: 0 10px 24px rgba(177, 61, 96, .08);
    transform: translateY(-2px);
}

.brands-directory-logo {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff6f8;
    overflow: hidden;
}

.brands-directory-logo img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.brands-directory-logo > span {
    color: #a63a5a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.brands-directory-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brands-directory-card-copy strong {
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brands-directory-card-copy small {
    margin-top: 4px;
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.brands-directory-arrow {
    color: #a63a5a;
    font-size: 18px;
}

.brands-directory-notice,
.brands-directory-empty {
    max-width: 720px;
    margin: 30px auto;
    padding: 34px;
    border: 1px solid #eadde1;
    border-radius: 12px;
    background: #fff8fa;
    text-align: center;
}

.brands-directory-notice h2,
.brands-directory-empty h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.brands-directory-notice p,
.brands-directory-empty p {
    margin: 0;
    color: #666;
}

/* Individual brand archive hero */
.khatoon-brand-archive-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin: 0 0 30px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid #eadde1;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff6f8 0%, #fff 58%, #f8f0dd 100%);
}

.khatoon-brand-archive-copy {
    max-width: 760px;
}

.khatoon-brand-archive-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: #8f2f4b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.khatoon-brand-archive-hero h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.khatoon-brand-archive-description {
    color: #5f5f5f;
    line-height: 1.75;
}

.khatoon-brand-archive-description > *:first-child { margin-top: 0; }
.khatoon-brand-archive-description > *:last-child { margin-bottom: 0; }

.khatoon-brand-archive-count {
    margin: 17px 0 0;
    color: #7a7a7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.khatoon-brand-archive-logo {
    width: clamp(120px, 16vw, 210px);
    height: clamp(100px, 13vw, 170px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid #eadde1;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .06);
}

.khatoon-brand-archive-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 980px) {
    .brand-carousel-card {
        flex-basis: calc((100% - 42px) / 4);
    }

    .brands-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .brand-carousel {
        padding: 0 36px;
    }

    .brand-carousel-card {
        flex-basis: calc((100% - 14px) / 2);
        min-height: 108px;
    }

    .brand-carousel-control {
        width: 32px;
        height: 32px;
    }

    .brands-directory-hero {
        padding: 54px 20px 48px;
    }

    .brands-directory-content {
        width: min(100% - 30px, 1240px);
        padding-top: 30px;
    }

    .brands-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .khatoon-brand-archive-hero {
        grid-template-columns: 1fr;
    }

    .khatoon-brand-archive-logo {
        grid-row: 1;
        width: 140px;
        height: 105px;
    }
}

@media (max-width: 480px) {
    .brand-carousel {
        padding: 0 29px;
    }

    .brand-carousel-track {
        gap: 10px;
    }

    .brand-carousel-card {
        flex-basis: calc((100% - 10px) / 2);
        padding-inline: 9px;
    }

    .brand-carousel-name {
        font-size: 15px;
    }

    .brands-directory-grid {
        grid-template-columns: 1fr;
    }

    .brands-results-count {
        text-align: left;
    }

    .brands-directory-card {
        min-height: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-carousel-viewport {
        scroll-behavior: auto;
    }

    .brand-carousel-card,
    .brands-directory-card {
        transition: none;
    }
}

/* V2.5 image-led brand cards */
.brand-carousel-card {
    flex-basis: calc((100% - 56px) / 5);
    min-height: 170px;
    justify-content: flex-start;
    padding: 12px;
}

.brand-carousel-logo {
    height: 102px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff7f9, #fff);
}

.brand-carousel-logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 10px;
    object-fit: contain;
}

.brand-carousel-card.is-product .brand-carousel-logo img {
    padding: 5px;
}

.brand-carousel-card strong {
    max-width: 100%;
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-carousel-fallback,
.brands-directory-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #bd3d61;
}

.brands-directory-logo.is-product img {
    padding: 3px;
}

@media (max-width: 980px) {
    .brand-carousel-card {
        flex-basis: calc((100% - 42px) / 4);
    }
}

@media (max-width: 700px) {
    .home-brands {
        padding-right: 0;
        padding-left: 0;
    }

    .home-brands .home-section-heading,
    .home-brands .home-brands-footer {
        margin-right: 16px;
        margin-left: 16px;
    }

    .home-brands .home-section-heading {
        text-align: left;
    }

    .home-brands .home-section-heading h2::after {
        margin-left: 0;
    }

    .brand-carousel {
        padding: 0;
    }

    .brand-carousel-control {
        display: none;
    }

    .brand-carousel-track {
        gap: 12px;
        padding: 4px 16px 16px;
        scroll-padding-inline: 16px;
    }

    .brand-carousel-card {
        flex: 0 0 142px;
        min-height: 154px;
        padding: 9px;
    }

    .brand-carousel-logo {
        height: 90px;
    }

    .brand-carousel-card strong {
        font-size: 14px;
    }

    .brand-carousel-card small {
        font-size: 9px;
    }
}

/* Bremod promotional brand banner — v1.3.4 */
.khatoon-brand-archive-banner {
    margin: 0 0 30px;
}

.khatoon-brand-archive-banner-back {
    margin: 0 0 12px;
}

/*
 * Keep the complete 3:2 artwork visible. The dark stage fills unused space,
 * so the banner is shorter without cutting off the logo, offer boxes or
 * trust strip at the bottom.
 */
.khatoon-brand-archive-banner-media {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid #3d2b11;
    border-radius: 14px 14px 0 0;
    background:
        radial-gradient(circle at 70% 36%, rgba(212, 175, 55, .12), transparent 38%),
        linear-gradient(90deg, #060403 0%, #100b05 48%, #060403 100%);
    box-shadow: 0 18px 46px rgba(25, 16, 5, .14);
}

.khatoon-brand-archive-banner-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0 auto;
    object-fit: contain;
}

.khatoon-brand-archive-banner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid #eadde1;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(135deg, #fff8f9 0%, #fff 56%, #fbf2df 100%);
}

.khatoon-brand-archive-banner-footer h1 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.1;
}

.khatoon-brand-archive-banner-footer .khatoon-brand-archive-count {
    margin: 0;
}

.khatoon-brand-wholesale-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 7px;
    background: #d94873;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .45px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease;
}

.khatoon-brand-wholesale-link:hover,
.khatoon-brand-wholesale-link:focus-visible {
    background: #bd3d61;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .khatoon-brand-archive-banner-media img {
        max-height: 500px;
    }
}

@media (max-width: 720px) {
    .khatoon-brand-archive-banner-media {
        display: block;
    }

    .khatoon-brand-archive-banner-media img {
        width: 100%;
        max-height: none;
    }

    .khatoon-brand-archive-banner-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px;
    }

    .khatoon-brand-wholesale-link {
        width: 100%;
    }
}
