:root {
    --green: #6B9E3E;
    --green-light: #B8CF3E;
    --green-dark: #5A8533;
    --charcoal: #3D3D3D;
    --charcoal-light: #555555;
    --white: #FFFFFF;
    --bg: #FFFFFF;
    --border: #DDDDDD;
    --danger: #C0392B;
    --warning: #D4A017;
    --success: #6B9E3E;
    --surface: #F5F5F5;
    --max: 1280px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--charcoal);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.25;
}

ul { list-style: none; }

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    color: var(--green-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout boutique */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--green);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.logo-link img {
    height: 56px;
    width: auto;
}

.header-search {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.header-search .search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: var(--charcoal-light);
    pointer-events: none;
    z-index: 1;
}

.header-search .form-control {
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    font-size: 0.95rem;
    border-radius: 999px 0 0 999px;
    border-right: none;
}

.header-search .search-submit {
    border-radius: 0 999px 999px 0;
    padding: 0.7rem 1.1rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--charcoal);
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
}

.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-menu { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

.mobile-drawer,
.drawer-backdrop {
    display: none;
}

.util-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--charcoal);
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
}

.util-link:hover { color: var(--green); }

.util-label { display: none; }

@media (min-width: 1100px) {
    .util-label { display: inline; }
}

.util-lang {
    font-weight: 700;
    border: 1px solid var(--border);
    padding: 0.35rem 0.55rem;
    gap: 0.4rem;
}

.flag-svg {
    width: 22px;
    height: 15px;
    display: block;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.util-btn {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.util-cart .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--green-light);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    min-width: 1.15rem;
    text-align: center;
    border-radius: 999px;
}

.main-nav-bar { border-top: 1px solid var(--border); }

.main-nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.55rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.main-nav-links,
.main-nav-services {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.main-nav-links a,
.main-nav-services a {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav-services a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.main-nav-links a:hover,
.main-nav-links a.active { color: var(--green); }

.nav-count {
    background: var(--green-light);
    color: var(--charcoal);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.sub-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.sub-nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sub-nav-inner::-webkit-scrollbar {
    display: none;
}

.sub-nav a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid transparent;
}

.sub-nav a:hover,
.sub-nav a.active {
    color: var(--green);
    background: var(--white);
    border-color: var(--green-light);
}

.site-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    min-height: calc(100vh - 200px);
}

.site-main--home {
    padding-top: 2.75rem;
}

.trust-bar {
    background: var(--green);
    color: var(--white);
    margin-top: 3rem;
}

.trust-bar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.trust-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-item strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
}

.trust-item span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.trust-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 2.5rem 1.5rem 1rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 0.75rem;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2rem;
    text-align: left;
}

.footer-grid h4 {
    color: var(--green-light);
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.footer-grid p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.footer-grid a { color: var(--white); }

.footer-grid a:hover { color: var(--green-light); }

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--green-light); }

.footer-newsletter-text { margin-bottom: 0.65rem !important; }

.footer-contact {
    margin-top: 0.75rem;
    font-size: 0.85rem !important;
}

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.85rem;
}

.product-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.product-thumb {
    border: 2px solid var(--border);
    padding: 0;
    background: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-thumb.active {
    border-color: var(--green);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero (legacy + home split) */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    border: 2px solid var(--green-light);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--green-light);
}

.hero p {
    color: var(--charcoal-light);
    max-width: 600px;
    margin: 0 auto;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0.85rem;
    margin-top: 0.35rem;
    margin-bottom: 2.25rem;
    height: 280px;
    max-height: 280px;
    align-items: stretch;
}

.hero-main {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--charcoal);
    color: var(--white);
    min-height: 0;
    height: 100%;
    border-radius: var(--radius-lg);
}

.hero-main:hover { color: var(--white); }

.hero-main-media,
.hero-main-placeholder {
    position: absolute;
    inset: 0;
}

.hero-main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-main-placeholder { background: var(--green-dark); }

.hero-main-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(transparent 40%, rgba(61,61,61,0.78));
}

