/*
 * THE KHATOON SHOP v3.3.3
 * Stability, visibility and About-page luxury refinement.
 * Loaded last so it safely resolves earlier cascade conflicts.
 */

:root {
    --tks-v333-black: #070707;
    --tks-v333-charcoal: #171014;
    --tks-v333-white: #ffffff;
    --tks-v333-cream: #fffaf6;
    --tks-v333-blush: #fff2f6;
    --tks-v333-pink: #df356f;
    --tks-v333-pink-dark: #a91648;
    --tks-v333-gold: #d7ad32;
    --tks-v333-gold-light: #f1d681;
    --tks-v333-ink: #211a1e;
    --tks-v333-muted: #5d5156;
    --tks-v333-line: #ead8df;
    --tks-v333-shadow: 0 18px 46px rgba(36, 21, 28, .11);
}

/* --------------------------------------------------
   1. HEADER: RESTORE THE LOGO AND KEEP THE LAYOUT FITTED
-------------------------------------------------- */
.site-header .header-main {
    width: min(calc(100% - 40px), 1480px) !important;
    min-height: 136px !important;
    grid-template-columns: 188px minmax(360px, 1fr) 260px !important;
    grid-template-rows: 86px 50px !important;
    grid-template-areas:
        "logo search actions"
        "nav nav nav" !important;
    column-gap: clamp(22px, 3vw, 46px) !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* v3.3.2 accidentally applied a column flex-basis to the logo link.
   In a column flexbox that became a 150–205px height and pushed/clipped the image. */
.site-header .brand-logo {
    grid-area: logo !important;
    display: flex !important;
    width: 188px !important;
    min-width: 0 !important;
    height: 86px !important;
    flex: none !important;
    align-items: flex-start !important;
    justify-content: center !important;
    align-self: center !important;
    justify-self: start !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-header .brand-logo .custom-logo-link {
    display: flex !important;
    width: 176px !important;
    max-width: 176px !important;
    height: 78px !important;
    max-height: 78px !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    line-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.site-header .brand-logo .custom-logo {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: 176px !important;
    height: auto !important;
    max-height: 78px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .32));
}

.site-header .brand-logo-text {
    display: flex !important;
    width: 176px !important;
    height: 78px !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--tks-v333-gold-light) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-header .desktop-product-search {
    grid-area: search !important;
    width: 100% !important;
    max-width: 720px !important;
    justify-self: center !important;
}

.site-header .header-actions {
    grid-area: actions !important;
    min-width: 0 !important;
    gap: 18px !important;
}

.site-header .header-actions .header-action,
.site-header .header-actions .header-action span {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-header .header-main > .main-navigation {
    grid-area: nav !important;
    width: 100% !important;
    align-self: stretch !important;
}

.site-header .primary-menu > li > a,
.site-header .main-navigation .menu > li > a {
    min-height: 50px !important;
    padding-inline: clamp(15px, 1.45vw, 24px) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* --------------------------------------------------
   2. GLOBAL READABILITY: BUTTON WORDING MUST NEVER DISAPPEAR
-------------------------------------------------- */
.site-main .hero-btn,
.site-main .home-brands-all,
.site-main .home-spotlight-link,
.site-main .product-cart-link,
.site-main .khatoon-about-button,
.site-main .wholesale-primary-button,
.site-main .contact-submit,
.site-main .khatoon-load-more,
.site-main a.button,
.site-main button.button,
.site-main input.button,
.site-main .wp-element-button,
.site-main input[type="submit"],
.site-main button[type="submit"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-main .hero-btn,
.site-main .home-brands-all,
.site-main .product-cart-link,
.site-main .khatoon-about-button,
.site-main .wholesale-primary-button,
.site-main .contact-submit,
.site-main .khatoon-load-more {
    display: inline-flex !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 24px !important;
    border: 1px solid var(--tks-v333-gold) !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #171014, #050505) !important;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .16) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: .035em !important;
}

.site-main .hero-btn:hover,
.site-main .home-brands-all:hover,
.site-main .product-cart-link:hover,
.site-main .khatoon-about-button:hover,
.site-main .wholesale-primary-button:hover,
.site-main .contact-submit:hover,
.site-main .khatoon-load-more:hover,
.site-main .hero-btn:focus-visible,
.site-main .home-brands-all:focus-visible,
.site-main .product-cart-link:focus-visible,
.site-main .khatoon-about-button:focus-visible,
.site-main .wholesale-primary-button:focus-visible,
.site-main .contact-submit:focus-visible,
.site-main .khatoon-load-more:focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--tks-v333-gold-light) !important;
    background: linear-gradient(135deg, var(--tks-v333-pink), var(--tks-v333-pink-dark)) !important;
}

.site-main .home-spotlight-link {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: rgba(5, 5, 5, .88) !important;
    border: 1px solid var(--tks-v333-gold) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

.site-main .home-promo-card,
.site-main .home-promo-card span,
.site-main .home-promo-card strong,
.site-main .home-promo-card h2,
.site-main .home-promo-card h3,
.site-main .home-promo-card p {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Slightly larger default copy for easier reading without making the layout bulky. */
.site-main p,
.site-main li,
.site-main label,
.site-main input,
.site-main select,
.site-main textarea {
    font-size: max(15px, 1em);
}

/* --------------------------------------------------
   3. FOOTER: HIGH-CONTRAST SOCIAL BUTTONS AND CLEAR COPY
-------------------------------------------------- */
.site-footer .footer-logo {
    display: inline-flex !important;
    width: 170px !important;
    max-width: 170px !important;
    min-height: 70px !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    overflow: visible !important;
}

.site-footer .footer-logo img {
    display: block !important;
    width: auto !important;
    max-width: 170px !important;
    height: auto !important;
    max-height: 82px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer address,
.site-footer a {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.site-footer .footer-brand-description,
.site-footer .footer-contact-list a,
.site-footer .footer-contact-list address {
    color: #f3ecef !important;
    opacity: 1 !important;
}

.site-footer .footer-socials {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.site-footer .footer-socials .footer-social-link {
    display: inline-flex !important;
    min-width: 108px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 14px !important;
    border: 1px solid var(--tks-v333-gold) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #1b1217, #050505) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-footer .footer-socials .footer-social-link span,
.site-footer .footer-socials .footer-social-name,
.site-footer .footer-socials .footer-social-icon,
.site-footer .footer-socials .footer-social-icon svg {
    color: #fff !important;
    fill: currentColor;
    opacity: 1 !important;
    visibility: visible !important;
}

.site-footer .footer-socials .footer-social-link:hover,
.site-footer .footer-socials .footer-social-link:focus-visible {
    border-color: var(--tks-v333-gold-light) !important;
    background: linear-gradient(135deg, var(--tks-v333-pink), var(--tks-v333-pink-dark)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-2px);
}

.site-footer .footer-column h3 {
    color: var(--tks-v333-gold-light) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

.site-footer .footer-column a,
.site-footer .footer-menu a {
    color: #f4edf0 !important;
    font-size: 14.5px !important;
    font-weight: 650 !important;
    opacity: 1 !important;
}

/* --------------------------------------------------
   4. ABOUT US: COMPACT, PREMIUM AND EASY TO READ
-------------------------------------------------- */
body.page .khatoon-about-main {
    overflow: visible !important;
    background:
        radial-gradient(circle at 4% 5%, rgba(223, 53, 111, .055), transparent 25%),
        radial-gradient(circle at 96% 8%, rgba(215, 173, 50, .07), transparent 26%),
        linear-gradient(180deg, #fffaf7 0, #fff 470px) !important;
}

body.page .khatoon-about-main > .khatoon-about-article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 0 0 !important;
}

.khatoon-about-intro,
.khatoon-founder-story,
.khatoon-about-values {
    width: min(calc(100% - 40px), 1320px) !important;
}

.khatoon-about-intro {
    position: relative;
    margin: 0 auto 30px !important;
    padding: clamp(38px, 5vw, 64px) clamp(24px, 6vw, 82px) !important;
    overflow: hidden;
    border: 1px solid rgba(215, 173, 50, .56);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 10%, rgba(223, 53, 111, .22), transparent 31%),
        radial-gradient(circle at 90% 85%, rgba(215, 173, 50, .18), transparent 29%),
        linear-gradient(135deg, #050505, #1a1015 56%, #070707) !important;
    box-shadow: var(--tks-v333-shadow);
    text-align: left !important;
}

.khatoon-about-intro::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--tks-v333-pink), var(--tks-v333-gold), var(--tks-v333-pink));
    content: "";
}

.khatoon-about-intro::after {
    position: absolute;
    right: -65px;
    bottom: -105px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(241, 214, 129, .28);
    border-radius: 50%;
    content: "";
}

.khatoon-about-kicker,
.khatoon-about-intro .khatoon-about-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 12px !important;
    color: var(--tks-v333-gold-light) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 2.2px !important;
}

.khatoon-about-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 1040px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(42px, 5vw, 68px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
}

.khatoon-about-intro > p:last-child {
    position: relative;
    z-index: 1;
    max-width: 840px !important;
    margin: 20px 0 0 !important;
    color: #f4eaee !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
}

.khatoon-founder-story {
    grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr) !important;
    gap: clamp(28px, 4vw, 54px) !important;
    align-items: center !important;
    margin: 0 auto 36px !important;
    padding: clamp(18px, 2.3vw, 30px) !important;
    border: 1px solid rgba(215, 173, 50, .38) !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #fff, #fff7fa 58%, #fffaf0) !important;
    box-shadow: 0 20px 54px rgba(44, 25, 33, .08) !important;
}

.khatoon-founder-banner {
    border-color: rgba(215, 173, 50, .68) !important;
    border-radius: 18px !important;
    box-shadow: 0 15px 34px rgba(32, 18, 24, .12);
}

.khatoon-founder-banner img {
    width: 100% !important;
    max-height: 650px !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center top !important;
}

.khatoon-founder-story__copy {
    padding: 12px clamp(6px, 2vw, 28px) 12px 0 !important;
}

.khatoon-founder-story__copy .khatoon-about-kicker {
    color: var(--tks-v333-pink-dark) !important;
}

.khatoon-founder-story__copy h2 {
    color: var(--tks-v333-ink) !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    line-height: 1.08 !important;
}

.khatoon-founder-story__copy > p:not(.khatoon-about-kicker) {
    margin-top: 16px !important;
    color: #4f4348 !important;
    font-size: 16.5px !important;
    line-height: 1.75 !important;
}

.khatoon-founder-story__copy blockquote {
    margin-top: 22px !important;
    padding: 15px 18px !important;
    border: 1px solid rgba(215, 173, 50, .42) !important;
    border-left: 4px solid var(--tks-v333-pink) !important;
    border-radius: 0 12px 12px 0;
    background: #fff8fa;
    color: #30262a !important;
    font-size: 19px !important;
    line-height: 1.55 !important;
}

.khatoon-about-actions {
    gap: 14px !important;
    margin-top: 24px !important;
}

.khatoon-about-button {
    min-width: 180px !important;
}

.khatoon-about-button:not(.khatoon-about-button--primary) {
    border-color: var(--tks-v333-pink) !important;
    background: #fff !important;
    color: var(--tks-v333-pink-dark) !important;
    -webkit-text-fill-color: var(--tks-v333-pink-dark) !important;
    box-shadow: none !important;
}

.khatoon-about-button:not(.khatoon-about-button--primary):hover,
.khatoon-about-button:not(.khatoon-about-button--primary):focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--tks-v333-pink-dark) !important;
}

.khatoon-about-values {
    gap: 20px !important;
    margin: 0 auto 64px !important;
}

.khatoon-about-values article {
    min-height: 205px;
    padding: 28px !important;
    border: 1px solid rgba(215, 173, 50, .34) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #fff, #fff7fa) !important;
    box-shadow: 0 12px 32px rgba(42, 24, 32, .065) !important;
}

.khatoon-about-values span {
    width: 42px !important;
    height: 42px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--tks-v333-pink), var(--tks-v333-pink-dark)) !important;
    font-size: 12px !important;
}

