:root {
    --color-bg: #faf8f5;
    --color-primary: #d1c8b8; /* Neutral color to prevent orange flashbang */
    --color-primary-rgb: 209, 200, 184;
    --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;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    touch-action: manipulation;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* Theme Skeleton Loader */
html:not(.theme-loaded) [data-edit-id],
html:not(.theme-loaded) [data-edit-bg] {
    color: transparent !important;
    background-image: none !important;
    background-color: var(--color-bg) !important;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

html:not(.theme-loaded) img[data-edit-id] {
    opacity: 0 !important;
}

html:not(.theme-loaded) [data-edit-id]::after,
html:not(.theme-loaded) [data-edit-bg]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg) 50%, var(--color-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite linear;
    border-radius: inherit;
    z-index: 10;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

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;
    position: relative; /* Fix for absolute children */
}

.global-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ginkgo-bg-decoration {
    width: 250px;
    height: 250px;
    position: absolute;
    background-color: var(--color-primary);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.ginkgo-bg-1 {
    top: 15%;
    left: -500px;
    width: 1500px;
    height: 1500px;
    -webkit-mask-image: url('assets/ginkgo-bg-1.webp');
    mask-image: url('assets/ginkgo-bg-1.webp');
    transform: rotate(15deg);
}

.ginkgo-bg-2 {
    top: 45%;
    right: -600px;
    width: 1800px;
    height: 1800px;
    -webkit-mask-image: url('assets/ginkgo-bg-2.webp');
    mask-image: url('assets/ginkgo-bg-2.webp');
    transform: rotate(-15deg);
}

.ginkgo-bg-3 {
    top: 75%;
    left: -500px;
    width: 1600px;
    height: 1600px;
    -webkit-mask-image: url('assets/ginkgo-bg-3.webp');
    mask-image: url('assets/ginkgo-bg-3.webp');
    transform: rotate(25deg);
}

/* Ensure section content sits above the absolute backgrounds */
section > * {
    position: relative;
    z-index: 1;
}

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: sticky;
    top: 0;
    z-index: 1000;
}

.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;
}

.mobile-brand {
    display: none;
}

.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;
}

.mega-menu-all-link {
    display: none;
}

/* 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);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
}

.mobile-menu-close {
    display: none;
}

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

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 85% 70% at 15% 85%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 40%, rgba(255, 255, 255, 0.25) 75%, rgba(255, 255, 255, 0) 100%),
                linear-gradient(rgba(250, 248, 245, 0.15), rgba(250, 248, 245, 0.3));
    z-index: 2;
    pointer-events: none;
}

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

.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 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 15px; /* Prevent hover cutoff */
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    justify-content: flex-start;
}

.product-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-grid .product-card {
    flex: 0 0 calc(25% - 1.5rem);
    scroll-snap-align: start;
}

.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, .subcategory-group {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    text-align: center;
    padding: 0 1rem;
}

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

/* 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 */
}

/* Histoire Section */
.histoire-section {
    background-color: #fff;
}

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

.histoire-img-col {
    position: relative;
}

/* Wrapper commun : bg-shape et tilt ont les mêmes dimensions */
.histoire-img-wrapper {
    position: relative;
    padding-right: 14px;
    padding-bottom: 14px;
}

