/* ==========================================================================
   ShopOneTribe — Design System
   ========================================================================== */

:root {
    --color-primary: #1a1a2e;
    --color-primary-light: #2d2d4d;
    --color-secondary: #e2e2e2;
    --color-accent: #c9a227;
    --color-bg: #ffffff;
    --color-bg-light: #f7f7f7;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-border: #e2e2e2;

    --font-heading: 'Montserrat', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-max: 1400px;
    --header-height: 76px;
    --announcement-height: 38px;
    --transition: 0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0 0 0.5em;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* Horizontal padding only, as longhand. Several elements carry .container
   alongside a layout class that sets its own vertical padding (.page-content,
   .account-layout, .footer-inner). A `padding` shorthand here would fight those
   rules and zero one axis out, depending on source order. */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.bg-light { background: var(--color-bg-light); }

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); }

.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-hero { background: #fff; color: var(--color-primary); }
.btn-hero:hover { background: var(--color-accent); color: #fff; }

.btn-block { display: block; width: 100%; margin-top: 10px; }
.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Forms --------------------------------------------------------------- */

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"],
select, textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: #fff;
    color: var(--color-text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); }
.form-error { color: var(--color-error); font-size: 12px; margin-top: 4px; }
.form-help { color: var(--color-text-secondary); font-size: 12px; margin-top: 4px; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checkbox-row input { width: auto; }

/* ---- Flash / toast -------------------------------------------------------- */

.flash-toast {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 4px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    animation: toast-in 0.3s ease, toast-out 0.3s ease 3.5s forwards;
}
.flash-success { background: var(--color-success); }
.flash-error { background: var(--color-error); }
@keyframes toast-in { from { opacity:0; transform: translateY(-10px);} to {opacity:1; transform: translateY(0);} }
@keyframes toast-out { to { opacity:0; transform: translateY(-10px);} }

/* ---- Announcement bar ------------------------------------------------------ */

.announcement-bar {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.announcement-bar p { margin: 0; }

/* ---- Header / mega menu ----------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.logo { display: flex; align-items: center; }
.logo img { max-height: 22px; width: auto; }
.logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: 2px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.mega-menu-list { display: flex; gap: 36px; }
.mega-menu-item { position: relative; padding: 28px 0; }
.mega-menu-item > a { font-size: 13px; font-weight: 600; letter-spacing: 1px; }

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 20px 28px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition);
}
.mega-menu-item:hover .mega-dropdown { opacity: 1; visibility: visible; }
.mega-dropdown ul { display: flex; flex-direction: column; gap: 12px; }
.mega-dropdown a { font-size: 13px; color: var(--color-text-secondary); }
.mega-dropdown a:hover { color: var(--color-primary); }
.mega-dropdown-cta { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 12px; }
.mega-dropdown-cta a { font-weight: 600; color: var(--color-text) !important; }

.header-icons { display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; background: none; border: none; padding: 6px; color: var(--color-text); display: flex; }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--color-primary); color: #fff;
    font-size: 10px; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--color-text); display: block; }

/* ---- Search overlay ---------------------------------------------------------- */

.search-overlay {
    position: fixed; inset: 0;
    background: rgba(26,26,46,0.97);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
}
.search-overlay.is-open { display: flex; }
.search-form { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 640px; position: relative; }
.search-form input {
    flex: 1; background: transparent; border: none; border-bottom: 2px solid #fff;
    color: #fff; font-size: 24px; padding: 12px 0;
}
.search-form input::placeholder { color: rgba(255,255,255,0.5); }
.search-form button[type="submit"] { background: var(--color-accent); color: #fff; border: none; padding: 12px 24px; }
.search-close { position: absolute; top: -60px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; }
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; margin-top: 12px; background: #fff; border-radius: 4px; overflow: hidden; max-height: 60vh; overflow-y: auto; }
.search-suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 13px; color: var(--color-text); }
.search-suggestion-item:hover { background: var(--color-bg-light); }
.search-suggestion-item img { width: 40px; height: 52px; object-fit: cover; }
.search-no-results { padding: 16px; color: var(--color-text-secondary); font-size: 13px; }

/* ---- Mobile nav drawer -------------------------------------------------------- */

.mobile-nav-drawer, .cart-drawer {
    position: fixed; top: 0; bottom: 0;
    width: 340px; max-width: 88vw;
    background: #fff;
    z-index: 1000;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    transition: transform var(--transition);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.mobile-nav-drawer { left: 0; transform: translateX(-100%); padding: 24px; }
.mobile-nav-drawer.is-open { transform: translateX(0); }
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 28px; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-nav-list a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--color-border); }

/* Collapsible subcategories inside the mobile drawer */
.mobile-nav-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 14px 0; font-size: 16px; background: none; border: none;
    border-bottom: 1px solid var(--color-border); text-align: left; color: inherit;
}
.mobile-nav-caret { font-size: 18px; color: var(--color-text-secondary); }
.mobile-nav-sublist { display: none; padding: 4px 0 8px 14px; }
.mobile-nav-group.is-open .mobile-nav-sublist { display: block; }
.mobile-nav-sublist a { font-size: 14px; padding: 11px 0; color: var(--color-text-secondary); border-bottom: none; }
.mobile-nav-sublist a:hover { color: var(--color-text); }
.mobile-nav-sublist .mobile-nav-all { font-weight: 600; color: var(--color-text); }

/* ---- Join The Tribe first-visit popup -------------------------------------- */
.tribe-popup-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1200;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.tribe-popup-backdrop.is-open { display: flex; }
.tribe-popup {
    background: #fff; max-width: 460px; width: 100%; padding: 36px 30px; border-radius: 4px;
    position: relative; text-align: center; max-height: 92vh; overflow-y: auto;
}
.tribe-popup h2 { letter-spacing: 2px; font-size: 22px; margin-bottom: 6px; }
.tribe-popup .tribe-popup-offer { font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.tribe-popup p { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 20px; line-height: 1.6; }
.tribe-popup-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; color: var(--color-text-secondary); line-height: 1; }
.tribe-popup-form { display: flex; flex-direction: column; gap: 10px; }
.tribe-popup-msg { font-size: 13px; margin-top: 12px; }
.tribe-popup-code {
    margin-top: 14px; padding: 14px; border: 1px dashed var(--color-primary); border-radius: 4px;
    font-size: 14px;
}
.tribe-popup-code strong { font-size: 20px; letter-spacing: 2px; display: block; margin-top: 4px; }
.tribe-popup-dismiss { background: none; border: none; text-decoration: underline; font-size: 12px; color: var(--color-text-secondary); margin-top: 14px; }

/* ---- Size guide modal (product page) --------------------------------------- */
.link-button { background: none; border: none; padding: 0; font: inherit; color: var(--color-primary); text-decoration: underline; cursor: pointer; }
.size-guide-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1300;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.size-guide-backdrop.is-open { display: flex; }
.size-guide-modal {
    background: #fff; max-width: 560px; width: 100%; padding: 30px; border-radius: 4px;
    position: relative; max-height: 88vh; overflow-y: auto;
}
.size-guide-modal h3 { margin-bottom: 14px; }
.size-guide-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; color: var(--color-text-secondary); line-height: 1; }
.size-guide-body { overflow-x: auto; }
.size-guide-body .spec-table { margin: 12px 0 18px; }

