/* ===================================================
   DESIGN MODERNE POUR FRITERIE L'ATELIER DE LA FRITE
   =================================================== */

/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
    --primary-green: #0C7C59;
    --primary-green-hover: #0a6847;
    --primary-green-light: #10a372;
    --accent-red: #d62828;
    --accent-red-hover: #b81f1f;
    --accent-orange: #ff6b35;
    --bg-cream: #FFF8F0;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --border-light: #ececec;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-cream);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   CONTAINER GLOBAL
   =========================== */
.shop-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* ===========================
   TITRES CATÉGORIES
   =========================== */
.category-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-green);
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

/* ===========================
   GRILLE PRODUITS
   =========================== */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ===========================
   CARTE PRODUIT - NOUVELLE VERSION
   =========================== */
.product-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   SECTION TOP (IMAGE + INFO)
   =========================== */
.prod-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

/* IMAGE PRODUIT */
.thumb_img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    /* background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%); */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}

.thumb_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.thumb_img img {
    object-fit: contain;
}

.product-box:hover .thumb_img img {
    transform: scale(1.08);
}

/* INFO PRODUIT */
.prod-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prod-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.prod-title a:hover {
    color: var(--primary-green);
}

.price {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-red);
    letter-spacing: -0.5px;
}

/* ===========================
   BOUTON AJOUTER AU PANIER
   =========================== */
.add-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--bg-white);
    padding: 16px 20px;
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.add-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-btn:hover {
    background: linear-gradient(135deg, var(--primary-green-hover) 0%, var(--primary-green) 100%);
    box-shadow: 0 -4px 12px rgba(12, 124, 89, 0.2);
}

.add-btn:active {
    transform: scale(0.98);
}

.add-btn span {
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-btn div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ===========================
   PANEL OPTIONS (MODAL)
   =========================== */
.option-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-top: 15px;
    box-shadow: var(--shadow-xl);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-normal), 
                opacity var(--transition-normal),
                padding var(--transition-normal);
}

.option-panel.active {
    max-height: 10000px;
    opacity: 1;
    padding: 24px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* BOUTON FERMETURE */
.close-panel {
    position: sticky;
    top: 0;
    float: right;
    cursor: pointer;
    font-size: 28px;
    font-weight: 300;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-gray);
    background: #f8f8f8;
    transition: all var(--transition-fast);
    z-index: 10;
    margin-bottom: 15px;
}

.close-panel:hover {
    background: var(--accent-red);
    color: var(--bg-white);
    transform: rotate(90deg);
}

/* ===========================
   SECTIONS OPTIONS
   =========================== */
.options-content {
    clear: both;
}

.sauce-section,
.cuisson-section {
    margin-bottom: 25px;
}

.group-box {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    animation: fadeSlideIn 0.3s ease;
}

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

.group-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* ===========================
   GRILLE OPTIONS (SAUCES/CUISSON)
   =========================== */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 12px;
}