/* Fond décoratif : même taille que le wrapper, décalé via transform */
.histoire-bg-shape {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background-color: var(--color-primary);
    background-color: color-mix(in srgb, var(--color-primary) 45%, #111);
    transform: translate(14px, 14px);
    z-index: 0;
}

/* Image : même taille que le wrapper */
.histoire-img-tilt {
    position: relative;
    z-index: 1;
    border-radius: 999px;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.histoire-img-tilt .rounded-img-arch {
    border-radius: 999px;
}

.histoire-text-col {
    padding-right: 2rem;
}


/* 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: 0.6rem;
    padding-bottom: 0.6rem;
}

.img-bg-shape {
    position: absolute;
    top: 0.6rem;
    left: 1.2rem;
    right: -0.6rem;
    bottom: -0.6rem;
    background-color: var(--color-primary);
    background-color: color-mix(in srgb, var(--color-primary) 45%, #111);
    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;
    transform: translate(var(--mouse-x, 0px), calc(var(--mouse-y, 0px) + var(--scroll-y, 0px))) rotate(var(--mouse-rot, 0deg));
}

.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;
}

.admin-sidebar-full {
    width: 320px;
    height: 100vh;
    height: 100svh;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
}

.admin-nav::-webkit-scrollbar {
    width: 5px;
}
.admin-nav::-webkit-scrollbar-track {
    background: transparent;
}
.admin-nav::-webkit-scrollbar-thumb {
    background-color: rgba(168, 85, 50, 0.3);
    border-radius: 4px;
}

.admin-mobile-burger {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 0;
}

.admin-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.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;
}

/* ===================== */
/* User Profile Widget   */
/* ===================== */

.user-profile-widget {
    position: relative;
    z-index: 1050;
    display: flex;
    align-items: center;
}

.user-name-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.user-name-btn:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.user-name-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile-widget:hover .user-name-btn svg {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 200px;
    width: auto;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.user-profile-widget:hover .user-dropdown-menu,
.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a,
.user-dropdown-menu button.logout-link {
    padding: 0.8rem 1.5rem;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

.user-dropdown-menu a svg,
.user-dropdown-menu button.logout-link svg {
    color: var(--color-text-light);
    transition: color 0.2s;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button.logout-link:hover {
    background-color: var(--color-footer-bg);
    color: var(--color-primary);
}

.user-dropdown-menu a:hover svg,
.user-dropdown-menu button.logout-link:hover svg {
    color: var(--color-primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 0.5rem 0;
}

/* ===================== */
/* Auth Page             */
/* ===================== */

.auth-section {
    padding: 2rem 4rem 8rem;
    background-color: transparent; /* Let global decorations show */
    position: relative;
    z-index: 1;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    padding: 0; /* Let login-dropdown handle padding */
    border-radius: 2px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
}

.mobile-only-nav {
    display: none;
}

.auth-form-wrapper {
    display: flex;
    flex-direction: column;
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

.auth-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid rgba(143, 70, 40, 0.2);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input::placeholder {
    color: #a09d9a;
    font-weight: 300;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 2.5rem; /* space for the icon */
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle-btn:hover {
    color: var(--color-primary);
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-decoration: underline;
    align-self: flex-start;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--color-primary);
}

.auth-btn {
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
}

.auth-btn:hover {
    background: transparent !important;
    color: var(--color-primary) !important;
}

.auth-toggle-text {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.auth-toggle-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 0.3rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.auth-toggle-btn:hover {
    color: var(--color-text-dark);
}

/* ===================== */
/* Login Dropdown        */
/* ===================== */

.login-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    width: 360px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 2rem;
}

.login-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Triangle pointer for dropdown */
.login-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px; /* Adjust based on icon position */
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0,0,0,0.02);
}

.mobile-close-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .login-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100svh;
        margin-top: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        z-index: 9999;
    }
    
    .login-dropdown::before {
        display: none;
    }

    .mobile-close-dropdown {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--color-primary);
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
    }
}

.modal-auth-container {
    margin: 0;
    width: 100%;
}



/* ===================== */
/* Legal & Info Pages    */
/* ===================== */

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 4rem 6rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    align-items: start;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 100px;
    padding-right: 2rem;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.legal-text {
    grid-column: 2;
    grid-row: 1;
}

.legal-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: var(--color-primary);
}

.legal-nav a.active {
    border-bottom: none;
    font-weight: 600;
    position: relative;
}

.legal-nav a.active::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--color-primary);
}

