/**
 * Nanou Theme - Unified CSS
 * Consolidated from theme.css, components.css, animations.css, custom.css
 * Exact IDEE_PROJET design replication
 */

/* ============================================
   FONTS
   ============================================ */
/* Fonts loaded in head.tpl */

/* ============================================
   CSS VARIABLES - IDEE_PROJET EXACT COLORS
   ============================================ */
:root {
    /* Main Colors (HSL Format) */
    --background: hsl(40, 25%, 97%);
    --foreground: hsl(25, 20%, 18%);
    --card: hsl(40, 20%, 99%);
    --card-foreground: hsl(25, 20%, 18%);

    /* Primary & Secondary */
    --primary: hsl(30, 25%, 65%);
    --primary-foreground: hsl(40, 25%, 97%);
    --secondary: hsl(40, 18%, 94%);
    --secondary-foreground: hsl(25, 20%, 25%);

    /* Muted & Accent */
    --muted: hsl(35, 15%, 90%);
    --muted-foreground: hsl(25, 12%, 45%);
    --accent: hsl(15, 30%, 80%);
    --accent-foreground: hsl(25, 20%, 20%);

    /* Borders & Inputs */
    --border: hsl(35, 20%, 88%);
    --input: hsl(35, 20%, 88%);
    --ring: hsl(30, 25%, 65%);

    /* Custom Colors */
    --nude: hsl(30, 25%, 75%);
    --ecru: hsl(45, 25%, 92%);
    --rose-pale: hsl(15, 35%, 85%);
    --marron: hsl(25, 30%, 35%);
    --cream: hsl(40, 30%, 95%);

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(25, 20%, 18%, 0.08);
    --shadow-medium: 0 8px 30px -8px hsla(25, 20%, 18%, 0.12);
    --shadow-large: 0 20px 50px -15px hsla(25, 20%, 18%, 0.15);

    /* Border Radius */
    --radius: 0.25rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-y: scroll !important;
    /* Force scrollbar */
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: var(--foreground);
    text-decoration: none;
    background-color: transparent;
    transition: color 0.3s ease;
}

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

/* Material Icons Helper */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

h1,
.h1,
.heading-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
}

h2,
.h2,
.heading-section {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
}

h3,
.h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.text-body {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

.text-small {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================================
   LAYOUT
   ============================================ */
.container-custom {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

#wrapper {
    padding-top: 80px;
}

/* ============================================
   HEADER
   ============================================ */
.nanou-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--background);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.nanou-header.scrolled {
    background-color: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    border-bottom-color: var(--border);
}

.nanou-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

.nanou-header__logo {
    flex: 0 0 auto;
}

.nanou-header__logo a {
    display: block;
}

.nanou-header__logo img {
    max-height: 80px;
    /* Increased for visibility */
    width: auto;
}

.nanou-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--foreground);
}

.nanou-header__nav {
    flex: 1;
    display: none;
}

@media (min-width: 992px) {
    .nanou-header__nav {
        display: flex;
        justify-content: center;
    }
}

.nanou-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nanou-nav__link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nanou-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nanou-nav__link:hover,
.nanou-nav__link--active {
    color: var(--foreground);
}

.nanou-nav__link:hover::after,
.nanou-nav__link--active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nanou-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nanou-header__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 992px) {
    .nanou-header__mobile-toggle {
        display: none;
    }
}

.nanou-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.nanou-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

.nanou-header__mobile-toggle.active .nanou-header__hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nanou-header__mobile-toggle.active .nanou-header__hamburger span:nth-child(2) {
    opacity: 0;
}

.nanou-header__mobile-toggle.active .nanou-header__hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nanou-mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
}

.nanou-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.nanou-mobile-menu__nav {
    padding: 3rem 0;
}

.nanou-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nanou-mobile-nav__item {
    opacity: 0;
    transform: translateY(20px);
}

.nanou-mobile-menu.active .nanou-mobile-nav__item {
    animation: fadeUp 0.6s ease-out forwards;
}