.opt-img,
.no-option {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    background: var(--bg-white);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.opt-img:hover,
.no-option:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.opt-img.selected,
.no-option.selected {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(12, 124, 89, 0.15), var(--shadow-md);
    transform: scale(1.05);
}

.opt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.opt-img:hover img {
    transform: scale(1.1);
}

/* BADGE SÉLECTION */
.opt-img.selected::after,
.no-option.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--bg-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* OPTION "AUCUNE" */
.no-option {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 2px dashed #ccc;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    text-align: center;
    padding: 10px;
}

.no-option:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.no-option.selected {
    background: linear-gradient(135deg, #e8f5f1 0%, #d4ede4 100%);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* ===========================
   QUANTITÉ
   =========================== */
.qty-box {
    margin: 25px 0 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: column;
}

.qty-box label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-input {
    flex: 1;
    max-width: 120px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(12, 124, 89, 0.1);
}

/* ===========================
   BOUTON VALIDATION
   =========================== */
.validate-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, #e53939 100%);
    color: var(--bg-white);
    padding: 18px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.validate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.validate-btn:hover::before {
    width: 400px;
    height: 400px;
}

.validate-btn:hover {
    background: linear-gradient(135deg, #e53939 0%, var(--accent-red) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.validate-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ===========================
   BADGE PANIER TEMPORAIRE
   =========================== */
.temp-cart-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8555 100%);
    color: var(--bg-white);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-normal);
    border: 4px solid var(--bg-white);
    top: 12px;
    right: 0;
    left: 0;
    margin: 0 auto;
    z-index:999999
}

.temp-cart-badge.active {
    opacity: 1;
    transform: scale(1);
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.temp-cart-badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.4);
}

.temp-cart-badge:active {
    transform: scale(0.95);
}

/* ===========================
   MODAL PANIER TEMPORAIRE
   =========================== */
.temp-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.temp-cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.temp-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.temp-cart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -48%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.temp-cart-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.temp-cart-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.temp-cart-close {
    background: #f0f0f0;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.temp-cart-close:hover {
    background: var(--accent-red);
    color: var(--bg-white);
    transform: rotate(90deg);
}

.temp-cart-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.temp-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.temp-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    animation: itemSlideIn 0.3s ease;
}

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.temp-cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.temp-cart-item-info {
    flex: 1;
}

.temp-cart-item-info strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
}

.temp-cart-item-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: var(--text-gray);
}