.legal-text h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-text h3 {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-text p, .legal-text ul {
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.legal-text ul {
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.cart-section {
    padding: 2rem 4rem var(--spacing-xl);
    background-color: var(--color-bg);
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.cart-items {
    background-color: transparent;
    padding: 2.5rem 0; /* Adjusted padding since background is gone */
    border-radius: 0;
    box-shadow: none;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    font-weight: 500;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-product {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f0ece4;
}

.cart-item-info h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.cart-item-price-mobile {
    display: none;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text-dark);
}

.cart-item-qty input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.cart-item-qty input:focus {
    outline: none;
}

.cart-item-total {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.cart-summary {
    background-color: transparent;
    padding: 2.5rem 0; /* Adjusted padding since background is gone */
    border-radius: 0;
    box-shadow: none;
}

.cart-summary h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--color-border);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.checkout-btn {
    margin-bottom: 1.5rem;
}

.secure-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.secure-payment svg {
    color: #4CAF50;
}


/* 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;
    }
    .cart-container {
        grid-template-columns: 1fr;
    }
    .auth-container {
        gap: 2rem;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation Mobile */
    .header {
        padding: 1rem 1.5rem;
        height: 70px;
    }
    
    /* We still want to see the brand name on mobile */
    .header-left {
        display: flex;
        flex: 1;
        align-items: center;
    }
    
    .desktop-brand {
        display: none;
    }

    .mobile-brand {
        display: block;
    }

    .mobile-brand .brand-text {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }

    .desktop-user-text {
        display: none !important;
    }

    .mobile-user-icon {
        display: block !important;
    }

    .mobile-logo-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }
    
    /* Show header right for icons and burger */
    .header-right {
        display: flex;
        flex: 1;
        gap: 1rem;
    }
    
    .header-center {
        display: none !important; /* Hide logo on mobile completely if we have brand text, or adjust */
    }

    .mobile-only-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        margin-top: 1rem;
    }

    .user-profile-widget {
        display: none !important;
    }

    /* Mobile Menu Overlay */
    .burger-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px; /* Start below the header */
        bottom: 0;
        right: 0;
        transform: translateX(100%);
        visibility: hidden;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100svh - 70px);
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
        z-index: 900; /* Sit below the header which is 1000 */
        gap: 2rem;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu-close {
        display: none;
    }

    .nav-links > a, .nav-links .nav-main-link {
        font-size: 1.5rem;
        font-family: var(--font-serif);
        font-style: italic;
        text-transform: none;
        letter-spacing: normal;
        color: var(--color-primary);
    }

    /* Mobile Mega Menu */
    .nav-dropdown {
        flex-direction: column;
        align-items: center;
        height: auto;
        width: 100%;
    }

    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown.mobile-open .mega-menu {
        display: block;
        margin-top: 1.5rem;
    }

    .mega-menu-all-link {
        display: block !important;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .mega-column:first-child, .mega-column:last-child {
        justify-self: center;
    }

    .mega-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .mega-subgroup {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .mega-subgroup > a {
        text-align: center;
        width: 100%;
    }

    .mega-column-split {
        flex-direction: column;
        gap: 2rem;
    }

    .mega-subgroup > a {
        font-size: 1.1rem;
    }

    html.no-scroll,
    body.no-scroll {
        overflow: hidden !important;
        height: 100vh !important;
        height: 100svh !important;
    }

    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        max-width: 100vw !important;
        touch-action: manipulation;
    }
    
    section, .category-section {
        padding: 3rem 1.5rem;
    }

    .hero {
        align-items: stretch;
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0.85) 100%),
                    linear-gradient(rgba(250, 248, 245, 0.15), rgba(250, 248, 245, 0.3));
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding-top: 0;
        padding-bottom: 0;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0;
    }
    
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .section-header h2, .artisanat-section h2, .atelier-text-col h2, .histoire-section h2, .category-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .subtitle-2 {
        font-size: 1.4rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Grids & Images */
    .product-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        justify-content: flex-start;
        
        /* Force full screen width safely */
        width: auto;
        max-width: calc(100% + 3rem);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        
        /* Remove padding to avoid scroll-snap collapsing issues */
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 1.5rem; /* Ensure snap aligns correctly */
    }
    
    .product-grid::-webkit-scrollbar {
        display: none;
    }
    
    .product-grid .product-card {
        flex: 0 0 75%;
        scroll-snap-align: start;
    }
    
    .product-grid .product-card:first-child {
        margin-left: 1.5rem;
    }
    
    .product-grid .product-card:last-child {
        margin-right: 1.5rem;
    }
    
    .container.two-col, .container.reverse {
        gap: 2rem;
    }

    .rounded-img-arch, .rounded-img-full {
        height: 400px;
        border-radius: 20px;
    }
    
    .img-bg-shape {
        border-radius: 20px;
        top: 0.4rem;
        left: 0.4rem;
        right: -0.4rem;
        bottom: -0.4rem;
    }
    
    .artisanat-img-col {
        padding-left: 0;
        order: 1;
    }

    .artisanat-section .container.two-col {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .artisanat-section .text-col {
        order: 2;
    }

    /* Alternance mobile : Histoire → image en premier, texte en dessous */
    .histoire-section .container.two-col {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .histoire-img-col {
        order: 1;
    }

    .histoire-text-col {
        order: 2;
        padding-right: 0;
    }

    /* Auth & Cart Mobile */
    .auth-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .auth-divider {
        display: none;
    }

    .cart-items, .cart-summary {
        padding: 1.5rem;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        position: relative;
    }

    .cart-item-qty {
        margin-bottom: 0.5rem;
    }

    .cart-item-total {
        position: absolute;
        bottom: 2rem;
        right: 0;
    }

    .cart-item-price-mobile {
        display: block;
        font-weight: 500;
        color: var(--color-primary);
        margin-top: 0.25rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .brand-col .footer-desc {
        margin: 0 auto 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        border: none;
        gap: 1rem;
    }

    .newsletter-form input {
        border-bottom: 1px solid var(--color-primary);
        padding: 0.5rem 0;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

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

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

.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;
}

/* ===================== */
/* Product Detail Page   */
/* ===================== */

.product-detail-section {
    padding: 2rem 4rem var(--spacing-xl);
    background-color: var(--color-bg);
}

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-main-image {
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0ece4;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Product Info */
.product-info-detail {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.product-category-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-detail-name {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-primary);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.product-detail-price {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-divider {
    width: 50px;
    height: 2px;
    background-color: var(--color-border);
    margin-bottom: 2rem;
}

.product-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

/* Add to Cart Button & Favorites */
.product-actions-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
    width: 100%;
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 2rem;
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-favorite:hover, .btn-favorite.active {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-favorite .heart-icon {
    transition: transform 0.2s ease, fill 0.2s ease;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.btn-add-cart:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 50, 0.3);
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(168, 85, 50, 0.2);
}

/* Trust Badges */
.product-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 0.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-badge svg {
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.8;
}

.trust-badge span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Related Products */
.related-products-section {
    padding: var(--spacing-xl) 4rem;
    background-color: #fff;
}

.related-products-section .section-header h2 {
    font-size: 2.5rem;
    font-style: italic;
}

/* Product Detail Responsive */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .product-detail-name {
        font-size: 2.8rem;
    }

    .related-products-section {
        padding: var(--spacing-lg) 2rem;
    }

    /* Cart Page Responsive */
    .cart-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }
    .cart-section {
        padding: 2rem 2rem var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 1rem 2rem var(--spacing-lg);
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-name {
        font-size: 2.5rem;
    }

    .product-thumbnails {
        justify-content: flex-start;
    }

    .thumbnail {
        width: 90px;
        height: 90px;
    }

    .related-products-section {
        padding: var(--spacing-lg) 1.5rem;
    }

    .legal-content {
        padding: 1rem 1.5rem 4rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-nav {
        grid-column: 1;
        grid-row: 1;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .legal-nav a.active::before {
        display: none;
    }

    .legal-nav a.active {
        border-bottom: 2px solid var(--color-primary);
        padding-bottom: 0.2rem;
    }

    .legal-text {
        grid-row: 2;
    }

    /* Cart Page Responsive */
    .cart-section {
        padding: 1rem 1.5rem var(--spacing-lg);
    }

    .cart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-items {
        padding: 1.5rem;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .cart-item-qty {
        justify-self: flex-start;
        margin-top: 0.5rem;
    }

    .cart-item-total {
        display: none;
    }

    .cart-item-price-mobile {
        display: block;
        font-weight: 600;
        margin-top: 0.5rem;
        color: var(--color-text-dark);
    }

    .cart-summary {
        margin-top: 0;
        padding: 1.5rem;
    }
}

/* ===================== */
/* Administration Page   */
/* ===================== */

.admin-body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.admin-dashboard-container {
    display: flex;
    height: 100vh;
    height: 100svh;
    width: 100%;
}

/* Sidebar — warm, on-brand */
.admin-sidebar-full {
    width: 240px;
    background: transparent;
    display: flex;
    flex-direction: column;
    z-index: 10;
    flex-shrink: 0;
    padding: 1.5rem 0 1.5rem 1.5rem;
}

.admin-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0 2.5rem 0;
    margin-left: -1.5rem;
    text-align: center;
}

.admin-sidebar-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.admin-brand-text {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.45rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.admin-nav {
    flex: 1;
    min-height: 0;
    padding: 0 0.75rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.admin-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    border-radius: 0 4px 4px 0;
}

.admin-nav a.admin-bottom-link {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    position: sticky;
    bottom: -0.75rem;
    background-color: var(--color-bg);
    z-index: 10;
}

.admin-nav a.admin-bottom-link::before {
    display: none;
}

.admin-nav a svg {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.admin-nav a:hover {
    background-color: rgba(168, 85, 50, 0.04);
    color: var(--color-primary);
}

.admin-nav a:hover::before {
    transform: scaleY(0.6);
}

.admin-nav a.active {
    background-color: rgba(168, 85, 50, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.admin-nav a.active::before {
    transform: scaleY(1);
}

.admin-nav a:hover svg, .admin-nav a.active svg {
    opacity: 1;
    transform: scale(1.1);
}


#admin-logout-btn:hover {
    color: #c0392b;
    background-color: #fdf2f0;
}

/* Main area */
.admin-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.admin-header-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2.5rem 1.25rem;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 5;
}

.admin-header-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.admin-header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-period-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

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

.admin-user-profile-container {
    position: relative;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50px;
    transition: background-color 0.2s ease;
}

.admin-user-profile:hover {
    background-color: var(--color-footer-bg);
}

.admin-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 20;
}

.admin-user-profile-container:hover .admin-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-profile-dropdown a,
.admin-profile-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.admin-profile-dropdown a:hover {
    background-color: var(--color-footer-bg);
    color: var(--color-primary);
}

.admin-profile-dropdown button:hover {
    background-color: #fdf2f0;
    color: #c0392b;
}

.admin-user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.admin-user-name {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.admin-user-role {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-serif);
}

.admin-content-inner {
    padding: 0 2.5rem 2.5rem;
    width: 100%;
}

/* Stat cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    min-width: 0;
    max-width: 100%;
}

.admin-stat-card {
    background: transparent;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

/* Remove pastel overrides — transparent */
.card-yellow,
.card-blue,
.card-pink,
.card-green {
    background-color: transparent;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--color-footer-bg) !important;
    color: var(--color-primary) !important;
}

.stat-info h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.35rem;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.positive { color: #5a8a5e; }
.stat-trend.negative { color: #c0392b; }
.stat-trend.neutral { color: var(--color-text-light); }

/* Dashboard grid */
.admin-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.chart-container canvas {
    max-width: 100% !important;
}

.admin-dashboard-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.admin-geo-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.admin-card {
    background: transparent;
    padding: 1.75rem 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--color-border);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.admin-card-header h2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.admin-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.admin-link:hover {
    opacity: 0.7;
}



/* Admin Products Grid */
.admin-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-product-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(143, 70, 40, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.admin-product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0ece4;
    border-bottom: 1px solid rgba(143, 70, 40, 0.1);
}

.admin-product-details {
    padding: 1.25rem;
}

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

.admin-product-category {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.admin-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.admin-product-price {
    color: var(--color-primary);
}

.admin-product-actions {
    display: flex;
    gap: 0.35rem;
    border-top: 1px solid rgba(143, 70, 40, 0.1);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.admin-product-btn {
    flex: 1;
    min-width: 75px;
    text-align: center;
    padding: 0.45rem 0.25rem;
    font-size: 0.78rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-btn-edit {
    color: var(--color-primary);
    border-color: rgba(168, 85, 50, 0.2);
    background: rgba(168, 85, 50, 0.05);
}

.admin-btn-edit:hover {
    background: var(--color-primary);
    color: #fff;
}

.admin-btn-delete {
    color: #d32f2f;
    border-color: rgba(211, 47, 47, 0.2);
    background: rgba(211, 47, 47, 0.05);
}

.admin-btn-delete:hover {
    background: #d32f2f;
    color: #fff;
}

/* ── Admin Buttons (generic reusable) ── */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.4;
}

.admin-btn:active {
    transform: scale(0.97);
}

.admin-btn-primary {
    background: var(--color-accent-bg);
    border-color: var(--color-accent-bg);
    color: #fff;
    box-shadow: 0 2px 8px rgba(140, 129, 96, 0.18);
}

.admin-btn-primary:hover {
    background: #73694f;
    border-color: #73694f;
    box-shadow: 0 4px 14px rgba(140, 129, 96, 0.28);
    transform: translateY(-1px);
}

.admin-btn-secondary {
    background: rgba(140, 129, 96, 0.08);
    border-color: rgba(140, 129, 96, 0.25);
    color: var(--color-accent-bg);
}

.admin-btn-secondary:hover {
    background: var(--color-accent-bg);
    border-color: var(--color-accent-bg);
    color: #fff;
    box-shadow: 0 4px 14px rgba(140, 129, 96, 0.22);
    transform: translateY(-1px);
}

.admin-btn-danger {
    background: rgba(211, 47, 47, 0.06);
    border-color: rgba(211, 47, 47, 0.2);
    color: #c0392b;
}

.admin-btn-danger:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.22);
    transform: translateY(-1px);
}

.admin-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-light);
}

.admin-btn-ghost:hover {
    background: rgba(140, 129, 96, 0.08);
    color: var(--color-accent-bg);
}

.admin-btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Admin tab buttons */
.admin-tab-bar {
    display: flex;
    gap: 0.25rem;
    background: rgba(140, 129, 96, 0.06);
    padding: 0.3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    width: fit-content;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-light);
    background: transparent;
}

.admin-tab-btn:hover {
    color: var(--color-accent-bg);
    background: rgba(140, 129, 96, 0.06);
}

.admin-tab-btn.active {
    background: #fff;
    color: var(--color-accent-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

/* Tables */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    font-weight: 500;
}

.admin-table td {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    border-bottom: 1px solid rgba(224, 213, 193, 0.4);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Action Icons */
.action-icon-btn {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background: rgba(143, 70, 40, 0.1);
    color: var(--color-primary);
}

.action-icon-btn.delete:hover {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
}

/* Admin Modal */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 12, 10, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal {
    background: #ffffff;
    width: 92%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(143, 70, 40, 0.05);
    transform: translateY(30px) scale(0.97);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: none;
    position: relative;
}

.admin-modal-overlay.active .admin-modal {
    transform: translateY(0) scale(1);
}

.admin-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(143, 70, 40, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.admin-modal-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 500;
}

.admin-modal-close {
    background: #faf9f7;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
}

.admin-modal-close:hover {
    background: rgba(143, 70, 40, 0.1);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.admin-modal-body {
    padding: 2rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
}

/* Order Items Styles */
.order-item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.order-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(143, 70, 40, 0.1);
    border-radius: 8px;
    background: #faf9f7;
}

.order-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.order-item-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.order-item-price {
    font-weight: 600;
    color: var(--color-primary);
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Edit Modal Forms */
.edit-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(143, 70, 40, 0.2);
}

.edit-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edit-form-section h4 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.admin-input-group {
    margin-bottom: 1rem;
}

.admin-input-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.admin-modal-body input[type="text"],
.admin-modal-body input[type="number"],
.admin-modal-body input[type="email"],
.admin-modal-body select,
.admin-modal-body textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(143, 70, 40, 0.2);
    border-radius: 8px;
    background: #faf9f7;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.admin-modal-body input:focus,
.admin-modal-body select:focus,
.admin-modal-body textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(143, 70, 40, 0.1);
}

.admin-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(143, 70, 40, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #faf9f7;
}

.admin-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-modal-btn-cancel {
    background: #ffffff;
    border: 1px solid rgba(143, 70, 40, 0.2);
    color: var(--color-text-dark);
}

.admin-modal-btn-cancel:hover {
    background: #fdfaf6;
    border-color: rgba(143, 70, 40, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.admin-modal-btn-confirm {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(143, 70, 40, 0.2);
}

.admin-modal-btn-confirm:hover {
    background: #73694f;
    border-color: #73694f;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(143, 70, 40, 0.25);
}

.status-badge.pending {
    background-color: #fef3e2;
    color: #b45309;
}

.status-badge.processing {
    background-color: #eff6ff;
    color: #2563eb;
}

.status-badge.completed {
    background-color: #f0fdf4;
    color: #16a34a;
}

/* Top Products */
.admin-top-products {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.top-product-item + .top-product-item {
    border-top: 1px solid rgba(224, 213, 193, 0.3);
    padding-top: 1rem;
}

.top-product-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-border);
}

.top-product-info {
    flex: 1;
}

.top-product-info h4 {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.top-product-info p {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.top-product-sales {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Decorative background in admin */
.admin-decorations {
    position: fixed;
    top: 0;
    left: 240px;
    width: calc(100% - 240px);
    height: 100vh;
    height: 100svh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.admin-decorations .ginkgo-bg-1 {
    top: auto;
    bottom: -10%;
    left: -5%;
}

/* Responsive */
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-dashboard-split,
    .admin-charts-grid,
    .admin-geo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    .admin-body {
        overflow: auto;
    }

    .admin-mobile-burger,
    .admin-sidebar-close {
        display: block;
    }

    .admin-sidebar-full {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh !important;
        height: 100svh !important;
        background: var(--color-bg);
        border-right: 1px solid var(--color-border);
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar-full.mobile-active {
        left: 0;
    }

    .admin-sidebar-logo {
        padding: 1.5rem;
    }

    .admin-nav {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .admin-nav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: normal;
    }

    .admin-sidebar-bottom {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .admin-header-full {
        padding: 1.25rem 1.5rem 0.75rem;
    }

    .admin-user-info {
        display: none;
    }

    .admin-title {
        font-size: 1.3rem;
    }

    .admin-main-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .admin-content-inner {
        padding: 0 1rem 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .admin-period-selector {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .modern-date-picker-wrapper {
        width: 100% !important;
    }

    .modern-date-picker-wrapper input.form-input {
        width: 100% !important;
        min-width: 0 !important;
    }

    #default-period-btn {
        width: 100% !important;
    }

    .admin-products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .admin-products-header > div {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-products-header input,
    .admin-products-header select,
    .admin-products-header button {
        width: 100% !important;
    }

    .admin-decorations {
        left: 0;
        width: 100%;
    }
}

/* =========================================
   COOKIE BANNER (RGPD)
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    background: var(--color-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-text-dark);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    border: 1px solid var(--color-border);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text-dark);
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 50%;
        transform: translate(-50%, 150%);
        bottom: 30px;
    }
    .cookie-banner.show {
        transform: translate(-50%, 0);
    }
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* A11y enhancements */
.auth-toggle-btn { padding: 12px; min-height: 48px; }
.footer-col input { min-height: 48px; }

/* Product Slider / Carousel */
.product-slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-arrow {
    position: absolute;
    top: calc(50% - 40px); /* Center vertically relative to product image cards */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 0;
}

.slider-arrow:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.25);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow.prev-arrow {
    left: -22px;
}

.slider-arrow.next-arrow {
    right: -22px;
}

/* Sub-subcategory Styling */
.subsubcategory-section {
    margin-bottom: 3.5rem;
    margin-left: 0;
    text-align: center;
}

.subsubcategory-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.subsubcategory-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: rgba(var(--color-primary-rgb), 0.3);
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
    .subsubcategory-section {
        margin-left: 0;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    .subsubcategory-title {
        font-size: 1.2rem;
        margin-left: 0;
    }
}

.skeleton-loader {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg) 50%, var(--color-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite linear;
    border-radius: 4px;
}

/* Tracking Stepper Styles */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.tracking-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1.5rem 1rem 1rem 1rem;
    background: rgba(143, 70, 40, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(143, 70, 40, 0.1);
}
.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-bg, #faf8f5);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    border: 2px solid rgba(143, 70, 40, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}
.tracking-step.completed .step-icon {
    background: var(--color-primary, #8f4628);
    color: #fff;
    border-color: var(--color-primary, #8f4628);
    box-shadow: 0 4px 12px rgba(143, 70, 40, 0.25);
}
.tracking-step.active .step-icon {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    animation: pulse 2s infinite;
}
.tracking-step.cancelled .step-icon {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #777;
    text-align: center;
}
.tracking-step.completed .step-label,
.tracking-step.active .step-label {
    color: var(--color-text-dark, #333);
    font-weight: 600;
}
.step-line {
    position: absolute;
    top: 21px;
    left: calc(50% + 23px);
    width: calc(100% - 46px);
    height: 3px;
    background: rgba(143, 70, 40, 0.15);
    z-index: 1;
}
.step-line.completed {
    background: var(--color-primary, #8f4628);
}
@media (max-width: 600px) {
    .tracking-stepper { padding: 1rem 0.5rem; }
    .step-icon { width: 34px; height: 34px; }
    .step-line { top: 17px; left: calc(50% + 19px); width: calc(100% - 38px); }
    .step-label { font-size: 0.75rem; }
}