.hero-main h1 {
    color: var(--white);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    margin: 0.2rem 0 0.35rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.hero-main h1 span { color: var(--green-light); }

.hero-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.45rem;
}

.hero-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pill {
    display: inline-block;
    background: var(--white);
    color: var(--charcoal);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.pill-accent { background: var(--green-light); }

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    height: 100%;
}

.hero-side-card {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    background: var(--surface);
    color: inherit;
    overflow: hidden;
    min-height: 0;
    border-radius: var(--radius);
}

.hero-side-card:hover { color: inherit; }

.hero-side-media {
    background: var(--surface);
    min-height: 0;
    overflow: hidden;
}

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

.hero-side-body {
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
}

.hero-side-body h2 {
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.hero-side-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    background: var(--green);
    color: var(--white);
    grid-template-columns: 1fr;
}

.hero-side-card--cta h2 { color: var(--white); }
.hero-side-card--cta p { opacity: 0.9; font-size: 0.95rem; }

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-badge {
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.25rem 0.55rem;
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
}

.price-on-dark {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
}

.price-highlight {
    background: var(--green-light);
    color: var(--charcoal);
    padding: 0.2rem 0.45rem;
    display: inline-block;
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-light);
}

.section-title--plain {
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.section-sub {
    color: var(--charcoal-light);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.home-section { margin-bottom: 2.75rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.carousel-nav { display: flex; gap: 0.4rem; }

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.feature-carousel,
.product-carousel {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.feature-carousel::-webkit-scrollbar,
.product-carousel::-webkit-scrollbar {
    display: none;
}

.feature-tile {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--charcoal);
    color: var(--white);
    border-radius: var(--radius);
}

.feature-tile:hover { color: var(--white); }

.feature-tile-media { position: absolute; inset: 0; }

.feature-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(61,61,61,0.8));
}

.feature-tile-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    gap: 0.35rem;
}

.feature-tile-content h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.product-carousel-item {
    flex: 0 0 min(240px, 70vw);
    scroll-snap-align: start;
}

.product-carousel-item .product-card { height: 100%; }

.promo-banner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 2.75rem;
    background: var(--green-light);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.promo-banner-text {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
}

.promo-banner-text h2 {
    font-size: 1.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.promo-banner-link {
    color: var(--charcoal);
    font-weight: 700;
    margin-top: 0.5rem;
}

.promo-banner-visual {
    position: relative;
    min-height: 260px;
    background: var(--green);
    overflow: hidden;
}

.promo-banner-visual img,
.promo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.promo-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.promo-banner-visual > img:only-of-type,
.promo-banner-visual > img:not(.promo-slide) {
    position: absolute;
    opacity: 1;
}

.promo-banner-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--green-light);
    color: var(--charcoal);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
    z-index: 3;
}

