:root {
    --bg-main: #0a0a0b;
    --bg-card: #111113;
    --bg-dark: #000000;
    --bg-footer: #18181c;
    
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    
    --accent-orange: #ff9f0a;
    
    --font-heading: 'DM Serif Text', serif;
    --font-body: 'Geist', sans-serif;
    --font-mono: 'Geist Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.btn-primary {
    background-color: var(--accent-orange);
    color: var(--bg-main);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 14px;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #ffb13b;
    transform: translateY(-2px);
}

.subtitle {
    color: var(--accent-orange);
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

/* Navbar */
.navbar {
    background-color: var(--bg-main);
    padding: 0 40px;
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo span {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* OptiMatch Button */
.opti-match-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff9f0a, #e8870a);
    color: #0a0a0b;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: om-glow-pulse 2s infinite;
}

.opti-match-btn:hover {
    background: linear-gradient(135deg, #ffb13b, #ff9f0a);
    transform: translateY(-1px);
    animation: none;
    box-shadow: 0 0 20px rgba(255, 159, 10, 0.4);
}

@keyframes om-glow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 159, 10, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0); }
}

/* Media Box fix */
.media-box {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.nav-links a.active {
    color: var(--accent-orange);
}

.nav-links a.active .active-indicator {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-primary);
}

.nav-utils i {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-utils i:hover {
    color: var(--accent-orange);
}

.cart-indicator {
    position: relative;
    display: flex;
    align-items: center;
}

.badge {
    background-color: var(--accent-orange);
    color: var(--bg-main);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -10px;
}

/* Editorial Hero Section */
.hero-editorial {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(120px, 25vw, 400px);
    color: rgba(255, 255, 255, 0.03); /* Huge faded text */
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.hero-centerpiece {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.centerpiece-img-container {
    height: 80vh;
    max-height: 800px;
    width: 35vw;
    max-width: 500px;
    position: relative;
    z-index: 3;
}

/* Because the image isn't a transparent cutout, we apply some styling to blend it or make it an editorial block */
.centerpiece-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 200px 200px 0 0; /* Arch shape for editorial feel */
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.hero-floating {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.left-floating {
    left: 10%;
}

.stamp-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.stamp-btn:hover {
    transform: scale(1.05);
}

.stamp-btn:hover .stamp-text-circle {
    animation-play-state: paused;
}

.stamp-text-circle {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    animation: rotate 15s linear infinite;
}

.stamp-text-circle svg {
    width: 100%;
    height: 100%;
    fill: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stamp-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.right-floating {
    right: 10%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: flex-end;
}

.stats-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-primary);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    height: 1px;
    width: 40px;
    background-color: rgba(255,255,255,0.1);
    align-self: flex-end;
}

.hero-nav-arrow a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.hero-nav-arrow a:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

/* Split Editorial */
.split-editorial {
    display: flex;
    height: 700px;
}

.panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
}

.panel-eyeglasses {
    background-color: var(--bg-dark);
}

.panel-sunglasses {
    background-color: var(--bg-dark);
}

.panel-content {
    text-align: center;
    z-index: 2;
}

.panel h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 24px;
}

.shop-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-link.active {
    color: var(--accent-orange);
    font-weight: 700;
}

.shop-link:hover {
    color: var(--text-primary);
}

/* Story Section */
.story-section {
    background-color: var(--bg-card);
    padding: 120px 40px;
}

.story-container {
    max-width: 1760px;
    margin: 0 auto;
}

.story-text {
    max-width: 800px;
    margin-bottom: 80px;
}

.story-text h2 {
    font-family: var(--font-heading);
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.story-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.story-media {
    display: flex;
    gap: 24px;
    height: 600px;
}

.media-box {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.media-box.bg-dark {
    background-color: var(--bg-dark);
}

.media-box.bg-accent {
    background-color: var(--accent-orange);
}

/* Products Section */
.products-section {
    padding: 120px 40px;
    max-width: 1840px;
    margin: 0 auto;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.products-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
}

.slider-controls {
    display: flex;
    gap: 16px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon.active {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--bg-main);
}

.btn-icon:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--bg-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-media {
    position: relative;
    background-color: var(--bg-main);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-media img {
    width: auto;
    max-width: 90%;
    height: 280px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.03);
}

.badge-new {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--accent-orange);
    color: var(--bg-main);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
}

.hover-action {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-card:hover .hover-action {
    opacity: 1;
    transform: translateY(0);
}

.hover-action:hover {
    background-color: var(--accent-orange);
    color: var(--bg-main);
}

.product-info {
    padding: 0;
}

.colors-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.colors-row > span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

.color-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.white { background-color: #ffffff; }
.dot.orange { background-color: var(--accent-orange); }
.dot.dark { background-color: #444444; }

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.title-row h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
}

.price {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-orange);
}

.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 16px;
}

.btn-try-on {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-try-on i {
    width: 14px;
    height: 14px;
}

.btn-try-on:hover {
    color: var(--text-primary);
}

.more-options {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Icons Editorial */
.icons-editorial {
    background-color: var(--bg-footer);
    height: 640px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icons-content {
    max-width: 800px;
    padding: 0 40px;
}

.icons-content h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    padding: 80px 40px 40px;
}

.newsletter-row {
    max-width: 1760px;
    margin: 0 auto 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.newsletter-text {
    max-width: 600px;
}

.newsletter-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 16px;
}

.newsletter-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.newsletter-input {
    display: flex;
    width: 500px;
    border-bottom: 1px solid var(--text-tertiary);
    padding-bottom: 8px;
}

.newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.newsletter-input input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-input button {
    background: var(--accent-orange);
    color: var(--bg-main);
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
}

.directory-row {
    max-width: 1760px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.column ul {
    list-style: none;
}

.column ul li {
    margin-bottom: 12px;
}

.column ul li a {
    color: var(--text-secondary);
    font-size: 14px;
}

.column ul li a:hover {
    color: var(--text-primary);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.payment-methods i {
    width: 24px;
    height: 24px;
}

.bottom-row {
    max-width: 1760px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bottom-row p {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 12px;
}

.socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.socials span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 8px;
}

.socials a {
    width: 36px;
    height: 36px;
    background-color: var(--bg-footer);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
    background-color: var(--accent-orange);
    color: var(--bg-main);
}

.socials i, .socials svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 64px;
    }
    
    .split-editorial {
        flex-direction: column;
        height: auto;
    }
    
    .panel {
        height: 500px;
    }
    
    .story-media {
        flex-direction: column;
        height: auto;
    }
    
    .media-box {
        height: 400px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .directory-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-row {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

/* --- Dynamic Search Bar --- */
.nav-utils {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.search-container.active {
    width: 200px;
    opacity: 1;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 4px 8px;
    outline: none;
}

.search-input:focus {
    border-bottom-color: var(--accent-orange);
}

/* --- Auth Modal --- */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.auth-modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.modal-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-orange);
    margin-bottom: 24px;
}

.auth-modal h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 16px;
}

.auth-modal p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
}

.auth-modal .btn-primary {
    width: 100%;
}