.nanou-mobile-nav__link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.nanou-mobile-nav__link:hover {
    color: var(--foreground);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-custom {
    background-color: var(--secondary);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer-copyright {
    text-align: center;
    margin-top: 1rem;
}

.footer-custom h4,
.footer-custom .h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-custom a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: var(--foreground);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.nanou-breadcrumb {
    padding: 1rem 0;
}

.nanou-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nanou-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nanou-breadcrumb__link,
.nanou-breadcrumb__current,
.nanou-breadcrumb__separator {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--muted-foreground);
}

.nanou-breadcrumb__link:hover {
    color: var(--foreground);
}

.nanou-breadcrumb__current {
    color: var(--foreground);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.nanou-notifications {
    padding: 1rem 0;
}

.nanou-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid;
}

.nanou-alert--success {
    background-color: #f0f8f0;
    border-color: #4caf50;
    color: #2e7d32;
}

.nanou-alert--error,
.nanou-alert--danger {
    background-color: #fef0f0;
    border-color: var(--marron);
    color: var(--marron);
}

.nanou-alert__icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.nanou-alert__content {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
button.btn-primary,
a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--foreground);
    color: var(--background);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-secondary,
button.btn-secondary,
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--foreground);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--foreground);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--foreground);
    color: var(--background);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-miniature,
.card-product {
    position: relative;
    /* overflow: hidden; Removed to prevent clipping */
    background-color: transparent !important;
    /* No white background */
    border-radius: 0;
    transition: all 0.5s ease;
    margin-bottom: 2rem;
    box-shadow: none !important;
    /* No shadow */
    border: none !important;
}

.product-miniature:hover {
    box-shadow: none;
    /* No shadow on hover */
    transform: translateY(-5px);
    /* Just move up slightly */
}

.thumbnail-container {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    background-color: transparent !important;
    /* Remove nested background */
    border: none !important;
    /* Remove potential borders */
    box-shadow: none !important;
    /* Remove potential shadows */
}

.product-thumbnail {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--secondary);
    margin-bottom: 1rem;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.product-miniature:hover .product-thumbnail img {
    transform: scale(1.05);
}

.product-flags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.product-flag {
    padding: 0.25rem 0.75rem;
    background-color: var(--foreground);
    color: var(--background);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.product-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-description {
    padding: 1rem 0;
    /* Top/Bottom padding only, align text with image edges */
    margin: 0;
    background-color: transparent !important;
    /* Force transparent */
}

.product-price-and-shipping {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    /* Larger font */
    color: #666666;
    /* Fallback for muted */
    margin-top: 0.5rem;
    line-height: 1.4;
    overflow: visible;
    /* Extra safety */
}

.price {
    font-weight: 800;
    /* Extra Black */
    font-size: 1.35rem;
    /* Much bigger */
    color: #000000 !important;
    /* Force black */
    display: inline-block;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select,
.form-control,
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--foreground);
}

::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
.nanou-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.nanou-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nanou-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nanou-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(250, 247, 244, 0.6), rgba(250, 247, 244, 0.3), transparent);
    z-index: 1;
}

.nanou-hero__container {
    position: relative;
    z-index: 10;
}

.nanou-hero__content {
    max-width: 36rem;
}

.nanou-hero__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.nanou-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--foreground);
    margin-top: 1rem;
    line-height: 1.1;
}

.nanou-hero__description {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

.nanou-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.nanou-section {
    padding: 6rem 0;
}

@media (max-width: 767px) {
    .nanou-section {
        padding: 3rem 0;
    }
}

.nanou-section--bg {
    background-color: var(--background);
}

.nanou-section--secondary {
    background-color: var(--secondary);
}

.nanou-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.nanou-section__header--flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

.nanou-section__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted-foreground);
    margin-top: 1rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.nanou-section__link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--foreground);
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nanou-section__link:hover {
    gap: 1rem;
}

.nanou-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.nanou-collection-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.nanou-collection-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.nanou-collection-card:hover .nanou-collection-card__image img {
    transform: scale(1.05);
}

.nanou-collection-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 50, 40, 0.4), transparent 50%);
}

.nanou-collection-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.nanou-collection-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--background);
    margin: 0;
}

.nanou-collection-card__cta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: rgba(250, 247, 244, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.nanou-collection-card:hover .nanou-collection-card__cta {
    gap: 1rem;
}

.nanou-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    /* Increased gap for better spacing */
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .nanou-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nanou-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nanou-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nanou-values__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.nanou-values__title {
    margin-top: 1rem;
}

.nanou-values__text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

.nanou-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.nanou-stat__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--foreground);
}

.nanou-stat__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.nanou-values__btn {
    margin-top: 2.5rem;
}

