/* ============================================================
   HINNOTECH MARKETPLACE - Styles principaux
   Architecture : BEM + CSS Custom Properties
   ============================================================ */

/* --- Variables globales --- */
:root {
    /* Couleurs branding */
    --color-primary: #071d48;
    --color-primary-light: #0a2a6e;
    --color-primary-dark: #041432;
    --color-accent: #ff9800;
    --color-accent-hover: #f57c00;
    
    /* Couleurs fonctionnelles */
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    
    /* Neutres */
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f4f6f9;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-600: #6c757d;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    
    /* Typographie */
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Bordures */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Layout */
    --container-max: 1280px;
    --navbar-height: 64px;
    --topbar-height: 36px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-gray-100);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
    list-style: none;
}

/* --- Top Bar --- */
.topbar {
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    height: var(--topbar-height);
}

.topbar__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.topbar__contact { display: flex; gap: var(--space-lg); }
.topbar__contact a { color: var(--color-gray-300); }
.topbar__contact a:hover { color: var(--color-accent); }

.topbar__social { display: flex; gap: var(--space-md); }
.topbar__social a { color: var(--color-gray-300); font-size: var(--font-size-base); }
.topbar__social a:hover { color: var(--color-accent); }

/* --- Navbar --- */
.navbar {
    background: var(--color-primary);
    height: var(--navbar-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__brand {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: -0.5px;
}

.navbar__brand i { color: var(--color-accent); }

.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar__link {
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar__link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-accent);
}

.navbar__link--cart { position: relative; }
.navbar__link--login { background: var(--color-accent); color: var(--color-primary-dark); font-weight: 600; }
.navbar__link--login:hover { background: var(--color-accent-hover); color: #fff; }
.navbar__link--register { border: 1px solid rgba(255,255,255,0.3); }
.navbar__link--admin { color: var(--color-warning); font-weight: 600; }

.navbar__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    font-weight: 500;
}

.navbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.navbar__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.navbar__burger span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Burger animation - ouverture */
.navbar__burger.active span:nth-child(1) {
    transform: translateY(-8px) rotate(45deg);
}
.navbar__burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar__burger.active span:nth-child(3) {
    transform: translateY(8px) rotate(-45deg);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    padding: 0 6px;
}

.badge--cart {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--color-danger);
    color: #fff;
}

/* --- Alerts --- */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-md) auto;
    max-width: var(--container-max);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: slideDown 0.3s ease;
    position: relative;
}

.alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert--warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }

.alert__close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

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

/* --- Section --- */
.section {
    padding: var(--space-2xl) 0;
}

