/* ===========
   Reset de base
   =========== */
html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

/* ===========
   Conteneur de contenu standard
   =========== */

.content-container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1600px;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

@media (min-width: 768px) {
    .content-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

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

/* ===========
   Icônes & effets globaux
   =========== */

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 300,
        'GRAD' 0,
        'opsz' 24;
}

.group:hover .group-hover-glow {
    box-shadow: 0 0 15px 5px rgba(var(--color-primary-rgb), 0.3);
}

.cta-glow {
    box-shadow: 0 0 20px 5px rgba(var(--color-primary-rgb), 0.4);
    transition: box-shadow 0.3s ease-in-out;
}

.cta-glow:hover {
    box-shadow: 0 0 30px 10px rgba(var(--color-primary-rgb), 0.5);
}

.light-trail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.6), transparent);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 1s ease-in-out, opacity 0.5s;
}

.group:hover .light-trail::after {
    transform: translateX(100%);
    opacity: 1;
}

/* ===========
   Header & nav
   =========== */

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    position: sticky;
    top: 0;
    z-index: 300;
}

html.dark .main-header {
    background-color: rgba(13, 20, 26, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Header Top Line */
.main-header__top {
    background-color: transparent;
}

/* Header Nav Line */
.main-header__nav {
    background-color: rgba(249, 250, 251, 0.5);
}

html.dark .main-header__nav {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Logo avec icône LED */
.header-logo {
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

html.dark .header-logo {
    color: #f1f5f9;
}

.header-logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 50%, var(--color-primary) 100%);
    border-radius: 1px;
    color: #111827;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.header-logo:hover .header-logo__icon {
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.6);
    transform: scale(1.05);
}

.header-logo__icon .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

.header-logo__text {
    line-height: 1.2;
}

/* Barre de recherche principale */
.header-search-main__input {
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-search-main__input:focus {
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.2);
}

html.dark .header-search-main__input {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark .header-search-main__input:focus {
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.15);
}

/* Bouton Contact */
.header-contact-btn {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.header-contact-btn .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* Legacy support */
.main-header__bar {
    color: #0f172a;
}

html.dark .main-header__bar {
    color: #e5e7eb;
}

.header-logo h2 {
    color: inherit;
}

.nav-link {
    position: relative;
    font-size: 1.075rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 0.75rem 0.625rem;
    color: #4b5563;
    transition: color 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.nav-link:hover {
    color: #0f172a;
}

html.dark .nav-link {
    color: #d1d5db;
}

html.dark .nav-link:hover {
    color: #ffffff;
}

.nav-link--active {
    color: #0f172a;
    font-weight: 600;
}

html.dark .nav-link--active {
    color: #ffffff;
}

.nav-link__icon {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.mega-menu-wrapper:hover .nav-link__icon {
    transform: rotate(180deg);
}

/* ===========
   Mega menu plein écran
   =========== */

.mega-menu-wrapper {
    position: static;
    padding: 0;
    margin: 0;
}

/* Le mega-menu se positionne par rapport à la <nav> (position:relative) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    z-index: 9999;
    /* L'affichage est géré par Alpine x-show — pas besoin de opacity/visibility CSS */
}

/* Garde la compatibilité si Alpine n'est pas encore chargé */
.mega-menu-wrapper:hover .mega-menu {
    display: block;
}

/* Aucun soulignement sur les liens du menu */
.main-header a,
.mega-menu a {
    text-decoration: none;
}

.mega-menu__panel {
    margin: 0;
    width: 100%;
    border-radius: 0;
    padding: 1.5rem 5vw;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    border-left: none;
    border-right: none;
    background-color: #ffffff;
    color: #0f172a;
    display: grid;
    gap: 2.5rem;
}

.mega-menu__panel--catalogue {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.mega-menu__card--catalogue {
    padding: 0.75rem;
}

.mega-menu__card--catalogue .mega-menu__card-image {
    margin-top: 0.5rem;
    padding-bottom: 70%;
}

/* Configurateurs panel - 4 colonnes */
.mega-menu__panel--configurateurs {
    padding: 1.5rem 10vw;
}

.mega-menu__panel--configurateurs .grid {
    gap: 1rem;
}

/* Carte configurateur avec image de fond */
.mega-menu__card--configurateur {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 1px;
    aspect-ratio: 3/2;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mega-menu__card--configurateur:hover {
    border-color: rgba(var(--color-primary-rgb), 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(var(--color-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.mega-menu__card--configurateur .mega-menu__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.mega-menu__card--configurateur:hover .mega-menu__card-image {
    transform: scale(1.1);
}

.mega-menu__card--configurateur .mega-menu__card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
    transition: all 0.3s ease;
}

.mega-menu__card--configurateur:hover .mega-menu__card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.mega-menu__card--configurateur .mega-menu__card-header {
    margin-bottom: 0.5rem;
}

.mega-menu__card--configurateur .mega-menu__card-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem;
}

.mega-menu__card--configurateur:hover .mega-menu__card-icon {
    background-color: rgba(var(--color-primary-rgb), 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.5);
    transform: scale(1.05);
}

.mega-menu__card--configurateur .mega-menu__card-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mega-menu__card--configurateur .mega-menu__card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mega-menu__card--configurateur:hover .mega-menu__card-title,
.mega-menu__card--configurateur:hover .mega-menu__card-text {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive pour configurateurs */
@media (max-width: 1024px) {
    .mega-menu__panel--configurateurs .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mega-menu__panel--configurateurs .grid {
        grid-template-columns: 1fr;
    }
}

html.dark .mega-menu__panel {
    background-color: rgba(13, 20, 26, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.mega-menu__card {
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.4);
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mega-menu__card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
    border-color: rgba(var(--color-primary-rgb), 0.6);
}

html:not(.dark) .mega-menu__card {
    background-color: #f9fafb;
    border-color: rgba(148, 163, 184, 0.5);
}

html:not(.dark) .mega-menu__card:hover {
    background-color: #ffffff;
}

.mega-menu__card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mega-menu__card-icon {
    padding: 0.5rem;
    border-radius: 1px;
    background-color: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mega-menu__card:hover .mega-menu__card-icon {
    transform: scale(1.05);
    color: var(--color-primary-hover);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.5);
}

.mega-menu__card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: inherit;
}

.mega-menu__card-text {
    font-size: 0.875rem;
    margin: 0;
    color: #9ca3af;
}

html:not(.dark) .mega-menu__card-text {
    color: #6b7280;
}

.mega-menu__card-image {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 1px;
    background-size: cover;
    background-position: center;
    padding-bottom: 56.25%;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.mega-menu__card:hover .mega-menu__card-image {
    transform: scale(1.05);
}

/* ===========
   Boutons header (icônes)
   =========== */

.header-icon-btn {
    display: flex;
    max-width: 480px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1px;
    height: 2.5rem;
    width: 2.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    transition: all 0.15s ease;
}

.header-icon-btn:hover {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    color: var(--color-primary);
}

html.dark .header-icon-btn {
    color: #d1d5db;
}

html.dark .header-icon-btn:hover {
    background-color: rgba(var(--color-primary-rgb), 0.15);
    border-color: rgba(var(--color-primary-rgb), 0.4);
    color: var(--color-primary);
}

/* ===========
   Search header
   =========== */

.header-search {
    position: relative;
}

.header-search__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.header-search__input {
    width: 16rem;
    border-radius: 1px !important;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 0.5rem 1rem 0.5rem 3.6rem !important;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s ease,
                box-shadow 0.15s ease,
                width 0.2s ease,
                background-color 0.15s ease;
}

.header-search__input::placeholder {
    color: #9ca3af;
}

.header-search__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.8);
    width: 18rem;
}

html.dark .header-search__input {
    background-color: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

.header-search__dropdown {
    position: absolute;
    top: 100%;
    margin-top: 0.5rem;
    width: 100%;
    background-color: #ffffff;
    border-radius: 1px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
    display: none;
    z-index: 30;
}

html.dark .header-search__dropdown {
    background-color: #0D141A;
    border-color: rgba(255, 255, 255, 0.1);
}

.header-search:focus-within .header-search__dropdown {
    display: block;
}

/* ===========
   Bandeau promo
   =========== */

.promo-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: #111827;
    z-index: 10;
}

html.dark .promo-banner {
    background-color: rgba(var(--color-primary-rgb), 0.9);
    color: #0B1016;
}

/* ===========
   Produits phares - Grille 4 colonnes (sans carousel)
   =========== */

/* Conteneur du carousel - overflow visible */
#productsCarousel {
    overflow: visible !important;
}

/* Track du carousel - grille 4 colonnes au lieu de flex */
#productsTrack {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    transform: none !important;
    transition: none !important;
}

/* Cartes produits - largeur auto */
#productsTrack .product-card {
    min-width: 0 !important;
    width: 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Masquer les boutons de navigation */
#prevProduct,
#nextProduct {
    display: none !important;
}

/* Masquer les dots de pagination */
#productsDots {
    display: none !important;
}

/* Responsive - 2 colonnes sur tablette */
@media (max-width: 1200px) {
    #productsTrack {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive - 1 colonne sur mobile */
@media (max-width: 640px) {
    #productsTrack {
        grid-template-columns: 1fr !important;
    }
}

/* ====================
   Bottom Navigation
   ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

html.dark .bottom-nav__bar {
    background-color: rgba(13, 20, 26, 0.95);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    min-width: 64px;
}

.bottom-nav__item:active {
    transform: scale(0.95);
}

html.dark .bottom-nav__item {
    color: #9ca3af;
}

.bottom-nav__item--active {
    color: var(--color-primary);
}

.bottom-nav__item--active .bottom-nav__icon {
    font-variation-settings: 'FILL' 1, 'wght' 500;
}

.bottom-nav__icon {
    font-size: 24px;
    line-height: 1;
    transition: all 0.2s ease;
}

.bottom-nav__label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.bottom-nav__badge {
    position: absolute;
    top: 4px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.bottom-nav__badge--success {
    background-color: #10b981;
}

/* Ajouter du padding en bas du body pour éviter que le contenu soit caché */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    /* Cacher le footer contact sur mobile quand bottom nav est visible */
    .footer-mobile-hidden {
        display: none;
    }
}

/* ====================
   Skeleton Loaders
   ==================== */

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e8e8e8 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 1px;
}

html.dark .skeleton {
    background: linear-gradient(
        90deg,
        #374151 25%,
        #4b5563 50%,
        #374151 75%
    );
    background-size: 200% 100%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-image {
    aspect-ratio: 1;
    width: 100%;
}

.skeleton-button {
    height: 40px;
    width: 120px;
}

.skeleton-card {
    border-radius: 1px;
    overflow: hidden;
}

/* ====================
   Active Filter Badges
   ==================== */

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    border-radius: 1px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-badge:hover {
    background-color: rgba(var(--color-primary-rgb), 0.2);
}

html.dark .filter-badge {
    background-color: rgba(var(--color-primary-rgb), 0.15);
}

.filter-badge__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 1px;
    background-color: rgba(var(--color-primary-rgb), 0.2);
    color: var(--color-primary);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.filter-badge__remove:hover {
    background-color: var(--color-primary);
    color: #111827;
}

.filter-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-clear-all {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 6px 0;
}

.filter-clear-all:hover {
    color: var(--color-primary);
}

/* ====================
   Toast Notifications
   ==================== */

.toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (max-width: 767px) {
    .toast-container {
        top: auto;
        bottom: calc(80px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: white;
    border-radius: 1px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    animation: toast-slide-in 0.3s ease;
    max-width: 400px;
}

html.dark .toast {
    background-color: #1f2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    @keyframes toast-slide-in {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.toast--success .toast__icon {
    color: #10b981;
}

.toast--warning .toast__icon {
    color: #f59e0b;
}

.toast--error .toast__icon {
    color: #ef4444;
}

.toast--info .toast__icon {
    color: #3b82f6;
}

.toast__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 2px;
}

html.dark .toast__title {
    color: #f3f4f6;
}

.toast__message {
    font-size: 0.875rem;
    color: #6b7280;
}

html.dark .toast__message {
    color: #9ca3af;
}

.toast__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 1px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast__close:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

html.dark .toast__close:hover {
    background-color: #374151;
    color: #e5e7eb;
}

/* ====================
   Stock Indicators
   ==================== */

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.stock-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-indicator--in-stock .stock-indicator__dot {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.stock-indicator--in-stock {
    color: #10b981;
}

.stock-indicator--low-stock .stock-indicator__dot {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.stock-indicator--low-stock {
    color: #f59e0b;
}

.stock-indicator--out-of-stock .stock-indicator__dot {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.stock-indicator--out-of-stock {
    color: #ef4444;
}

/* ====================
   Product Badges
   ==================== */

.product-badge {
    position: absolute;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 1px;
    z-index: 10;
}

.product-badge--new {
    top: 12px;
    left: 12px;
    background-color: #3b82f6;
    color: white;
}

.product-badge--promo {
    top: 12px;
    right: 12px;
    background-color: #ef4444;
    color: white;
}

.product-badge--bestseller {
    top: 12px;
    left: 12px;
    background-color: var(--color-primary);
    color: #111827;
}

/* ====================
   Global Square Theme Override
   Force squared corners on all UI elements
   ==================== */

/* Override Tailwind rounded classes globally */
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
.rounded-lg,
.rounded-md,
.rounded {
    border-radius: 2px !important;
}

/* Keep rounded-sm as is (already 2px) */
.rounded-sm {
    border-radius: 2px !important;
}

/* Preserve rounded-full only for specific elements */
.rounded-full:not(.w-2):not(.h-2):not(.w-1):not(.h-1):not(.w-1\.5):not(.h-1\.5):not(.animate-spin):not([class*="border-t-"]):not(.bottom-nav__badge) {
    border-radius: 2px !important;
}

/* Cards, containers, modals */
[class*="card"],
[class*="modal"],
[class*="dropdown"],
[class*="popover"],
[class*="tooltip"] {
    border-radius: 2px !important;
}

/* Buttons */
button:not(.rounded-full),
[type="button"]:not(.rounded-full),
[type="submit"],
[type="reset"],
.btn,
[class*="btn-"] {
    border-radius: 2px !important;
}

/* Form inputs */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    border-radius: 2px !important;
}

/* Images containers */
[class*="overflow-hidden"]:not(.rounded-full) {
    border-radius: 2px !important;
}

/* Badges (except dot indicators) */
[class*="badge"]:not(.bottom-nav__badge) {
    border-radius: 2px !important;
}
