:root {
    --color-bg: #faf8f5;
    --color-primary: #a85532;
    --color-text-dark: #2d2a26;
    --color-text-light: #666666;
    --color-border: #e0d5c1;
    --color-accent-bg: #8c8160;
    --color-footer-bg: #f5f0e6;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, .brand-text, .footer-brand {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-weight: 500;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    height: 90px;
    background-color: var(--color-bg);
    position: relative;
    z-index: 100;
}

.header-left, .header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
}

.brand-text {
    font-size: 1.4rem;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 100%;
    z-index: 1100;
}

.logo-wrapper {
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    transition: color 0.3s;
    font-weight: 500;
}

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

/* Mega Menu */
.nav-dropdown {
    /* removed position: relative to allow full width based on header */
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-main-link {
    cursor: pointer;
}

.mega-menu {
    position: absolute;
    top: 100%; /* Just below the header */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-bg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    padding: 3rem 0 4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

/* Invisible hover bridge */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14rem; /* Gap directly under the logo */
    padding: 0 4rem;
}

.mega-column:first-child {
    justify-self: end;
}

.mega-column:last-child {
    justify-self: start;
}

.mega-column h3 {
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.mega-column h3 a {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-primary);
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
}

.mega-column-split {
    display: flex;
    gap: 3rem;
}

.mega-subgroup {
    margin-bottom: 1.5rem;
}

.mega-subgroup h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-subgroup h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.mega-subgroup h4 a:hover {
    color: var(--color-primary);
}

.mega-subgroup > a {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.mega-subgroup > a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-link {
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    height: calc(100vh - 90px);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(250, 248, 245, 0.3), rgba(250, 248, 245, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding-top: 40px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: var(--color-primary);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(2px);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* General Section */
section {
    padding: var(--spacing-xl) 4rem;
}

.section-header.center {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.subtitle-2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    display: block;
    margin-top: 1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    padding-bottom: 1rem;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1/1.1;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: #f0f0f0;
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.product-overlay span {
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card:hover .product-img-wrapper {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

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

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-overlay span {
    transform: translateY(0);
}

.product-title {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Page Header & Breadcrumbs */
.page-header {
    text-align: center;
    padding: 2rem 4rem 1rem;
    background-color: var(--color-bg);
}

.breadcrumbs {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

/* Category Layout */
.category-section {
    padding: 3rem 4rem;
    background-color: var(--color-bg);
    text-align: center;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

.subcategory-section {
    margin-bottom: 4rem;
}

.subcategory-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-style: normal;
}

/* Two Column Layout */
.container.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.container.reverse {
    grid-template-columns: 1fr 1.2fr; /* Image slightly smaller, text larger */
}

/* Artisanat Section */
.artisanat-section {
    background-color: var(--color-bg);
}

.artisanat-section h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.text-blocks p {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    margin: 2rem 0;
    line-height: 1.8;
}

.text-blocks hr {
    border: none;
    border-top: 1px solid var(--color-border);
    width: 60px;
}

.artisanat-img-col {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.img-bg-shape {
    position: absolute;
    top: 3rem;
    left: 4rem;
    right: -2rem;
    bottom: -2rem;
    background-color: var(--color-accent-bg);
    border-radius: 0 160px 0 160px;
    z-index: 0;
    transition: transform 0.2s ease-out;
}

.rounded-img-arch {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 0 160px 0 160px;
    position: relative;
    z-index: 1;
    display: block;
    transition: transform 0.2s ease-out;
}

/* Atelier Section */
.atelier-section {
    background-color: #fff;
    padding-bottom: 8rem;
}

.rounded-img-full {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    transition: transform 0.2s ease-out;
}

.relative {
    position: relative;
    overflow: visible;
}

.badge-atelier {
    position: absolute;
    bottom: -40px;
    right: -40px;
    left: auto;
    width: 140px;
    height: 140px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-serif);
    color: #3b5c56;
    font-size: 1.3rem;
    border: 1px solid var(--color-border);
    z-index: 10;
    font-style: normal;
    transition: transform 0.2s ease-out;
}

.atelier-text-col {
    padding-left: 4rem;
}

.atelier-text-col h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.atelier-text-col > p {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.features-wrapper {
    position: relative;
    padding: 3rem;
}

.features-decorator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.features-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.feature-text h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    padding: 6rem 4rem 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer-col h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.brand-col .footer-logo-wrapper {
    margin-bottom: 1rem;
}

.brand-col .footer-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.brand-col .footer-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 1rem;
}

.brand-col .footer-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links-col a {
    color: var(--color-text-light);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.links-col a:hover {
    color: var(--color-primary);
}

.newsletter-col p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.newsletter-form input::placeholder {
    color: #a0a0a0;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.payment-icons {
    color: var(--color-text-light);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 1.5rem 2rem;
    }
    section {
        padding: var(--spacing-lg) 2rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .container.two-col, .container.reverse {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .atelier-text-col {
        padding-left: 0;
    }
    .badge-atelier {
        bottom: -20px;
        right: -20px;
        left: auto;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-left, .header-right {
        display: none;
    }
    .header-center {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-header h2, .artisanat-section h2, .atelier-text-col h2 {
        font-size: 2.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .brand-col .footer-desc {
        margin: 0 auto 2rem;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }
.delay-4 { transition-delay: 0.4s; }

body.loaded .header {
    animation: fadeInDown 0.8s ease-out forwards;
}

.header, .hero-content h1, .hero-content .btn {
    opacity: 0;
}

body.loaded .hero-content h1 {
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

body.loaded .hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Enhanced Hover Effects */
.btn-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.icon-link {
    transition: transform 0.3s ease, color 0.3s;
}

.icon-link:hover {
    transform: translateY(-3px);
}

.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
