/* ==========================================================================
   THE KHATOON SHOP v7.1.5 — REPAIR LAYER
   Loaded last (after storefront-v700.bundle.css and reference-v710.css).

   Since v5.0/v7.0 the per-page stylesheets (about.css, woocommerce.css,
   site-polish.css, contact.css, luxury-suite-v400.css ...) are no longer
   enqueued, but several templates still print classes that were only styled
   in those files. This file restores them using the current design tokens
   (--tks-*) from style.css. Nothing here changes layout that already works.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Generic content pages: Privacy Policy, Terms & Conditions, blog posts,
      archives and the index fallback. They had no container, so on phones the
      text touched both screen edges.
   -------------------------------------------------------------------------- */
.tks-generic-page { padding-block: clamp(26px, 4vw, 64px); }
.tks-generic-page > .entry-header,
.tks-generic-page .page-header {
    margin: 0 0 clamp(18px, 2.4vw, 30px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tks-border);
}
.tks-generic-page .entry-title,
.tks-generic-page .page-title { overflow-wrap: anywhere; }
.tks-generic-page .entry-content,
.tks-generic-page .entry-summary,
.tks-generic-page .archive-description {
    max-width: 880px;
    color: var(--tks-ink);
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.tks-generic-page .entry-content h2,
.tks-generic-page .entry-content h3,
.tks-generic-page .entry-content h4 {
    margin: 1.7em 0 .5em;
    color: var(--tks-ink);
    font-family: var(--tks-serif);
    line-height: 1.2;
}
.tks-generic-page .entry-content h2 { font-size: clamp(24px, 3vw, 32px); }
.tks-generic-page .entry-content h3 { font-size: clamp(20px, 2.4vw, 25px); }
.tks-generic-page .entry-content p,
.tks-generic-page .entry-content ul,
.tks-generic-page .entry-content ol { margin: 0 0 1.1em; }
.tks-generic-page .entry-content ul,
.tks-generic-page .entry-content ol { padding-left: 1.4em; }
.tks-generic-page .entry-content a { color: var(--tks-pink-dark); font-weight: 600; text-underline-offset: 3px; }
.tks-generic-page .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.tks-generic-page .entry-content blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--tks-gold);
    font-family: var(--tks-serif);
    font-style: italic;
}
.tks-generic-page .entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.tks-generic-page .entry-content th,
.tks-generic-page .entry-content td { padding: 9px 12px; border: 1px solid var(--tks-border); text-align: left; }
.tks-generic-page article.post,
.tks-generic-page article.page { margin: 0 0 clamp(26px, 3vw, 40px); }
.tks-generic-page .entry-title a { color: inherit; text-decoration: none; }
.tks-generic-page .entry-title a:hover { color: var(--tks-pink); }
.tks-generic-page .navigation.posts-navigation,
.tks-generic-page .navigation.pagination { margin-top: 28px; }
.tks-generic-page .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.tks-generic-page .page-numbers {
    min-width: 42px; min-height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--tks-border); border-radius: 10px; color: var(--tks-ink); text-decoration: none;
}
.tks-generic-page .page-numbers.current { background: var(--tks-pink); border-color: var(--tks-pink); color: #fff; }

/* --------------------------------------------------------------------------
   2. About Us (template-parts/page/about-us.php) — was completely unstyled.
   -------------------------------------------------------------------------- */
.khatoon-about-main { background: #fff; overflow: hidden; }
.khatoon-about-article { width: 100%; max-width: none; margin: 0; padding: 0; }
.khatoon-about-intro,
.khatoon-founder-story,
.khatoon-about-values {
    width: min(calc(100% - (var(--tks-gutter) * 2)), 1220px);
    margin-inline: auto;
}
.khatoon-about-kicker {
    margin: 0 0 10px;
    color: var(--tks-pink);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.khatoon-about-intro { padding: clamp(36px, 5vw, 70px) 0 clamp(26px, 3.4vw, 44px); text-align: center; }
.khatoon-about-intro h1,
.khatoon-founder-story__copy h2 {
    margin: 0;
    color: var(--tks-ink);
    font-family: var(--tks-serif);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.06;
}
.khatoon-about-intro h1 { max-width: 920px; margin-inline: auto; font-size: clamp(34px, 5vw, 62px); }
.khatoon-about-intro > p:last-child { max-width: 780px; margin: 20px auto 0; color: var(--tks-muted); font-size: 17px; line-height: 1.75; }

.khatoon-founder-story {
    display: grid;
    gap: clamp(22px, 3vw, 40px);
    margin-bottom: clamp(36px, 5vw, 64px);
}
.khatoon-founder-banner {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .55);
    border-radius: var(--tks-radius-lg);
    background: #0b0b0b;
    box-shadow: var(--tks-shadow-md);
}
.khatoon-founder-banner img { display: block; width: 100%; height: auto; }
.khatoon-founder-story__copy {
    width: min(100%, 860px);
    margin-inline: auto;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid #f0dce4;
    border-radius: var(--tks-radius-lg);
    background: linear-gradient(135deg, var(--tks-pink-pale), #fff 62%, #fffaf0);
    box-shadow: var(--tks-shadow-sm);
}
.khatoon-founder-story__copy h2 { font-size: clamp(30px, 3.8vw, 46px); }
.khatoon-founder-story__copy > p:not(.khatoon-about-kicker) { margin: 16px 0 0; color: #4f4548; font-size: 16.5px; line-height: 1.78; }
.khatoon-founder-story__copy blockquote {
    margin: 24px 0 0;
    padding: 14px 0 14px 20px;
    border-left: 3px solid var(--tks-gold);
    color: #30282b;
    font-family: var(--tks-serif);
    font-size: clamp(17px, 2vw, 21px);
    font-style: italic;
    line-height: 1.5;
}
.khatoon-about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.khatoon-about-button {
    min-height: 48px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tks-pink);
    border-radius: 10px;
    background: #fff;
    color: var(--tks-pink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.khatoon-about-button--primary,
.khatoon-about-button:hover,
.khatoon-about-button:focus-visible { background: var(--tks-pink); color: #fff; }
.khatoon-about-button--primary:hover { background: var(--tks-pink-dark); border-color: var(--tks-pink-dark); box-shadow: 0 10px 24px rgba(255, 15, 104, .18); }
.khatoon-founder-linkedin {
    min-height: 42px;
    margin-top: 18px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: var(--tks-black);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.khatoon-founder-linkedin:hover { background: var(--tks-pink-dark); color: #fff; }
.khatoon-founder-linkedin span,
.khatoon-founder-linkedin svg { width: 20px; height: 20px; flex: 0 0 20px; }
.khatoon-about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: clamp(44px, 6vw, 84px);
}
.khatoon-about-values article {
    padding: 26px;
    border: 1px solid #f0dce4;
    border-radius: var(--tks-radius);
    background: #fff;
    box-shadow: var(--tks-shadow-sm);
}
.khatoon-about-values span {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tks-pink-soft);
    color: var(--tks-pink);
    font-size: 12px;
    font-weight: 850;
}
.khatoon-about-values h3 { margin: 0; color: var(--tks-ink); font-family: var(--tks-serif); font-size: 21px; }
.khatoon-about-values p { margin: 9px 0 0; color: var(--tks-muted); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 900px) {
    .khatoon-about-values { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .khatoon-founder-banner { border-radius: 16px; }
    .khatoon-founder-story__copy { padding: 20px 18px; border-radius: 18px; }
    .khatoon-about-actions { display: grid; }
    .khatoon-about-button { width: 100%; }
    .khatoon-about-values article { padding: 22px 20px; }
}

/* --------------------------------------------------------------------------
   3. 404 page (404.php) — had no styles at all.
   -------------------------------------------------------------------------- */
.khatoon-error-page {
    min-height: 56vh;
    padding: clamp(34px, 6vw, 90px) var(--tks-gutter);
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 0, var(--tks-pink-soft), #fff 62%);
}
.khatoon-error-card {
    width: min(100%, 640px);
    padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
    border: 1px solid #f0dce4;
    border-radius: var(--tks-radius-lg);
    background: #fff;
    box-shadow: var(--tks-shadow-md);
    text-align: center;
}
.khatoon-error-code {
    margin: 0;
    color: var(--tks-pink);
    font: 700 clamp(72px, 14vw, 128px)/1 var(--tks-serif);
    letter-spacing: -.04em;
}
.khatoon-error-card h1 {
    margin: 6px 0 12px;
    color: var(--tks-ink);
    font: 700 clamp(28px, 4vw, 40px)/1.1 var(--tks-serif);
    letter-spacing: -.02em;
}
.khatoon-error-card p:not(.khatoon-error-code) { max-width: 440px; margin: 0 auto; color: var(--tks-muted); line-height: 1.7; }
.khatoon-error-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.khatoon-error-button {
    min-height: 48px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tks-pink);
    border-radius: 10px;
    background: #fff;
    color: var(--tks-pink);
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.khatoon-error-button:hover,
.khatoon-error-button:focus-visible { background: var(--tks-pink); color: #fff; }
.khatoon-error-button-primary { background: var(--tks-pink); color: #fff; }
.khatoon-error-button-primary:hover { background: var(--tks-pink-dark); border-color: var(--tks-pink-dark); }
@media (max-width: 520px) {
    .khatoon-error-actions { display: grid; }
}

/* --------------------------------------------------------------------------
   4. Search results page (search.php) — heading, form button, "Matching
      purchase options" cards, empty state and non-product results.
   -------------------------------------------------------------------------- */
.khatoon-search-eyebrow {
    margin: 0;
    color: var(--tks-pink);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.khatoon-search-header h1 {
    color: var(--tks-ink);
    font: 700 clamp(28px, 4vw, 52px)/1.06 var(--tks-serif);
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}
.khatoon-search-form button[type="submit"] {
    background: var(--tks-pink);
    color: #fff;
    font-weight: 800;
}
.khatoon-search-form button[type="submit"]:hover { background: var(--tks-pink-dark); }
.khatoon-search-variations { margin: 6px 0 30px; }
.khatoon-search-section-heading h2 { margin: 0 0 4px; color: var(--tks-ink); font: 700 clamp(21px, 2.4vw, 28px)/1.15 var(--tks-serif); }
.khatoon-search-section-heading p { margin: 0 0 16px; color: var(--tks-muted); font-size: 14px; }
.khatoon-search-variation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.khatoon-search-variation-card {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid #f0dce4;
    border-radius: 14px;
    background: #fff;
    color: var(--tks-ink);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.khatoon-search-variation-card:hover,
.khatoon-search-variation-card:focus-visible { border-color: var(--tks-pink); box-shadow: 0 8px 22px rgba(255, 15, 104, .1); }
.khatoon-search-variation-card img { width: 72px; height: 72px; border-radius: 9px; background: var(--tks-pink-pale); object-fit: contain; }
.khatoon-search-variation-card span { min-width: 0; }
.khatoon-search-variation-card strong { display: block; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.khatoon-search-variation-card small { display: block; margin-top: 5px; color: var(--tks-pink-dark); font-size: 13px; font-weight: 800; }
.khatoon-search-empty {
    max-width: 640px;
    margin: 10px auto 30px;
    padding: clamp(26px, 4vw, 44px) 22px;
    border: 1px solid #f0dce4;
    border-radius: var(--tks-radius);
    background: var(--tks-pink-pale);
    text-align: center;
}
.khatoon-search-empty h1,
.khatoon-search-empty h2 { margin: 0 0 10px; color: var(--tks-ink); font: 700 clamp(22px, 3vw, 30px)/1.15 var(--tks-serif); }
.khatoon-search-empty p { margin: 0 0 20px; color: var(--tks-muted); }
.khatoon-primary-link {
    min-height: 48px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tks-pink);
    border-radius: 10px;
    background: var(--tks-pink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.khatoon-primary-link:hover,
.khatoon-primary-link:focus-visible { background: var(--tks-pink-dark); border-color: var(--tks-pink-dark); color: #fff; }
.khatoon-search-posts { display: grid; gap: 14px; margin-bottom: 24px; }
.khatoon-search-post { padding: 18px 20px; border: 1px solid var(--tks-border); border-radius: var(--tks-radius-sm); background: #fff; }
.khatoon-search-post h2 { margin: 0 0 6px; font: 700 20px/1.25 var(--tks-serif); }
.khatoon-search-post h2 a { color: var(--tks-ink); text-decoration: none; }
.khatoon-search-post h2 a:hover { color: var(--tks-pink); }
.khatoon-search-post p { margin: 0; color: var(--tks-muted); }
.khatoon-search-page .navigation.pagination { margin-top: 30px; }
.khatoon-search-page .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.khatoon-search-page .page-numbers {
    min-width: 42px; min-height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--tks-border); border-radius: 10px; color: var(--tks-ink); text-decoration: none;
}
.khatoon-search-page .page-numbers.current { background: var(--tks-pink); border-color: var(--tks-pink); color: #fff; }
@media (max-width: 900px) {
    .khatoon-search-variation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .khatoon-search-variation-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. Small components that lost their rules.
   -------------------------------------------------------------------------- */
/* Wishlist summary heart was an unconstrained SVG (filled the whole card). */
.tks-wishlist-summary__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--tks-pink); }
.tks-wishlist-summary__icon svg { width: 26px; height: 26px; }
.tks-wishlist-heading__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tks-mini-action { margin-top: 5px; display: inline-block; color: var(--tks-pink); font-size: 12px; font-weight: 900; }
@media (max-width: 680px) {
    .tks-wishlist-heading__actions { width: 100%; display: grid; grid-template-columns: 1fr; }
}

/* Shop filter radios / checkboxes */
.tks-filter-radio { min-height: 34px; display: flex; align-items: center; gap: 9px; color: #444; cursor: pointer; }
.tks-filter-radio input { width: 18px; height: 18px; accent-color: var(--tks-pink); }
.tks-filter-radio small {
    min-width: 26px; height: 24px; margin-left: auto; padding: 0 7px;
    display: grid; place-items: center; border-radius: 999px;
    background: var(--tks-pink-soft); color: var(--tks-pink); font-weight: 800;
}

/* Brand cards without a logo, brands/deals/cart/checkout headings */
.tks-brand-card__text-visual { padding: 20px; color: var(--tks-black); font-family: var(--tks-serif); font-size: 28px; font-weight: 700; text-align: center; }
.tks-brands-heading__copy { max-width: 690px; }
.tks-deals-heading { align-items: center; }
.tks-secure-heading-note { display: flex; align-items: center; gap: 9px; color: var(--tks-pink); font-weight: 900; }
.tks-secure-heading-note svg { width: 26px; height: 26px; }
.tks-returns-page .entry-content { font-size: 17px; }
.tks-returns-page .entry-content h2 { margin-top: 28px; font-size: 30px; }
.tks-returns-page .entry-content a { color: var(--tks-pink); font-weight: 700; }
@media (max-width: 680px) {
    .tks-brand-card__text-visual { font-size: 20px; }
    .tks-deals-heading { display: block; }
}

/* --------------------------------------------------------------------------
   Mobile shop filters: the slide-in panel was painted UNDER its own
   full-screen backdrop (panel z-index 1205 from the v6.0.3 layer vs backdrop
   4190), so on phones every tap landed on the backdrop: no filter control or
   the close button could be used and any tap just closed the panel.
   The panel must sit above the backdrop (and the bottom bar, z-index 3000).
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    body.tks-storefront-v700 .tks-shop-filter-panel {
        z-index: 4200;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* v7.1.8: the mobile "My Cart (N items)" title is for phones only. It was shown on desktop
   too, under "Your Cart.", so the cart page had two headings. */
@media (min-width: 821px) {
    body.tks-mobile-pages-v430 .tks-mobile-cart-title { display: none !important; }
}

/* v7.1.8: the phone cart title is now a paragraph. Keep the size and weight it had as a heading. */
@media (max-width: 820px) {
    body.tks-mobile-pages-v430 .tks-mobile-cart-title__text {
        margin: 21.44px 0;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.55;
    }
}
