@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --primary-dark: #111111;
    --primary-gold: #c5a059;
    --bg-cream: #f4f1ea;
    --text-grey: #5c5c5c;
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1); 
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

html { 
    scroll-behavior: smooth; 
    scrollbar-width: thin; 
    scrollbar-color: var(--primary-gold) var(--bg-cream); 
}

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-cream); 
    color: var(--primary-dark); 
    line-height: 1.7; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

/* --- UTILITIES --- */
.pt-header { padding-top: 12rem; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.full-height { min-height: 100vh; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background-color: var(--primary-gold); border-radius: 10px; }
::selection { background: var(--primary-dark); color: var(--primary-gold); }

/* --- EFFECTS --- */
.noise-overlay { 
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; 
    pointer-events: none; z-index: 9000; opacity: 0.05; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noise-grain 0.2s infinite steps(10);
}

@keyframes noise-grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(7%, -25%); }
    50% { transform: translate(-15%, 10%); }
    70% { transform: translate(0%, 15%); }
    90% { transform: translate(-10%, 10%); }
}

/* --- NEW ANIMATED PAGE TRANSITION --- */
.page-transition {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background-color: var(--primary-dark);
    z-index: 999999;
    pointer-events: none;
    
    /* Setăm originea sus, pentru ca la încărcare să se "strângă" în sus */
    transform-origin: top;
    transform: scaleY(1);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1);
}

/* Stadiul 1: Pagina s-a încărcat -> Cortina se ridică și dezvăluie site-ul */
.page-transition.is-loaded {
    transform: scaleY(0);
}

/* Stadiul 2: Ai dat click pe un link -> Cortina se ridică de jos pentru a acoperi site-ul */
.page-transition.is-leaving {
    transform-origin: bottom;
    transform: scaleY(1);
    pointer-events: all;
}

.reveal {
    opacity: 0; transform: translateY(50px);
    transition: all 1.2s var(--ease-luxury);
    will-change: transform, opacity;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.parallax-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    z-index: -1; overflow: hidden;
}
.parallax-img {
    width: 100%; height: 100%; object-fit: cover; will-change: transform;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; }
a { text-decoration: none; color: inherit; transition: color 0.4s var(--ease-luxury); }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; outline: none; background: none; font-family: inherit; }

.hero-title { font-size: 5rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; z-index: 2; text-shadow: 0 4px 20px rgba(0,0,0,0.3); line-height: 1.1; padding: 0 1rem; }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 3rem; letter-spacing: 0.2em; text-transform: uppercase; z-index: 2; text-shadow: 0 4px 10px rgba(0,0,0,0.3); padding: 0 1rem; }
.page-title { font-size: 4rem; margin-bottom: 1rem; line-height: 1.1; }

/* --- HEADER & NAV --- */
header { 
    position: fixed; top: 0; width: 100%; padding: 2rem 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; transition: all 0.6s var(--ease-luxury); 
    pointer-events: none; color: var(--primary-dark); 
}
header.hidden { transform: translateY(-100%); }
header.scrolled { 
    padding: 1.2rem 5%; 
    background-color: rgba(244, 241, 234, 0.95); 
    backdrop-filter: blur(10px); 
    color: var(--primary-dark) !important; 
    box-shadow: 0 5px 30px rgba(0,0,0,0.03); 
}
header .logo, header nav, header .icons, header .hamburger { pointer-events: auto; }