.section__title {
    text-align: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.section__title i { color: var(--color-accent); margin-right: var(--space-sm); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #06307a 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,152,0,0.1) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

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

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero__title span { color: var(--color-accent); }

.hero__subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.hero__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* --- Boutons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn--primary { background: var(--color-accent); color: var(--color-primary-dark); }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn--success { background: var(--color-success); color: #fff; }
.btn--success:hover { background: #218838; }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #c82333; }
.btn--outline { background: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--lg { padding: var(--space-md) var(--space-xl); font-size: var(--font-size-base); }
.btn--sm { padding: 6px 14px; font-size: var(--font-size-xs); }
.btn--full { width: 100%; justify-content: center; padding: var(--space-md); }

/* --- Categories Grid --- */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-gray-800);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--color-primary);
}

.category-card__icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.category-card h3 { font-size: var(--font-size-base); font-weight: 600; }
.category-card span { font-size: var(--font-size-xs); color: var(--color-gray-600); }

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-gray-200);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card__badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.product-card__badge--success { background: var(--color-success); color: #fff; }

.product-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.product-card__title { font-size: var(--font-size-base); font-weight: 600; color: var(--color-primary); }
.product-card__price { font-size: var(--font-size-lg); font-weight: 700; color: var(--color-accent); }
.product-card__action { margin-top: auto; }

/* --- Cart Group --- */
.cart-group {
    margin-bottom: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.cart-group__date {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
}

.cart-group__date--success { background: #d4edda; color: #155724; }
.cart-group__date--pending { background: #fff3cd; color: #856404; }

.cart-total {
    text-align: center;
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.cart-total--success { background: #d4edda; color: #155724; }
.cart-total--pending { background: var(--color-white); box-shadow: var(--shadow-sm); }

.cart-total__label { display: flex; align-items: center; gap: var(--space-sm); justify-content: center; }
.cart-total__amount { color: var(--color-accent); font-size: 1.5em; }

.payment-group-action {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-200);
}

.payment-group-total { font-size: var(--font-size-lg); margin-bottom: var(--space-md); }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-gray-600);
}

.empty-state__icon { font-size: 4rem; margin-bottom: var(--space-md); opacity: 0.5; }
.empty-state__text { font-size: var(--font-size-lg); margin-bottom: var(--space-lg); }

/* --- Auth Section --- */
.auth-section {
    padding: var(--space-2xl) 0;
    min-height: calc(100vh - var(--navbar-height) - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
}

.auth-card__header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    text-align: center;
    padding: var(--space-xl);
}

.auth-card__icon { font-size: 3rem; margin-bottom: var(--space-md); }
.auth-card__header h2 { font-size: var(--font-size-2xl); margin-bottom: var(--space-sm); }
.auth-card__header p { opacity: 0.85; }

/* --- Form --- */
.form {
    padding: var(--space-xl);
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group--full { grid-column: 1 / -1; }

.form__label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form__input {
    padding: 10px 14px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--color-white);
    width: 100%;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255,152,0,0.15);
}

.form__password-wrapper {
    position: relative;
    display: flex;
}

.form__password-wrapper .form__input { padding-right: 40px; }

.form__toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray-600);
}

.form__file-upload {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.form__file-input { display: none; }

.form__file-label {
    padding: 10px 20px;
    background: var(--color-gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form__file-label:hover { background: var(--color-gray-300); }
.form__file-name { font-size: var(--font-size-sm); color: var(--color-gray-600); }

.form__actions { margin-top: var(--space-lg); }
.form__footer { text-align: center; margin-top: var(--space-lg); font-size: var(--font-size-sm); }

/* --- Footer --- */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-gray-300);
    margin-top: auto;
    padding: var(--space-2xl) 0 0;
}

.footer__container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__title { color: var(--color-white); font-size: var(--font-size-xl); margin-bottom: var(--space-sm); display: flex; align-items: center; gap: var(--space-sm); }
.footer__desc { font-size: var(--font-size-sm); line-height: 1.7; opacity: 0.85; }
.footer__heading { color: var(--color-accent); font-size: var(--font-size-base); margin-bottom: var(--space-md); font-weight: 600; }
.footer__social { display: flex; gap: var(--space-md); margin-top: var(--space-md); }
.footer__social a { color: var(--color-gray-300); font-size: var(--font-size-lg); }
.footer__social a:hover { color: var(--color-accent); }
.footer__links li { margin-bottom: var(--space-sm); }
.footer__links a { color: var(--color-gray-300); font-size: var(--font-size-sm); transition: color 0.2s; }
.footer__links a:hover { color: var(--color-accent); }
.footer__links i { margin-right: var(--space-sm); width: 16px; text-align: center; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: var(--space-lg);
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

/* --- Mobile Nav Bottom --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: var(--space-sm) 0;
    justify-content: space-around;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--color-gray-600);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.mobile-nav a i { font-size: var(--font-size-lg); }
.mobile-nav a.active { color: var(--color-accent); }

/* ══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--success { background: var(--color-success); }
.toast--error   { background: var(--color-danger); }
.toast--info    { background: var(--color-info); }

.toast__close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: var(--font-size-lg);
    cursor: pointer;
    opacity: 0.7;
}

.toast__close:hover { opacity: 1; }

@media (max-width: 480px) {
    .toast {
        left: 16px;
        right: 16px;
        bottom: 80px;
        max-width: 100%;
    }
}

/* ══════════════════════════════════════════════════
   BADGE RUPTURE DE STOCK
   ══════════════════════════════════════════════════ */
.badge--out-of-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ══════════════════════════════════════════════════
   WISHLIST & LIKES
   ══════════════════════════════════════════════════ */
.product-card__wishlist {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    box-shadow: var(--shadow-sm);
}

.product-card__wishlist:hover {
    background: #fff;
    transform: scale(1.1);
}

.product-card__wishlist.wishlist--active {
    color: var(--color-danger);
    background: rgba(255,255,255,0.95);
}

.product-card__wishlist.wishlist--active i {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.product-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
    margin-top: var(--space-xs);
}

.product-card__likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.like--active {
    color: var(--color-danger) !important;
}

/* ══════════════════════════════════════════════════
   THÈMES UTILISATEUR
   ══════════════════════════════════════════════════ */

/* ── Sélecteur de thèmes dans la navbar ── */
.navbar__theme {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 var(--space-xs);
    border-left: 1px solid rgba(255,255,255,0.15);
    margin-left: var(--space-xs);
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
    padding: 0;
    line-height: 1;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.3);
}

.theme-btn--active {
    border-color: var(--color-accent) !important;
    background: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    box-shadow: 0 0 0 2px rgba(255,152,0,0.3);
}

/* Thème par défaut (Default – clair bleu nuit) */
.theme--default {
    --color-primary: #071d48;
    --color-primary-light: #0a2a6e;
    --color-primary-dark: #041432;
    --color-accent: #ff9800;
    --color-accent-hover: #f57c00;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f4f6f9;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-600: #6c757d;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-white: #ffffff;
    background-color: #f4f6f9;
    color: #343a40;
}

/* Thème sombre (Dark) */
.theme--dark {
    --color-primary: #1a1a2e;
    --color-primary-light: #2d2d4a;
    --color-primary-dark: #0f0f1a;
    --color-accent: #e94560;
    --color-accent-hover: #c0392b;
    --color-gray-50: #161626;
    --color-gray-100: #1e1e2e;
    --color-gray-200: #2a2a3e;
    --color-gray-300: #3a3a4e;
    --color-gray-600: #9a9aae;
    --color-gray-800: #d4d4e4;
    --color-gray-900: #f0f0f5;
    --color-white: #16162a;
    background-color: #0d0d1a;
    color: #d4d4e4;
}

/* Application globale du dark mode */
.theme--dark body,
body.theme--dark {
    background-color: #0d0d1a;
    color: #d4d4e4;
}

.theme--dark .product-card,
.theme--dark .category-card,
.theme--dark .cart-group,
.theme--dark .entreprise-card,
.theme--dark .admin-section,
.theme--dark .auth-card,
.theme--dark .stat-card,
.theme--dark .comment-card {
    background: #1e1e2e;
    border: 1px solid #2a2a3e;
    color: #d4d4e4;
}

.theme--dark .form__input {
    background: #2a2a3e;
    border-color: #3a3a4e;
    color: #d4d4e4;
}

.theme--dark .form__input:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.2);
}