.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 950; display: none;
}
.drawer-backdrop.is-open { display: block; }

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

.cart-drawer { right: 0; transform: translateX(100%); }
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h3 { margin: 0; font-size: 16px; }
.cart-drawer-close { background: none; border: none; font-size: 26px; }
.cart-drawer-items { flex: 1; padding: 16px 24px; }
.cart-drawer-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); position: relative; }
.cart-item-img { width: 72px; height: 96px; flex-shrink: 0; overflow: hidden; background: var(--color-bg-light); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--color-text-secondary); margin: 0 0 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--color-border); background: #fff; border-radius: 2px; }
.cart-item-price { font-size: 13px; font-weight: 600; margin: 0; }
.cart-item-remove { position: absolute; top: 16px; right: 0; background: none; border: none; font-size: 18px; color: var(--color-text-secondary); }
.cart-empty { text-align: center; padding: 60px 0; }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.cart-drawer-note { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 16px; }

/* ---- Hero slider ------------------------------------------------------------------ */

.hero-slider { position: relative; height: 640px; overflow: hidden; background: var(--color-bg-light); }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
    opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.is-active { opacity: 1; }
/* Darkened toward the centre (where the text sits) and fading out at the edges,
   so white copy stays legible over bright shots like the couple / grey-wall photos. */
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 75% 65% at center, rgba(0,0,0,0.58), rgba(0,0,0,0.32) 60%, rgba(0,0,0,0.24) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}
.hero-slide-content { position: relative; z-index: 2; color: #fff; max-width: 560px; padding: 0 24px; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero-label { display: inline-block; font-size: 12px; letter-spacing: 2px; margin-bottom: 12px; font-weight: 600; }
.hero-slide-content h1 { font-size: 42px; margin-bottom: 16px; }
.hero-slide-content p { margin-bottom: 24px; font-size: 15px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); }
.hero-dot.is-active { background: #fff; }

/* ---- Section headers / carousels ---------------------------------------------------- */

.section-header { display: flex; justify-content: space-between; align-items: baseline; margin: 56px 0 24px; }
.section-header h2 { font-size: 24px; margin: 0; }
.section-link { font-size: 13px; font-weight: 600; text-decoration: underline; }
.product-carousel-section { padding-bottom: 16px; }

.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 calc(25% - 15px); min-width: 220px; }
.carousel-arrow {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border);
    background: #fff; z-index: 5; display: flex; align-items: center; justify-content: center;
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

