﻿/*
Theme Name: Khanspa Child
Theme URI: https://khanspa.vn
Description: Child theme for GeneratePress — lightweight B2B towel store.
Author: Khanspa
Template: generatepress
Version: 1.0.0
Text Domain: khanspa-child
*/

/* Customize site styles below */

/* ============= KHANSPA BRAND DESIGN SYSTEM =============
   Palette extracted from images/logo_khanspa.png (natural spa tones). */
:root {
    /* Master palette — khanspa_homepage_demo_v4_footer_logo.html */
    --g: #344b2f;      /* olive green — primary */
    --g2: #223b27;     /* deep olive */
    --gold: #a77a46;   /* gold accent */
    --cream: #f8f3eb;  /* cream */
    --line: #e7e0d5;   /* hairline border */
    --muted: #77746d;  /* muted text */
    --text: #252b25;   /* body text */

    /* Brand aliases (kept for backward compatibility) */
    --khanspa-green: #344b2f;      /* olive green — primary */
    --khanspa-green-dark: #223b27; /* deep olive — headings/text */
    --khanspa-sage: #758466;       /* sage green */
    --khanspa-gold: #a77a46;       /* gold — accent */
    --khanspa-gold-dark: #8a5d35;  /* gold hover */
    --khanspa-tan: #8a5d35;        /* warm tan — brand */
    --khanspa-brown: #77746d;      /* warm brown — secondary text */
    --khanspa-cream: #f8f3eb;      /* cream — page background */
    --khanspa-cream-2: #faf7f1;    /* cream 2 — inputs */

    /* Override GeneratePress global colors to match the master */
    --contrast: #252b25 !important;
    --contrast-2: #77746d !important;
    --contrast-3: #8a5d35 !important;
    --base: #ffffff !important;
    --base-2: #faf7f1 !important;
    --base-3: #ffffff !important;
    --accent: #344b2f !important;
}

body {
    background-color: #ffffff;
    color: var(--text);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

a {
    color: var(--g);
}
a:hover,
a:focus,
a:active {
    color: var(--gold);
}

/* Brand logo (header) */
.header-image.is-logo-image {
    max-height: 80px;
    width: auto;
}

/* Buttons & CTAs */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
    background-color: var(--khanspa-green);
    color: #ffffff;
}
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
a.wp-block-button__link:not(.has-background):hover {
    background-color: var(--khanspa-green-dark);
    color: #ffffff;
}

/* Top bar & footer */
.top-bar {
    background-color: var(--khanspa-green);
    color: #ffffff;
}
.top-bar a {
    color: #ffffff;
}
.site-info {
    background-color: var(--khanspa-green-dark);
    color: #ffffff;
}
.site-info a {
    color: var(--khanspa-gold);
}

.khanspa-quote-hp {
    display: none !important;
}

.khanspa-quote-form input,
.khanspa-quote-form textarea {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

/* ============= KHANSPA CONTACT INFO SHORTCODE [khanspa_contact_info] ============= */
:root {
    --kci-primary: #2f3d24;
    --kci-accent: #c9a96e;
    --kci-bg-light: #f9f7f3;
    --kci-text: #333333;
    --kci-text-light: #666666;
    --kci-white: #ffffff;
    --kci-border: #e8e3d9;
}

.khanspa-contact-info {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--kci-text);
}

/* Introduction */
.kci-intro {
    text-align: center;
    margin-bottom: 50px;
}

.kci-intro h2 {
    font-size: 2em;
    color: var(--kci-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.kci-intro h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--kci-accent);
    margin: 15px auto 0;
}

.kci-intro p {
    font-size: 1.1em;
    color: var(--kci-text-light);
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* Contact Cards Grid */
.kci-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.kci-card {
    background: var(--kci-white);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--kci-border);
}

.kci-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.kci-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kci-primary) 0%, #2b5e4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
}

