/* assets/css/style.css — BANGRET V8.0
    AESTHETICS: CARTIER/GUCCI High-Contrast Light Mode
*/

/* ---------------------------------------------------- */
/* 1. BASE VARIABLES (HIGH-CONTRAST LIGHT DEFAULT) */
/* ---------------------------------------------------- */

:root {
    /* Core Colors */
    --c-bg: #fdfdfd;          /* Pure White/Slightly Off-White */
    --c-bg-soft: #f4f1ea;     /* Cream/Beige for sections/cards */
    --c-card: #ffffff;
    --c-text: #000000;        /* Deep Black Text */
    --c-text-muted: #555555;
    --c-text-inverse: #ffffff;

    /* Accent & Signals */
    --c-accent: #000000;      /* Primary Accent (Black) */
    --c-accent-hover: #333333;
    --c-signal-red: #cc0000;
    --c-signal-green: #009900;
    --c-border: rgba(0, 0, 0, 0.1);
    --c-border-soft: rgba(0, 0, 0, 0.05);

    /* Layout & Fonts */
    --c-header-h: 90px;
    --c-container-w: 1600px;
    --c-gutter: 40px;
    --c-font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --c-font-mono: 'Courier New', Courier, monospace;

    /* Transitions */
    --c-dur-fast: 0.2s;
    --c-dur-med: 0.4s;
    --c-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------- */
/* 2. DARK MODE OVERRIDE (USER PREFERENCE) */
/* ---------------------------------------------------- */

body.theme-dark {
    --c-bg: #111111;
    --c-bg-soft: #1a1a1a;
    --c-card: #222222;
    --c-text: #ffffff;
    --c-text-muted: #aaaaaa;
    --c-text-inverse: #000000;
    --c-accent: #ffffff;
    --c-accent-hover: #cccccc;
    --c-border: rgba(255, 255, 255, 0.1);
    --c-border-soft: rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------------- */
/* 3. BASE, RESET & UTILITIES */
/* ---------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: auto; }

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--c-font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--c-dur-med), color var(--c-dur-med);
}
.section-bg-soft {
    background-color: var(--c-bg-soft);
}

a { 
    color: inherit; 
    text-decoration: none; 
    transition: color var(--c-dur-fast), opacity var(--c-dur-fast); 
}
a:hover { opacity: 0.8; }

h1, h2, h3, h4 { 
    font-weight: 800; 
    text-transform: uppercase; 
    line-height: 1;
    letter-spacing: -0.05em;
}

.mono {
    font-family: var(--c-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 700;
}

.container {
    max-width: var(--c-container-w);
    margin: 0 auto;
    padding: 0 var(--c-gutter);
}

.section {
    padding: 140px 0;
    border-bottom: 1px solid var(--c-border);
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------- */
/* 4. ANNOUNCEMENT BAR (MOVING BANNER FIXED) */
/* ---------------------------------------------------- */

.announcement-bar {
    background: var(--c-accent);
    color: var(--c-text-inverse);
    font-weight: 700;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-size: 0.9rem;
    height: 40px;
    display: flex;
    align-items: center;
}
.announcement-bar p {
    display: inline-block;
    padding: 0 40px;
    animation: marquee 35s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------- */
/* 5. HEADER (MENU FIX) */
/* ---------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--c-bg); 
    border-bottom: 1px solid var(--c-border);
}

.header-inner {
    height: var(--c-header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--c-gutter);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.nav-menu a {
    margin-left: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions button {
    background: none;
    border: none;
    color: var(--c-text);
    cursor: pointer;
    font-family: var(--c-font-mono);
    font-size: 0.8rem;
    padding: 5px 10px;
    transition: color var(--c-dur-fast);
}
.header-actions button:hover {
    color: var(--c-text-muted);
}
/* Theme switch icon styling */
.theme-toggle-button svg {
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

/* ---------------------------------------------------- */
/* 6. BUTTONS & FORMS */
/* ---------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--c-accent);
    color: var(--c-text-inverse);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--c-accent);
    cursor: pointer;
    transition: all var(--c-dur-fast) var(--c-ease-out);
}

.btn:hover {
    background: transparent;
    color: var(--c-text);
}

.btn-outline {
    background: transparent;
    color: var(--c-text);
    border: 2px solid var(--c-text-muted);
}

.btn-outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.form-input {
    width: 100%;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 18px;
    color: var(--c-text);
    font-family: var(--c-font-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--c-dur-fast), box-shadow var(--c-dur-fast);
}
.form-input:focus {
    border-color: var(--c-accent);
}

/* ---------------------------------------------------- */
/* 7. INDEX SECTIONS */
/* ---------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background: url('https://i.postimg.cc/Jn8bq4KH/20251202-0607-Moody-Streetwear-Elegance-simple-compose-01kbeq9t1xetp99q8scqfhw80w.png') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Optional: Add a very subtle dark overlay only if text isn't readable */
/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
} */
/* LOOKBOOK / GALLERY */
.lookbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--c-border);
    border: 1px solid var(--c-border);
}
.lookbook-item {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.lookbook-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.lookbook-item:hover img {
    transform: scale(1.05);
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.product-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding-bottom: 20px;
}
.product-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 15px;
}
.product-card-body {
    padding: 0 20px;
}

/* ---------------------------------------------------- */
/* 8. PRODUCT & CHECKOUT PAGE */
/* ---------------------------------------------------- */

.product-details-grid {
    /* ... existing styles ... */
}
.product-info-sticky {
    /* ... existing styles ... */
}

/* SIZE SELECTOR BUTTONS */
.size-btn {
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    padding: 12px 18px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.05em;
}

.size-btn:hover {
    background: var(--c-bg-soft);
}

.size-btn.selected {
    background: var(--c-accent);
    color: var(--c-text-inverse);
    border-color: var(--c-accent);
    font-weight: 700;
}

/* ACCORDION STYLES */
.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--c-border-soft);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.2s;
}
.acc-header:hover {
    color: var(--c-text-muted);
}
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.acc-header.is-open + .acc-body {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--c-border-soft);
}
.acc-header span:last-child {
    font-size: 1.5rem;
    transform: rotate(0deg);
    transition: transform 0.4s;
}
.acc-header.is-open span:last-child {
    transform: rotate(45deg);
}

