/* ==========================================================================
   SheenClassics — Modern Theme Override
   Loads AFTER style.css. Same variable/class names, new values only.
   Nothing here renames or removes any ID/class relied on by main.js,
   chatbot.js or admin-notifications.js.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #2B241E;
    --primary-soft: #3a3128;
    --gold: #C1502B;
    --gold-light: #D97D42;
    --gold-pale: rgba(193, 80, 43, 0.10);
    --gold-glow: rgba(193, 80, 43, 0.28);
    --cream: #FBF6ED;
    --surface: #ffffff;
    --surface-raised: #FBF6ED;
    --text-primary: #2B241E;
    --text-secondary: #6b6157;
    --text-muted: #9b9186;
    --border: #E8E1D3;
    --border-gold: rgba(193, 80, 43, 0.25);
    --shadow-xs: 0 1px 3px rgba(43, 36, 30, 0.06);
    --shadow-sm: 0 4px 16px rgba(43, 36, 30, 0.08);
    --shadow-md: 0 8px 32px rgba(43, 36, 30, 0.10);
    --shadow-lg: 0 20px 60px rgba(43, 36, 30, 0.14);
    --shadow-gold: 0 8px 32px rgba(193, 80, 43, 0.22);
    --radius-sm: 2px;
    --radius: 2px;
    --radius-lg: 4px;
    --radius-xl: 4px;
    --font-display: 'Fraunces', serif;
    --font-serif: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    /* aliases for a few legacy var names used on some pages */
    --primary-color: var(--primary);
    --primary-dark: var(--primary-soft);
    --secondary-color: var(--gold);
    --border-color: var(--border);
    --text-light: var(--text-secondary);
    --white: #ffffff;
    --shadow: var(--shadow-sm);
}

body {
    background: var(--cream);
}


/* ---------- Typography ---------- */

h1,
h2,
h3,
.section-title,
.hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.section-eyebrow,
.hero-eyebrow,
.product-category,
.blog-meta {
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--gold);
}

.section-divider {
    background: var(--gold);
    height: 2px;
    width: 48px;
    border-radius: 0;
}


/* ---------- Buttons ---------- */

.btn,
.hero-btn,
.btn-primary,
.btn-add-cart {
    border-radius: var(--radius-sm) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-add-cart,
.hero-btn,
.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: 1px solid var(--primary) !important;
}

.btn-add-cart:hover,
.hero-btn:hover,
.btn-primary:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-wishlist {
    border-radius: 50% !important;
    border: 1px solid var(--border) !important;
    color: var(--gold) !important;
    transition: all 0.2s ease;
}

.btn-wishlist:hover {
    background: var(--gold-pale) !important;
    border-color: var(--gold) !important;
}

.hero-btn-outline {
    border-radius: var(--radius-sm) !important;
}


/* ---------- Navbar ---------- */

.navbar {
    background: var(--primary) !important;
    box-shadow: none;
}

.navbar.scrolled {
    background: rgba(43, 36, 30, 0.96) !important;
    box-shadow: var(--shadow-md);
}

.nav-link {
    color: rgba(255, 255, 255, 0.72) !important;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.nav-link:hover,
.nav-link::after {
    color: #fff !important;
    background: var(--gold) !important;
}

.nav-link.btn-primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
    padding: 0.55rem 1.2rem !important;
}

.logo {
    display: inline-flex !important;
    align-items: center;
    /* background: #fff; */
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.logo img {
    filter: none !important;
    height: 60px !important;
    width: 100px;
}

.mobile-menu-toggle span {
    background: #fff !important;
}

.nav-icon-link svg {
    color: #fff;
}


/* A later rule in style.css ("MOBILE UX FIXES" block) makes `.navbar`
   itself display:flex on mobile, turning its only child `.container`
   into a shrink-to-fit flex item instead of full width — this collapses
   the whole row and squeezes logo + hamburger together. Undo it so the
   existing `.nav-wrapper` (logo ... space-between ... toggle) governs
   the row properly again. */

@media (max-width: 768px) {
    nav.navbar,
    .navbar {
        display: block !important;
        padding: 0 !important;
    }
    .nav-wrapper {
        padding: 12px 16px !important;
        height: auto !important;
        min-height: 64px;
    }
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }
    .logo {
        flex-shrink: 0;
        padding: 5px 12px;
    }
    .logo img {
        height: 32px !important;
    }
}

.admin-stock-alerts-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}


/* ---------- Hero (asymmetric split) ---------- */

.hero.hero-split {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--primary);
    overflow: hidden;
    position: relative;
}

.hero-split .hero-container {
    grid-column: 1;
    grid-row: 1;
    padding: 4.5rem 0 3rem;
    position: relative;
    z-index: 2;
}

.hero-split .hero-content {
    text-align: left;
    margin: 0;
    max-width: 460px;
}

.hero-split .hero-actions {
    justify-content: flex-start;
}

.hero-media {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    height: 320px;
    overflow: hidden;
}

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 36, 30, 0.55) 0%, rgba(43, 36, 30, 0.05) 40%, rgba(43, 36, 30, 0.35) 100%);
}

.hero-spotlight {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-width: 240px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.hero-spotlight:hover {
    transform: translateY(-3px);
}

.hero-spotlight img {
    width: 44px;
    height: 54px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-spotlight-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
}

.hero-spotlight-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.15rem 0 0;
    line-height: 1.25;
}

