/**
 * Mini-App Styles
 * Theme sombre pour application Telegram
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */
:root {
    --config-background: url('/assets/images/background.png?v=5');
    --color-bg: #1a1a1a;
    --color-bg-secondary: #2c2c2c;
    --color-bg-tertiary: #3a3a3a;
    --color-card: rgba(30, 30, 30, 0.85);
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-white: #ffffff;
    --color-primary: #0088cc;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-overlay: rgba(0, 0, 0, 0.4);
    --color-overlay-light: rgba(0, 0, 0, 0.3);

    /* Liquid Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px) saturate(180%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    --glass-radius: 16px;
}

/* Light Mode */
[data-theme="light"] {
    --color-bg: #f5f5f5;
    --color-bg-secondary: #e8e8e8;
    --color-bg-tertiary: #d8d8d8;
    --color-card: rgba(255, 255, 255, 0.9);
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-white: #1a1a1a;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-overlay: rgba(255, 255, 255, 0.4);
    --color-overlay-light: rgba(255, 255, 255, 0.3);

    /* Glass Variables - Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-light: rgba(0, 0, 0, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Reset et styles de base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: auto;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    padding-top: 110px !important;
    padding-bottom: 100px !important;
}

body.cart-page-active {
    padding-top: 20px !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--config-background);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    z-index: -1;
}

body header h1 {
    font-size: 2.7rem !important;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    height: 120px !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    color: var(--color-text) !important;
    padding: 0 10px 5px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), var(--glass-shadow-inset) !important;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

header h1 {
    margin: 0;
    font-size: 2rem !important;
}

header img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 100px;
    width: auto;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header h1 a:hover,
header h1 a:active,
header h1 a:focus {
    text-decoration: none;
    color: inherit;
}

/* Style for the back button inside the header */
header #back-button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    border-radius: 12px;
    padding: 5px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1;
    display: none;
    box-shadow: var(--glass-shadow-inset);
}

header #back-button:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-light);
    transform: translateY(-50%) translateX(-2px);
}

/* ==========================================================================
   Cartes produit
   ========================================================================== */
.product-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.product-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover) !important;
    border-color: var(--glass-border-light);
    box-shadow: var(--glass-shadow), var(--glass-shadow-inset), 0 0 20px rgba(0, 136, 204, 0.1);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.col-6 .product-card {
    padding-bottom: 0;
}

.col-6 .product-card p {
    margin-bottom: 0;
}

.col-12 .product-card p {
    margin-bottom: 0.8rem;
}

.col-12 .product-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   Images produit
   ========================================================================== */
.product-photo {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.col-6 .product-photo {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}

.image-container {
    position: relative;
    margin-bottom: 1rem;
}

.image-container .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 6px 12px;
    background: var(--glass-bg);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    mix-blend-mode: normal;
}

/* ==========================================================================
   Liste des prix
   ========================================================================== */
.price-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.price-list .price-item {
    background: transparent;
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.price-list .price-item:hover {
    border-color: rgba(0, 136, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.price-list .price-weight {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-left: 3px;
}

/* ==========================================================================
   Filtres
   ========================================================================== */
#search,
#category-filter,
#farm-filter {
    border-radius: 50px;
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--color-text);
    transition: all 0.3s ease;
    height: 40px;
    line-height: 1.5;
    box-shadow: var(--glass-shadow-inset);
    font-size: 0.85rem;
}

#search:focus,
#category-filter:focus,
#farm-filter:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--glass-shadow-inset), 0 0 15px rgba(0, 136, 204, 0.3);
    background: var(--glass-bg-hover);
}

#category-filter:hover,
#farm-filter:hover {
    border-color: var(--glass-border-light);
    background: var(--glass-bg-hover);
}

#category-filter option,
#farm-filter option {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-clear-filters {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-filters svg {
    width: 18px;
    height: 18px;
}

.btn-clear-filters:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* ==========================================================================
   Boutons de vue
   ========================================================================== */