.kci-card h3 {
    font-size: 1.2em;
    color: var(--kci-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kci-value {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--kci-text);
    margin-bottom: 8px;
    word-break: break-all;
}

.kci-value a {
    color: var(--kci-text);
    text-decoration: none;
    transition: color 0.3s;
}

.kci-value a:hover {
    color: var(--kci-accent);
}

.kci-note {
    font-size: 0.85em;
    color: var(--kci-text-light);
    font-style: italic;
}

/* Profile Section */
.kci-profile {
    background: var(--kci-white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--kci-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 50px;
}

.kci-profile h2 {
    font-size: 1.6em;
    color: var(--kci-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--kci-border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kci-profile-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px 30px;
    align-items: center;
}

.kci-label {
    font-weight: 600;
    color: var(--kci-primary);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kci-val {
    color: var(--kci-text);
    font-size: 1.05em;
}

.kci-val a {
    color: var(--kci-accent);
    text-decoration: none;
    font-weight: 500;
}

.kci-val a:hover {
    text-decoration: underline;
}

/* Note Box */
.kci-note-box {
    background: #fffbf0;
    border-left: 4px solid var(--kci-accent);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
}

.kci-note-box h4 {
    color: var(--kci-primary);
    margin-bottom: 8px;
    font-size: 1em;
}

.kci-note-box p {
    color: var(--kci-text-light);
    font-size: 0.95em;
    line-height: 1.7;
}

/* Working Hours Grid */
.kci-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    background: var(--kci-bg-light);
    border-radius: 8px;
    padding: 25px;
}

.kci-hours-item {
    text-align: center;
    padding: 15px;
}

.kci-day {
    font-weight: 600;
    color: var(--kci-primary);
    font-size: 0.95em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.kci-time {
    color: var(--kci-text-light);
    font-size: 0.9em;
}

/* CTA Section */
.kci-cta {
    background: linear-gradient(135deg, var(--kci-primary) 0%, #2b5e4f 100%);
    border-radius: 12px;
    padding: 45px 35px;
    text-align: center;
    color: var(--kci-white);
}

.kci-cta h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kci-cta p {
    font-size: 1.05em;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.8;
}

.kci-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.kci-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
}

.kci-btn-accent {
    background: var(--kci-accent);
    color: var(--kci-white);
}

.kci-btn-accent:hover {
    background: #b8953a;
    transform: translateY(-2px);
    color: var(--kci-white);
    text-decoration: none;
}

.kci-btn-outline {
    background: transparent;
    color: var(--kci-white);
    border: 2px solid rgba(255,255,255,0.5);
}

.kci-btn-outline:hover {
    border-color: var(--kci-white);
    background: rgba(255,255,255,0.1);
    color: var(--kci-white);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .kci-profile-grid {
        grid-template-columns: 1fr;
        gap: 5px 0;
    }

    .kci-label {
        margin-top: 12px;
    }

    .kci-cards {
        grid-template-columns: 1fr;
    }

    .kci-profile {
        padding: 25px 20px;
    }

    .kci-cta {
        padding: 30px 20px;
    }

    .kci-intro h2 {
        font-size: 1.5em;
    }
}

/* ============= KHANSPA MASTER DESIGN (khanspa_homepage_demo_v4_footer_logo.html) =============
   Site-wide layout & style: topbar + header/nav, homepage sections and footer.
   Fonts/dimensions scaled ~1.3x from the 925px master for a 1200px container. */

.khanspa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- Top bar ---- */
.khanspa-topbar {
    background: #faf7f1;
    border-bottom: 1px solid #eee6da;
    color: #47463f;
    font-size: 13px;
}
.khanspa-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.khanspa-topbar__group { display: flex; gap: 44px; align-items: center; }
.khanspa-topbar__item { display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.khanspa-topbar a { color: inherit; }
.khanspa-ico { font-size: 18px; color: #6e5537; }
.khanspa-social { display: flex; gap: 19px; font-weight: 700; font-size: 14px; }
.khanspa-social a:hover { color: var(--gold); }

/* ---- Header / nav ---- */
.khanspa-header { background: #fff; border-bottom: 1px solid #eee8df; }
.khanspa-nav { display: flex; align-items: center; height: 99px; gap: 32px; }
.khanspa-logo { display: flex; align-items: center; margin-right: auto; }
.khanspa-logo img { width: auto; height: 64px; object-fit: contain; }
.khanspa-menu {
    display: flex;
    align-items: center;
    gap: 31px;
    font-size: 13px;
    color: #343933;
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.khanspa-menu li { list-style: none; margin: 0; padding: 0; }
.khanspa-menu a { color: inherit; text-decoration: none; }
.khanspa-menu a:hover { color: var(--gold); }
.khanspa-nav-icons { display: flex; gap: 18px; align-items: center; margin-left: 6px; }
.khanspa-nav-icon { position: relative; display: inline-flex; color: #343933; }
.khanspa-nav-icon:hover { color: var(--gold); }
.khanspa-cart-count {
    position: absolute;
    right: -8px;
    top: -8px;
    background: #52703d;
    color: #fff;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 10px;
    display: grid;
    place-items: center;
}

/* Mobile menu toggle (hamburger) */
.khanspa-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px;
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;
}
.khanspa-menu-toggle span { display: block; height: 2px; background: #343933; }

/* ---- Hero ---- */
.khanspa-hero { height: 475px; position: relative; overflow: hidden; background: #f5ede1; }
.khanspa-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f9f5ee 0%, rgba(249,245,238,.98) 35%, rgba(249,245,238,.58) 57%, rgba(249,245,238,0) 76%);
    z-index: 1;
    pointer-events: none;
}
.khanspa-hero__bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 67%;
    height: 100%;
    background-size: cover;
    background-position: center right;
}
.khanspa-hero__copy { position: relative; z-index: 2; width: 53%; padding: 70px 0 0 65px; }
.khanspa-eyebrow {
    font-size: 15px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--g);
    margin-bottom: 17px;
}
.khanspa-hero h1 {
    font: 500 56px/1.08 "Playfair Display", Georgia, serif;
    margin: 0 0 22px;
    color: var(--g);
    letter-spacing: -.02em;
}
.khanspa-brown { color: #8a5d35; }
.khanspa-desc { font-size: 14px; line-height: 1.85; color: #4e504b; max-width: 533px; margin: 0 0 25px; }
.khanspa-cta { display: flex; gap: 13px; }
.khanspa-btn {
    height: 49px;
    padding: 0 26px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
}
.khanspa-btn--primary { background: var(--g); color: #fff; }
.khanspa-btn--primary:hover,
.khanspa-btn--primary:focus { background: var(--g2); color: #fff; text-decoration: none; }
.khanspa-btn--secondary { border: 1px solid #a7a094; background: rgba(255,255,255,.72); color: var(--text); }
.khanspa-btn--secondary:hover,
.khanspa-btn--secondary:focus { background: #fff; color: var(--text); text-decoration: none; }
.khanspa-quick { display: flex; gap: 13px; margin-top: 22px; font-size: 12px; color: #725d48; }
.khanspa-quick a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.khanspa-quick a:hover { color: var(--gold); }
.khanspa-dots { position: absolute; z-index: 3; bottom: 12px; left: 49%; display: flex; gap: 6px; }
.khanspa-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 1px solid #a9a59c; }
.khanspa-dot--active { background: #57713e; border-color: #57713e; }

/* ---- USP strip ---- */
.khanspa-usp-strip {
    margin: 21px 40px 31px;
    background: #fbf7f0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 14px 16px;
}
.khanspa-usp { display: flex; align-items: center; gap: 12px; padding: 9px 13px; border-right: 1px solid #e5ddd1; }
.khanspa-usp:last-child { border: 0; }
.khanspa-usp__icon {
    width: 42px;
    height: 42px;
    border: 1px solid #d7cdbd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #4e6a3e;
    font-size: 20px;
    flex: none;
}
.khanspa-usp b { font-size: 12px; display: block; margin-bottom: 4px; }
.khanspa-usp span { font-size: 10px; color: #77746d; }

/* ---- Section title ---- */
.khanspa-section-title { text-align: center; margin: 0 0 28px; }
.khanspa-section-title__small { font-size: 13px; letter-spacing: .12em; font-weight: 700; color: var(--text); }
.khanspa-section-title__small:after {
    content: "";
    display: block;
    width: 39px;
    height: 3px;
    background: #758466;
    margin: 10px auto 0;
}

/* ---- Categories ---- */
.khanspa-categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; padding: 0 40px; }
.khanspa-card { border: 1px solid #e5e0d8; border-radius: 8px; overflow: hidden; background: #fff; }
.khanspa-card img { width: 100%; height: 146px; object-fit: cover; display: block; }
.khanspa-card__body { padding: 13px 14px 16px; }
.khanspa-card h3 { font-size: 14px; margin: 0 0 9px; color: var(--text); }
.khanspa-card p { font-size: 11px; line-height: 1.55; color: #6e6d67; margin: 0; min-height: 51px; }
.khanspa-more { display: block; font-size: 10.5px; color: #435c35; font-weight: 700; margin-top: 12px; text-decoration: none; }
.khanspa-more:hover { color: var(--gold); }

/* ---- Products ---- */
.khanspa-products { margin-top: 30px; }
.khanspa-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 40px; }
.khanspa-product { border: 1px solid #e5e0d8; border-radius: 9px; overflow: hidden; background: #fff; position: relative; }
.khanspa-product img { width: 100%; height: 163px; object-fit: cover; display: block; }
.khanspa-badge {
    position: absolute;
    left: 9px;
    top: 9px;
    background: #4f6b3e;
    color: #fff;
    border-radius: 14px;
    padding: 5px 9px;
    font-size: 10px;
}
.khanspa-product__body { padding: 13px 14px 14px; }
.khanspa-product__name { font-size: 12px; line-height: 1.4; margin-bottom: 12px; color: var(--text); }
.khanspa-price { font-size: 15px; font-weight: 700; color: var(--text); }
.khanspa-product__bottom { display: flex; justify-content: space-between; align-items: center; }
.khanspa-buy {
    width: 38px;
    height: 38px;
    border: 1px solid #dcd6ca;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #4c663c;
    font-size: 18px;
    cursor: pointer;
}

/* ---- B2B ---- */
.khanspa-b2b {
    margin: 28px 40px 23px;
    height: 283px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f5eee3;
}
.khanspa-b2b__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
}
.khanspa-b2b__bg:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f9f4eb 0%, rgba(249,244,235,.94) 36%, rgba(249,244,235,.25) 64%, rgba(249,244,235,0) 100%);
}
.khanspa-b2b__copy { position: relative; z-index: 2; width: 49%; padding: 38px 0 0 23px; }
.khanspa-b2b__copy .khanspa-eyebrow { font-size: 12px; letter-spacing: .08em; margin-bottom: 10px; }
.khanspa-b2b__copy h2 { font: 500 32px/1.12 "Playfair Display", Georgia, serif; margin: 0 0 13px; color: #343b31; }
.khanspa-b2b__copy p { font-size: 11px; line-height: 1.65; color: #5f5c54; margin: 0 0 16px; }
.khanspa-b2b__checks { display: flex; gap: 17px; font-size: 10px; color: #53604c; margin-top: 16px; }

/* ---- Service strip ---- */
.khanspa-service-strip {
    margin: 0 40px 28px;
    background: #fbf7f0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px;
}
.khanspa-service { display: flex; align-items: center; gap: 12px; padding: 7px 13px; border-right: 1px solid #e5ddd1; }
.khanspa-service:last-child { border: 0; }
.khanspa-service__ico {
    width: 44px;
    height: 44px;
    border: 1px solid #d7cdbd;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #4e6a3e;
    font-size: 18px;
    flex: none;
}
.khanspa-service b { display: block; font-size: 12px; margin-bottom: 4px; }
.khanspa-service span { font-size: 10px; color: #77746d; }

/* ---- Footer ---- */
.khanspa-footer {
    background: linear-gradient(135deg, #31482f, #203522);
    color: #e8eee5;
}
.khanspa-footer__main {
    padding: 36px 0 30px;
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
    gap: 36px;
}
.khanspa-footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; min-height: 62px; }
.khanspa-footer__brand img { width: 48px; height: 48px; object-fit: contain; display: block; }
.khanspa-footer__brand-text { display: flex; flex-direction: column; gap: 4px; }
.khanspa-footer__brand-text strong { font-size: 22px; line-height: 1; color: #f5f2e9; font-weight: 700; letter-spacing: -.02em; }
.khanspa-footer__brand-text span { font-size: 9px; line-height: 1.1; letter-spacing: .16em; color: #c9c6b8; font-weight: 600; }
.khanspa-footer p { font-size: 10.5px; line-height: 1.65; color: #c6d0c2; margin: 0 0 13px; }
.khanspa-footer h4 { font-size: 10.5px; letter-spacing: .08em; margin: 5px 0 12px; color: #fff; }
.khanspa-footer ul { list-style: none; padding: 0; margin: 0; }
.khanspa-footer li { font-size: 10.5px; line-height: 1.9; color: #c7d0c4; }
.khanspa-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 13px 0;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #b8c2b4;
}
.khanspa-social-footer { display: flex; gap: 13px; font-size: 13px; }
.khanspa-social-footer a { color: inherit; }
.khanspa-social-footer a:hover { color: var(--gold); }

/* ---- Flatten GeneratePress layout on the custom homepage ---- */
.home #page.site.grid-container { max-width: 1200px; padding-left: 0; padding-right: 0; }
.home .site-content { gap: 0; }
.home .content-area#primary { width: 100%; padding: 0; }
.home #main.site-main { padding: 0; margin: 0; }
.home #right-sidebar { display: none; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
    .khanspa-container { padding: 0 24px; }
    .khanspa-topbar { font-size: 11px; }
    .khanspa-topbar__inner { height: 48px; }
    .khanspa-topbar__group { gap: 16px; }
    .khanspa-social { display: none; }
    .khanspa-nav { height: 80px; position: relative; }
    .khanspa-logo img { width: auto; height: 52px; }
    .khanspa-menu-toggle { display: flex; }
    .khanspa-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid #eee8df;
        padding: 8px 24px 16px;
        box-shadow: 0 12px 24px rgba(0,0,0,.06);
        z-index: 50;
    }
    .khanspa-nav.is-open .khanspa-menu { display: flex; }
    .khanspa-menu a { padding: 10px 0; border-bottom: 1px solid #f0ece4; }
    .khanspa-nav-icons { gap: 14px; }
    .khanspa-hero__copy { width: 63%; padding-left: 28px; }
    .khanspa-hero h1 { font-size: 44px; }
    .khanspa-usp-strip,
    .khanspa-service-strip { grid-template-columns: repeat(2, 1fr); }
    .khanspa-usp:nth-child(2),
    .khanspa-service:nth-child(2) { border-right: 0; }
    .khanspa-categories { grid-template-columns: repeat(3, 1fr); padding: 0 24px; }
    .khanspa-product-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
    .khanspa-b2b,
    .khanspa-usp-strip,
    .khanspa-service-strip { margin-left: 24px; margin-right: 24px; }
    .khanspa-b2b__copy { width: 57%; padding-left: 20px; }
    .khanspa-footer__main { grid-template-columns: repeat(2, 1fr); padding: 31px 0 24px; }
}

@media (max-width: 520px) {
    .khanspa-container { padding: 0 20px; }
    .khanspa-topbar__group:first-child .khanspa-topbar__item:nth-child(2) { display: none; }
    .khanspa-nav { height: 64px; }
    .khanspa-logo img { width: auto; height: 44px; }
    .khanspa-hero { height: 520px; }
    .khanspa-hero__bg { width: 100%; height: 100%; opacity: .82; }
    .khanspa-hero:after { background: linear-gradient(180deg, rgba(249,245,238,.96) 0%, rgba(249,245,238,.72) 50%, rgba(249,245,238,.12) 100%); }
    .khanspa-hero__copy { width: 100%; padding: 56px 22px; }
    .khanspa-hero h1 { font-size: 36px; }
    .khanspa-desc { max-width: 330px; }
    .khanspa-cta { flex-direction: column; width: 190px; }
    .khanspa-quick { flex-wrap: wrap; max-width: 330px; }
    .khanspa-usp-strip { margin: 16px 16px 26px; padding: 12px 8px; }
    .khanspa-usp { padding: 9px 7px; }
    .khanspa-usp b { font-size: 10px; }
    .khanspa-usp span { font-size: 9px; }
    .khanspa-categories { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .khanspa-product-grid { padding: 0 16px; }
    .khanspa-b2b { height: 330px; margin: 26px 16px; }
    .khanspa-b2b__copy { width: 78%; padding: 36px 0 0 18px; }
    .khanspa-b2b__copy h2 { font-size: 24px; }
    .khanspa-service-strip { margin: 0 16px 26px; }
    .khanspa-service { padding: 9px 7px; }
    .khanspa-footer__main { grid-template-columns: 1fr 1fr; gap: 23px; padding: 31px 0 24px; }
    .khanspa-footer__main > div:first-child { grid-column: 1 / -1; }
    .khanspa-footer__bottom { padding: 13px 0; display: block; text-align: center; }
    .khanspa-footer__bottom span { display: block; margin-top: 6px; }
}

/* ============= PRODUCT DETAIL (khanspa_product_detail_demo_v1.html) ============= */

/* Flatten GeneratePress layout on product pages (same as homepage). */
.single-product #page.site.grid-container { max-width: 1200px; padding-left: 0; padding-right: 0; }
.single-product .site-content { gap: 0; }
.single-product .content-area#primary { width: 100%; padding: 0; }
.single-product #main.site-main { padding: 0; margin: 0; }
.single-product #right-sidebar { display: none; }

.khanspa-pd { padding-bottom: 24px; }

.khanspa-pd .woocommerce-message,
.khanspa-pd .woocommerce-info,
.khanspa-pd .woocommerce-error {
    list-style: none;
    margin: 0 0 16px;
}

/* Breadcrumb */
.khanspa-pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    padding: 20px 0 18px;
}
.khanspa-pd-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.khanspa-pd-breadcrumb a:hover { color: var(--gold); }
.khanspa-pd-breadcrumb__sep { color: #b8b2a6; }
.khanspa-pd-breadcrumb__current { color: var(--text); }

/* Layout: gallery + info */
.khanspa-pd-layout {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 42px;
    padding-bottom: 20px;
}

.khanspa-pd-gallery { display: grid; grid-template-columns: 88px 1fr; gap: 14px; }
.khanspa-pd-thumbs { display: flex; flex-direction: column; gap: 10px; }
.khanspa-pd-thumb {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f7f3ed;
    padding: 0;
    cursor: pointer;
}
.khanspa-pd-thumb.is-active { border: 2px solid var(--g); }
.khanspa-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.khanspa-pd-main-image {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #f8f4ec;
    aspect-ratio: 1;
}
.khanspa-pd-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info column */
.khanspa-pd-info { padding: 5px 0; }
.khanspa-pd-badge {
    display: inline-flex;
    background: #4f6b3e;
    color: #fff;
    border-radius: 16px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}
.khanspa-pd-title {
    font: 500 34px/1.16 "Playfair Display", Georgia, serif;
    color: #30382d;
    margin: 0 0 10px;
}
.khanspa-pd-rating { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #6d6b64; margin-bottom: 16px; }
.khanspa-pd-stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.khanspa-pd-price { font-size: 24px; font-weight: 700; color: #8b6138; margin-bottom: 7px; }
.khanspa-pd-price .woocommerce-Price-amount { color: #8b6138; }
.khanspa-pd-price del { color: #a7a094; font-weight: 400; margin-right: 6px; }
.khanspa-pd-price ins { text-decoration: none; }
.khanspa-pd-price-note { font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.khanspa-pd-short { font-size: 13px; line-height: 1.8; color: #565850; margin: 0 0 17px; }
.khanspa-pd-divider { height: 1px; background: var(--line); margin: 18px 0; }
.khanspa-pd-specs { margin-bottom: 6px; }
.khanspa-pd-spec-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 12px; margin: 9px 0; }
.khanspa-pd-spec-row strong { color: #3b4437; font-weight: 600; }
.khanspa-pd-label { font-size: 12px; font-weight: 700; margin: 18px 0 9px; color: var(--text); }
.khanspa-pd-options { display: flex; gap: 8px; flex-wrap: wrap; }
.khanspa-pd-option {
    border: 1px solid #d7d0c5;
    border-radius: 5px;
    padding: 8px 14px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    color: var(--text);
}
.khanspa-pd-option.is-active { border: 1.5px solid var(--g); color: var(--g); background: #f6f8f2; font-weight: 700; }


/* Quantity + actions */
.khanspa-pd-qty-row { display: flex; gap: 12px; align-items: center; margin: 8px 0 18px; }
.khanspa-pd-qty { height: 43px; border: 1px solid #d8d2c8; border-radius: 5px; display: flex; align-items: center; overflow: hidden; }
.khanspa-pd-qty__btn {
    width: 36px;
    height: 100%;
    border: 0;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    padding: 0;
}
.khanspa-pd-qty__btn:hover { background: #f6f8f2; }
.khanspa-pd-qty__input {
    width: 40px;
    height: 100%;
    border: 0;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    padding: 0;
    -moz-appearance: textfield;
}
.khanspa-pd-qty__input::-webkit-outer-spin-button,
.khanspa-pd-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.khanspa-pd-stock { font-size: 11px; color: var(--muted); }
.khanspa-pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.khanspa-pd-btn {
    height: 45px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    width: 100%;
}
.khanspa-pd-btn--primary { background: var(--g); color: #fff; }
.khanspa-pd-btn--primary:hover { background: var(--g2); color: #fff; text-decoration: none; }
.khanspa-pd-btn--secondary { border: 1px solid var(--g); color: var(--g); background: #fff; }
.khanspa-pd-btn--secondary:hover { background: #f6f8f2; color: var(--g); text-decoration: none; }
.khanspa-pd-quote { grid-column: 1 / -1; }

/* B2B mini note */
.khanspa-pd-b2b {
    margin-top: 12px;
    background: #fbf7f0;
    border: 1px solid #eee5d9;
    border-radius: 7px;
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.65;
    color: #5e6059;
}
.khanspa-pd-b2b strong { color: var(--g); }

/* Trust strip */
.khanspa-pd-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fbf7f0;
    border-radius: 8px;
    margin: 0 0 36px;
    padding: 13px;
}
.khanspa-pd-trust__item { display: flex; gap: 9px; align-items: center; padding: 6px 13px; border-right: 1px solid #e5ddd1; }
.khanspa-pd-trust__item:last-child { border: 0; }
.khanspa-pd-trust__icon {
    width: 34px;
    height: 34px;
    border: 1px solid #d8cfbf;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #4e6a3e;
    flex: none;
    font-size: 15px;
}
.khanspa-pd-trust b { display: block; font-size: 12px; margin-bottom: 2px; }
.khanspa-pd-trust span { font-size: 10px; color: var(--muted); }

/* Tabs */
.khanspa-pd-tabs {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 38px;
    height: 55px;
    align-items: center;
    overflow-x: auto;
}
.khanspa-pd-tab {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: #696a64;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}
.khanspa-pd-tab.is-active { color: var(--g); }
.khanspa-pd-tab.is-active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 2px;
    background: var(--g);
}


/* Panels */
.khanspa-pd-panel { display: none; padding: 31px 0 38px; }
.khanspa-pd-panel.is-active { display: block; }
.khanspa-pd-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 55px; }
.khanspa-pd-panel h2 { font: 500 25px "Playfair Display", Georgia, serif; color: #30382d; margin: 0 0 13px; }
.khanspa-pd-panel h3 { font-size: 14px; margin: 18px 0 10px; color: var(--text); }
.khanspa-pd-description p,
.khanspa-pd-description li { font-size: 13px; line-height: 1.85; color: #62635d; }
.khanspa-pd-description ul { padding-left: 17px; }
.khanspa-pd-infobox { background: #fbf7f0; border-radius: 8px; padding: 19px; }
.khanspa-pd-infobox h3 { font-size: 13px; margin: 0 0 12px; }
.khanspa-pd-infobox__row { display: flex; justify-content: space-between; border-bottom: 1px solid #e8dfd2; padding: 9px 0; font-size: 11px; gap: 12px; }
.khanspa-pd-infobox__row:last-child { border: 0; }
.khanspa-pd-infobox__row span { color: var(--muted); }
.khanspa-pd-infobox__row strong { color: var(--text); text-align: right; }

/* Spec table */
.khanspa-pd-spec-table { width: 100%; border-collapse: collapse; }
.khanspa-pd-spec-table th,
.khanspa-pd-spec-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
    font-size: 13px;
    text-align: left;
    vertical-align: top;
}
.khanspa-pd-spec-table th { width: 220px; color: #3b4437; font-weight: 600; }

/* FAQ */
.khanspa-pd-faq { margin-top: 6px; }
.khanspa-pd-faq__item { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.khanspa-pd-faq__item summary { padding: 12px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.khanspa-pd-faq__item p { padding: 0 14px 12px; font-size: 12px; line-height: 1.7; color: #62635d; margin: 0; }

/* Reviews */
.khanspa-pd-reviews { list-style: none; padding: 0; margin: 0; }
.khanspa-pd-review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.khanspa-pd-review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.khanspa-pd-review__head strong { font-size: 13px; color: var(--text); }
.khanspa-pd-review p { font-size: 12px; line-height: 1.7; color: #62635d; margin: 0; }
.khanspa-pd-review-cta { margin-top: 14px; font-size: 12px; color: var(--muted); }
.khanspa-pd-review-cta a { color: var(--gold); font-weight: 600; }

/* Related products */
.khanspa-pd-related { padding: 8px 0 48px; }
.khanspa-pd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.khanspa-pd-related-card { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: block; background: #fff; }
.khanspa-pd-related-card:hover { border-color: var(--g); }
.khanspa-pd-related-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.khanspa-pd-related-body { padding: 11px; }
.khanspa-pd-related-body h3 { font-size: 12px; margin: 0 0 8px; color: var(--text); line-height: 1.4; }
.khanspa-pd-related-price { font-size: 14px; font-weight: 700; color: #8b6138; }
.khanspa-pd-related-price .woocommerce-Price-amount { color: #8b6138; }

/* Responsive */
@media (max-width: 900px) {
    .khanspa-pd-layout { grid-template-columns: 1fr; gap: 25px; }
    .khanspa-pd-trust { grid-template-columns: repeat(2, 1fr); }
    .khanspa-pd-trust__item:nth-child(2) { border-right: 0; }
    .khanspa-pd-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .khanspa-pd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .khanspa-pd-gallery { grid-template-columns: 58px 1fr; }
    .khanspa-pd-title { font-size: 28px; }
    .khanspa-pd-actions { grid-template-columns: 1fr; }
    .khanspa-pd-trust { grid-template-columns: 1fr; }
    .khanspa-pd-trust__item { border-right: 0; border-bottom: 1px solid #e5ddd1; }
    .khanspa-pd-trust__item:last-child { border-bottom: 0; }
    .khanspa-pd-tabs { gap: 18px; }
    .khanspa-pd-related-grid { grid-template-columns: 1fr 1fr; }
    .khanspa-pd-related-card img { height: 130px; }
    .khanspa-pd-spec-table th { width: 130px; }
}

