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

:root {
    /* Palette rouge cohérente avec le site */
    --primary: #c1121f;
    --primary-dark: #9b0e19;
    --secondary: #780000;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
}

body {
    /* Police globale unifiée sur tout le site (front + admin) */
    font-family: "WF Visual Sans Variable", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-bar p {
    margin: 0;
    animation: slideIn 0.5s ease-out;
}

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

/* Header & Navigation */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons - harmonisés en rouge */
.btn {
    display: inline-block;
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary,
.btn-secondary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(193, 18, 31, 0.35);
}

.btn-primary:hover,
.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(155, 14, 25, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-disabled {
    background: var(--gray);
    color: white;
    cursor: not-allowed;
}

/* Product Grid */
.featured, .products-section {
    padding: 3rem 0;
}

.featured h2, .products-section h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}

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

.badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: #111827;
}

.badge-danger {
    background: var(--danger);
    color: #ffffff;
}

.product-info {
    padding: 1.25rem;
}

/* Aperçu produit dans l'admin (ajout de produit) */
.add-product-preview {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--light-gray);
}

.add-product-preview-image {
    width: 120px;
    min-width: 120px;
    height: 120px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.add-product-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.add-product-preview-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.add-product-preview-price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.add-product-preview-description {
    font-size: 0.9rem;
    color: var(--gray);
}

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

.add-product-thumb {
    width: 38px;
    height: 38px;
    border-radius: 0.4rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

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

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Global confirm modal (cart, etc.) */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.confirm-modal {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

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

.confirm-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    font-size: 1.25rem;
}

.confirm-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.confirm-modal-body {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.confirm-modal-actions .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.confirm-modal-actions .btn-secondary {
    background: #e5e7eb;
    color: #111827;
    box-shadow: none;
}

.confirm-modal-actions .btn-secondary:hover {
    background: #d1d5db;
}

/* Cart Page */
.cart-section {
    padding: 3rem 0;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.item-price {
    color: var(--gray);
}

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

.qty-btn {
    background: var(--light-gray);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s;
}

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

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 1rem;
}

.item-subtotal {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.btn-remove {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

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

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: bold;
    border-top: 2px solid var(--dark);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.btn-checkout, .btn-clear-cart {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Auth modal (connexion / inscription) façon carte unique */
.auth-modal-dialog {
    max-width: 480px;
    margin: 0 auto;
}

.auth-modal {
    position: relative;
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.auth-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.auth-modal-body {
    padding: 2rem 2.25rem 2.25rem;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.auth-tabs .nav-item {
    flex: 1;
    text-align: center;
}

.auth-tabs .nav-link {
    width: 100%;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.75rem;
    color: var(--gray);
    font-weight: 600;
    background: transparent;
}

.auth-tabs .nav-link.active {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-modal .auth-form {
    width: 100%;
}

.auth-modal .auth-form .form-control {
    width: 100%;
}

@media (min-width: 600px) {
    .auth-modal-dialog {
        max-width: 540px;
    }
}
@media (min-width: 600px) {
    .auth-modal-dialog {
        max-width: 520px;
    }
}

/* Filters & Search */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-filter label {
    font-size: 0.9rem;
    font-weight: 500;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.products-info {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.product-link {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

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

.product-stock {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.stock-available {
    color: var(--secondary);
    font-weight: 500;
}

.stock-unavailable {
    color: var(--danger);
    font-weight: 500;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Product Detail Page */
.product-detail-section {
    padding: 3rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.product-detail-image {
    position: relative;
    background: var(--light-gray);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-gallery-main {
    position: relative;
    background: var(--light-gray);
    border-radius: 0.75rem;
    overflow: hidden;
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.product-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

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

.product-detail-image .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-detail-stock {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.product-detail-description {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.product-detail-description h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-detail-description p {
    line-height: 1.8;
    color: var(--gray);
}

.product-external-link {
    margin-bottom: 1.5rem;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.btn-external svg {
    flex-shrink: 0;
}

.btn-external:hover svg {
    transform: translate(2px, -2px);
    transition: transform 0.2s ease;
}

.product-detail-actions {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-controls .qty-input {
    width: 80px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.quantity-controls .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: var(--light-gray);
}

.quantity-controls .qty-btn:hover {
    background: var(--border);
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.product-features {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.product-features h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--gray);
}

.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.related-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* Product card hidden state */
.product-card.hidden {
    display: none;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-name {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #111827;
}

.user-name:hover {
    background: var(--light-gray);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--light-gray);
}

/* Auth Pages (pages dédiées - moins utilisées maintenant) */
.auth-section {
    padding: 4rem 0;
    background: var(--light-gray);
    min-height: calc(100vh - 200px);
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

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

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.address-input-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.address-input-wrapper input {
    flex: 1;
}

.btn-geolocate {
    padding: 0.75rem 1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-geolocate:hover {
    background: #059669;
    transform: scale(1.05);
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.address-suggestions.active {
    display: block;
}

.address-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover {
    background: var(--light-gray);
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-weight: 400;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Checkout Page */
.checkout-section {
    padding: 3rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary);
    background: var(--light-gray);
}

.payment-option input[type="radio"] {
    margin-right: 0.75rem;
    width: auto;
}

.card-fields {
    margin-top: 1rem;
}

.checkout-summary {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.summary-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.summary-item-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.summary-totals {
    margin-bottom: 1.5rem;
}

.security-badges {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    text-align: center;
}

.security-badges p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Order Confirmation */
.confirmation-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.confirmation-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.confirmation-message {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.order-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: left;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-items-summary {
    margin: 2rem 0;
    text-align: left;
}

.confirmation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.confirmation-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Orders List */
.orders-section {
    padding: 3rem 0;
}

.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-gray);
}

.order-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.order-body {
    padding: 1.5rem;
}

.order-info p {
    margin: 0.5rem 0;
}

.order-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* Order Detail */
.order-detail-section {
    padding: 3rem 0;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tracking-container {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tracking-number {
    margin: 1rem 0 2rem;
    font-size: 1.1rem;
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.tracking-step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.5;
}

.tracking-step.active {
    opacity: 1;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.step-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.order-items {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.order-item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.order-summary-box,
.shipping-address-box {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: var(--warning);
    color: white;
}

.status-processing {
    background: var(--primary);
    color: white;
}

.status-completed {
    background: var(--secondary);
    color: white;
}

.status-cancelled {
    background: var(--danger);
    color: white;
}

/* Admin Section */
.admin-section {
    padding: 2rem 0;
    background: var(--light-gray);
    min-height: 100vh;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-nav a {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    background: var(--light-gray);
    transition: all 0.3s;
}

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

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.stat-icon {
    font-size: 3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.inventory-stats {
    margin: 1.5rem 0;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--light-gray);
    border-radius: 0.5rem;
}

.inventory-item.warning {
    background: #fef3c7;
}

.inventory-item.danger {
    background: #fee2e2;
}

.inventory-value {
    font-weight: bold;
    font-size: 1.2rem;
}

.recent-orders-list {
    margin: 1.5rem 0;
}

.recent-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-products-table,
.admin-orders-table {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* Coloration des lignes produits en admin selon le stock */
.admin-products-table tr.admin-row-out {
    background: #fef2f2;
}

.admin-products-table tr.admin-row-low {
    background: #fffbeb;
}

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

table th {
    background: var(--light-gray);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.inline-edit {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

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

.btn-small.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-small.btn-secondary:hover {
    background: #059669;
}

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

.btn-small.btn-danger:hover {
    background: #dc2626;
}

.status-select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 0.75rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    /* Réduire la hauteur de la bannière sur mobile */
    .hero > .position-relative {
        height: 420px !important;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 2rem;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .item-quantity {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    .item-subtotal {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .btn-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }

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

    .checkout-summary {
        position: static;
        margin-top: 2rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Footer Improvements */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Petites pastilles réseaux sociaux */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    background: #111827;
    color: #f9fafb;
}

.social-snap {
    background: #facc15;
    color: #111827;
}

.social-tiktok {
    background: #0f172a;
}

.social-insta {
    background: linear-gradient(135deg,#f97316,#ec4899,#8b5cf6);
}

/* Legal Pages */
.legal-section {
    padding: 3rem 0;
    background: var(--light-gray);
}

.legal-section .container {
    max-width: 900px;
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legal-section h1 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p, .legal-content li {
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    background: var(--light-gray);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.modal-details h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-stock {
    margin-bottom: 1.5rem;
}

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

.modal-description p {
    line-height: 1.8;
    color: var(--gray);
}

.modal-size-selector {
    margin-bottom: 1.5rem;
}

.modal-size-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.size-option:hover {
    border-color: var(--primary);
    background: var(--light-gray);
}

.size-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.size-option.out-of-stock {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
    cursor: not-allowed;
    position: relative;
    opacity: 0.6;
}

.size-option.out-of-stock span {
    position: relative;
}

.size-option.out-of-stock span::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: #ef4444;
    transform: translateY(-50%) rotate(-15deg);
}

/* Tooltips de stock pour les tailles */
.size-option {
    position: relative;
}

.size-option[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 0.5rem 0.75rem;
    background: #1f2937;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0.375rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: tooltipFadeIn 0.2s ease;
}

.size-option[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #1f2937 transparent transparent transparent;
    z-index: 1000;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Couleurs spécifiques des tooltips selon le stock */
.size-option.stock-low[data-tooltip]:hover::before {
    background: #f59e0b;
}

.size-option.stock-low[data-tooltip]:hover::after {
    border-color: #f59e0b transparent transparent transparent;
}

.size-option.stock-good[data-tooltip]:hover::before {
    background: #10b981;
}

.size-option.stock-good[data-tooltip]:hover::after {
    border-color: #10b981 transparent transparent transparent;
}

.size-option.stock-out[data-tooltip]:hover::before {
    background: #ef4444;
}

.size-option.stock-out[data-tooltip]:hover::after {
    border-color: #ef4444 transparent transparent transparent;
}

/* Bordures colorées pour indication visuelle */
.size-option.stock-low {
    border-color: #fbbf24;
}

.size-option.stock-good:not(.selected) {
    border-color: #10b981;
}

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

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Admin User Management */
.admin-users-table {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Responsive Updates */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .legal-section .container {
        padding: 1.5rem;
    }

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

    .admin-nav {
        flex-wrap: wrap;
    }

    .container-fluid {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .hero > .position-relative {
        height: 360px !important;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .product-card {
        border-radius: 0.5rem;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .admin-header {
        padding: 1.5rem;
    }
}

/* Auth Modal (connexion / inscription dans la navbar) */
.auth-modal {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    border: none;
}

.auth-modal .modal-header {
    padding: 1.5rem 1.75rem 0.75rem;
}

.auth-modal .modal-title {
    font-family: 'Playfair Display', 'DM Sans', serif;
    font-size: 1.35rem;
}

.auth-modal-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-modal .modal-body {
    padding: 0.25rem 1.75rem 1.75rem;
}

.auth-modal .nav-tabs {
    border-bottom: none;
}

.auth-modal .nav-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-modal .nav-tabs .nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(193, 18, 31, 0.4);
}

.auth-modal .nav-tabs .nav-link:not(.active):hover {
    background-color: #f3f4f6;
}

.auth-modal .form-control {
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
}

.auth-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(193, 18, 31, 0.25);
}

.auth-modal .btn-primary {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
}

.auth-modal .checkbox-group {
    margin-bottom: 0.25rem;
}

.auth-modal .checkbox-label span {
    font-size: 0.85rem;
}

.auth-modal .address-input-wrapper {
    gap: 0.35rem;
}

/* Admin Additional Styles */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h2 {
    margin: 0;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

/* Email Verification Page */
.verification-status {
    text-align: center;
    padding: 3rem 0;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.verification-result {
    text-align: center;
    padding: 2rem 0;
}

.verification-result .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.verification-result.success .icon {
    background: var(--secondary);
    color: white;
}

.verification-result.error .icon {
    background: var(--danger);
    color: white;
}

.verification-result h2 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.verification-result p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.resend-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.resend-section p {
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid var(--secondary);
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid var(--danger);
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid var(--primary);
    color: #1e3a8a;
}

.alert-info a {
    color: var(--primary);
    text-decoration: underline;
}
    color: var(--gray);
    font-style: italic;
}

/* Badge variants */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Promo Code Section */
.promo-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.95rem;
    text-transform: uppercase;
}

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

.promo-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.promo-message.success {
    color: var(--secondary);
}

.promo-message.error {
    color: var(--danger);
}

.promo-applied {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #d1fae5;
    border: 1px solid var(--secondary);
    border-radius: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-applied span {
    color: #065f46;
    font-weight: 500;
}

.btn-remove-promo {
    background: transparent;
    border: none;
    color: #059669;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-remove-promo:hover {
    background: #059669;
    color: white;
}

.summary-row.promo-row {
    color: var(--secondary);
    font-weight: 500;
}

.discount-amount {
    color: var(--secondary);
}

.summary-info {
    padding: 0.5rem 0;
    text-align: center;
    color: var(--secondary);
    font-weight: 500;
}

.summary-info small {
    font-size: 0.875rem;
}

.free-shipping-message {
    padding: 0.75rem;
    margin: 1rem 0;
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 0.375rem;
    text-align: center;
    color: #1e40af;
    font-size: 0.9rem;
}

.free-shipping-message strong {
    color: var(--primary);
}

#promoInputSection {
    display: flex;
    gap: 0.5rem;
}

#promoCodeInput {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.95rem;
    text-transform: uppercase;
}

#promoCodeInput:focus {
    outline: none;
    border-color: var(--primary);
}

/* Reviews Section - Carousel défilant */
.reviews-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
}

.reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.reviews-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.reviews-track {
    display: flex;
    gap: 2rem;
    animation: scrollReviews 60s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    flex: 0 0 350px;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.review-stars {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-stars .star {
    color: #d1d5db;
}

.review-stars .star.filled {
    color: #fbbf24;
}

.review-comment {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.6;
    min-height: 60px;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author strong {
    color: var(--dark);
    font-size: 0.95rem;
}

.verified-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 280px;
    }
    
    .reviews-section h2 {
        font-size: 1.5rem;
    }
}