/* PRODUCT ENGAGEMENT BOX (Refined) */
.product-engagement {
    padding: 15px;
    border: 1px solid var(--c-border);
    background: var(--c-bg-soft);
    margin-bottom: 30px;
}

/* Checkout Form (Advanced) */
.checkout-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 120px;
}
.checkout-form {
    padding-right: 30px;
    border-right: 1px solid var(--c-border-soft);
}
.checkout-summary {
    padding: 30px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    height: fit-content;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--c-border-soft);
    font-size: 0.95rem;
}
.summary-total {
    padding: 15px 0 !important;
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    border-top: 2px solid var(--c-text);
}

/* ---------------------------------------------------- */
/* 9. OVERLAYS & ANALYTICS (POP-UP) */
/* ---------------------------------------------------- */

#orderPopup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 15px 20px;
    opacity: 0;
    transform: translateX(-120%);
    transition: all 0.6s var(--c-ease-out);
    max-width: 300px;
    font-size: 0.9rem;
    pointer-events: none; /* Prevents blocking clicks */
}
#orderPopup.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.popup-product {
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0; /* Keep it below content */
    opacity: 0.1; /* Very subtle */
    pointer-events: none;
    transition: opacity 1s;
}

/* ---------------------------------------------------- */
/* 10. RESPONSIVE */
/* ---------------------------------------------------- */

@media (max-width: 1024px) {
    :root { --c-gutter: 20px; }
    .nav-menu { display: none; }
    .product-details-grid, .checkout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-info-sticky {
        position: static;
        padding-bottom: 0;
    }
    .checkout-form {
        padding-right: 0;
        border-right: none;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .lookbook-grid { grid-template-columns: 1fr; }
}