.promo-dots {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.promo-dot.is-active {
    background: var(--white);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.experience-grid--all {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-card {
    position: relative;
    min-height: 220px;
    padding: 1.5rem;
    background: var(--surface);
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
}

.experience-card--photo {
    background-image: linear-gradient(transparent 25%, rgba(61, 61, 61, 0.72)), var(--exp-bg);
    color: var(--white);
}

.experience-card--photo h3,
.experience-card--photo p,
.experience-card--photo .experience-arrow {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.experience-card:hover { color: inherit; }

.experience-card--accent:not(.experience-card--photo) {
    background: var(--green);
    color: var(--white);
}

.experience-card--accent:not(.experience-card--photo) h3,
.experience-card--accent:not(.experience-card--photo) p { color: var(--white); }

.experience-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.experience-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    text-transform: uppercase;
    z-index: 2;
}

.experience-arrow {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.trends-section { padding: 1.5rem 0 0.5rem; }

.trends-label {
    font-size: 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.trends-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 3rem;
}

.trends-grid a {
    color: var(--charcoal);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid transparent;
}

.trends-grid a:hover {
    color: var(--green);
    border-bottom-color: var(--green-light);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    background: var(--surface);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--white);
    border-color: var(--green);
    color: var(--green);
}

.category-page-head { margin-bottom: 1.25rem; }

/* Grilles — 4 cartes par ligne (desktop) */
.category-grid,
.product-grid,
.product-grid--home,
.product-grid--suggest {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    align-items: stretch;
    justify-content: start;
    justify-items: stretch;
    width: 100%;
}

/* Ignore les nœuds texte parasites (BOM, espaces) dans la grille */
.product-grid > :not(.product-card),
.product-grid--home > :not(.product-card),
.product-grid--suggest > :not(.product-card) {
    display: none;
}

.product-grid > .product-card,
.product-grid--home > .product-card,
.product-grid--suggest > .product-card {
    display: flex;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.category-card,
.product-card {
    border: none;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

.category-card {
    border: 1px solid var(--border);
}

.category-card:hover,
.product-card:hover {
    border-color: var(--green);
}

.category-card a,
.product-card a {
    display: block;
    color: inherit;
}

.category-card-body,
.product-card-body {
    padding: 0.85rem 0.15rem 0.5rem;
}

.category-card h3,
.product-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    word-break: break-word;
}

.product-card .price {
    color: var(--charcoal);
    font-weight: 700;
    font-size: 1rem;
}

.product-card .category-tag {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.25rem;
}

.product-image {
    aspect-ratio: 1;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.product-image-placeholder {
    color: var(--green-light);
    font-size: 3rem;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-detail-image {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.product-detail-image img {
    border-radius: inherit;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-detail-info .price {
    font-size: 1.6rem;
    color: var(--green);
    font-weight: 700;
    margin: 1rem 0;
}

.stock-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid;
}

.stock-in {
    color: var(--green);
    border-color: var(--green);
}

.stock-out {
    color: var(--danger);
    border-color: var(--danger);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:hover {
    border-color: #C4C4C4;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(107,158,62,0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--green);
    cursor: pointer;
}

input[type="file"].form-control {
    padding: 0.5rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 0.85rem;
    border: none;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

input[type="file"]::file-selector-button:hover {
    background: var(--green-dark);
}

.form-image-preview {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.15s, background 0.15s;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
    border-color: var(--green);
    background: #F0F7E8;
    outline: none;
}

.upload-dropzone.has-file {
    border-style: solid;
    border-color: var(--green);
}

.upload-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--charcoal-light);
    pointer-events: none;
}

.upload-dropzone-content .icon {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.upload-dropzone-content p {
    font-size: 0.9rem;
    margin: 0;
}

.upload-dropzone-content strong {
    color: var(--charcoal);
}

.upload-dropzone-filename {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border-radius: 999px;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(107,158,62,0.28);
}

.btn-secondary {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--charcoal);
}

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

.btn-accent {
    background: var(--green-light);
    color: var(--charcoal);
    border-color: var(--green-light);
}

.btn-accent:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-danger {
    background: var(--white);
    color: var(--danger);
    border-color: var(--danger);
}

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

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-icon:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-icon-primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-icon-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
}

.alert-success {
    background: #F0F7E8;
    border-color: var(--green);
    color: var(--green-dark);
}

.alert-error {
    background: #FDF0EF;
    border-color: var(--danger);
    color: var(--danger);
}

/* Cart table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #F9F9F9;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    border: 2px solid var(--green);
    padding: 1.5rem;
}

.cart-summary .total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Cart page (IKEA-inspired) */
.cart-page {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 360px);
    gap: 2rem;
    align-items: start;
}

.cart-page-head {
    margin-bottom: 1.25rem;
}

.cart-meta {
    color: var(--charcoal-light);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.cart-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-line-media {
    display: block;
    aspect-ratio: 1;
    background: var(--surface);
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.cart-line-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cart-line-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-light);
}

.cart-line-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.cart-line-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.cart-line-name {
    color: var(--charcoal);
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.25rem;
}

.cart-line-name:hover { color: var(--green); }

.cart-line-unit {
    color: var(--charcoal-light);
    font-size: 0.88rem;
}

.cart-line-subtotal {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.cart-line-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
}

.qty-btn:hover { background: var(--surface); color: var(--green); }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-value-form { display: flex; }
.qty-value {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    font-family: inherit;
    background: var(--white);
    color: var(--charcoal);
}

#cartRoot.is-updating {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.cart-line-icons {
    display: flex;
    gap: 0.35rem;
}

.btn-icon-danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.cart-delivery {
    margin-top: 2rem;
}

.cart-delivery h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 2px solid var(--border);
    background: var(--white);
    min-height: 88px;
    border-radius: var(--radius);
}

.delivery-option strong {
    display: block;
    font-size: 0.95rem;
}

.delivery-option span {
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.delivery-option.is-selected {
    border-color: var(--green);
    background: #F5FAF0;
}

.delivery-option--muted {
    opacity: 0.55;
}

.cart-summary-panel {
    position: sticky;
    top: 6.5rem;
    border: 1px solid var(--border);
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.cart-summary-panel h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-row--discount { color: var(--green); font-weight: 600; }

.promo-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.promo-remove { margin-bottom: 0.75rem; }

.link-btn {
    background: none;
    border: none;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    font-size: 0.85rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    margin: 0.5rem 0 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.summary-total strong {
    font-size: 1.45rem;
    color: var(--charcoal);
}

.btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.9rem 1.25rem;
}

.cart-continue {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
}

.cart-continue:hover { color: var(--green); }

.cart-secure {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.cart-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    max-width: 420px;
    margin: 0 auto;
}

.cart-empty .icon-lg {
    width: 3rem;
    height: 3rem;
    color: var(--green);
    margin: 0 auto 1rem;
}

.cart-empty h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: var(--charcoal-light);
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .cart-page {
        grid-template-columns: 1fr;
    }

    .cart-summary-panel {
        position: static;
        order: 2;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 96px 1fr;
    }
}


.qty-input {
    width: 70px;
    text-align: center;
}

/* Checkout layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Confirmation */
.confirmation-box {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    border: 2px solid var(--green);
}

.confirmation-box h1 {
    color: var(--green);
    margin-bottom: 0.5rem;
}

.order-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 1rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    color: var(--charcoal);
}

.pagination a:hover {
    border-color: var(--green);
    color: var(--green);
}

.pagination .active span {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* Admin layout */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--charcoal);
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

.admin-sidebar-logo {
    padding: 1.25rem;
    border-bottom: 2px solid var(--green);
    text-align: center;
    position: relative;
}

.admin-sidebar-logo img {
    height: 50px;
    margin: 0 auto;
}

.admin-sidebar-close {
    display: none;
}

.admin-sidebar-toggle {
    display: none;
}

.admin-sidebar-overlay {
    display: none;
}

.admin-nav {
    padding: 1rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-topbar span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.admin-nav a.active {
    background: var(--green);
    color: var(--white);
}

.admin-content {
    flex: 1;
    background: #F7F7F7;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-main {
    padding: 1.5rem;
    flex: 1;
}

.admin-page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-page-header .admin-page-title {
    margin-bottom: 0;
}

.admin-page-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Admin stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F0F7E8;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card-body {
    min-width: 0;
    flex: 1;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.3rem;
}

.stat-trend .icon-xs { flex-shrink: 0; }

.stat-trend.up { color: var(--green-dark); }
.stat-trend.down { color: var(--danger); }
.stat-trend.flat { color: var(--charcoal-light); font-weight: 500; }

/* Admin card */
.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-main .data-table {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.admin-main .admin-card:has(> .data-table),
.admin-main .admin-card:has(> table) {
    overflow-x: auto;
}

.admin-main .data-table tbody tr {
    transition: background 0.12s;
}

.admin-main .data-table tbody tr:nth-child(even) {
    background: #FBFBFA;
}

.admin-main .data-table tbody tr:hover {
    background: #F0F7E8;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-cell-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.product-cell-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-light);
}

.view-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.view-toggle-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    color: var(--charcoal-light);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.view-toggle-btn + .view-toggle-btn {
    border-left: 1px solid var(--border);
}

.view-toggle-btn:hover {
    background: var(--surface);
}

.view-toggle-btn.active {
    background: var(--green);
    color: var(--white);
}

/* (grille produits boutique définie plus haut — ne pas écraser avec auto-fill) */

.product-grid-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}

.product-grid-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.product-grid-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--surface);
}

.product-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid-image--empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-light);
}

