@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
form { margin: 0; }
html {
    height: 100%;
}

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background: #F4F0E6;
    color: #1a1714;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > form {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

body > form > main,
body > form > .container.shop-page,
body > form > .container.shop-index,
body > form > .container.content-page {
    flex: 1 0 auto;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.top-stripes { display: flex; height: 3px; width: 100%; }
.stripe1 { background: #0E1F33; flex: 1; }
.stripe2 { background: #1A365D; flex: 1; }
.stripe3 { background: #C4A574; flex: 1; }
.stripe4 { background: #1A365D; flex: 1; }
.stripe5 { background: #0E1F33; flex: 1; }

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.brand-mark-crest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #0E1F33;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #0E1F33;
    background:
        linear-gradient(#C4A574, #C4A574) center / 16px 1px no-repeat,
        linear-gradient(#C4A574, #C4A574) center / 1px 16px no-repeat;
}
.brand-mark-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #0E1F33;
}
.brand-mark-sub {
    margin-top: 3px;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8A8175;
}

.site-header { background: rgba(251, 248, 242, 0.96); border-bottom: 1px solid rgba(14, 31, 51, 0.08); position: sticky; top: 0; z-index: 1000; }
.header-main { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 0; gap: 12px; position: relative; min-height: 72px; }
.logo-area { grid-column: 1; justify-self: start; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.logo-area .logo-image { height: 48px; width: auto; display: block; object-fit: contain; }
.tagline { font-size: 0.65rem; color: #7a6e5f; }
.header-text-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #57534e;
    text-decoration: none;
}
.header-text-link:hover { color: #0E1F33; }
.desktop-nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-dropdown { position: relative; }
.nav-dropdown > span { font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 8px 0; display: inline-block; color: #2d2a24; }
.nav-dropdown > span:hover { color: #1A365D; }
.nav-link-page { font-weight: 600; font-size: 0.85rem; color: #2d2a24; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav-link-page:hover { color: #1A365D; }
.dropdown-menu { position: absolute; top: 32px; left: -20px; background: white; border-radius: 4px; box-shadow: 0 15px 35px -12px rgba(0,0,0,0.15); padding: 12px 0; min-width: 200px; opacity: 0; visibility: hidden; transition: 0.2s; z-index: 200; border: 1px solid #e8e0d4; max-height: 400px; overflow-y: auto; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a { display: block; padding: 8px 24px; text-decoration: none; color: #3a352c; font-size: 0.8rem; }
.dropdown-menu a:hover { background: #F4F0E6; color: #0E1F33; }
.user-actions { grid-column: 3; justify-self: end; display: flex; gap: 10px; align-items: center; }
.user-btn { background: transparent; border: 1px solid #e3dbd0; padding: 5px 14px; border-radius: 40px; cursor: pointer; font-weight: 500; font-size: 0.75rem; }
.search-icon { background: #f5f2ef; border-radius: 40px; padding: 5px 12px; display: flex; align-items: center; gap: 6px; }
.search-icon input { border: none; background: transparent; outline: none; width: 130px; font-size: 0.75rem; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; padding: 6px; color: #2d2a24; line-height: 1; }

.mobile-category-collapse { display: none; background: white; border-bottom: 1px solid #f0e7df; position: sticky; top: 60px; z-index: 105; }
.collapse-trigger { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: #2d2a24; background: white; border-bottom: 1px solid #f0e7df; }
.collapse-trigger .arrow-icon { transition: transform 0.25s ease; font-size: 0.8rem; }
.collapse-trigger.open .arrow-icon { transform: rotate(180deg); }
.collapse-content { max-height: 0; overflow: hidden; transition: max-height 0.35s; background: white; }
.collapse-content.open { max-height: 500px; overflow-y: auto; }

.category-group { border-bottom: 1px solid #f0e7df; }
.category-group-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; cursor: pointer; background: white; font-weight: 600; font-size: 0.9rem; }
.category-group-header:hover { background: #fefaf5; }
.category-group-header .group-arrow { transition: transform 0.2s; font-size: 0.7rem; color: #b0a69a; }
.category-group-header.open .group-arrow { transform: rotate(90deg); }
.category-sub-items { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fefcf9; }
.category-sub-items.open { max-height: 400px; overflow-y: auto; }
.cat-chip { display: inline-block; background: white; border: 1px solid #e8e2db; border-radius: 40px; padding: 8px 16px; margin: 6px 8px; font-size: 0.75rem; cursor: pointer; text-decoration: none; color: inherit; }
.cat-chip:hover { background: #0E1F33; color: white; border-color: #0E1F33; }
.sub-items-container { padding: 8px 12px 16px 20px; display: flex; flex-wrap: wrap; }

.mobile-sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px; height: 100vh; background: white; z-index: 2000; transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); box-shadow: 4px 0 25px rgba(0,0,0,0.1); overflow-y: auto; padding: 20px 0; }
.mobile-sidebar.open { left: 0; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.2s; }
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.close-sidebar { text-align: right; padding: 12px 20px; font-size: 1.4rem; cursor: pointer; }
.mobile-nav-section { border-bottom: 1px solid #f0e7df; }
.mobile-nav-section-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; cursor: pointer; font-weight: 600; }
.mobile-nav-section-header .arrow { transition: transform 0.2s; }
.mobile-nav-section-header.open .arrow { transform: rotate(90deg); }
.mobile-nav-sub { max-height: 0; overflow: hidden; transition: max-height 0.3s; padding-left: 20px; }
.mobile-nav-sub.open { max-height: 300px; overflow-y: auto; }
.mobile-nav-sub a { display: block; padding: 10px 0; text-decoration: none; color: #3a352c; font-size: 0.85rem; }

@media (max-width: 880px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-category-collapse { display: block; }
    .activity-bar { top: 106px; }
    .tagline { display: none; }
    .logo-area .logo-image { height: 36px; }
    .brand-mark-sub { display: none; }
    .brand-mark-crest { width: 34px; height: 34px; }
    .search-icon input { width: 100px; }
    .container {
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }
    .header-main { padding: 12px 0; min-height: 64px; }
}
@media (max-width: 480px) {
    .container {
        padding-left: max(22px, env(safe-area-inset-left, 0px));
        padding-right: max(22px, env(safe-area-inset-right, 0px));
    }
}
@media (min-width: 881px) { .mobile-category-collapse { display: none !important; } }

.activity-bar { background: white; border-bottom: 1px solid #f0e7df; padding: 10px 0; margin-bottom: 24px; position: sticky; top: 68px; z-index: 100; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 4px 20px; }
.filter-pill { background: #f4f0ea; border-radius: 40px; padding: 6px 20px; font-size: 0.8rem; cursor: pointer; border: none; }
.filter-pill.active { background: #1e293b; color: white; }

.policy-page { padding: 0; max-width: none; }
.policy-updated { margin: 0; }

.hidden { display: none; }