.view-toggle {
    background: var(--color-bg-secondary);
    border: none;
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 10px;
}

.view-toggle:hover {
    background: var(--color-bg-tertiary);
}

.view-toggle.active {
    background: var(--color-bg-tertiary);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Classes pour les differentes vues */
.product-grid-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-grid-1 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Transition fluide pour le changement de vue */
#product-list > div {
    transition: all 0.3s ease;
}

/* ==========================================================================
   Vue details produit
   ========================================================================== */
#product-details-view {
    animation: fadeIn 0.3s ease-in-out;
}

#product-details-view #view-controls {
    display: none !important;
}

#product-details-view #back-button {
    display: none;
}

/* Cacher le header principal sur la page details */
body.product-details-active header {
    display: none !important;
}

body.product-details-active {
    padding-top: 20px !important;
}

#product-media {
    width: 100%;
    overflow: visible;
    margin: 0;
    position: relative;
}

#product-media video,
#product-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

#product-media video {
    max-height: 60vh;
    object-fit: contain;
    background: #000;
}

.product-info {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius) !important;
    overflow: hidden;
    box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    position: relative;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: 10;
}

/* Header produit */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--color-overlay);
    border-bottom: 1px solid var(--glass-border);
}

.product-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
    letter-spacing: 0.3px;
}

.product-header .badge {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 0.95rem;
    font-weight: 400;
}

#product-category {
    background: var(--glass-bg);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 6px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: inline-block;
    flex-shrink: 0;
    margin-top: -5px;
    box-shadow: var(--glass-shadow-inset);
}

#product-name {
    font-size: 2.2rem !important;
    margin-bottom: 0.5rem;
    margin-right: 15px;
    flex-grow: 1;
}

#product-farm {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 1.2rem;
}

/* Style géré par .product-header h1 */

#product-name-display {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1rem;
    list-style: none;
}

#product-name-display li {
    position: relative;
    padding-left: 0.8rem;
    margin-bottom: 0.3rem;
    line-height: 1.5;
    color: var(--color-text);
}

#product-name-display li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0.55em;
}

#product-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    padding-left: 1rem;
}

/* Prix dans la vue details */
#product-prices {
    list-style: none;
    padding: 0 1rem;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#product-prices li {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.2s ease;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#product-prices li:hover {
    border-color: var(--glass-border-light);
    background: var(--glass-bg-hover);
}

#product-prices .weight {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

#product-prices .price {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* En-tete de la section prix */
.price-section-header {
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin: 2rem 0 1.2rem;
    text-align: center;
}

.price-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 136, 204, 0.5), transparent);
    margin: 0 15px;
}

/* Bouton Telegram */
.product-info .btn-primary {
    border-radius: 50px;
    background: var(--color-primary);
    border: none;
    padding: 8px 20px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-info .mt-4 {
    margin-top: 1.2rem !important;
    padding: 0 1rem 0.5rem;
}

.product-info .btn-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

.product-info .btn-primary:hover:after {
    animation: ripple 1s ease-out;
}

.product-info .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: #0099e6;
}

.d-flex.justify-content-between.align-items-center {
    gap: 15px;
}

/* ==========================================================================
   Navigation inferieure
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

svg.nav-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* ==========================================================================
   Page info
   ========================================================================== */
.info-page {
    display: none;
    padding: 20px;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
}

.info-page h2 {
    display: none;
}

.info-page p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-page a {
    color: var(--color-primary);
    text-decoration: none;
}

.info-page a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Info Cards
   ========================================================================== */
.info-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow), var(--glass-shadow-inset);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.info-card-header {
    background: var(--color-overlay-light);
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--glass-border);
}