.nanou-values__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.nanou-values__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nanou-newsletter__content {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.nanou-newsletter__text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.nanou-newsletter__form {
    margin-top: 2rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    /* Lighter track */
}

::-webkit-scrollbar-thumb {
    background: var(--muet-foreground);
    /* Darker thumb */
    background-color: #8c8c8c;
    /* Fallback/Explicit visible color */
    border-radius: 6px;
    border: 3px solid #f0f0f0;
    /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--foreground);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-background {
    background-color: var(--background);
}

.bg-secondary {
    background-color: var(--secondary);
}

.text-foreground {
    color: var(--foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.nanou-contact-page {
    padding: 2rem 0 4rem;
}

.nanou-contact-form-wrapper {
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Form Styles Override */
.contact-form .form-control {
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--foreground);
    outline: none;
    box-shadow: none;
    background-color: #fff;
}

.contact-form label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Info Side */
.nanou-contact-info {
    padding-top: 2rem;
}

.nanou-link {
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.nanou-link:hover {
    border-bottom-color: var(--foreground);
}

.nanou-link-arrow {
    color: var(--foreground);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

/* ============================================
   SHOP PAGE (PRODUCT LIST)
   ============================================ */

/* Hero / Header */
.nanou-shop-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.nanou-shop-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.nanou-shop-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.nanou-shop-hero .container-custom {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
}

.nanou-shop-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nanou-shop-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-bar-left,
.filter-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    border-color: var(--foreground);
}

/* Sidebar & Grid Layout */
.products-section {
    display: flex;
    gap: 3rem;
    position: relative;
}

.filter-sidebar {
    width: 16rem;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.products-container {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.products-bottom {
    margin-top: 3rem;
}

.no-products {
    padding: 4rem 2rem;
    text-align: center;
}

/* Facets Styling (Filters) */
.facets .facet {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.facets .facet:last-child {
    border-bottom: none;
}

.facets .facet-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    display: block;
}

.facets .facet-label {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.facets .facet-label:hover,
.facets .facet-label.active {
    color: var(--foreground);
}

.facets input[type="checkbox"] {
    accent-color: var(--foreground);
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
}

/* Active Filters Badge */
.active-filters {
    margin-bottom: 1.5rem;
}

.active-filters .filter-block {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-filters .filter-block li {
    background: var(--muet);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.active-filters .filter-block a {
    color: var(--foreground);
    text-decoration: none;
}

.js-search-link {
    cursor: pointer;
}

/* Mobile & Responsive */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 350px;
        background-color: #fff;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .filter-sidebar.active {
        transform: translateX(0);
    }

    .filter-overlay.active {
        display: block;
    }

    .products-section {
        gap: 0;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================
   PRODUCT PAGE (DETAIL)
   ============================================ */
.product-page {
    padding: 3rem 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Product Info */
.product-name {
    margin-bottom: 1rem;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.regular-price {
    text-decoration: line-through;
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.discount-badge {
    padding: 0.25rem 0.75rem;
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

.product-description-short {
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* Product Form */
.product-form {
    margin-top: 2rem;
}

.product-add-to-cart {
    margin-top: 2rem;
}

.product-quantity {
    margin-bottom: 1.5rem;
}

.product-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid var(--border);
}

.qty-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background-color: var(--secondary);
}

.input-qty {
    width: 4rem;
    height: 3rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 1rem;
}

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

.add-to-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.out-of-stock {
    padding: 1rem;
    background-color: var(--secondary);
    text-align: center;
    color: var(--muted-foreground);
}

/* Product Reassurance */
.product-reassurance {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Accordion */
.product-details-accordion {
    margin-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--foreground);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

/* Related Products */
.related-products {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .related-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* -------------------------------------------------------------------------- */
/*  OFF-CANVAS FILTERS (Pro & Minimalist)                                     */
/* -------------------------------------------------------------------------- */

/* Toggle Button */
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Filter Sidebar (Drawer) */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1050;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--border-light);
    overflow-y: auto;
    box-shadow: 20px 0 50px rgba(0,0,0,0.05);
}

.filter-sidebar.active {
    transform: translateX(0);
}

/* Header inside Drawer */
.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.filter-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Refined Facet Styling inside Drawer */
.facets .facet {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.facets .facet-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.facets .facet-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--foreground);
    cursor: pointer;
}

.facets .custom-checkbox input[type="checkbox"] + span {
    border-color: var(--border);
    border-radius: 0;
}

/* Full Width Grid Adjustments */
.nanou-products-grid {
    gap: 2rem;
}
@media (min-width: 1400px) {
    .nanou-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* -------------------------------------------------------------------------- */
/*  CATEGORY PAGE REFINEMENTS (Sort & Grid)                                   */
/* -------------------------------------------------------------------------- */

/* Fix Grid Spacing */
.products-grid, .nanou-products-grid {
    column-gap: 3rem !important; /* Increase horizontal gap */
    row-gap: 4rem !important;    /* Increase vertical gap for cleaner look */
}

/* Minimalist Sort By */
.sort-by-row {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Push to right */
    font-family: var(--font-primary);
}

.sort-by-row .sort-by {
    display: none !important; /* Hide 'Trier par :' label */
}

.products-sort-order .select-title {
    background: transparent !important;
    border: none !important;
    color: var(--foreground) !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 1.5rem !important;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.products-sort-order .select-title i {
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}

.products-sort-order .dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: 0;
    box-shadow: var(--shadow-medium);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.products-sort-order .dropdown-menu a {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    color: var(--muted-foreground);
}

.products-sort-order .dropdown-menu a:hover,
.products-sort-order .dropdown-menu a.current {
    background: var(--secondary);
    color: var(--foreground);
}

/* -------------------------------------------------------------------------- */
/*  FIX: EXPLICIT GRID LAYOUT & SPACING                                       */
/* -------------------------------------------------------------------------- */

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;  /* Space between items */
    margin: 0 !important;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3rem !important;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Reset children width to let grid handle it */
.products-grid > .product-miniature, 
.products-grid > .card-product {
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
}

/* -------------------------------------------------------------------------- */
/*  SIDEBAR & FACETED SEARCH (Nanou Style)                                    */
/* -------------------------------------------------------------------------- */

/* Layout Adjustment for Sidebar */
#left-column {
    padding-right: 2rem;
    border-right: 1px solid transparent; /* Cleaner separation if needed */
}

/* Block Headers (CATALOGUE, CATEGORIES...) */
#left-column .block-categories .h6,
#left-column .facet .facet-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--foreground);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Category Tree */
.block-categories .category-sub-menu {
    margin-left: 0;
}
.block-categories li {
    margin-bottom: 0.5rem;
}
.block-categories a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}
.block-categories a:hover {
    color: var(--primary);
    padding-left: 5px; /* Slight movement */
}

/* Facets (Checkboxes) */
.facet-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--foreground);
}

.custom-checkbox {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox span {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-foreground); /* Darker border */
    background-color: transparent;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + span {
    background-color: var(--foreground);
    border-color: var(--foreground);
}

.custom-checkbox input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Price Slider (Range) */
.ui-slider-horizontal {
    height: 4px;
    background: var(--border);
    border: none;
    border-radius: 2px;
    margin: 1rem 0;
}

.ui-slider .ui-slider-range {
    background: var(--foreground);
}

.ui-slider .ui-slider-handle {
    width: 14px;
    height: 14px;
    background: var(--background);
    border: 2px solid var(--foreground);
    border-radius: 50%;
    cursor: pointer;
    top: -5px;
}

/* Active Filters Block */
#js-active-search-filters {
    background: var(--secondary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}
#js-active-search-filters .filter-block {
    color: var(--foreground);
    background: #fff;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Hide the 'Filter' Draw Button on Desktop now that we have Sidebar */
@media (min-width: 992px) {
    .filter-toggle {
        display: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/*  LAYOUT ADJUSTMENTS FOR SIDEBAR (Layout Left Column)                       */
/* -------------------------------------------------------------------------- */

/* Adjust grid when sidebar is present */
.page-category #content-wrapper .products-grid,
.page-prices-drop #content-wrapper .products-grid,
.page-new-products #content-wrapper .products-grid,
.page-best-sales #content-wrapper .products-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Mobile/Tablet */
}

@media (min-width: 992px) {
    /* Desktop: 3 columns max because we have a sidebar now */
    .page-category #content-wrapper .products-grid,
    .page-prices-drop #content-wrapper .products-grid,
    .page-new-products #content-wrapper .products-grid,
    .page-best-sales #content-wrapper .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
}

/* Sidebar Styling Overrides to match Reference Image more closely */
#left-column {
    background-color: transparent;
    border-right: 1px solid var(--border);
    padding-top: 2rem;
}

/* Filter Blocks */
.facet {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* "Active Filters" Styling */
.active_filters {
    background: transparent !important;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
.active_filters .filter-block {
    background-color: var(--secondary);
    color: var(--foreground);
    border: none;
    box-shadow: none;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    border-radius: 2px;
}
.active_filters .filter-block .close {
    color: var(--foreground);
    margin-left: 0.5rem;
    opacity: 0.5;
}

/* Sort By Row */
.sort-by-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.products-sort-order .select-title {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 0.5rem 1rem;
}
