/* THE KHATOON SHOP v7.1.1 — final prompt alignment authority.
 * This file loads after the consolidated compatibility bundle so older
 * release selectors cannot override the approved storefront proportions. */

body.tks-storefront-v700 {
    --tks-container: 1480px;
    --tks-gutter: clamp(18px, 2.4vw, 40px);
}

/* A historical dark-header rule made these controls white on the final white
 * header, leaving only their pink count badges visible in production. */
body.tks-storefront-v700 .tks-header-action,
body.tks-storefront-v700 .tks-header-action svg {
    color: var(--tks-v700-ink, #21191e) !important;
}

body.tks-storefront-v700 .tks-search > button {
    border-color: var(--tks-pink, #ef0063) !important;
    background: var(--tks-pink, #ef0063) !important;
    color: #fff !important;
}

body.tks-storefront-v700 .tks-utility-bar__inner,
body.tks-storefront-v700 .tks-header__main,
body.tks-storefront-v700 .tks-desktop-menu {
    width: min(100%, 1480px);
}

@media (min-width: 901px) {
    body.tks-storefront-v700.tks-reference-v600 .tks-header__main {
        min-height: 100px;
        height: auto;
        padding: 10px 40px;
        grid-template-columns: minmax(250px, 310px) minmax(360px, 1fr) auto;
        grid-template-rows: auto;
        gap: clamp(24px, 3.4vw, 58px);
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-logo,
    body.tks-storefront-v700.tks-reference-v603 .tks-logo {
        width: 100%;
        min-width: 230px;
        height: 80px;
        overflow: visible;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-logo__image,
    body.tks-storefront-v700.tks-reference-v603 .tks-logo__image {
        width: min(240px, 100%) !important;
        max-width: 240px !important;
        height: 72px !important;
        max-height: 72px !important;
        object-fit: fill !important;
        transform: none !important;
    }

    body.tks-storefront-v700 .tks-search {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        max-width: 650px;
        height: 50px;
    }

    body.tks-storefront-v700 .tks-header-actions {
        min-width: 250px;
        display: flex;
        justify-content: flex-end;
        gap: clamp(20px, 2.3vw, 36px);
    }

    body.tks-storefront-v700 .tks-header-action {
        min-width: 58px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        font-size: 11px;
        text-align: center;
    }

    body.tks-storefront-v700 .tks-header-action > span:last-child {
        display: block;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-nav {
        display: block;
        min-height: 42px;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-menu {
        min-height: 42px;
        padding: 0 18px;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-menu > li > a,
    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-menu__trigger,
    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-menu__trigger > a {
        min-height: 42px;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-menu > li > a,
    body.tks-storefront-v700.tks-reference-v600 .tks-desktop-menu__trigger > a {
        padding-inline: clamp(8px, .72vw, 13px);
        font-size: clamp(10px, .7vw, 12px);
    }

    body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 {
        margin: 0;
    }
}

/* The approved desktop artwork is 1536 x 403. Historical releases left a
 * fixed hero height behind, which created the beige bands seen in production. */
body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602,
body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero__viewport,
body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero__track {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1536 / 403;
}

body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602,
body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero__viewport,
body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero__track {
    height: calc(100vw * 403 / 1536) !important;
    min-height: 0 !important;
    max-height: calc(100vw * 403 / 1536) !important;
}

body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero-static-slide.is-active {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto;
}

body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero-static-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

body.tks-storefront-v700.home .tks-quick-benefits {
    display: grid;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

body.tks-storefront-v700.home .tks-home-promos {
    padding: 20px 0 12px;
    grid-template-columns: 1.15fr 1fr .9fr;
    gap: 14px;
}

body.tks-storefront-v700.home .tks-home-promo {
    position: relative;
    min-height: 132px;
    padding: 18px 22px;
    border-radius: 12px;
    justify-content: center;
}

body.tks-storefront-v700.home .tks-home-promo h2 {
    max-width: 70%;
    margin: 4px 0 5px;
    font-size: clamp(22px, 2vw, 31px);
    line-height: 1;
}

body.tks-storefront-v700.home .tks-home-promo p {
    max-width: 70%;
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.35;
}

body.tks-storefront-v700.home .tks-home-promo .tks-button {
    min-height: 32px;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 10px;
}

body.tks-storefront-v700.home .tks-home-promo--retail {
    background: linear-gradient(105deg, rgba(255,255,255,.2), rgba(255,255,255,.78)), url('../images/newsletter-gift-v600.webp') right center / 46% auto no-repeat, linear-gradient(120deg,#fff3f5,#f8d8dc);
}

body.tks-storefront-v700.home .tks-home-promo--wholesale {
    border-color: #f4c8d6;
    color: var(--tks-v700-ink);
    background: linear-gradient(105deg, rgba(255,244,248,.98), rgba(255,244,248,.6)), url('../images/hero-glamour-v340.webp') right center / cover no-repeat;
}

body.tks-storefront-v700.home .tks-home-promo--brands {
    border: 1px solid #f0e2dc;
    background: linear-gradient(125deg,#fff,#f8eee9);
}

body.tks-storefront-v700.home .tks-home-categories {
    padding-top: 8px;
}

body.tks-storefront-v700.home .tks-home-categories .tks-section-heading {
    margin-bottom: 0;
}

body.tks-storefront-v700.home .tks-category-grid {
    margin-top: 18px;
}

body.tks-storefront-v700.single-product div.product {
    width: min(calc(100% - (var(--tks-gutter) * 2)), 1480px);
    padding: 34px 0 46px;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    align-items: start;
    gap: clamp(34px, 4vw, 64px);
}

body.tks-storefront-v700.single-product div.product .woocommerce-product-gallery,
body.tks-storefront-v700.single-product div.product .summary {
    align-self: start;
    height: auto !important;
    min-height: 0 !important;
}

body.tks-storefront-v700.single-product .woocommerce-product-gallery .flex-viewport {
    height: auto !important;
    max-height: 590px;
}

body.tks-storefront-v700.single-product .woocommerce-product-gallery__wrapper {
    border-radius: 10px;
}

body.tks-storefront-v700.single-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto !important;
    max-height: 590px;
    aspect-ratio: 1;
    object-fit: contain;
}

body.tks-storefront-v700.single-product .flex-control-thumbs {
    margin-top: 10px !important;
}

body.tks-storefront-v700.single-product .product_title {
    max-width: 760px;
    margin: 3px 0 10px;
    font-style: normal;
    font-size: clamp(28px, 2.15vw, 36px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

body.tks-storefront-v700.single-product .summary > .price,
body.tks-storefront-v700.single-product .woocommerce-variation-price .price {
    margin: 14px 0;
    font-size: clamp(24px, 2vw, 32px);
}

body.tks-storefront-v700.single-product .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.65;
}

body.tks-storefront-v700.single-product .tks-product-reassurance {
    margin-top: 16px;
}

body.tks-storefront-v700.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator,
body.tks-storefront-v700.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title),
body.tks-storefront-v700.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
body.tks-storefront-v700.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid {
    display: none !important;
}

body.tks-storefront-v700.woocommerce-cart .tks-cart-content .cart-empty,
body.tks-storefront-v700.woocommerce-cart .wc-block-cart__empty-cart__title {
    margin: 20px 0;
    padding: 76px 24px;
    border: 1px solid var(--tks-v700-border);
    border-radius: 14px;
    background: linear-gradient(135deg,#fff,#fff5f7);
    font: 700 clamp(26px,3vw,40px)/1.1 var(--tks-serif);
    text-align: center;
}

@media (max-width: 1100px) and (min-width: 901px) {
    body.tks-storefront-v700.tks-reference-v600 .tks-header__main {
        padding-inline: 22px;
        grid-template-columns: 220px minmax(300px, 1fr) 210px;
        gap: 18px;
    }
    body.tks-storefront-v700 .tks-header-actions { min-width: 210px; gap: 14px; }
    body.tks-storefront-v700 .tks-header-action { min-width: 50px; }
}

@media (max-width: 900px) {
    body.tks-storefront-v700.tks-reference-v600 .tks-header__main,
    body.tks-storefront-v700.tks-reference-v603 .tks-header__main {
        width: 100%;
        min-height: 128px;
        height: auto;
        padding: 7px 12px;
        grid-template-columns: 42px minmax(120px,1fr) auto;
        grid-template-rows: 70px 44px;
        gap: 4px 10px;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-logo,
    body.tks-storefront-v700.tks-reference-v603 .tks-logo {
        width: 100%;
        min-width: 0;
        height: 66px;
        max-height: 66px;
        overflow: visible;
    }

    body.tks-storefront-v700.tks-reference-v600 .tks-logo__image,
    body.tks-storefront-v700.tks-reference-v603 .tks-logo__image {
        width: 150px !important;
        max-width: 100% !important;
        height: 58px !important;
        max-height: 58px !important;
        object-fit: fill !important;
        transform: none !important;
    }

    body.tks-storefront-v700 .tks-search {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 44px;
    }

    body.tks-storefront-v700 .tks-search,
    body.tks-storefront-v700 .tks-search input[type="search"],
    body.tks-storefront-v700 .tks-search > button {
        min-height: 44px;
        height: 44px;
    }

    body.tks-storefront-v700 .tks-header-actions {
        min-width: 90px;
        gap: 8px;
    }

    body.tks-storefront-v700 .tks-header-account {
        display: none !important;
    }

    body.tks-storefront-v700 .tks-header-wishlist,
    body.tks-storefront-v700 .tks-header-cart {
        display: flex !important;
    }

    body.tks-storefront-v700.home .tks-home-promos {
        padding-inline: 12px;
        grid-template-columns: 1fr;
    }

    body.tks-storefront-v700.home .tks-home-promo--brands {
        display: none;
    }

    body.tks-storefront-v700.single-product div.product {
        width: min(calc(100% - 24px), 1480px);
        padding: 18px 0 30px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.tks-storefront-v700.single-product .product_title {
        font-size: clamp(26px, 7vw, 36px);
    }
}

body.tks-storefront-v700 .tks-bottom-nav {
    grid-template-columns: repeat(5,minmax(0,1fr));
}

body.tks-storefront-v700 .tks-v710-delivery-facts {
    margin: 14px 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid #f0dce4;
    border-radius: 10px;
    background: #fff8fb;
    color: #4f464b;
    font-size: 12px;
    line-height: 1.65;
}

/* Prompt-aligned product typography and conversion footer. */
body.tks-storefront-v700 .tks-shop-results .woocommerce-loop-product__title,
body.tks-storefront-v700 .tks-deals-grid .woocommerce-loop-product__title,
body.tks-storefront-v700 .tks-product-card__title {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

body.tks-storefront-v700 .tks-footer__newsletter > p {
    margin: 0 0 13px;
    color: #d8ced3;
    font-size: 12px;
    line-height: 1.55;
}

body.tks-storefront-v700 .tks-footer-newsletter-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    margin-bottom: 14px;
}

body.tks-storefront-v700 .tks-footer-newsletter-form > input[type="email"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 7px;
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 0 12px;
}

body.tks-storefront-v700 .tks-footer-newsletter-form > input[type="email"]::placeholder { color: #cfc4c9; }

body.tks-storefront-v700 .tks-footer-newsletter-form > button {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    background: var(--tks-pink, #ef0063);
    color: #fff;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

body.tks-storefront-v700 .tks-footer-newsletter-form__consent,
body.tks-storefront-v700 .tks-footer-newsletter-form .tks-newsletter__status { grid-column: 1 / -1; }

body.tks-storefront-v700 .tks-footer-newsletter-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #d8ced3;
    font-size: 10px;
    line-height: 1.4;
}

body.tks-storefront-v700 .tks-footer-newsletter-form__consent input { margin-top: 2px; }
body.tks-storefront-v700 .tks-footer-newsletter-form .tks-newsletter__status { margin: 0; font-size: 11px; }

body.tks-storefront-v700 .tks-footer__trust {
    width: min(calc(100% - (var(--tks-gutter) * 2)), var(--tks-container));
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

body.tks-storefront-v700 .tks-footer__trust span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f6eef2;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

body.tks-storefront-v700 .tks-footer__trust svg { width: 19px; height: 19px; color: var(--tks-pink, #ef0063); }

body.tks-storefront-v700 .tks-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

body.tks-storefront-v700 .tks-footer__bottom nav { display: flex; align-items: center; gap: 15px; white-space: nowrap; }
body.tks-storefront-v700 .tks-footer__bottom nav a { color: #ddd4d8; font-size: 11px; text-decoration: none; }
body.tks-storefront-v700 .tks-footer__bottom nav a:hover { color: #fff; }

@media (max-width: 767px) {
    body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602,
    body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero__viewport,
    body.tks-storefront-v700.tks-reference-v602 .tks-hero-static-v602 .tks-hero__track {
        height: calc(100vw * 580 / 686) !important;
        min-height: 0 !important;
        max-height: calc(100vw * 580 / 686) !important;
        aspect-ratio: 686 / 580;
    }
}

@media (max-width: 900px) {
    body.tks-storefront-v700 .tks-shop-results .woocommerce-loop-product__title,
    body.tks-storefront-v700 .tks-deals-grid .woocommerce-loop-product__title,
    body.tks-storefront-v700 .tks-product-card__title {
        font-size: 13px !important;
    }

    body.tks-storefront-v700 .tks-footer__trust { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.tks-storefront-v700 .tks-footer__trust span { justify-content: flex-start; text-align: left; }
    body.tks-storefront-v700 .tks-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    body.tks-storefront-v700 .tks-footer-newsletter-form { grid-template-columns: 1fr; }
    body.tks-storefront-v700 .tks-footer-newsletter-form > button { width: 100%; }
    body.tks-storefront-v700 .tks-footer__trust { grid-template-columns: 1fr 1fr; gap: 13px 10px; }

    body.tks-storefront-v700.home .tks-quick-benefits {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    body.tks-storefront-v700.home .tks-quick-benefits article {
        min-height: 92px;
        padding: 10px 4px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }

    body.tks-storefront-v700.home .tks-quick-benefits article + article {
        border-left: 1px solid #f2dfe6;
        border-top: 0;
    }

    body.tks-storefront-v700.home .tks-quick-benefits svg {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    body.tks-storefront-v700.home .tks-quick-benefits strong { font-size: 9px; line-height: 1.2; }
    body.tks-storefront-v700.home .tks-quick-benefits span { display: none; }
    body.tks-storefront-v700.home .tks-home-promo { min-height: 160px; padding: 18px; }
    body.tks-storefront-v700.home .tks-home-promo h2 { max-width: 66%; font-size: 25px; }
    body.tks-storefront-v700.home .tks-home-promo p { max-width: 65%; font-size: 10px; }
    body.tks-storefront-v700.home .tks-category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px 7px; }
    body.tks-storefront-v700.home .tks-category-card:nth-child(n+6) { display: none; }
    body.tks-storefront-v700.home .tks-category-card strong { font-size: 9px; }
    body.tks-storefront-v700.single-product .woocommerce-product-gallery__image img { max-height: 480px; }
}
