:root {
    --primary: #A29A8C;
    --primary-dark: #8c8374;
    --accent: #d4cfc5;
    --dark: #1A1816;
    --light: #FCFBF8;
    --white: #FFFFFF;
    --text-main: #2C2A28;
    --text-muted: #6B6661;
    --glass-bg: rgba(252, 251, 248, 0.85);
    --glass-border: rgba(162, 154, 140, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(26, 24, 22, 0.05);
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 { font-family: var(--font-heading); font-size: 4.8rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--dark); }
h2 { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }
h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark); }
p { margin-bottom: 1rem; font-size: 1.125rem; font-weight: 400; color: var(--text-main); }

/* Buttons with cinematic glow */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 10px 20px rgba(162, 154, 140, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(162, 154, 140, 0.4);
    background-color: var(--primary-dark);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(162, 154, 140, 0.1);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(162, 154, 140, 0.3);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.btn-link:hover::after {
    width: 100%;
}

.btn-link:hover {
    gap: 0.8rem;
    color: var(--primary-dark);
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    padding: 0.8rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 360px; /* Adjusted to exact requested size */
    height: 120px; 
    object-fit: contain;
    object-position: left center; /* Align exactly to the left edge */
    margin: -30px 0; /* Adjusted margin for new height */
    transition: var(--transition);`n
    
}

.navbar.scrolled .logo img {
    width: 300px; /* Shrink on scroll */
    height: 90px;
    margin: -20px 0;`n    mix-blend-mode: multiply;`n    filter: invert(1);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0.9;
}

.nav-links a:not(.btn-primary):hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section with Cinematic Depth */
.hero {
    padding-top: 180px;
    padding-bottom: 40px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(162, 154, 140, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

/* 3D Background Animation */


.float-y {
    position: absolute;
    top: 0;
    will-change: transform, opacity;
    opacity: 0;
    transform-style: preserve-3d;
}
.sway-x {
    will-change: transform;
    transform-style: preserve-3d;
}

.floating-item {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Specific Product Shapes for 3D Background - Enhanced Pro Version */

/* 1. Bobines (Paper Rolls) */
.item-roll {
    width: 45px; height: 100px;
    background: linear-gradient(90deg, #e6e6e6 0%, #ffffff 30%, #f9f9f9 70%, #cccccc 100%);
    border-radius: 8px;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.05), 0 10px 20px rgba(0,0,0,0.1);
}
.item-roll::after {
    content: '';
    position: absolute;
    top: -12px; left: 0;
    width: 45px; height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(162, 154, 140, 0.3);
    box-sizing: border-box;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}
.item-roll::before {
    content: '';
    position: absolute;
    bottom: -12px; left: 0;
    width: 45px; height: 24px;
    border-radius: 50%;
    background: #d9d9d9;
    border: 1px solid rgba(162, 154, 140, 0.3);
    box-sizing: border-box;
}

/* 2. Ramettes Photocopie (Reams) */
.item-ream {
    width: 70px; height: 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid rgba(162,154,140, 0.4);
    border-radius: 3px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.item-ream::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 35%;
    background: var(--primary);
    opacity: 0.85;
}
.item-ream::after {
    content: 'A4';
    position: absolute;
    bottom: 8%; right: 8%;
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
}

/* 3. Enveloppes */
.item-envelope {
    width: 100px; height: 55px;
    border-radius: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.item-envelope::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-top: 1px solid rgba(162, 154, 140, 0.3);
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    background: linear-gradient(180deg, rgba(162,154,140,0.08) 0%, transparent 100%);
}

/* 4. Registres (Record Books) */
.item-book {
    width: 70px; height: 100px;
    background: linear-gradient(90deg, #2a2a2a 0%, #444444 100%);
    border-radius: 0 4px 4px 0;
    border-left: 12px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
}
.item-book::after {
    content: '';
    position: absolute;
    top: 15px; right: 10px;
    width: 30px; height: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 5. Carnets Sténo (Spiral Notebooks) */
.item-steno {
    width: 60px; height: 95px;
    background: #ffffff;
    border-radius: 2px 6px 6px 2px;
    border-left: 8px dashed rgba(162, 154, 140, 0.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-image: repeating-linear-gradient(180deg, transparent, transparent 18px, rgba(162, 154, 140, 0.1) 18px, rgba(162, 154, 140, 0.1) 19px);
}

/* 6. Carnets NCR (Carbonless Copy) */
.item-ncr {
    width: 70px; height: 100px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 
        1px 1px 0 1px rgba(0,0,0,0.05),
        4px 4px 0 0 #ffebb5, /* Yellow sheet */
        4px 4px 0 1px rgba(0,0,0,0.05),
        8px 8px 0 0 #ffd6d6, /* Pink sheet */
        8px 8px 0 1px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.1);
}

/* Modular Pro Keyframes */
@keyframes floatY {
    0% { transform: translateY(120vh); opacity: 0; }
    10% { opacity: var(--o); }
    90% { opacity: var(--o); }
    100% { transform: translateY(-30vh); opacity: 0; }
}

@keyframes swayX {
    0% { transform: translateX(calc(-1 * var(--sway))); }
    100% { transform: translateX(var(--sway)); }
}

@keyframes spin3D {
    0% { transform: scale(var(--s)) rotateX(var(--rx-start)) rotateY(var(--ry-start)) rotateZ(var(--rz-start)); }
    100% { transform: scale(var(--s)) rotateX(var(--rx-end)) rotateY(var(--ry-end)) rotateZ(var(--rz-end)); }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1.2;
}

.hero-content p { color: var(--white); font-weight: 300; opacity: 0.9; text-shadow: 0 2px 10px rgba(0,0,0,0.4); 
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

/* Premium 3D Video Container */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(162, 154, 140, 0.15);
    border: 12px solid var(--white);
    background: var(--white);
    transform: scale(0.96);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(162, 154, 140, 0.3);
}

.hero-3d-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--white);
}

.video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: linear-gradient(135deg, var(--white), rgba(162, 154, 140, 0.15));
    color: var(--primary);
}


/* Catalog Section with 3D Hover Cards */
.catalog {
    padding: 40px 0;
    background-color: var(--light);
    position: relative;
    border-top: 1px solid rgba(162, 154, 140, 0.1);
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.section-header h2 { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Premium Clean Hover Cards - Stacked Paper Effect */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    /* Stacked paper shadow effect representing a stationery company */
    box-shadow: 
        0 4px 0 -1px #f4f3f0,
        0 4px 10px -1px rgba(162, 154, 140, 0.1),
        0 8px 0 -2px #e8e6e1,
        0 8px 15px -2px rgba(162, 154, 140, 0.1);
    border: 1px solid rgba(162, 154, 140, 0.2);
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-15px);
    /* Papers fan out dynamically on hover */
    box-shadow: 
        0 15px 0 -2px #f4f3f0,
        0 15px 25px -2px rgba(162, 154, 140, 0.15),
        0 30px 0 -4px #e8e6e1,
        0 30px 40px -4px rgba(162, 154, 140, 0.2);
    z-index: 10;
}

.product-icon-wrapper {
    height: 240px;
    background: radial-gradient(circle at center, #ffffff 0%, #faf9f7 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Creative angled cut mimicking a file folder */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-img {
    height: 100%;
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    filter: none;
}

.product-card:hover .product-icon-wrapper {
    background: radial-gradient(circle at center, #ffffff 0%, #f4f2ec 100%);
}

.product-card:hover .product-img {
    transform: scale(1.05);
    filter: none;
}

.product-info {
    padding: 1.5rem 1rem 1rem;
    background: var(--white);
    position: relative;
    margin-top: -15px; /* Pull up to overlap the angled image cut */
    z-index: 2;
    text-align: center;
}

.product-card:hover .btn-link i {
    transform: translateX(10px);
}

.product-info h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--dark); }

.product-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* About Section */
.about { 
    padding: 40px 0; 
    background-color: var(--primary); 
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about h2 { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }
.about p { color: var(--white); }

.about-container { display: flex; align-items: center; gap: 6rem; position: relative; z-index: 1; }
.about-text { flex: 1; }
.about-list { list-style: none; margin-top: 2.5rem; }
.about-list li { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; font-weight: 500; font-size: 1.1rem; color: var(--white); }
.about-list i { color: var(--white); }

.about-image { flex: 1; }
.about-img-wrapper { 
    width: 100%; 
    height: 500px; 
    border-radius: 30px; 
    background-size: cover; 
    background-position: center; 
    box-shadow: 0 15px 45px rgba(162, 154, 140, 0.15); 
    transform: scale(0.96);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}
.about-img-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(162, 154, 140, 0.3); 
}

/* Features */
.features {
    padding: 40px 0;
    background-color: var(--light);
    border-top: 1px solid rgba(162, 154, 140, 0.1);
}

.features h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark); }

.features-grid {
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(162, 154, 140, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(162, 154, 140, 0.2);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(162, 154, 140, 0.2);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    color: var(--white);
    background: var(--primary);
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contact/Devis Section */
.contact-section { 
    padding: 40px 0; 
    background-color: var(--light);
    border-top: 1px solid rgba(162, 154, 140, 0.1);
}

.contact-container { 
    display: flex; 
    gap: 0; 
    background: var(--white); 
    border-radius: 30px; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(162, 154, 140, 0.15); 
    border: 1px solid rgba(162, 154, 140, 0.2);
}

.contact-info-panel { flex: 1; padding: 3rem; 
    background-color: var(--primary);
    position: relative;
    color: var(--white); 
}

.contact-info-panel h2 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; margin-bottom: 1rem; color: var(--dark); }
.contact-info-panel p { color: var(--white); }
.contact-info-panel h4 { color: var(--white); }

.info-items { margin-top: 4rem; }
.info-item { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; }
.info-item i { width: 24px; height: 24px; color: var(--white); }
.info-item h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }

.contact-form-panel { flex: 1.2; padding: 5rem; background-color: var(--light); }
.form-group { margin-bottom: 2rem; position: relative; }
.form-row { display: flex; gap: 2rem; }
.form-row .form-group { flex: 1; }

label { 
    display: block; 
    margin-bottom: 0.8rem; 
    font-weight: 600; 
    color: var(--primary); 
    font-size: 0.95rem;
}

input, select, textarea { 
    width: 100%; 
    padding: 1.2rem; 
    border: 2px solid rgba(162, 154, 140, 0.3); 
    background: var(--white);
    border-radius: 12px; 
    font-family: inherit; 
    font-size: 1rem; 
    color: var(--text-main);
    transition: var(--transition); 
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(162, 154, 140, 0.1); 
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 6rem 0 2rem;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    width: 220px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p { color: var(--white); }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    text-decoration: none;
}

.social-links a:hover {
    color: var(--white);
}

.footer-links h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.footer-links p {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container, .contact-container { flex-direction: column; gap: 3rem; text-align: center; }
    .hero-image, .about-image { width: 100%; perspective: none; }
    .about-list li { justify-content: center; }
    .floating-products { height: 400px; }
    .contact-info-panel, .contact-form-panel { padding: 3rem; }
    .form-row { flex-direction: column; gap: 0; }
    h1 { font-family: var(--font-heading); font-size: 4.8rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--dark); }
}

@media (max-width: 768px) {`n    h1 { font-size: 3.5rem; }`n    h2 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; color: var(--primary); }
    .hero { padding-top: 150px; text-align: center; }
    .hero-actions { flex-direction: column; justify-content: center; width: 100%; }
    .hero-actions a { width: 100%; text-align: center; }
    .contact-info-panel, .contact-form-panel { padding: 2rem; }
    .logo img { width: 280px; height: 80px; margin: -15px 0; }
    .navbar.scrolled .logo img { width: 240px; height: 70px; }
    .footer-container { gap: 2rem; text-align: center; justify-content: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 480px) {`n    h1 { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr; }`n    .section-header h2 { font-size: 2rem; }
}

/* Product Detail Page Cinematic Upgrades */
.product-detail-hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: var(--white);
}

.product-detail-image {
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(162, 154, 140, 0.15);
    transform: scale(0.96);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(162, 154, 140, 0.2);
}

.product-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(162, 154, 140, 0.25);
}

.tech-specs h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark); }











.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 0;
}
#hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    z-index: -1;
}





.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); z-index: 0; }
#hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; background-color: #000; z-index: -1; }

/* Product Image Zoom Lightbox overlay */
#mainProductImage {
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#mainProductImage:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(27, 42, 71, 0.15);
}

/* Lightbox Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(27, 42, 71, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-modal.active {
    opacity: 1;
}

/* Close button styling */
.zoom-close-btn {
    position: absolute;
    top: 24px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10001;
    user-select: none;
    line-height: 1;
}

.zoom-close-btn:hover {
    color: #d0b084; /* Gold accent */
    transform: scale(1.1);
}

/* Controls panel for zooming */
.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    background: rgba(27, 42, 71, 0.75);
    border: 1px solid rgba(208, 176, 132, 0.3);
    padding: 12px 24px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.zoom-controls button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-controls button svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: stroke 0.3s ease;
}

.zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.zoom-controls button:hover svg {
    stroke: #d0b084; /* Gold accent */
}

/* Content Wrapper (allows drag/pan container) */
.zoom-modal-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
}

.zoom-modal-content-wrapper:active {
    cursor: grabbing;
}

/* Lightbox Image */
.zoom-modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    user-select: none;
    pointer-events: none; /* Avoid native image drag */
    transition: transform 0.15s ease-out, opacity 0.15s ease; /* Smooth scaling & fade transitions */
    transform-origin: center center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Navigation buttons (prev/next) */
.zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 42, 71, 0.6);
    border: 1px solid rgba(208, 176, 132, 0.3);
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: none; /* Toggled via JS if multiple images exist */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.zoom-prev-btn {
    left: 30px;
}

.zoom-next-btn {
    right: 30px;
}

.zoom-nav-btn:hover {
    background: rgba(27, 42, 71, 0.85);
    border-color: #d0b084;
}

.zoom-nav-btn:hover svg {
    stroke: #d0b084; /* Gold accent */
    transform: scale(1.1);
}

.zoom-nav-btn svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    transition: all 0.3s ease;
}

/* Responsive navigation button adjustments */
@media (max-width: 768px) {
    .zoom-nav-btn {
        width: 44px;
        height: 44px;
    }
    .zoom-prev-btn {
        left: 15px;
    }
    .zoom-next-btn {
        right: 15px;
    }
    .zoom-nav-btn svg {
        width: 22px;
        height: 22px;
    }
}
