/* ==========================================================================
   SOLE Eyewear - Stylesheet
   Design: Premium, Dark Mode, Terracotta & Sand Accent, Glassmorphism
   ========================================================================== */

:root {
    color-scheme: light !important; /* Fallback for older browsers like Samsung Internet */
    color-scheme: only light !important; /* Force browser to opt out of forced dark mode rendering on mobile */
    --color-bg: #caa174; /* Warm sandy-tan background */
    --color-bg-dark: #b89065;
    --color-card-bg: rgba(255, 255, 255, 0.25); /* Warm translucent glass */
    --color-card-border: rgba(47, 29, 12, 0.35); /* Deep dark brown theme border */
    --color-accent: #3c2815; /* Logo dark brown */
    --color-accent-rgb: 60, 40, 21;
    --color-accent-hover: #1f1207;
    --color-text: #2f1d0c; /* Deep dark brown */
    --color-text-muted: #5e432a; /* Muted brown */
    --color-dark: #1b1007;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #1b1007 !important; /* Dark color to fool forced-dark-mode engines */
    overflow-x: hidden;
    color-scheme: light !important; /* Fallback for Samsung Internet */
    color-scheme: only light !important; /* Forces Chromium engines to skip forced dark mode color inversion */
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: transparent !important; /* Set to transparent so the body::before background shows through */
    line-height: 1.6;
    overflow-x: hidden;
    color-scheme: light !important; /* Fallback for Samsung Internet */
    color-scheme: only light !important; /* Forces Chromium engines to skip forced dark mode color inversion */
}

/* 
   The Sand-Gradient is moved to a fixed pseudo-element. 
   Because the html background-color property is dark, mobile forced-dark-mode engines 
   flag the document as 'already dark' and bypass color inversion entirely, keeping the text dark 
   and the background at its beautiful light sand design!
*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #d8b48c 0%, #caa174 60%, #b0875c 100%) !important;
    z-index: -1; /* Placed in front of the html background but behind all page elements */
    pointer-events: none;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #a67c52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Fixed Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through to HTML or mouse-moves to document */
}

/* Subtle Palm leaf shadow overlay */
.palm-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0.12;
    background-image: radial-gradient(circle at 10% 20%, rgba(207, 164, 114, 0.05) 0%, transparent 50%),
                      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cpath d='M-100,-100 Q 200,300 400,100 T 800,200 M 100,500 Q 400,450 600,700 M 300,200 Q 500,600 700,500' stroke='%23ffffff' stroke-width='40' stroke-linecap='round' fill='none' opacity='0.3' filter='blur(20px)'/%3E%3C/svg%3E");
    background-size: cover;
    mix-blend-mode: overlay;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 6% 50px 6%; /* Reduced height, ending just below the logomarca */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100; /* Raised to float above mobile menu overlay */
    background: linear-gradient(to bottom, rgba(202, 161, 116, 0.96) 0%, rgba(202, 161, 116, 0.82) 60%, rgba(202, 161, 116, 0) 100%);
    backdrop-filter: blur(16px); /* Frosted Glass blur */
    -webkit-backdrop-filter: blur(16px);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 0.25em;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
}

.logo-subtext {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: -3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.nav-links .buy-nav-btn {
    background-color: var(--color-accent);
    color: var(--color-bg) !important;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(207, 164, 114, 0.2);
}

.nav-links .buy-nav-btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 164, 114, 0.3);
}

.nav-links .buy-nav-btn::after {
    display: none;
}

/* Content Container & Sections */
.content-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px 8%;
    position: relative;
    pointer-events: none; /* Let scroll and mouse interaction pass to 3D canvas behind */
}

.section-content {
    max-width: 550px;
    width: 100%;
    opacity: 1;
    transition: var(--transition-smooth);
}

.text-left {
    margin-right: auto;
}

.text-right {
    margin-left: auto;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--color-card-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    pointer-events: auto; /* Re-enable pointer events for buttons and interaction */
}

