/* CSS Reset & Variables */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--jj-light, #F8FAFC); color: var(--jj-dark, #0F172A); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; margin-top: 0; margin-bottom: 1rem; color: var(--jj-primary, #1E3A8A); font-weight: 700; }
p { margin-top: 0; margin-bottom: 1rem; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Utilities */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Top Bar */
.topbar { position: relative; z-index: 60; padding: 0.5rem 0; font-size: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar__info { display: flex; align-items: center; gap: 0.5rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(255,255,255,0.1); transition: all 0.3s ease; }
.social-icon:hover { background: var(--jj-accent, #F59E0B); color: #fff !important; }

/* Header */
.site-header { position: relative; width: 100%; z-index: 50; transition: all 0.3s ease; }
.site-header.is-sticky { position: fixed; top: var(--topbar-offset, 0px); left: 0; }
.site-header.has-shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: var(--header-height, 80px); }
.header__logo img,
.header__logo .custom-logo {
    max-width: var(--logo-mobile-width, 120px);
    max-height: calc(var(--header-height, 80px) - 1rem);
    height: auto;
    width: auto;
    display: block;
}
@media (min-width: 1024px) {
    .header__logo img,
    .header__logo .custom-logo {
        max-width: var(--logo-width, 160px);
    }
}
.header__logo-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; color: var(--header-text, #fff); }
.header__tagline { display: none; } /* Hide visually but keep for SEO if needed, or show on desktop */

/* Desktop Nav */
.header__nav { display: none; }
@media (min-width: 1024px) {
    .header__nav { display: block; flex-grow: 1; margin: 0 2rem; }
    .header__menu { display: flex; justify-content: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
    .header__menu a { color: var(--header-text, #fff); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; font-size: 0.9375rem; }
    .header__menu a:hover { color: var(--header-hover, #F59E0B); }
    .header__menu .has-dropdown { position: relative; }
    .header__menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-radius: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; padding: 0.5rem 0; z-index: 60; list-style: none; }
    .header__menu .has-dropdown:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .header__menu .sub-menu a { color: var(--jj-dark, #0F172A); padding: 0.5rem 1.5rem; display: block; }
    .header__menu .sub-menu a:hover { background: var(--jj-light, #F8FAFC); color: var(--jj-primary, #1E3A8A); }
}

/* Header Actions */
.header__actions { display: flex; align-items: center; gap: 1rem; color: var(--header-text, #fff); }
.header__icon-btn { background: none; border: none; color: inherit; font-size: 1.25rem; cursor: pointer; padding: 0.5rem; transition: color 0.3s ease; position: relative; }
.header__icon-btn:hover { color: var(--header-hover, #F59E0B); }
.header__cart-btn { display: inline-flex; align-items: center; position: relative; }
.header__cart-count { position: absolute; top: 0; right: 0; background: var(--jj-accent, #F59E0B); color: #fff; font-size: 0.625rem; font-weight: 700; width: 1rem; height: 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: translate(25%, -25%); }
.header__cta-btn { display: none; background: var(--jj-accent, #F59E0B); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 0.375rem; font-weight: 600; font-size: 0.875rem; transition: background 0.3s ease; }
.header__cta-btn:hover { background: #d97706; }
@media (min-width: 1024px) {
    .header__cta-btn { display: inline-flex; }
    .header__mobile-toggle { display: none; }
}

/* Mobile Menu Toggle */
.header__mobile-toggle { background: none; border: none; color: inherit; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* Mobile Menu Sidebar */
.header__mobile-menu { position: fixed; top: 0; right: -100%; width: min(88vw, 320px); height: 100vh; background: #fff; box-shadow: -10px 0 24px -8px rgba(0,0,0,0.22); z-index: 1000; transition: right 0.3s ease; display: flex; flex-direction: column; padding: 2rem 1.5rem; overflow-y: auto; }
.header__mobile-menu.is-active { right: 0; }
.mobile-menu__list { list-style: none; margin: 0 0 2rem 0; padding: 0; }
.mobile-menu__list a { display: block; padding: 1rem 0; border-bottom: 1px solid #e2e8f0; color: var(--jj-dark, #0F172A); font-weight: 500; }
.mobile-menu__list .sub-menu { display: none; list-style: none; padding-left: 1rem; border-left: 2px solid #e2e8f0; margin-left: 0.5rem; }
.mobile-menu__list .has-dropdown.is-open .sub-menu { display: block; }
.mobile-menu__icons { display: flex; flex-direction: column; gap: 1rem; margin-top: auto; }
.mobile-menu__icons a { display: flex; align-items: center; gap: 0.75rem; color: var(--jj-primary, #1E3A8A); font-weight: 500; }

/* Overlay */
.mobile-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.62); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.mobile-overlay.is-active { opacity: 1; visibility: visible; }

/* Search Bar Overlay */
.header__search-bar { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 1rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 40; }
.header__search-bar.is-active { transform: translateY(0); opacity: 1; visibility: visible; }
.header__search-form { display: flex; max-width: 600px; margin: 0 auto; position: relative; }
.header__search-input { width: 100%; padding: 0.75rem 1rem; padding-right: 3rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; outline: none; transition: border-color 0.3s ease; }
.header__search-input:focus { border-color: var(--jj-primary, #1E3A8A); }
.header__search-submit { position: absolute; right: 0; top: 0; height: 100%; padding: 0 1rem; background: none; border: none; color: var(--jj-primary, #1E3A8A); cursor: pointer; }