/* ---- Product card ----------------------------------------------------------------------- */

.product-card { position: relative; }
.product-card-media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--color-bg-light); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity var(--transition); }
.product-img-hover { opacity: 0; }
.product-card-media:hover .product-img-hover { opacity: 1; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 4px 8px; text-transform: uppercase; z-index: 2; }
.badge-sale { background: var(--color-error); color: #fff; }
.badge-new { background: var(--color-primary); color: #fff; }
.btn-choose-options {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--color-primary); color: #fff; border: none; padding: 12px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    opacity: 0; transform: translateY(8px); transition: all var(--transition);
}
.product-card-media:hover .btn-choose-options { opacity: 1; transform: translateY(0); }
.product-card-info { padding-top: 12px; text-align: center; }
.product-card-name { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-card-price { font-size: 13px; font-weight: 700; }
.price-compare { color: var(--color-text-secondary); text-decoration: line-through; font-weight: 400; margin-right: 8px; }

/* ---- Category banners ------------------------------------------------------------------- */

.category-banners { display: flex; margin-top: 56px; }
.category-banner {
    flex: 1; height: 420px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32px;
    position: relative;
}
.category-banner::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.category-banner-name { position: relative; z-index: 2; color: #fff; font-size: 20px; letter-spacing: 2px; font-weight: 700; }

/* ---- Featured spotlight ------------------------------------------------------------------ */

.featured-spotlight { display: flex; align-items: stretch; margin: 56px auto 0; gap: 48px; }
.featured-spotlight-media { flex: 1; min-height: 480px; background-size: cover; background-position: center; }
.featured-spotlight-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.featured-spotlight-content h2 { font-size: 32px; }
.featured-spotlight-content p { color: var(--color-text-secondary); margin-bottom: 24px; }
.featured-spotlight-content .btn { align-self: flex-start; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }

/* ---- Shop the look ------------------------------------------------------------------------ */

.shop-the-look-row { display: flex; gap: 40px; margin-top: 24px; align-items: stretch; }
.shop-the-look-media { flex: 1.1; min-height: 560px; background-size: cover; background-position: center; }
.shop-the-look-products { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shop-the-look-item { display: flex; flex-direction: column; color: inherit; }
.shop-the-look-item-media { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--color-bg-light); }
.shop-the-look-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.shop-the-look-item:hover .shop-the-look-item-media img { transform: scale(1.04); }
.shop-the-look-item-info { padding-top: 10px; text-align: center; }
.shop-the-look-item-info .btn { margin-top: 8px; }

/* ---- Lookbook banner ------------------------------------------------------------------------ */

.lookbook-banner {
    margin-top: 56px; height: 380px; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.lookbook-banner::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.lookbook-banner-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.lookbook-banner-content h2 { font-size: 32px; letter-spacing: 4px; margin-bottom: 20px; }

/* ---- Newsletter ---------------------------------------------------------------------------- */

.newsletter-section { background: var(--color-bg-light); margin-top: 56px; padding: 72px 0; }
.newsletter-inner { text-align: center; max-width: 520px; }
.newsletter-inner h2 { letter-spacing: 3px; font-size: 26px; }
.newsletter-inner p { color: var(--color-text-secondary); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; }
.newsletter-form button { background: var(--color-primary); color: #fff; border: none; padding: 14px 28px; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.newsletter-form button:hover { background: var(--color-primary-light); }
.newsletter-message { margin-top: 12px; font-size: 13px; color: var(--color-success); }

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

.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.85); margin-top: 56px; padding: 40px 0 0; }
.footer-logo { padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo img { max-height: 20px; width: auto; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: #fff; }
.social-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.whatsapp-link { display: inline-block; background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 4px; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0; text-align: center; font-size: 12px; }

/* ---- Floating WhatsApp button (all storefront pages) ----------------------------------------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 800;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,211,102,0.45); color: #fff; }
@media (max-width: 767px) {
    .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}

/* ---- Breadcrumb / page furniture ------------------------------------------------------------- */

.breadcrumb { font-size: 12px; color: var(--color-text-secondary); padding: 20px 0; }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-text); }
.page-content { padding-top: 40px; padding-bottom: 80px; }
.page-content h1 { font-size: 28px; margin-bottom: 8px; }
.page-header { text-align: center; padding: 48px 0 24px; }
.page-header h1 { font-size: 32px; }
.page-header p { color: var(--color-text-secondary); }

/* ---- Collection page ---------------------------------------------------------------------------- */

.collection-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--color-border); margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.collection-filters { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.collection-filters label { font-size: 12px; font-weight: 600; margin-right: 6px; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--color-border); font-size: 13px; }
.pagination .is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.empty-state { text-align: center; padding: 80px 0; color: var(--color-text-secondary); }

/* ---- Product detail page -------------------------------------------------------------------------- */

.product-detail { display: flex; gap: 56px; padding: 40px 0 80px; }
.product-gallery { flex: 1.2; display: flex; gap: 16px; }
.product-thumbs { display: flex; flex-direction: column; gap: 10px; width: 84px; }
.product-thumbs img { width: 84px; height: 108px; object-fit: cover; cursor: pointer; border: 1px solid transparent; }
.product-thumbs img.is-active { border-color: var(--color-primary); }
.product-main-image { flex: 1; aspect-ratio: 3/4; overflow: hidden; background: var(--color-bg-light); }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { flex: 1; max-width: 460px; }
.product-info h1 { font-size: 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-price { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
/* ---- Product option blocks (fit / size / customization) --------------------- */
.option-block { margin-bottom: 22px; }
.option-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.option-optional { font-weight: 400; color: var(--color-text-secondary); }

.fit-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.fit-option {
    padding: 10px 18px; border: 1px solid var(--color-border); background: #fff;
    font-size: 13px; border-radius: 2px; cursor: pointer;
}
.fit-option.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }

.customization-block { border-top: 1px solid var(--color-border); padding-top: 18px; }
.custom-options { display: flex; flex-direction: column; gap: 8px; }
.custom-option { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.custom-option input { width: auto; }
.custom-option strong { font-weight: 700; }
.custom-fields { margin-top: 14px; padding: 14px; background: var(--color-bg-light); border-radius: 4px; }

/* ---- Full customization ---- */
.full-custom-block { border-top: 1px solid var(--color-border); padding-top: 18px; }
.fc-row { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.fc-row:last-of-type { border-bottom: none; }
.fc-row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fc-label { font-size: 14px; font-weight: 600; }
.fc-fee { font-size: 12px; color: var(--color-text-secondary); }
.fc-modes { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.fc-modes label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fc-modes input { width: auto; }
.fc-text, .fc-upload { margin-top: 10px; }
.fc-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-file-label { cursor: pointer; margin: 0; }
.fc-file-status { font-size: 12px; color: var(--color-text-secondary); }
.fc-total { margin-top: 14px; font-size: 14px; }
.fc-total strong { font-weight: 700; }

.size-selector { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.size-option { padding: 10px 16px; border: 1px solid var(--color-border); font-size: 13px; background: #fff; }
.size-option.is-active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.size-option:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.qty-selector { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-selector .qty-btn { width: 36px; height: 36px; }
.add-to-cart-row { display: flex; gap: 12px; margin-bottom: 32px; }
.add-to-cart-row .btn-primary { flex: 1; padding: 16px; }
.accordion-item { border-top: 1px solid var(--color-border); }
.accordion-header { display: flex; justify-content: space-between; padding: 16px 0; background: none; border: none; width: 100%; font-weight: 600; font-size: 14px; text-align: left; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition); font-size: 13px; color: var(--color-text-secondary); }
.accordion-item.is-open .accordion-body { max-height: 500px; padding-bottom: 16px; }
.social-share { display: flex; gap: 12px; margin-top: 24px; }
.social-share a { font-size: 12px; text-decoration: underline; }

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

.cart-page-layout { display: flex; gap: 48px; padding: 40px 0 80px; align-items: flex-start; }
.cart-table { flex: 2; width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--color-text-secondary); padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.cart-table .cart-item-img { width: 80px; height: 104px; }
.order-summary { flex: 1; background: var(--color-bg-light); padding: 28px; position: sticky; top: 100px; }
.order-summary h3 { margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--color-border); padding-top: 12px; margin-top: 12px; }
.promo-form { display: flex; gap: 8px; margin: 20px 0; }
.promo-form input { flex: 1; }

/* ---- Checkout ------------------------------------------------------------------------------------- */

.checkout-layout { display: flex; gap: 56px; padding: 40px 0 80px; align-items: flex-start; }
.checkout-form { flex: 1.4; }
.checkout-step { margin-bottom: 40px; }
.checkout-step h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.shipping-option { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--color-border); margin-bottom: 10px; cursor: pointer; }
.shipping-option input { width: auto; margin-right: 10px; }
.checkout-summary { flex: 1; background: var(--color-bg-light); padding: 28px; position: sticky; top: 100px; }
.checkout-summary-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.checkout-summary-item img { width: 56px; height: 72px; object-fit: cover; }

/* ---- Auth / account pages ---------------------------------------------------------------------------- */

.auth-page { max-width: 440px; margin: 0 auto; padding: 60px 24px 100px; }
.auth-page h1 { text-align: center; margin-bottom: 32px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 13px; }
.account-layout { display: flex; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.account-sidebar { width: 220px; flex-shrink: 0; }
.account-sidebar a { display: block; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--color-border); }
.account-sidebar a.is-active { font-weight: 700; }
.account-content { flex: 1; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.data-table th { text-transform: uppercase; color: var(--color-text-secondary); font-size: 11px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.status-pending { background: #fff3cd; color: #856404; }
.status-paid, .status-delivered { background: #d4edda; color: #155724; }
.status-processing, .status-shipped { background: #d1ecf1; color: #0c5460; }
.status-cancelled, .status-refunded { background: #f8d7da; color: #721c24; }
.address-card { border: 1px solid var(--color-border); padding: 20px; margin-bottom: 16px; }
.address-card.is-default { border-color: var(--color-primary); }
.order-timeline { display: flex; justify-content: space-between; margin: 32px 0; }
.order-timeline-step { flex: 1; text-align: center; font-size: 12px; color: var(--color-text-secondary); position: relative; }
.order-timeline-step.is-done { color: var(--color-primary); font-weight: 600; }

/* ---- FAQ / accordion pages -------------------------------------------------------------------------- */

.faq-category { margin-bottom: 40px; }
.faq-category h2 { font-size: 18px; margin-bottom: 16px; }

/* ---- Lookbook gallery -------------------------------------------------------------------------------- */

.lookbook-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 40px 0 80px; }
.lookbook-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; cursor: pointer; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 32px; background: none; border: none; }

/* ---- Tables (size guide / delivery) ------------------------------------------------------------------- */

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 40px; }
.spec-table th, .spec-table td { border: 1px solid var(--color-border); padding: 10px 14px; font-size: 13px; text-align: left; }
.spec-table th { background: var(--color-bg-light); }

/* ---- 404 --------------------------------------------------------------------------------------------- */

.error-404 { text-align: center; padding-top: 120px; padding-bottom: 120px; }
.error-404 h1 { font-size: 96px; color: var(--color-secondary); }