.temp-cart-remove {
    background: linear-gradient(135deg, var(--accent-red) 0%, #e53939 100%);
    border: none;
    color: var(--bg-white);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.temp-cart-remove:hover {
    background: linear-gradient(135deg, #e53939 0%, var(--accent-red) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.temp-cart-remove:active {
    transform: scale(0.95);
}

.temp-cart-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 16px;
}

.temp-cart-footer {
    padding: 25px 30px;
    border-top: 2px solid var(--border-light);
    display: flex;
    gap: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.temp-cart-footer button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.temp-cart-continue {
    background: #f0f0f0;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.temp-cart-continue:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.temp-cart-validate {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.temp-cart-validate:hover {
    background: linear-gradient(135deg, var(--primary-green-hover) 0%, var(--primary-green) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.temp-cart-validate:active {
    transform: translateY(0) scale(0.98);
}

.temp-cart-validate:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

body.temp-cart-open {
    overflow: hidden;
}

/* Élément caché pour le select invisible */
.hidden-select {
    display: none;
}

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

/* Tablettes */
@media (max-width: 1024px) {
    .shop-container {
        max-width: 100%;
        padding: 15px 12px;
    }
    
    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .category-title {
        font-size: 28px;
        margin: 50px 0 25px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .products-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-title {
        font-size: 24px;
        margin: 40px 0 20px;
    }
    
    .product-box {
        border-radius: var(--radius-md);
    }
    
    .thumb_img {
        height: 180px;
    }
    
    .prod-info {
        padding: 16px;
    }
    
    .prod-title {
        font-size: 18px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .add-btn {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .add-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .option-panel.active {
        padding: 20px;
    }
    
    .group-box {
        padding: 16px;
    }
    
    .group-title {
        font-size: 16px;
    }
    
    .option-grid {
        /*grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));*/
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 10px;
    }
    
    .qty-box {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .qty-input {
        max-width: 100%;
    }
    
    .validate-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .temp-cart-badge {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 20px;
        border-width: 3px;
        top: 13px;
        right: 0;
        left: 0;
        margin: 0 auto;
        translate: 15px;
}
    }
    
    .temp-cart-content {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
    
    .temp-cart-header {
        padding: 20px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .temp-cart-header h3 {
        font-size: 20px;
    }
    
    .temp-cart-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    
    .temp-cart-body {
        padding: 20px;
    }
    
    .temp-cart-item {
        padding: 14px;
    }
    
    .temp-cart-footer {
        padding: 20px;
        flex-direction: column;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .temp-cart-footer button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .shop-container {
        padding: 10px 8px;
    }
    
    .category-title {
        font-size: 20px;
        margin: 30px 0 15px;
        padding-bottom: 10px;
    }
    
    .thumb_img {
        height: 160px;
    }
    
    .prod-info {
        padding: 14px;
    }
    
    .prod-title {
        font-size: 16px;
    }
    
    .price {
        font-size: 18px;
    }
    
    .add-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .option-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 8px;
    }
    
    .group-title {
        font-size: 14px;
    }
    
    .temp-cart-badge {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 18px;
          top: 20px;
    right: 0;
    left: 0;
  margin: 0 auto;
   translate: 15px;
}
    }
}

/* ===========================
   ANIMATIONS SUPPLÉMENTAIRES
   =========================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation de chargement pour les images */
.thumb_img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===========================
   DARK MODE (OPTIONNEL)
   =========================== */
/* @media (prefers-color-scheme: dark) {
    :root {
        --bg-cream: #1a1a1a;
        --bg-white: #2a2a2a;
        --text-dark: #f0f0f0;
        --text-gray: #b0b0b0;
        --text-light: #808080;
        --border-light: #3a3a3a;
    }
    
    .thumb_img {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .group-box,
    .qty-box,
    .temp-cart-item {
        background: linear-gradient(135deg, #2a2a2a 0%, #222222 100%);
    }
} */

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .add-btn,
    .temp-cart-badge,
    .temp-cart-modal,
    .option-panel {
        display: none !important;
    }
    
    .product-box {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

nav.woocommerce-breadcrumb {
    display: none;
}

header.hero-header.hero-page{
    min-height:0
}

@media(min-width: 900px){
   .temp-cart-badge {
    right: 7px;
    left: auto;
    top: 5px;
}
}

.temp-cart-badge img {
    width: 30px;
}

span.temp-cart-count {
    position: absolute;
    top: -10px;
    right: 0px;
    width: 25px;
    height: 25px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 100%;
    color: red;
    border: 2px solid #ff7e4c;
}


/* test */

.option-panel{
    position: fixed;
    width: 325px;
    right: 0;
    top: 0px;
    bottom: 0px;
    z-index: 999999;
    overflow: auto;
    border-radius: 0;
}

.enbas {
    position: sticky;
    bottom: 0;
     background: #ffffff;
}

.active-pan .active-pan-blur {
    position: fixed;
    inset: 0;
    background: #000000d1;
    z-index: 99999;
}

.cuicui .no-option{
    display: none;
}

@media(min-width:600px){
    .option-panel{
        width:450px;
    }
    .option-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}


/* ==============================================
   STYLES POUR LES VARIATIONS DE PRODUITS
============================================== */
/* ==============================================
   STYLES POUR LES VARIATIONS DE PRODUITS
============================================== */

.variations-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.variations-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.variation-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variation-option:hover {
    border-color: #ccc;
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.variation-option.selected {
    border-color: #d4af37;
    background: #fffef8;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.variation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
}

.variation-name {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.variation-option.selected .variation-name {
    font-weight: 600;
    color: #d4af37;
}

.variation-price {
    font-size: 1rem;
    font-weight: 700;
    color: #d4af37;
}

/* Effet de "check" sur la sélection */
.variation-option.selected::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #d4af37;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.variation-option {
    position: relative;
}

/* Style du groupe de variations */
.group-box .group-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1rem;
}

/* Style pour mobile */
@media (max-width: 768px) {
    .variations-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    .variations-section h4 {
        font-size: 1rem;
    }
    
    .variation-option {
        padding: 0.75rem;
    }
    
    .variation-name {
        font-size: 0.85rem;
    }
    
    .variation-price {
        font-size: 0.9rem;
    }
}

/* Animation pour la sélection */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.variation-option.selected {
    animation: pulse 0.3s ease-out;
}

.category-title small {
    opacity:0.7;
    font-size:74%;
    display: block;
    text-transform: none;
    font-weight: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

h2.category-title {
    text-align: left;
}