.hero-scroll {
    display: none;
}

@media (min-width: 992px) {
    .hero.hero-split {
        grid-template-columns: 44% 56%;
        grid-template-rows: 1fr;
        min-height: 78vh;
    }
    .hero-split .hero-container {
        grid-row: 1;
        padding: 0 0 0 3rem;
        display: flex;
        align-items: center;
    }
    .hero-media {
        grid-column: 2;
        grid-row: 1;
        height: 100%;
        clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    }
    .hero-spotlight {
        left: 2.5rem;
        bottom: 2.5rem;
    }
    .hero-scroll {
        display: flex;
    }
}


/* ---------- Section rhythm ---------- */

.section {
    padding: 4.5rem 0;
}

.blog-section {
    background: var(--surface);
}


/* ---------- Product cards ---------- */

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--border);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.product-badge.sale {
    background: var(--gold);
}

.product-overlay,
.product-quick-add {
    border-radius: var(--radius-sm) !important;
    background: var(--primary) !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-info {
    padding: 1rem 1.1rem 1.2rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin: 0.2rem 0 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--text-primary);
}

.product-price .original {
    color: var(--text-muted);
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 0.4rem;
}


/* ---------- Shop filters ---------- */

.filters-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.filter-select,
.search-input {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border) !important;
    font-family: var(--font-body);
}

.chip {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border) !important;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.chip.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}


/* ---------- Product gallery (detail page) ---------- */

.gallery-main {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border);
}

.gallery-thumbs .thumb-btn {
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.gallery-btn {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 50% !important;
}


/* ---------- Cart ---------- */

.cart-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.cart-item-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    font-family: var(--font-display);
}

.quantity-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}


/* ---------- Blog cards ---------- */

.blog-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    transition: box-shadow 0.25s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-link {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}


/* ---------- Account / Auth / Admin (light touch, same structure) ---------- */

.account-tabs .tab-btn.active,
.btn-primary {
    background: var(--primary) !important;
}

.form-container,
.form-group input,
.form-group select,
.form-group textarea {
    border-radius: var(--radius-sm) !important;
    border-color: var(--border) !important;
}

.admin-header,
.admin-title {
    font-family: var(--font-display);
}

.stat-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.table-wrap {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.badge {
    border-radius: var(--radius-sm) !important;
}


/* ---------- Footer ---------- */

.footer {
    background: var(--primary);
}

.social-link {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.social-link:hover {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}


/* ---------- Chatbot ---------- */

.chatbot-toggle {
    background: var(--gold) !important;
}

.chatbot-header {
    background: var(--primary) !important;
}

.chatbot-form button {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}


/* ---------- Page banner (secondary pages) ---------- */

.page-banner {
    position: relative;
    overflow: hidden;
    background: var(--primary);
}

.page-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    position: absolute;
    inset: 0;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(43, 36, 30, 0.92) 0%, rgba(43, 36, 30, 0.4) 70%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 2rem;
}

.page-banner .page-banner-content h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 0;
}

.page-banner-crumb {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    margin: 0 0 0.6rem;
    letter-spacing: 0.04em;
}

.page-banner-crumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.page-banner-crumb a:hover {
    color: #fff;
}

.page-banner.page-banner-slim {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.page-banner-slim .page-banner-content {
    padding: 2rem 0 1.5rem;
}

.page-banner-slim .page-banner-content h1 {
    color: var(--text-primary);
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}

.page-banner-slim .page-banner-crumb,
.page-banner-slim .page-banner-crumb a {
    color: var(--text-muted);
}

.page-banner-slim .page-banner-crumb a:hover {
    color: var(--gold);
}


/* ---------- Chatbot — fix broken mobile positioning.
   style.css has .chatbot-panel as position:absolute anchored to the tiny
   60px toggle-button wrapper, not the viewport — so any right/left offset
   on it is computed against that wrapper's box, not the screen, which is
   why it was sitting off-screen. Forcing position:fixed + true centering
   fixes it regardless of the wrapper. ---------- */

@media (max-width: 768px) {
    .chatbot-panel {
        position: fixed !important;
        top: auto !important;
        bottom: 90px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 28px) !important;
        max-width: 420px !important;
        height: min(72vh, 560px) !important;
        margin: 0 !important;
        border-radius: var(--radius-lg) !important;
    }
}

@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 20px) !important;
        height: 68vh !important;
        bottom: 82px !important;
    }
    .chatbot-toggle {
        width: 52px !important;
        height: 52px !important;
        bottom: 16px !important;
        right: 16px !important;
    }
    .chatbot-message {
        max-width: 88% !important;
        font-size: 0.88rem !important;
    }
}


/* ---------- Mobile polish ---------- */

@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
    .hero-split .hero-content h1 {
        font-size: clamp(2.3rem, 11vw, 3rem);
    }
    .hero-split .hero-content p {
        font-size: 0.95rem;
    }
    .product-grid {
        gap: 0.9rem;
    }
    .product-info {
        padding: 0.8rem 0.85rem 1rem;
    }
    .footer-content {
        text-align: left;
    }
    .page-banner-content {
        padding: 2rem 0 1.5rem;
    }
}