.info-card-content {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Footer (masque)
   ========================================================================== */
footer,
.footer-links,
.footer-links a {
    display: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Indicateur de chargement
   ========================================================================== */
#loading-indicator {
    margin: 20px auto;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--color-primary);
    display: inline-block;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 576px) {
    body {
        background-color: var(--color-bg);
        background-image: var(--config-background);
        background-size: auto;
        background-repeat: repeat;
        background-position: top left;
        position: relative;
        opacity: 1;
        min-height: 100vh;
        background-attachment: fixed;
    }

    header h1 {
        font-size: 2.1rem !important;
    }

    .product-card {
        padding: 0.5rem;
        margin-bottom: 1rem;
        flex: 1 0 100%;
    }

    .product-photo {
        width: 100%;
        height: auto;
    }

    .price-list {
        font-size: 0.85rem;
    }

    #search,
    #category-filter,
    #farm-filter {
        padding: 6px 12px;
        height: 38px;
        font-size: 0.9rem;
    }

    .view-toggle {
        padding: 4px 8px;
        font-size: 0.9rem;
    }

    .col-6 .image-container .badge {
        font-size: 0.6rem;
        padding: 4px 7px;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .col-6 .product-photo {
        aspect-ratio: 1;
        object-fit: cover;
    }

    .image-container .badge {
        font-size: 0.6rem;
        padding: 4px 8px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .col-sm-8.d-flex {
        flex-direction: row;
        gap: 8px;
    }

}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 768px) {
    #product-prices {
        gap: 8px;
    }

    #product-prices li {
        padding: 6px 12px;
    }

    #product-prices .weight {
        font-size: 0.85rem;
    }

    #product-prices .price {
        font-size: 1rem;
    }

    #product-name {
        font-size: 1.8rem !important;
    }

    #product-category {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .product-info .p-4 {
        padding: 1rem 0.5rem !important;
    }

    .price-section-header {
        font-size: 1rem;
        margin: 1.2rem 0 1rem;
    }

    .product-info .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #product-media {
        max-height: none;
    }

    #product-media video,
    #product-media img {
        max-height: none;
    }

    #product-media video {
        max-height: 50vh;
    }

    #back-button {
        margin-bottom: 1rem;
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    #product-name-display {
        font-size: 0.95rem;
    }

    #product-description {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Badge panier (nav)
   ========================================================================== */
.nav-item {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 50%;
    transform: translateX(18px);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.4);
}

/* ==========================================================================
   Price pills cliquables
   ========================================================================== */
#product-prices .prices-label {
    flex-basis: 100%;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

#product-prices li.price-pill {
    cursor: pointer;
}

#product-prices li.price-pill:hover {
    border-color: var(--color-primary);
    background: rgba(0, 136, 204, 0.15);
}

#product-prices li.price-pill:active {
    transform: scale(0.95);
}

/* Price pills sans panier */
#product-prices li.price-pill.no-cart {
    cursor: default;
}
#product-prices li.price-pill.no-cart:hover {
    border-color: var(--color-border);
    background: transparent;
}
#product-prices li.price-pill.no-cart:active {
    transform: none;
}