.product-grid-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.product-grid-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.product-grid-name {
    font-size: 0.95rem;
    margin: 0;
}

.product-grid-meta {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    margin: 0;
}

.product-grid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.product-grid-actions {
    margin-top: 0.5rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-card-title {
    margin-bottom: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.low-stock-card {
    border-color: var(--warning);
    background: #FFFBEA;
}

.low-stock-title {
    margin-bottom: 0.75rem;
    color: var(--warning);
}

.low-stock-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.low-stock-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
    border-radius: 999px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status-pending { color: var(--warning); border-color: var(--warning); background: #FFFBEA; }
.status-processing { color: #2980B9; border-color: #2980B9; background: #EBF5FB; }
.status-shipped { color: var(--green); border-color: var(--green); background: #F0F7E8; }
.status-delivered { color: var(--green-dark); border-color: var(--green-dark); background: #E8F5E0; }
.status-cancelled { color: var(--danger); border-color: var(--danger); background: #FDF0EF; }
.status-active { color: var(--green-dark); border-color: var(--green-dark); background: #E8F5E0; }
.status-inactive { color: var(--charcoal-light); border-color: var(--border); background: #F5F5F5; }

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
}

.login-box {
    background: var(--white);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border-top: 4px solid var(--green);
}

.login-box .logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-box .logo img {
    height: 70px;
    margin: 0 auto;
}

.login-box h1 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    font-size: 0.95rem;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--charcoal-light);
}

.header-utils--desktop {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.header-utils--mobile {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

@media (max-width: 960px) {
    .hero-split,
    .promo-banner,
    .trust-bar-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .experience-grid,
    .experience-grid--all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-side-card {
        grid-template-columns: 120px 1fr;
        min-height: 140px;
    }

    .trends-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .trust-bar-inner {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1.25rem 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .trust-bar-inner::-webkit-scrollbar { display: none; }

    .trust-item {
        flex: 0 0 72%;
        scroll-snap-align: start;
        min-width: 220px;
    }
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }

    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo actions"
            "search search search";
        gap: 0.65rem 0.75rem;
        padding: 0.65rem 1rem;
        align-items: center;
    }

    .menu-toggle { grid-area: menu; }
    .logo-link { grid-area: logo; justify-self: center; }
    .logo-link img { height: 44px; }
    .header-utils--mobile {
        display: flex;
        grid-area: actions;
        justify-self: end;
        gap: 0.15rem;
    }
    .header-utils--desktop { display: none; }
    .header-search {
        grid-area: search;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    .header-search .search-submit {
        min-width: 3.2rem;
    }

    .main-nav-bar--desktop { display: none; }

    .sub-nav-inner {
        padding: 0.45rem 1rem;
        gap: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav a {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
    }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100dvh;
        background: var(--white);
        z-index: 300;
        border-right: 2px solid var(--green);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        padding: 0 0 1.5rem;
        overflow-y: auto;
    }

    .mobile-drawer.is-open {
        transform: translateX(0);
    }

    .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(61, 61, 61, 0.45);
        z-index: 250;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .drawer-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid var(--border);
    }

    .drawer-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--white);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-drawer-nav {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .mobile-drawer-nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.95rem 1.25rem;
        color: var(--charcoal);
        font-weight: 600;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-drawer-nav a:hover {
        background: var(--surface);
        color: var(--green);
    }

    .mobile-drawer-tools {
        display: flex;
        gap: 0.5rem;
        padding: 1.25rem;
        margin-top: auto;
        flex-wrap: wrap;
    }

    body.drawer-open {
        overflow: hidden;
    }

    .site-main {
        padding: 1.5rem 1rem 1.25rem;
    }

    .hero-split {
        height: auto;
        max-height: none;
        margin-top: 0.25rem;
        margin-bottom: 1.75rem;
        gap: 0.75rem;
    }

    .hero-main {
        min-height: 200px;
        height: 200px;
    }

    .hero-side {
        height: auto;
    }

    .hero-side-card {
        min-height: 110px;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
    }

    .section-head {
        align-items: center;
    }

    .product-carousel-item {
        flex: 0 0 min(200px, 68vw);
    }
}

@media (max-width: 768px) {
    .product-detail,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-body {
        flex-direction: column;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar-close {
        display: inline-flex;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.3);
        background: transparent;
        color: var(--white);
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        max-width: 82vw;
        z-index: 1001;
        transform: translateX(-100%);
        overflow-y: auto;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    }

    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1000;
    }

    .admin-sidebar-overlay.is-open {
        display: block;
    }
}

/* Product card extras */
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card-link { flex: 1; color: inherit; display: flex; flex-direction: column; min-width: 0; }
.product-card-badges { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.product-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; text-transform: uppercase; }
.badge-new { background: var(--green-light); color: var(--charcoal); }
.badge-promo { background: var(--green); color: var(--white); }
.wishlist-btn { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; background: var(--white); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.wishlist-btn.active { color: var(--green); border-color: var(--green); }
.product-card-actions { margin-top: auto; padding: 0.35rem 0 0; display: flex; gap: 0.45rem; }
.product-rating { color: var(--charcoal); font-size: 0.8rem; display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.4rem; }
.product-rating .stars { color: var(--green); letter-spacing: -1px; }
.rating-num { font-weight: 700; }
.rating-count { color: var(--charcoal-light); }
.share-buttons { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.review-item { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.faq-item { border: 1px solid var(--border); margin-bottom: 0.75rem; padding: 0.75rem 1rem; background: var(--white); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; font-weight: 600; }
.header-tools { display: flex; gap: 0.35rem; align-items: center; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff !important;
    z-index: 9999;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none !important;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #fff !important;
    background: #1da851;
}
.whatsapp-float svg {
    display: block;
    flex-shrink: 0;
}
.whatsapp-float-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.compare-table td { vertical-align: top; }

/* Page loader */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.site-loader-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    animation: loaderPulse 1.4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.site-loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -85px 0 0 -70px;
    border: 3px solid transparent;
    border-top-color: var(--green);
    border-right-color: var(--green-light);
    border-radius: 50%;
    animation: loaderSpin 0.9s linear infinite;
}

.site-loader-text {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    margin-top: 0.35rem;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.88; }
}

[data-theme="dark"] .site-loader {
    background: var(--bg);
}


/* Lucide icons */
.icon,
[data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.6;
    flex-shrink: 0;
    vertical-align: middle;
}

.icon-xs { width: 0.95rem; height: 0.95rem; }
.icon-sm { width: 1.05rem; height: 1.05rem; }
.icon-lg { width: 2.5rem; height: 2.5rem; color: var(--green-light); }

.util-btn .icon-sun { display: none; }

.wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn.active .wishlist-heart,
.wishlist-btn.active svg {
    fill: var(--green);
    color: var(--green);
    stroke: var(--green);
}

.footer-links a,
.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-contact {
    display: flex;
}

.btn .icon {
    margin-right: 0.25rem;
}

.whatsapp-float .icon {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 2;
}

[data-theme="dark"] {
    --charcoal: #E8E8E8;
    --charcoal-light: #B0B0B0;
    --white: #1A1A1A;
    --bg: #121212;
    --border: #333333;
    --green: #7CB342;
    --green-light: #C5D93E;
    --green-dark: #689F38;
    --surface: #222222;
}

[data-theme="dark"] body { background: var(--bg); color: var(--charcoal); }
[data-theme="dark"] .site-header,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .login-box,
[data-theme="dark"] .experience-card,
[data-theme="dark"] .hero-side-card,
[data-theme="dark"] .carousel-btn,
[data-theme="dark"] .btn-icon { background: #1E1E1E; }
[data-theme="dark"] .mobile-drawer,
[data-theme="dark"] .menu-toggle,
[data-theme="dark"] .drawer-close { background: #1E1E1E; }
[data-theme="dark"] .mobile-drawer-nav a { border-color: var(--border); }

[data-theme="dark"] .form-control { background: #2A2A2A; color: var(--charcoal); border-color: var(--border); }
[data-theme="dark"] .data-table th { background: #252525; }
[data-theme="dark"] .site-footer { background: #0D0D0D; }
[data-theme="dark"] .promo-banner { background: #3a5a20; }
[data-theme="dark"] .trust-bar { background: var(--green-dark); }
[data-theme="dark"] .pill { background: #2A2A2A; color: var(--charcoal); }
[data-theme="dark"] .filter-pill { background: #222; }
[data-theme="dark"] .price-highlight { color: #1A1A1A; }
[data-theme="dark"] .hero { border-color: var(--green); }

/* ��� Improvements: stock, checkout, about, bottom nav, reviews ��� */
.badge-oos { background: #c62828; color: #fff; }
.badge-low { background: #ef6c00; color: #fff; }
.product-card--oos { opacity: 0.88; }
.product-card--oos .product-image img { filter: grayscale(0.35); }
.stock-hint { display: block; font-size: 0.75rem; font-weight: 600; margin-top: 0.2rem; }
.stock-hint--low { color: #ef6c00; }
.stock-hint--oos { color: #c62828; }
.btn-icon.is-added, .btn.is-added { background: var(--green) !important; color: #fff !important; }

.toast-host {
    position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%);
    z-index: 1200; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
    width: min(92vw, 360px);
}
.toast {
    background: var(--charcoal); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius);
    opacity: 0; transform: translateY(8px); transition: .25s ease; font-size: 0.9rem; text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.toast--error { background: #c62828; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, 1fr); gap: 0.15rem;
}
.bottom-nav-item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.4rem 0.25rem; color: var(--charcoal-light); text-decoration: none; font-size: 0.68rem; font-weight: 600;
}
.bottom-nav-item .icon { width: 1.25rem; height: 1.25rem; }
.bottom-nav-item.is-active { color: var(--green); }
.bottom-nav-item .cart-badge {
    position: absolute; top: 0.15rem; right: calc(50% - 1.35rem);
    min-width: 1rem; height: 1rem; font-size: 0.65rem; padding: 0 0.25rem;
}

.drawer-cats { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.drawer-cats-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--charcoal-light); margin: 0 0 0.5rem; }

.category-hero {
    position: relative; border-radius: var(--radius); overflow: hidden; min-height: 160px;
    background: var(--green) center/cover no-repeat;
    background-image: linear-gradient(120deg, rgba(61,61,61,.72), rgba(107,158,62,.55)), var(--cat-hero);
    margin-bottom: 1.25rem; color: #fff;
}
.category-hero-inner { padding: 1.75rem 1.5rem; max-width: 640px; }
.category-hero h1 { font-family: Fraunces, serif; font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 0.4rem; }
.category-hero p { margin: 0; opacity: .92; line-height: 1.5; }

.category-toolbar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.category-toolbar .filter-pills { margin-bottom: 0; }
.price-filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.price-filter-form .form-control { width: 5.5rem; }

.checkout-page { max-width: 1100px; margin: 0 auto; }
.checkout-steps {
    display: flex; gap: 0.5rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none;
}
.checkout-steps::-webkit-scrollbar { display: none; }
.checkout-step {
    flex: 1; min-width: 7.5rem; display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--white); color: var(--charcoal-light); font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.checkout-step:disabled { opacity: 0.55; cursor: default; }
.checkout-step.is-active { border-color: var(--green); color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--green); }
.checkout-step.is-done { border-color: var(--green-light); color: var(--green-dark); }
.checkout-step-num {
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg); display: inline-flex;
    align-items: center; justify-content: center; font-size: 0.8rem;
}
.checkout-step.is-active .checkout-step-num { background: var(--green); color: #fff; }
.checkout-panel h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.checkout-hint { color: var(--charcoal-light); margin: 0 0 1.25rem; font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-error { display: block; color: #c62828; font-size: 0.78rem; margin-top: 0.25rem; }
.form-control.is-invalid { border-color: #c62828; }
.checkout-nav-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.sticky-summary { position: sticky; top: 5.5rem; align-self: start; }
.checkout-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-items li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; margin-bottom: 0.4rem; }
.checkout-trust { display: grid; gap: 0.75rem; margin: 1.25rem 0; }
.checkout-trust-item {
    display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem;
    background: var(--bg); border-radius: var(--radius);
}
.checkout-trust-item strong { display: block; }
.checkout-trust-item span { font-size: 0.82rem; color: var(--charcoal-light); }
.checkout-pay-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; font-size: 0.8rem; color: var(--charcoal-light); }
.checkout-pay-badges span { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--bg); padding: 0.35rem 0.55rem; border-radius: 999px; }
.checkout-review { background: var(--bg); padding: 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; line-height: 1.55; }

.about-page { max-width: 760px; margin: 0 auto; }
.about-hero { margin-bottom: 2rem; }
.about-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 0.75rem; color: var(--green); font-weight: 700; margin: 0 0 0.35rem; }
.about-hero h1 { font-family: Fraunces, serif; font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.75rem; }
.about-lead { font-size: 1.1rem; color: var(--charcoal-light); line-height: 1.6; }
.about-block { margin-bottom: 1.75rem; }
.about-block h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.about-block p { line-height: 1.65; color: var(--charcoal); }
.about-block--alt { padding: 1.25rem; background: linear-gradient(135deg, rgba(107,158,62,.08), rgba(184,207,62,.12)); border-radius: var(--radius); }
.about-values-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.about-values-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.about-values-list strong { display: block; }
.about-values-list span { color: var(--charcoal-light); font-size: 0.92rem; }
.about-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.home-reviews .reviews-avg { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; color: var(--charcoal-light); }
.reviews-avg-score { font-size: 1.5rem; font-weight: 700; color: var(--charcoal); }
.reviews-carousel {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
    gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.home-review-card {
    margin: 0; padding: 1.15rem; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.55rem;
}
.home-review-stars { color: var(--green); letter-spacing: 0.05em; }
.home-review-card footer { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; margin-top: auto; }
.home-review-card footer a { color: var(--green-dark); }

.cart-suggestions { margin-top: 2.5rem; }

.home-section .section-head {
    margin-bottom: 1.35rem;
}

@media (max-width: 1100px) {
    .category-grid,
    .product-grid,
    .product-grid--home,
    .product-grid--suggest,
    .experience-grid,
    .experience-grid--all {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .category-grid,
    .product-grid,
    .product-grid--home,
    .product-grid--suggest,
    .experience-grid,
    .experience-grid--all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;
    }

    .site-main,
    .site-main--home {
        padding-top: 1.5rem;
    }
}

@media (max-width: 420px) {
    .category-grid,
    .product-grid,
    .product-grid--home,
    .product-grid--suggest {
        grid-template-columns: 1fr;
    }
}

.stat-card--alert { border-color: #c62828; }
.stat-card--warn { border-color: #ef6c00; }
.low-stock-intro { color: var(--charcoal-light); margin: 0 0 0.75rem; font-size: 0.9rem; }
.low-stock-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.low-stock-qty { display: inline-block; margin-left: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.low-stock-qty.is-oos { color: #c62828; }
.low-stock-qty.is-low { color: #ef6c00; }


@media (max-width: 900px) {
    .form-row { grid-template-columns: 1fr; }
    .sticky-summary { position: static; }
    .checkout-layout { display: flex; flex-direction: column-reverse; gap: 1.25rem; }
    .checkout-summary { order: -1; }
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: grid; }
    body.has-bottom-nav { padding-bottom: 4.5rem; }
    body.has-bottom-nav .whatsapp-float { bottom: 4.75rem; }
    .checkout-step span:not(.checkout-step-num) { font-size: 0.75rem; }
    .btn-checkout-submit { width: 100%; justify-content: center; }
    .checkout-nav-btns .btn { flex: 1; }
}