/* Section elements styling */
.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3.3rem; /* Decreased size for a more sophisticated, balanced feel */
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(44, 26, 12, 0.08);
}

h2 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--color-text);
}

.description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Specs List */
.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: var(--color-text);
}

.specs-list i {
    color: var(--color-accent);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Customizer Section Controls */
.interactive-card {
    border-color: rgba(207, 164, 114, 0.25);
    box-shadow: 0 25px 60px rgba(207, 164, 114, 0.05);
}

.customizer-group {
    margin-bottom: 30px;
}

.customizer-group:last-child {
    margin-bottom: 0;
}

.group-title {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.options-container {
    display: flex;
    gap: 15px;
}

.option-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    background-size: cover;
}

.option-btn:hover {
    transform: scale(1.1);
}

.option-btn.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px var(--color-accent);
}

.option-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.option-btn.active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Buy Section */
.buy-section {
    justify-content: flex-end;
}

.buy-container {
    max-width: 550px;
    width: 100%;
    text-align: left;
    border-color: var(--color-glass-border);
}

.buy-container .rating {
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.rating i {
    color: var(--color-accent);
    font-size: 0.95rem;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-left: 8px;
}

.pricing {
    font-size: 3rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.old-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
    margin-left: 15px;
    font-weight: 400;
}

.installments {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.installments strong {
    color: var(--color-accent);
}

.highlights {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
}

.hl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hl-item i {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.btn-buy {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(207, 164, 114, 0.25);
    transition: var(--transition-smooth);
}

.btn-buy:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(207, 164, 114, 0.4);
}

/* Scroll Indicator (Mouse Wheel animation) */
.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    position: relative;
    display: inline-block;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.6s infinite ease-out;
}

.scroll-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 500;
}

/* Centered Hero Scroll Indicator & Matching Subtitle Color */
.hero-section .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    pointer-events: auto;
}

.hero-section .description {
    color: var(--color-text); /* Deep dark brown color matching the h1 */
}

