/* --- Core Reset & Mobile Touch Physics Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f7f4ef;        
    --text-primary: #111111;    /* High contrast text formatting */
    --text-muted: #4a473e;      /* Premium timber accent tone */
    --border-light: #dcd4be;    
    --bg-dark: #121211;         
    --text-light: #e9e5db;      
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-snappy: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a, button, img, .product-card, .thumb-nail, .qty-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Multi-View Architectural Switching Panels */
.page-view {
    display: none; 
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-view.active-view {
    display: block !important;
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-small {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 25px;
    font-weight: 600;
}

.view-title-editorial {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* --- Premium Navigation Header --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--bg-color);
}

/* --- Video Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 24px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(24, 23, 22, 0.45), rgba(24, 23, 22, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 45px;
    color: #ffffff;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    color: var(--text-primary);
    background-color: #ffffff;
    padding: 18px 40px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--bg-color);
    transform: translateY(-2px);
}

/* --- Brand Philosophy --- */
.philosophy-section {
    padding: 140px 0;
}

.philosophy-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 35px;
    color: var(--text-primary);
}

.philosophy-text {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
}

/* Lookbook Banner Drop */
.lookbook-banner {
    height: 60vh;
    background: linear-gradient(rgba(24, 23, 22, 0.3), rgba(24, 23, 22, 0.5)), 
                url('https://images.unsplash.com/photo-1608571423902-eed4a5ad8108?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lookbook-banner:hover {
    opacity: 0.95;
}

.lookbook-content span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.lookbook-content h3 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.lookbook-content p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    opacity: 0.95;
}

/* --- Collection Grid Matrix --- */
.collection-section {
    padding: 160px 0 140px 0; 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 75px 45px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    background-color: #edeae3;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: 15px;
    position: relative;
    cursor: zoom-in;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-gallery-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.thumb-nail {
    width: 65px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background-color: #edeae3;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.thumb-nail.active-thumb, .thumb-nail:hover {
    border-color: var(--text-primary);
    opacity: 0.8;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem; 
    font-weight: 500;   
    color: var(--text-primary);
}

.product-info .price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
    min-height: 52px;
}

.scent-pyramid {
    margin: 20px 0;
    padding: 18px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.scent-pyramid h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.note-row {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 4px;
    display: flex;
}

.note-label {
    font-weight: 600;
    width: 55px;
    flex-shrink: 0;
    color: var(--text-primary);
}

.note-value {
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1rem;
}

.product-specs-table {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 15px;
}

.spec-cell {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    flex: 1;
}

.spec-cell strong {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text-primary);
}

.spec-cell span {
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-order {
    flex: 1;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 16px 6px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-snappy), background-color 0.3s ease, color 0.3s ease;
}

.btn-buy {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.btn-buy:hover {
    background-color: #333333;
    border-color: #333333;
}

.btn-ig {
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-ig:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* --- Full-Screen Lightbox Zoom View --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 17, 0.96); 
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 2.5rem;
}

/* --- Interactive Cart Popup UI Drawer --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 23, 22, 0.6);
    backdrop-filter: blur(4px); 
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--bg-color);
    padding: 40px;
    width: 90%;
    max-width: 520px;
    position: relative;
    border: 1px solid var(--border-light);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-box h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-cart-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-light);
}

.cart-item-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    flex: 1;
    color: var(--text-primary);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--text-primary);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-snappy);
    color: var(--text-primary);
}

.cart-item-price {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    min-width: 60px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-total-bar {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    margin-bottom: 25px;
    padding-top: 5px;
    color: var(--text-primary);
}

.btn-submit-order {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-snappy);
}

/* --- Reviews View Panel --- */
.reviews-section {
    padding: 160px 0 120px 0; 
    background-color: #f2eee5; 
    text-align: center;
}

.reviews-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 45px;
    color: var(--text-primary);
}