.theme--dark .navbar {
    background: #0f0f1a;
}

.theme--dark .navbar__links {
    background: #0f0f1a;
}

.theme--dark .footer {
    background: #060610;
}

.theme--dark .admin-topbar {
    background: #1e1e2e;
    border-color: #2a2a3e;
    color: #d4d4e4;
}

.theme--dark .admin-table th {
    background: #2d2d4a;
}

.theme--dark .admin-table tr:hover {
    background: #22223a;
}

.theme--dark .section__title,
.theme--dark .product-card__title a,
.theme--dark h1, .theme--dark h2, .theme--dark h3 {
    color: #e0e0f0;
}

.theme--dark .alert--success { background: #1a3a28; color: #6fcf97; border-color: #2d5a3d; }
.theme--dark .alert--error   { background: #3a1a1a; color: #eb5757; border-color: #6b2b2b; }

.theme--dark .topbar {
    background: #060610;
}

.theme--dark .mobile-nav {
    background: #1e1e2e;
    border-top: 1px solid #2a2a3e;
}

.theme--dark .mobile-nav a {
    color: #9a9aae;
}

.theme--dark .hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

.theme--dark .category-card:hover {
    background: #2a2a3e;
    color: #e94560;
}

/* Thème Clair (Light) */
.theme--light {
    --color-primary: #1565c0;
    --color-primary-light: #1976d2;
    --color-primary-dark: #0d47a1;
    --color-accent: #ff6f00;
    --color-accent-hover: #e65100;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-600: #757575;
    --color-gray-800: #212121;
    --color-gray-900: #111111;
    --color-white: #ffffff;
    background-color: #f5f5f5;
    color: #212121;
}

.theme--light .navbar {
    background: #1565c0;
}

.theme--light .hero {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.theme--light .product-card,
.theme--light .category-card,
.theme--light .cart-group,
.theme--light .stat-card {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(21,101,192,0.08);
}

.theme--light .category-card:hover {
    color: #1565c0;
    box-shadow: 0 6px 20px rgba(21,101,192,0.15);
}

.theme--light .footer {
    background: #0d47a1;
}

/* ══════════════════════════════════════════════════
   CARROUSEL PUBLICITAIRE PREMIUM
   (rotation 30s avec animations)
   ══════════════════════════════════════════════════ */
.premium-carousel {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 80px;
}

.premium-carousel__track {
    display: flex;
    height: 100%;
    animation: carouselSlide 30s linear infinite;
}

.premium-carousel__slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    animation: fadeSlide 1s ease;
}

.premium-carousel__slide i {
    font-size: var(--font-size-2xl);
    color: var(--color-accent);
}

.premium-carousel__slide span {
    color: var(--color-accent);
    font-weight: 700;
}

@keyframes carouselSlide {
    0%, 20%  { transform: translateX(0); }
    25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
    75%, 95% { transform: translateX(-300%); }
    100%     { transform: translateX(0); }
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .premium-carousel { height: 60px; }
    .premium-carousel__slide { font-size: var(--font-size-sm); }
}

/* ══════════════════════════════════════════════════
   NAVBAR LOGO IMG
   ══════════════════════════════════════════════════ */
.navbar__logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .navbar__logo-img { height: 28px; }
}

/* ══════════════════════════════════════════════════
   STARS CLIENT (étoiles calculées)
   ══════════════════════════════════════════════════ */
.client-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--color-warning);
}