.khatoon-about-values h3 {
    color: var(--tks-v333-ink) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 23px !important;
    font-weight: 500 !important;
}

.khatoon-about-values p {
    margin-top: 11px !important;
    color: var(--tks-v333-muted) !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
}

/* Keep ordinary page titles visible without creating oversized empty panels. */
body.page:not(.home):not(.woocommerce-page):not(.page-template-default) .entry-title,
body.page:not(.home):not(.woocommerce-page) .entry-title,
body.archive .page-title,
body.search .page-title,
.woocommerce-products-header__title.page-title {
    opacity: 1 !important;
    visibility: visible !important;
}

/* --------------------------------------------------
   5. RESPONSIVE SAFETY
-------------------------------------------------- */
@media (max-width: 1180px) and (min-width: 1051px) {
    .site-header .header-main {
        grid-template-columns: 168px minmax(300px, 1fr) 220px !important;
        column-gap: 20px !important;
    }

    .site-header .brand-logo {
        width: 168px !important;
    }

    .site-header .brand-logo .custom-logo-link,
    .site-header .brand-logo .custom-logo {
        max-width: 160px !important;
    }

    .site-header .header-actions {
        gap: 10px !important;
    }
}

@media (max-width: 1050px) {
    .site-header .header-main {
        width: 100% !important;
        min-height: 76px !important;
        grid-template-columns: 46px minmax(116px, 1fr) auto !important;
        grid-template-rows: 76px !important;
        grid-template-areas: "toggle logo actions" !important;
        gap: 8px !important;
        padding: 0 14px !important;
    }

    .site-header .mobile-menu-toggle {
        grid-area: toggle !important;
    }

    .site-header .brand-logo {
        grid-area: logo !important;
        width: 142px !important;
        height: 68px !important;
        align-items: center !important;
        justify-self: center !important;
    }

    .site-header .brand-logo .custom-logo-link {
        width: 138px !important;
        max-width: 138px !important;
        height: 64px !important;
        max-height: 64px !important;
    }

    .site-header .brand-logo .custom-logo {
        max-width: 138px !important;
        max-height: 62px !important;
    }

    .site-header .desktop-product-search {
        display: none !important;
    }

    .site-header .header-actions {
        grid-area: actions !important;
        gap: 5px !important;
    }

    .site-header .header-action.search-panel-toggle {
        display: inline-flex !important;
    }

    .site-header .header-actions .header-action {
        width: 38px !important;
        min-width: 38px !important;
        height: 42px !important;
    }

    .site-header .header-actions .header-action > span:not(.cart-icon-wrap) {
        display: none !important;
    }

    .site-header .header-main > .main-navigation {
        grid-area: unset !important;
    }

    .khatoon-founder-story {
        grid-template-columns: 1fr !important;
    }

    .khatoon-founder-banner {
        width: min(100%, 680px);
        margin-inline: auto !important;
    }

    .khatoon-founder-story__copy {
        padding: 4px 10px 14px !important;
    }
}