.review-form-wrapper {
    max-width: 650px;
    margin: 0 auto 80px auto;
    background-color: var(--bg-color);
    padding: 40px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.review-form-wrapper h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.luxury-form input, .luxury-form textarea {
    width: 100%;
    padding: 14px;
    background-color: #fdfdfc;
    border: 1px solid var(--border-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.luxury-form input:focus, .luxury-form textarea:focus {
    border-color: var(--text-primary);
}

.btn-submit-review {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 15px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-light);
    animation: fadeInReview 0.5s ease forwards;
}

@keyframes fadeInReview {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-stars {
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.review-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.review-author {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Secure Order Dashboard Log Layout --- */
.admin-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-order-card {
    background-color: #fdfdfc;
    border: 1px solid var(--border-light);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.admin-order-details h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.admin-order-details p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-admin-print {
    background-color: #137333; 
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.btn-admin-print:hover {
    background-color: #0f5d29;
}

/* --- High-End PAID Invoice Document View --- */
.invoice-hidden-container {
    display: none; 
    width: 790px; 
    margin: 0 auto;
}

body.viewing-receipt .invoice-hidden-container {
    display: block !important;
}

body.viewing-receipt #storefront-app {
    display: none !important;
}

.invoice-wrapper {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 50px;
    font-family: var(--font-sans);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 30px;
    margin-bottom: 35px;
}

.invoice-meta h2 {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-align: right;
}

.invoice-meta p {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: right;
    color: #444444;
}

.payment-badge-paid {
    display: inline-block;
    background-color: #e6f4ea;
    color: #137333;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    margin-top: 5px;
}

.invoice-billing-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.invoice-billing-details h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888888;
    margin-bottom: 10px;
}

.invoice-billing-details p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.invoice-table th {
    background-color: #f9f9f8;
    border-bottom: 1px solid #1a1a1a;
    padding: 14px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.invoice-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
}

.invoice-summary-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.invoice-thankyou-note {
    max-width: 320px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
    padding-top: 10px;
}

.invoice-total-block {
    width: 280px;
    position: relative;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 8px 0;
    color: #444444;
}

.grand-total-row {
    border-top: 1px solid #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    padding-top: 12px;
    margin-top: 5px;
}

.flameies-stamp {
    position: absolute;
    right: 20px;
    top: 90px;
    width: 130px;
    height: 130px;
    border: 3px double #c92a2a; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg); 
    opacity: 0.85;
}

.stamp-inner {
    text-align: center;
    color: #c92a2a;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.stamp-date {
    display: block;
    font-size: 0.65rem;
    border-top: 1px solid #c92a2a;
    margin-top: 3px;
    padding-top: 3px;
}

.invoice-footer {
    text-align: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 25px;
    font-size: 0.8rem;
    color: #777777;
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 90px 0 45px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 45px;
    border-bottom: 1px solid #282826;
    padding-bottom: 60px;
    margin-bottom: 45px;
}

.footer-brand h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    letter-spacing: 0.2em;
    font-weight: 300;
    margin-bottom: 0;
    color: var(--text-light);
}

.footer-brand p {
    font-size: 0.85rem;
    color: #8c8981;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-details p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #bebbb3;
}

.footer-details a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #bebbb3;
    padding-bottom: 2px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #66645e;
    letter-spacing: 0.08em;
}

/* --- ON-PAGE LOCAL PRINT CANVAS BLUEPRINTS --- */
.invoice-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    overflow-y: auto;
    display: none; 
    padding: 20px;
}

.invoice-overlay-modal.active-modal {
    display: block !important;
}

.invoice-modal-content {
    max-width: 800px;
    margin: 0 auto;
}

.invoice-admin-bar {
    display: flex;
    justify-content: space-between;
    background-color: #f7f4ef;
    padding: 15px 25px;
    border: 1px solid #dcd4be;
    margin-bottom: 30px;
}

.btn-print-now {
    background-color: #137333;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.btn-print-close {
    background-color: #111111;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}

@media print {
    #storefront-app, .invoice-admin-bar {
        display: none !important;
    }
    body, html {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .invoice-overlay-modal {
        position: static !important;
        padding: 0 !important;
        display: block !important;
    }
    .invoice-wrapper {
        border: none !important;
        padding: 0 !important;
    }
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .navbar { padding: 25px 24px; }
    .nav-links { display: none; }
    .container { padding: 0 24px; }
    .philosophy-section { padding: 95px 0; }
    .collection-section { padding: 160px 0 90px 0; }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .product-card {
        padding-bottom: 40px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .product-card:last-child { border-bottom: none; }
    .reviews-section { padding: 80px 0; }
    .review-form-wrapper { padding: 25px 20px; margin-bottom: 50px; }
    .form-row { flex-direction: column; gap: 15px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 25px; }
    
    .product-specs-table {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 22px;
    }
    
    .spec-cell {
        flex-direction: row;
        justify-content: space-between;
        border-bottom: 1px dashed var(--border-light);
        padding-bottom: 6px;
    }
    
    .spec-cell strong { margin-bottom: 0; }
    .modal-box { padding: 30px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
    .lightbox-close { right: 20px; top: 20px; }
    .admin-order-card { flex-direction: column; text-align: center; }
    .btn-admin-print { width: 100%; }
}