/* Boutons de commande multi-plateformes */
.btn-order-wrapper {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Style de base pour tous les boutons */
.btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-order:hover {
    text-decoration: none;
    transform: scale(1.02);
}
.btn-order:active {
    transform: scale(0.98);
}
.btn-order i {
    font-size: 1.1rem;
}

/* Telegram - Bleu */
.btn-order-telegram {
    background: linear-gradient(135deg, #0088cc, #00a8e8);
    color: white;
}
.btn-order-telegram:hover {
    background: linear-gradient(135deg, #0077b5, #0099d6);
    color: white;
}

/* WhatsApp - Vert */
.btn-order-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}
.btn-order-whatsapp:hover {
    background: linear-gradient(135deg, #20BD5A, #0E7A6B);
    color: white;
}

/* Snapchat - Jaune */
.btn-order-snapchat {
    background: linear-gradient(135deg, #FFFC00, #FFE500);
    color: #000;
}
.btn-order-snapchat:hover {
    background: linear-gradient(135deg, #F5F200, #F0D800);
    color: #000;
}

/* Signal - Bleu foncé */
.btn-order-signal {
    background: linear-gradient(135deg, #3A76F0, #2C6BED);
    color: white;
}
.btn-order-signal:hover {
    background: linear-gradient(135deg, #3068D8, #2560D8);
    color: white;
}


/* ==========================================================================
   Page panier
   ========================================================================== */
.cart-page {
    display: none;
    padding: 20px;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.cart-page h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.cart-count-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Items du panier */
.cart-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow-inset);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-farm {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 500;
}

/* Boutons quantite */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item-qty span {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--color-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.qty-btn:active {
    transform: scale(0.9);
}

/* Bouton supprimer */
.cart-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-remove:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

/* Etat vide */
.cart-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 4rem;
    color: var(--color-text-muted);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Footer panier */
.cart-footer {
    display: none;
    margin-top: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: 16px;
}

.cart-summary {
    margin-bottom: 12px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cart-summary-row span:last-child {
    color: var(--color-text);
}

.cart-total-row {
    border-top: 1px solid var(--glass-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1rem;
}

.shipping-free {
    color: #4CAF50 !important;
    font-weight: 500;
}

.cart-total-row span:first-child {
    font-weight: 600;
    color: var(--color-text);
}

.cart-total-row span:last-child {
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 50px;
    margin-bottom: 10px;
}

.btn-clear-cart {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-clear-cart:hover {
    color: #ff6b6b;
}

/* ==========================================================================
   Modes de livraison - Segmented Control
   ========================================================================== */
#delivery-modes {
    display: none;
    margin: 16px 0;
}

.delivery-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: 16px;
    margin-bottom: 12px;
}

.delivery-card-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-segmented {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    overflow: hidden;
}

.delivery-segmented-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    background: var(--color-primary);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.delivery-option {
    flex: 1;
    padding: 10px 8px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    color: var(--color-white);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1;
    position: relative;
    white-space: nowrap;
}

.delivery-option:focus,
.delivery-option:active,
.delivery-option:hover {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.delivery-option i {
    font-size: 0.85rem;
}

/* Carriers (transporteurs) - 2eme pill */
.carriers-segmented {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    overflow: hidden;
}

.carriers-segmented-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    background: var(--color-primary);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.carrier-option {
    flex: 1;
    padding: 10px 8px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    color: var(--color-white);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1;
    position: relative;
    white-space: nowrap;
}

.carrier-option:focus,
.carrier-option:active,
.carrier-option:hover {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Cities (villes pour livraison) */
.cities-segmented {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    overflow: hidden;
}

.cities-segmented-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    background: var(--color-primary);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.city-option {
    flex: 1;
    padding: 10px 8px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    color: var(--color-white);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1;
    position: relative;
    white-space: nowrap;
}

.city-option:focus,
.city-option:active,
.city-option:hover {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Meetup info card */
.meetup-info-card {
    text-align: center;
}

.meetup-info-text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    white-space: nowrap;
}

.meetup-info-text i {
    color: var(--color-primary);
    margin-right: 6px;
}

/* ==========================================================================
   Bannière Animée
   ========================================================================== */
.animated-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(90deg, var(--color-primary), #00a8e8);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10000;
}

.animated-banner.active {
    display: flex;
}

/* Décalage du contenu quand bannière active */
body.has-banner {
    padding-top: 142px !important; /* 110px (header) + 32px (banner) */
}

body.has-banner header {
    top: 32px !important;
}

body.has-banner.cart-page-active,
body.has-banner.product-details-active {
    padding-top: 52px !important; /* 20px + 32px */
}

.animated-banner .banner-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Animation slide in */
.animated-banner .banner-text.slide-in {
    animation: bannerSlideIn 0.5s ease forwards;
}

/* Animation slide out */
.animated-banner .banner-text.slide-out {
    animation: bannerSlideOut 0.5s ease forwards;
}

@keyframes bannerSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bannerSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(50px);
    }
}