@media (max-width: 700px) {
    .site-header .brand-logo {
        width: 116px !important;
    }

    .site-header .brand-logo .custom-logo-link {
        width: 112px !important;
        max-width: 112px !important;
        height: 58px !important;
        max-height: 58px !important;
    }

    .site-header .brand-logo .custom-logo {
        max-width: 112px !important;
        max-height: 56px !important;
    }

    .site-header .header-actions .header-action[aria-label*="account" i],
    .site-header .header-actions .header-action[aria-label*="wishlist" i] {
        display: none !important;
    }

    body.page .khatoon-about-main > .khatoon-about-article {
        padding-top: 16px !important;
    }

    .khatoon-about-intro,
    .khatoon-founder-story,
    .khatoon-about-values {
        width: calc(100% - 24px) !important;
    }

    .khatoon-about-intro {
        margin-bottom: 18px !important;
        padding: 34px 22px !important;
        border-radius: 18px !important;
    }

    .khatoon-about-intro h1 {
        font-size: clamp(36px, 11vw, 50px) !important;
        line-height: 1.06 !important;
    }

    .khatoon-about-intro > p:last-child {
        font-size: 16px !important;
        line-height: 1.68 !important;
    }

    .khatoon-founder-story {
        gap: 22px !important;
        margin-bottom: 24px !important;
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .khatoon-founder-banner {
        border-radius: 14px !important;
    }

    .khatoon-founder-story__copy {
        padding: 4px 8px 12px !important;
    }

    .khatoon-founder-story__copy h2 {
        font-size: 38px !important;
    }

    .khatoon-founder-story__copy > p:not(.khatoon-about-kicker) {
        font-size: 16px !important;
    }

    .khatoon-about-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .khatoon-about-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .khatoon-about-values {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 48px !important;
    }

    .khatoon-about-values article {
        min-height: 0 !important;
        padding: 24px !important;
    }

    .site-footer .footer-socials .footer-social-link {
        min-width: 0 !important;
        width: auto !important;
        min-height: 42px !important;
        padding-inline: 13px !important;
    }

    .site-footer .footer-socials .footer-social-name {
        position: static !important;
        display: inline !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
    }
}

@media (max-width: 420px) {
    .site-header .header-main {
        grid-template-columns: 42px minmax(90px, 1fr) auto !important;
        padding-inline: 10px !important;
    }

    .site-header .brand-logo,
    .site-header .brand-logo .custom-logo-link {
        width: 98px !important;
        max-width: 98px !important;
    }

    .site-header .brand-logo .custom-logo {
        max-width: 98px !important;
        max-height: 52px !important;
    }

    .site-footer .footer-socials {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .site-footer .footer-socials .footer-social-link {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-socials .footer-social-link {
        transform: none !important;
    }
}