@keyframes scroll-wheel-anim {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* Modal Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000; /* Set very high to stack above all page elements when active */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden; /* Hide completely from mouse/touch rendering tree when closed */
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.checkout-modal {
    max-width: 550px;
    width: 90%;
    position: relative;
    border-color: rgba(207, 164, 114, 0.3);
    animation: modal-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-enter {
    from { transform: scale(0.9) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.checkout-modal h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.checkout-modal p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.selected-summary {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

.summary-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-card-border);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.summary-details span {
    color: var(--color-text);
}

.summary-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-align: right;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.input-group input {
    background-color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(74, 51, 25, 0.25);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(74, 51, 25, 0.15);
}

.btn-submit-order {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-submit-order:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(207, 164, 114, 0.25);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .scroll-section {
        padding: 120px 5% 60px 5%;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 20px 5%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none; /* In a production app, we would add a burger menu, keeping it simple here */
    }
    
    .scroll-section {
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 100px;
    }
    
    .text-right {
        margin-left: 0;
        margin-right: auto;
    }
    
    .glass-card {
        padding: 30px;
        margin-top: 100px; /* Leave space for 3D model above text */
    }
    
    h1 {
        font-size: 2.6rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .highlights {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* ==========================================================================
   Gallery Page Styles
   ========================================================================== */

.gallery-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 210px 8% 80px 8%; /* Lowered from 160px to push NOSSOS ÓCULOS text further down */
    position: relative;
    z-index: 3;
}

.gallery-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.gallery-header h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(207, 164, 114, 0.4);
    box-shadow: 0 30px 60px rgba(207, 164, 114, 0.08);
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    z-index: 2;
}

.card-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    font-weight: 300;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.card-price {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-card-action {
    background-color: rgba(207, 164, 114, 0.08);
    border: 1px solid var(--color-card-border);
    color: var(--color-accent);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-card-action:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 4px 15px rgba(207, 164, 114, 0.2);
}

.gallery-footer {
    text-align: center;
    padding: 60px 0 40px 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   Product Detail 360 Page Styles
   ========================================================================== */

.product-detail-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 8% 80px 8%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}

#product-canvas-container {
    width: 100%;
    height: 550px;
    position: relative;
    border-radius: 24px;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.4);
}

/* Controls Hint */
.controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 8, 6, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 10;
}

.controls-hint i {
    color: var(--color-accent);
    font-size: 0.9rem;
    animation: rotate-hint 2s infinite ease-in-out;
}

@keyframes rotate-hint {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.product-detail-info {
    max-width: 550px;
    width: 100%;
}

.btn-back-gallery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.btn-back-gallery:hover {
    color: var(--color-accent);
    transform: translateX(-4px);
}

@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        padding-top: 140px;
        gap: 40px;
    }
    
    #product-canvas-container {
        height: 450px;
    }
    
    .gallery-header h1 {
        font-size: 3rem;
    }
}

/* ==========================================================================
   New Brand Logo & Section Styles
   ========================================================================== */

.header-logo {
    height: 340px;
    margin: -115px -40px;
    mix-blend-mode: multiply;
    transition: var(--transition-smooth);
    pointer-events: auto;
}

.header-logo:hover {
    transform: scale(1.04);
}

/* About Section Features */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    pointer-events: auto; /* Re-enable interaction inside section */
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feat-item i {
    font-size: 1.6rem;
    color: var(--color-accent);
    background: rgba(207, 164, 114, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(207, 164, 114, 0.15);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-item h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.feat-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.4;
}

/* Instagram Section mockup */
.social-section {
    justify-content: center;
    pointer-events: auto !important;
}

.instagram-card {
    max-width: 800px;
    width: 100%;
    text-align: center;
    border-color: rgba(207, 164, 114, 0.2);
}

.instagram-mockup {
    margin-top: 35px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    pointer-events: auto;
}

.insta-feed-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.6s ease;
}

.instagram-mockup:hover .insta-feed-img {
    transform: scale(1.02);
}

/* ==========================================================================
   Intro Splash Animation & Instagram Wrapper
   ========================================================================== */

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #d8b48c 0%, #caa174 60%, #b0875c 100%);
    z-index: 999;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}

#intro-logo-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

#intro-logo-symbol {
    position: absolute;
    height: 220px;
    width: auto;
    opacity: 0;
    transform: scale(0.6) rotate(-15deg);
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.0s ease;
    z-index: 2;
}

#intro-logo-full {
    position: absolute;
    height: 340px;
    width: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    z-index: 1;
}

.glow-flare {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #ffd700 25%, #cf9f54 60%, rgba(202, 161, 116, 0.8) 80%, rgba(255, 255, 255, 0) 100%);
    mix-blend-mode: screen;
    filter: blur(14px); /* Stable fixed blur to prevent expensive GPU filter recalculation frames */
    opacity: 0;
    transform: scale(0.1);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 50px #ffd700, 0 0 100px #dfba88;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; /* No filter animation to achieve smooth GPU rendering */
}

.logo-container {
    transform-origin: center center;
    transition: transform 1.6s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 1000;
}

/* Nav links start at opacity 0 only if page has intro active */
.has-intro .nav-links {
    opacity: 0;
}

/* Hide header logo during animation to handoff seamlessly */
.has-intro .header-logo {
    opacity: 0;
    pointer-events: none;
}

.header-logo {
    cursor: pointer !important; /* Make logo clickable to re-run the intro */
}

.instagram-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; /* Bring wrapper to top stack layer */
    z-index: 15; /* Sit above 3D canvas and palm overlays */
    pointer-events: auto !important;
    cursor: pointer !important;
}

.instagram-link-wrapper * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.instagram-link-wrapper:hover {
    transform: translateY(-4px) scale(1.01);
}