/* Header Colors */
header .btn-magnetic { color: var(--primary-dark); border-color: transparent; }
header .btn-magnetic:hover { color: #ffffff; background: var(--primary-dark); }
header .logo img { filter: none; } 

/* Dark Mode Header */
body.dark-mode header:not(.scrolled) { color: #ffffff; }
body.dark-mode header:not(.scrolled) .btn-magnetic { color: #ffffff; border-color: transparent; }
body.dark-mode header:not(.scrolled) .btn-magnetic:hover { background: rgba(255,255,255,0.2); color: #ffffff; }
body.dark-mode header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }

/* Logo & Buttons */
.logo { display: flex; align-items: center; z-index: 1002; transition: transform 0.4s var(--ease-luxury); }
.logo img { height: 80px; width: auto; object-fit: contain; margin: 0; display: block; transition: filter 0.4s ease; }
.logo.btn-magnetic { padding: 0.5rem 1rem !important; height: auto; display: flex; align-items: center; justify-content: center; border: none; }
.logo.btn-magnetic:hover { background: transparent !important; transform: scale(1.05); }

.btn-magnetic {
    display: inline-block; padding: 1rem 2.5rem; 
    border: 1px solid var(--primary-dark); color: var(--primary-dark); 
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.2em; 
    transition: all 0.5s var(--ease-luxury); position: relative; overflow: hidden; 
    background: transparent; border-radius: 50px; z-index: 1; white-space: nowrap;
}
.btn-magnetic:hover { color: var(--white); background: var(--primary-dark); border-color: var(--primary-dark); transform: scale(1.05); }
.hero .btn-magnetic { border-color: var(--white); color: var(--white); }
.hero .btn-magnetic:hover { background-color: var(--white); color: var(--primary-dark) !important; border-color: var(--white); transform: scale(1.05); }

/* Nav */
nav ul { display: flex; gap: 2rem; }
nav a { font-size: 0.75rem; letter-spacing: 0.2em; position: relative; }
nav a::after { content:''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 1px; background: currentColor; transition: width 0.4s var(--ease-luxury); }
nav a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; width: 30px; }
.hamburger span { display: block; width: 100%; height: 2px; background-color: currentColor; transition: 0.4s; }

.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--primary-dark); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem; z-index: 1001; clip-path: circle(0% at 100% 0); transition: clip-path 0.8s var(--ease-luxury); }
.mobile-menu.active { clip-path: circle(150% at 100% 0); }
.mobile-menu a { font-family: var(--font-heading); font-size: 2.5rem; color: var(--white); opacity: 0; transform: translateY(30px); transition: 0.5s var(--ease-luxury); }
.mobile-menu.active a { opacity: 1; transform: translateY(0); }

body.menu-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background-color: var(--white); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background-color: var(--white); }
body.menu-open .logo { color: var(--white); }
body.menu-open .logo img { filter: brightness(0) invert(1); }

/* --- PRODUCTS GRID --- */
.products { padding: 4rem 5% 8rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4rem; row-gap: 6rem; }
.product-card { text-align: center; perspective: 1000px; cursor: pointer; }
.product-image-wrapper { height: 480px; overflow: hidden; position: relative; margin-bottom: 2rem; border-radius: 4px; }
.product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease-luxury); }
.product-card:hover .product-image-wrapper img { transform: scale(1.15); }
.quick-add { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.15em; transform: translateY(100%); transition: transform 0.6s var(--ease-luxury); color: var(--primary-dark); }
.product-card:hover .quick-add { transform: translateY(0); }
.price { font-family: var(--font-heading); font-size: 1.4rem; margin-top: 0.5rem; color: var(--text-grey); transition: color 0.3s; }
.product-card:hover .price { color: var(--primary-dark); }