.client-stars i {
    font-size: var(--font-size-sm);
}

/* --- Admin Layout --- */
.admin-layout {
    background: #f4f6f9;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar admin */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1200;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-sidebar__brand {
    padding: var(--space-lg);
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--color-white);
    text-decoration: none;
}

.admin-sidebar__brand i {
    color: var(--color-accent);
    font-size: 1.8rem;
}

.admin-sidebar__nav {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--color-gray-300);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
}

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

.admin-sidebar__link.active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.admin-sidebar__link--back {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
}

/* Main content */
.admin-main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar admin */
.admin-topbar {
    height: 56px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-topbar__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.admin-topbar__burger span {
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.admin-topbar__user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 500;
    color: var(--color-gray-800);
}

.admin-topbar__user i {
    color: var(--color-accent);
    font-size: var(--font-size-lg);
}

/* Content admin */
.admin-content {
    padding: var(--space-lg);
    flex: 1;
}

.admin-content .container {
    max-width: 100%;
    padding: 0;
}

.admin-section {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.admin-section h3 {
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.admin-header h2 {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.inline-form {
    display: inline-block;
}

.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge--active {
    background: #d4edda;
    color: #155724;
}

.badge--disabled {
    background: #f8d7da;
    color: #721c24;
}

.actions-cell {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* --- Admin (legacy) --- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card i {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
    display: block;
}
.stat-card h3 {
    color: var(--color-gray-600);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}
.stat-card p {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}
.stat-card small {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
}

.admin-table th, .admin-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
    font-size: var(--font-size-sm);
}

.admin-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.admin-table tr:hover { background: var(--color-gray-50); }

/* --- Services Page --- */
.services-wrapper { padding: var(--space-xl) 0; }

.floating-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.image-slide {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.image-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-slide h2 {
    padding: var(--space-md);
    font-size: var(--font-size-base);
    color: var(--color-primary);
}

.entreprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.entreprise-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.entreprise-card:hover { transform: translateY(-3px); }

.entreprise-image {
    height: 180px;
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.entreprise-image img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

.entreprise-info {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.entreprise-name { font-size: var(--font-size-lg); color: var(--color-primary); }
.entreprise-description { font-size: var(--font-size-sm); color: var(--color-gray-600); flex: 1; }

.category-container { margin-bottom: var(--space-2xl); }
.category-title {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: #fff;
    display: inline-block;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
}

/* --- Error Pages --- */
.error-page {
    text-align: center;
    padding: var(--space-2xl);
}

.error-page h1 { font-size: 6rem; color: var(--color-accent); font-weight: 800; }
.error-page p { font-size: var(--font-size-lg); margin: var(--space-md) 0; }

/* ══════════════════════════════════════════════════
   QUANTITÉ / INCRÉMENT PANIER
   ══════════════════════════════════════════════════ */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-white);
}

.qty-control__btn {
    width: 32px;
    height: 32px;
    background: var(--color-gray-100);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-primary);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-control__btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: #fff;
}

.qty-control__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qty-control__value {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--color-gray-800);
    padding: 0 var(--space-xs);
    border: none;
    background: transparent;
    pointer-events: none;
    user-select: none;
}

/* Stock indicator dans la fiche produit */
.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.stock-indicator--ok   { background: #d4edda; color: #155724; }
.stock-indicator--low  { background: #fff3cd; color: #856404; }
.stock-indicator--out  { background: #f8d7da; color: #721c24; }

/* Bouton supprimer wishlist */
.wishlist-remove-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(220,53,69,0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--font-size-sm);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.wishlist-remove-btn:hover {
    background: var(--color-danger);
    transform: scale(1.1);
}

/* Produit carte dans panier avec quantité */
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
    flex-wrap: wrap;
}

.cart-item__subtotal {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-style: italic;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .floating-images { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
        --topbar-height: 0px;
    }

    .topbar { display: none; }

    /* Admin sidebar responsive */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .admin-topbar__burger {
        display: flex;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-topbar__user span {
        display: none;
    }

    .navbar__links {
        display: none;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: var(--space-lg);
        z-index: 1100;
        overflow-y: auto;
    }
    .navbar__links .navbar__link { color: var(--color-primary); }
    .navbar__links .navbar__link:hover { background: var(--color-gray-100); color: var(--color-accent); }
    .navbar__links .navbar__link--login { color: var(--color-primary-dark); }
    .navbar__links .navbar__link--login:hover { color: #fff; }

    .navbar__links.active { display: flex; }
    .navbar__burger { display: flex; }
    .navbar__link { width: 100%; padding: var(--space-md); justify-content: center; font-size: var(--font-size-base); }

    .form__grid { grid-template-columns: 1fr; }

    .hero__actions { flex-direction: column; align-items: center; }

    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .categories__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .floating-images { grid-template-columns: 1fr; }
    .entreprise-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr; }

    .mobile-nav { display: flex; }
    body { padding-bottom: 70px; }

    .cart-total { font-size: var(--font-size-base); }
}

/* Small Mobile */
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
    .product-card__image { height: 150px; }
    .product-card__body { padding: var(--space-sm); }
    .hero__title { font-size: 1.4rem; }
    .auth-card { margin: 0 var(--space-sm); }
    .section { padding: var(--space-xl) 0; }
}

/* Print */
@media print {
    .navbar, .topbar, .footer, .mobile-nav, .btn, form { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════════
   CARROUSEL D'IMAGES PRODUIT
   ══════════════════════════════════════════════════ */
.product-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-gray-100);
    user-select: none;
}

/* Piste principale */
.product-carousel__track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-carousel__track::-webkit-scrollbar {
    display: none;
}

.product-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    overflow: hidden;
    scroll-snap-align: start;
}

.product-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.product-carousel__slide--empty {
    font-size: 5rem;
    color: var(--color-gray-300);
}

/* Flèches de navigation */
.product-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
}

.product-carousel:hover .product-carousel__btn {
    opacity: 1;
}

.product-carousel__btn:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.product-carousel__btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

.product-carousel__btn--prev { left: 10px; }
.product-carousel__btn--next { right: 10px; }

/* Toujours visible sur mobile */
@media (max-width: 768px) {
    .product-carousel__btn { opacity: 0.8; width: 34px; height: 34px; }
}

/* Compteur (ex: 2 / 5) */
.product-carousel__counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Miniatures (dots améliorés = vraies vignettes) */
.product-carousel__thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-carousel__thumb {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    background: var(--color-gray-200);
}

.product-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.product-carousel__thumb--active {
    border-color: var(--color-accent);
    transform: scale(1.08);
}

.product-carousel__thumb:hover:not(.product-carousel__thumb--active) {
    border-color: var(--color-gray-300);
    transform: scale(1.04);
}

/* Panneau d'administration des images (côté vendeur) */
.img-manager {
    background: var(--color-gray-50);
    border: 2px dashed var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.img-manager__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.img-manager__grid {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.img-manager__item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--color-gray-200);
    cursor: grab;
    background: var(--color-gray-200);
    transition: border-color 0.2s;
}

.img-manager__item:active { cursor: grabbing; }

.img-manager__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.img-manager__delete {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.img-manager__delete:hover { background: var(--color-danger); }

.img-manager__order-badge {
    position: absolute;
    bottom: 3px;
    left: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    pointer-events: none;
}

.img-manager__upload-zone {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.img-manager__quota {
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
    margin-top: var(--space-sm);
}

.img-manager__quota span {
    font-weight: 700;
    color: var(--color-primary);
}

/* Dark theme adaptation */
.theme--dark .product-carousel {
    background: var(--color-gray-200);
}
.theme--dark .product-carousel__btn {
    background: rgba(30, 30, 46, 0.9);
    color: var(--color-gray-800);
}
.theme--dark .product-carousel__btn:hover {
    background: var(--color-accent);
    color: #fff;
}
.theme--dark .img-manager {
    background: var(--color-gray-200);
    border-color: var(--color-gray-300);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