/* --- Background Palms Wrapper (Fixed to Viewport to Prevent Collapse) --- */
#bg-palms-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 2; /* Sits below content (z-index 3) but above 3D canvas (z-index 1) */
}

/* --- Large Palm Leaf Background Shadows (Inline SVGs) --- */
.bg-palm {
    position: absolute;
    width: 650px;
    height: 650px;
    pointer-events: none;
    filter: blur(8px); /* Much sharper, defined shadow edges */
    opacity: 0.95;
    mix-blend-mode: multiply; /* Fuses perfectly with the sandy background gradient */
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    will-change: transform; /* Hardware acceleration for mobile layer compositing */
}

.bg-palm path {
    fill: #1d0f06; /* Darker, richer chocolate brown for strong contrast */
    fill-opacity: 0.44; /* Perfect balance between transparency and definition */
}

.palm-top-right {
    top: 40px; /* Shifted down to be fully visible below header/logo */
    right: -150px;
}

.palm-mid-left {
    top: 32%; /* Shifted down from 25% */
    left: -250px;
}

.palm-mid-right {
    top: 52%; /* Shifted down from 45% */
    right: -250px;
}

.palm-bottom-left {
    top: 72%; /* Shifted down from 65% */
    left: -200px;
}

.palm-bottom-right {
    top: 88%; /* Shifted down from 85% */
    right: -180px;
}

/* ==========================================================================
   Responsive Mobile Navigation Hamburger Menu Styles
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    background-color: var(--color-text);
}

.mobile-menu-toggle.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    background-color: var(--color-text);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(202, 161, 116, 0.72); /* Translucent, premium sand background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden; /* Hide completely from mouse/touch rendering tree when closed */
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px; /* Discreet layout gap */
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.6rem; /* More elegant, discreet typography */
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.mobile-nav-overlay .buy-nav-btn {
    background-color: var(--color-accent) !important;
    color: var(--color-bg) !important;
    font-family: var(--font-sans) !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    padding: 12px 35px !important;
    border-radius: 30px !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(207, 164, 114, 0.35);
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.mobile-nav-overlay .buy-nav-btn:hover {
    background-color: var(--color-accent-hover) !important;
    transform: scale(1.05) !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Reveal on mobile screens */
    }
    .gallery-header h1 {
        font-size: 2.5rem !important; /* Scale down giant gallery heading on mobile */
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; /* Avoid overflow on thin screens */
    }
    .mobile-nav-overlay {
        background: rgba(202, 161, 116, 0.96) !important; /* Solid warm sand fallback for mobile speed */
        backdrop-filter: none !important; /* Disable heavy shader filters to avoid WebGL context loss */
        -webkit-backdrop-filter: none !important;
    }
    .glass-card {
        backdrop-filter: none !important; /* Disable heavy backdrop filters to avoid WebGL lag/crashes */
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.55) !important; /* Semi-opaque sand color fallback */
    }
    .bg-palm {
        width: 480px !important; /* Smaller size to scale proportionally on mobile screens */
        height: 480px !important;
        filter: blur(10px) !important; /* Beautiful soft blurred shadows */
        opacity: 0.85;
    }
    .palm-top-right {
        top: 20px !important;
        right: -320px !important;
        transform: rotate(-30deg) !important; /* Tilted to the center */
    }
    .palm-mid-left {
        top: 28%;
        left: -330px !important;
        transform: rotate(35deg) !important; /* Tilted to the center */
    }
    .palm-mid-right {
        top: 48%;
        right: -320px !important;
        transform: rotate(-25deg) !important; /* Tilted to the center */
    }
    .palm-bottom-left {
        top: 68%;
        left: -330px !important;
        transform: rotate(30deg) !important; /* Tilted to the center */
    }
    .palm-bottom-right {
        top: 86%;
        right: -320px !important;
        transform: rotate(-35deg) !important; /* Tilted to the center */
    }
}