/* --- PRODUCT DETAIL (LAYOUT) --- */
.product-detail-container { max-width: 1400px; margin: 0 auto; padding-left: 5%; padding-right: 5%; padding-bottom: 5rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.pd-info-col { padding-top: 2rem; }
.pd-price { font-size: 1.8rem; font-family: var(--font-heading); color: var(--primary-dark); margin-bottom: 2rem; }
.pd-description { color: var(--text-grey); margin-bottom: 3rem; font-size: 0.95rem; line-height: 1.8; }
.pd-meta { margin-top: 3rem; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 2rem; }
.pd-meta p { font-size: 0.8rem; margin-bottom: 0.5rem; color: var(--text-grey); }
.pd-meta span { color: var(--primary-dark); font-weight: 500; margin-right: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- PRODUCT GALLERY & ZOOM --- */
.pd-image-col {
    position: relative;
}

.main-image-container {
    width: 100%;
    height: 600px;
    overflow: hidden; /* Ascunde ce iese din cadru la zoom */
    border-radius: 2px;
    margin-bottom: 1rem;
    cursor: crosshair; /* Arată că poți da zoom */
    position: relative;
    background-color: #f0ebe5;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out; /* Tranziție rapidă pentru zoom fluid */
    transform-origin: center center;
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.6;
    transition: all 0.3s var(--ease-luxury);
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--primary-dark);
}

/* --- CART --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 5000; opacity: 0; visibility: hidden; transition: 0.5s; backdrop-filter: blur(8px); }
.cart-drawer { position: fixed; top: 0; right: 0; width: 450px; height: 100%; background: var(--bg-cream); z-index: 5001; transform: translateX(100%); transition: transform 0.8s var(--ease-luxury); padding: 4rem 3rem; display: flex; flex-direction: column; color: var(--primary-dark); box-shadow: -20px 0 50px rgba(0,0,0,0.1); }
.cart-open .cart-overlay { opacity: 1; visibility: visible; }
.cart-open .cart-drawer { transform: translateX(0); }
.cart-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: center; animation: fadeUp 0.6s var(--ease-luxury); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; }

/* --- CURSOR --- */
.cursor-dot { position: fixed; width: 6px; height: 6px; background: #ffffff; border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor-outline { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); mix-blend-mode: difference; transition: width 0.3s var(--ease-luxury), height 0.3s var(--ease-luxury); }
body.hovering .cursor-outline { width: 70px; height: 70px; background: rgba(255, 255, 255, 0.1); border-color: transparent; }

/* --- OTHERS --- */
.story-hero { height: 60vh; background: var(--primary-dark); display: flex; align-items: center; justify-content: center; text-align: center; color: white; margin-bottom: 5rem; width: 100%; }
.story-container { max-width: 1000px; margin: 0 auto; padding: 0 5% 5rem; }
.story-block { display: flex; align-items: center; gap: 6rem; margin-bottom: 10rem; }
.story-block:nth-child(even) { flex-direction: row-reverse; }
.story-img { width: 50%; height: 500px; object-fit: cover; border-radius: 2px; }
.story-text { width: 50%; }
.story-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.quote-section { text-align: center; padding: 4rem 10%; margin-bottom: 8rem; border-top: 1px solid rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.1); }
.quote-text { font-family: var(--font-heading); font-size: 2.2rem; font-style: italic; color: var(--primary-dark); line-height: 1.3; }

.about-section { display: flex; flex-wrap: wrap; min-height: 80vh; }
.about-image { flex: 1; min-width: 500px; position: relative; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s ease; }
.about-image:hover img { transform: scale(1.05); }
.about-content { flex: 1; min-width: 500px; padding: 8rem 6%; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.about-content h2 { font-size: 3rem; margin-bottom: 2rem; line-height: 1.1; }
.about-content p { margin-bottom: 2rem; color: var(--text-grey); font-size: 1.05rem; max-width: 500px; }

.contact-hero { padding: 12rem 5% 4rem; text-align: center; }
.contact-container { max-width: 1200px; margin: 0 auto; padding: 0 5% 8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-grey); margin-bottom: 3rem; line-height: 1.8; }
.detail-item { display: flex; flex-direction: column; margin-bottom: 2rem; }
.detail-item span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-grey); margin-bottom: 0.5rem; }
.detail-item a { font-family: var(--font-heading); font-size: 1.5rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-form .form-group { margin-bottom: 2rem; }
.contact-form label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; color: var(--text-grey); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 1px solid rgba(0,0,0,0.1); font-family: var(--font-body); font-size: 1rem; color: var(--primary-dark); transition: border-color 0.3s; resize: none; border-radius: 0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--primary-dark); }
.link-underline { position: relative; display: inline-block; }
.link-underline::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px; background: currentColor; transition: width 0.3s var(--ease-luxury); }
.link-underline:hover::after { width: 100%; }

footer { background-color: var(--primary-dark); color: var(--bg-cream); padding: 6rem 5% 3rem; text-align: center; }
.footer-logo { font-size: 2.5rem; margin-bottom: 3rem; display: block; letter-spacing: 0.1em; }
.footer-logo img { height: 100px; width: auto; margin: 0 auto 2rem; filter: brightness(0) invert(1); }
.footer-links { display: flex; justify-content: center; gap: 4rem; margin-bottom: 4rem; }
.footer-links a { opacity: 0.5; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a:hover { opacity: 1; }
.copyright { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; font-size: 0.7rem; opacity: 0.3; }

.error-page { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.error-img { margin-bottom: 2rem; border-radius: 50%; width: 200px; height: 200px; object-fit: cover; }
.error-title { font-size: 8rem; line-height: 1; margin-bottom: 1rem; }

@media (max-width: 768px) {
    header { padding: 1.5rem 5%; }
    .logo img { height: 50px; }
    nav { display: none; }
    .hamburger { display: flex; }
    .hero-title { font-size: 3rem; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 0.8rem; letter-spacing: 0.15em; margin-bottom: 2rem; }
    .page-title { font-size: 3rem; }
    .product-grid { grid-template-columns: 1fr; gap: 3rem; }
    .cart-drawer { width: 100%; padding: 2rem; }
    .about-image, .about-content { min-width: 100%; }
    .about-image { height: 350px; }
    .about-content { padding: 4rem 5%; }
    .about-content h2 { font-size: 2rem; }
    .story-block, .story-block:nth-child(even) { flex-direction: column; gap: 2rem; margin-bottom: 6rem; }
    .story-img, .story-text { width: 100%; }
    .story-img { height: 350px; }
    .quote-text { font-size: 1.5rem; }
    .contact-container { grid-template-columns: 1fr; gap: 4rem; padding-bottom: 4rem; }
    .footer-links { flex-direction: column; gap: 1.5rem; }
    .cursor-dot, .cursor-outline { display: none; }
    
    /* Mobile Product Adjustments */
    .product-detail-grid { grid-template-columns: 1fr; }
    .main-image-container { height: 400px; }
}