/* Boutique Ty Poz - grille + tiroir produit (repris de /boutique-en-ligne) */
#wrap { transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); background: #faf9f7; min-height: 100vh; position: relative; }
.body-pushed #wrap { transform: translateX(360px); }
.drawer { position: fixed; left: 0; top: 0; width: 360px; height: 100%; background: #fff; border-right: 1px solid #eee; transform: translateX(-100%); transition: transform 0.45s ease; z-index: 9999; box-shadow: 10px 0 30px rgba(0,0,0,0.1); overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-img { width: 100%; height: 240px; object-fit: cover; }
.drawer-body { padding: 25px 25px 10px; }
.drawer-close { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; }
.btn-back-shop { position: absolute; top: 20px; left: 20px; z-index: 100; background: #fff; border: 1px solid #ddd; padding: 8px 18px; border-radius: 30px; color: #111; text-decoration: none !important; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.btn-back-shop:hover { background: #111; color: #fff; border-color: #111; transform: translateX(-3px); }
.category-pills-wrapper { margin: 30px 0 40px 0; display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.category-round-item { display: flex; flex-direction: column; align-items: center; text-decoration: none !important; width: 100px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.category-img-circle { width: 85px; height: 85px; border-radius: 50%; background: #fff; border: 2px solid #eee; padding: 3px; object-fit: cover; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.category-name-label { margin-top: 10px; font-size: 13px; font-weight: 700; color: #444; text-align: center; line-height: 1.2; }
.category-round-item:hover { transform: translateY(-8px); }
.category-round-item.active .category-img-circle { border-color: #111; border-width: 3px; }
.attribute-group { margin-bottom: 20px; }
.attribute-label { font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.attribute-label .required-dot { width: 6px; height: 6px; border-radius: 50%; background: #e74c3c; display: inline-block; }
.attribute-label .required-dot.ok { background: #16a34a; }
.attribute-group.not-selected .attribute-label { color: #e74c3c; }
.size-option { padding: 8px 16px; border-radius: 8px; border: 1px solid #ddd; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; background: #fff; display: inline-block; margin-right: 8px; margin-bottom: 8px; }
.size-option.selected { background: #111; color: #fff; border-color: #111; }
.attribute-group.not-selected .size-option { border-color: #fca5a5; background: #fff5f5; }
.snack-list-container { max-width: 950px; margin: 0 auto; padding: 20px; }
.product-card-custom { display: flex; align-items: center; background: #fff; border-radius: 18px; margin-bottom: 15px; cursor: pointer; border: 1px solid #eee; transition: 0.3s; overflow: hidden; }
.product-card-custom:hover { border-color: #333; box-shadow: 0 5px 20px rgba(0,0,0,0.06); }
.product-card-img { width: 150px; height: 120px; object-fit: cover; flex-shrink: 0; }
.product-card-body { padding: 15px 25px; flex: 1; min-width: 0; }
.drawer-desc-box { background: #f8f6f2; border-left: 3px solid #1a6b3c; border-radius: 0 10px 10px 0; padding: 14px 16px; margin: 10px 0 18px 0; font-size: 13px; line-height: 1.7; color: #444; }
.drawer-desc-box p { margin: 0 0 6px 0; }
.drawer-desc-box p:last-child { margin: 0; }
.drawer-desc-box img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: none; }
.drawer-desc-box-title { font-size: 13px; font-weight: 700; color: #1a6b3c; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.alert-selection { display: none; background: #fff5f5; border: 1px solid #fca5a5; border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: 13px; color: #dc2626; font-weight: 600; align-items: center; gap: 8px; }
.alert-selection.visible { display: flex; }
.btn-add-cart { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; background: #111; color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; margin-top: 12px; letter-spacing: 0.3px; text-decoration: none !important; }
.btn-add-cart:hover { background: #333; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); color: #fff; }
.btn-add-cart.disabled { background: #ccc !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; pointer-events: none; }
.btn-add-cart.reserve-mode { background: #1a6b3c !important; }
.btn-add-cart.reserve-mode:hover { background: #145530 !important; }
.qty-selector { display: flex; align-items: center; justify-content: space-between; background: #f5f5f3; border-radius: 12px; padding: 6px; margin-top: 20px; }
.qty-btn { width: 36px; height: 36px; border-radius: 9px; border: none; background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: all 0.2s; }
.qty-btn:hover { background: #111; color: #fff; }
.qty-value { font-size: 16px; font-weight: 700; color: #111; min-width: 30px; text-align: center; }
#o_wsale_products_grid { display: flex !important; flex-direction: column !important; }
#o_wsale_products_grid .oe_product { all: unset; display: block; width: 100% !important; }
#o_wsale_products_grid .o_wsale_product_grid_wrapper { all: unset; display: block; }
.btn-alert-stock { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; background: #fff; color: #1a6b3c; border: 2px solid #1a6b3c; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; text-decoration: none !important; }
.btn-alert-stock:hover { background: #1a6b3c; color: #fff; }
.alert-stock-form input[type="email"] { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 13px; margin-bottom: 8px; box-sizing: border-box; outline: none; transition: border 0.2s; }
.alert-stock-form input[type="email"]:focus { border-color: #1a6b3c; }
.alert-stock-form { margin-top: 10px; }
.alert-stock-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 13px; color: #166534; font-weight: 600; text-align: center; display: none; }
.alert-stock-success.visible { display: block; }
.wsale-search-bar { position: fixed; top: 155px; right: 20px; z-index: 1030; display: flex; align-items: center; }
.wsale-search-form { display: flex; align-items: center; background: #fff; border: 1.5px solid #ddd; border-radius: 30px; padding: 7px 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); transition: all 0.3s ease; width: 200px; }
.wsale-search-form:focus-within { border-color: #111; box-shadow: 0 4px 18px rgba(0,0,0,0.12); width: 270px; }
.wsale-search-input { border: none; outline: none; background: transparent; font-size: 13px; font-weight: 500; color: #111; width: 100%; }
.wsale-search-input::placeholder { color: #bbb; font-weight: 400; }
.wsale-search-btn { background: none; border: none; cursor: pointer; padding: 0; color: #888; display: flex; align-items: center; margin-left: 8px; flex-shrink: 0; transition: color 0.2s; }
.wsale-search-btn:hover { color: #111; }
.body-pushed .wsale-search-bar { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.btn-wishlist { position: absolute; bottom: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.95); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: all 0.25s ease; z-index: 5; color: #ccc; padding: 0; }
.btn-wishlist:hover { transform: scale(1.15); box-shadow: 0 4px 14px rgba(0,0,0,0.18); color: #e74c3c; }
.btn-wishlist.active { color: #e74c3c; }
.btn-wishlist.active svg { fill: #e74c3c; stroke: #e74c3c; }
.btn-wishlist svg { transition: all 0.25s ease; }
.wishlist-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99999; align-items: center; justify-content: center; }
.wishlist-modal-overlay.open { display: flex; }
.wishlist-modal { background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 380px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wishlist-modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: #111; }
.wishlist-modal p { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.6; }
.wishlist-modal-icon { font-size: 48px; margin-bottom: 16px; }
.btn-modal-login { display: block; width: 100%; padding: 14px; background: #111; color: #fff !important; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none !important; margin-bottom: 10px; transition: background 0.2s; }
.btn-modal-login:hover { background: #333; }
.btn-modal-signup { display: block; width: 100%; padding: 13px; background: #fff; color: #111 !important; border: 2px solid #111; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: all 0.2s; }
.btn-modal-signup:hover { background: #f5f5f5; }
.btn-modal-close { margin-top: 14px; background: none; border: none; color: #aaa; font-size: 13px; cursor: pointer; }
.btn-modal-close:hover { color: #111; }
.cart-toast { position: fixed; top: 90px; right: 20px; width: 300px; max-width: calc(100vw - 40px); background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 14px; display: flex; gap: 12px; align-items: flex-start; z-index: 100000; transform: translateX(340px); opacity: 0; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease; }
.cart-toast.visible { transform: translateX(0); opacity: 1; }
.cart-toast-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-toast-body { flex: 1; min-width: 0; }
.cart-toast-title { font-size: 11px; color: #16a34a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.cart-toast-name { font-size: 13px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-toast-qty { font-size: 12px; color: #888; margin-top: 2px; }
.cart-toast-btn { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #111; text-decoration: underline !important; }
.cart-toast-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: #bbb; font-size: 14px; cursor: pointer; line-height: 1; }
.cart-icon-pulse { position: relative; }
.cart-icon-pulse::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid #16a34a; animation: cartPulse 1s ease-out 2; }
@keyframes cartPulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 768px) {
    .wsale-search-bar { top: 120px; right: 12px; }
    .wsale-search-form { width: 150px; }
    .wsale-search-form:focus-within { width: 210px; }
    .drawer { width: 100%; height: 100%; border-right: none; }
    .body-pushed #wrap { transform: none; pointer-events: none; }
    .drawer-img { height: 200px; }
    .drawer-body { padding: 18px; }
}
@media (max-width: 576px) {
    .wsale-search-form { width: 130px; padding: 6px 12px; font-size: 12px; }
    .wsale-search-form:focus-within { width: 185px; }
    .btn-back-shop { top: 12px; left: 12px; padding: 6px 12px; font-size: 12px; }
    .category-pills-wrapper { gap: 14px; margin: 20px 0 25px 0; }
    .category-round-item { width: 72px; }
    .category-img-circle { width: 62px; height: 62px; }
    .category-name-label { font-size: 11px; }
    .snack-list-container { padding: 12px; }
    .product-card-custom { border-radius: 14px; margin-bottom: 10px; }
    .product-card-img { width: 100px; height: 90px; }
    .product-card-body { padding: 10px 14px; }
    .product-card-body h5 { font-size: 14px; }
    .product-card-body .small { display: none; }
    .btn-wishlist { width: 28px; height: 28px; bottom: 6px; right: 6px; }
    .btn-wishlist svg { width: 13px; height: 13px; }
    .o_wsale_my_wishlist { display: flex !important; }
    .cart-toast { top: auto; bottom: 20px; right: 12px; left: 12px; width: auto; transform: translateY(140px); }
    .cart-toast.visible { transform: translateY(0); }
}
.product-price .prix-barre { color: #999; font-weight: 400; font-size: 0.9em; margin-right: 6px; }
#d-price .prix-barre { color: #999; font-weight: 500; font-size: 0.7em; margin-right: 8px; }
.product-price .prix-variante { color: #888; font-weight: 500; font-size: 0.8em; margin-left: 4px; }
#d-price .prix-variante { color: #888; font-weight: 500; font-size: 0.55em; margin-left: 6px; }
.badge-remise { display: inline-block; background: #e74c3c; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.3px; }
#d-price .badge-remise, .drawer-footer-price .badge-remise { font-size: 12px; }
.drawer-footer { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #eee; box-shadow: 0 -6px 18px rgba(0,0,0,0.06); padding: 12px 25px 16px; z-index: 5; }
.drawer-footer-price { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 8px; border-radius: 8px; transition: background 0.3s; }
.drawer-footer-price .prix-barre { color: #999; font-weight: 500; font-size: 0.7em; margin-right: 8px; }
.drawer-footer-price .prix-variante { color: #888; font-weight: 500; font-size: 0.6em; margin-left: 6px; }
.drawer-footer-price.flash { animation: prixFlash 0.8s ease; }
@keyframes prixFlash { 0% { background: #fef3c7; } 100% { background: transparent; } }
.drawer-footer-actions { display: flex; align-items: stretch; gap: 10px; }
.drawer-footer .qty-selector { margin-top: 0; flex: 0 0 128px; }
.drawer-footer .btn-add-cart { margin-top: 0; flex: 1; padding: 14px; }
.drawer-footer .alert-selection { margin: 0 0 8px; }
@media (max-width: 768px) {
    .drawer-footer { padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); }
}
/* Tiroir en colonne : la barre reste en bas même si la description est courte */
.drawer { display: flex; flex-direction: column; }
.drawer-img { flex-shrink: 0; }
.drawer-body { flex: 1 0 auto; }
/* Bouton panier sur une ligne ; bulle du chat masquée tant que le tiroir est ouvert (elle couvrait le bouton) */
.drawer-footer .qty-selector { flex-basis: 112px; }
.drawer-footer .btn-add-cart { white-space: nowrap; font-size: 14px; gap: 8px; }
.body-pushed .o-livechat-root { display: none !important; }

/* Produit de saison : période de retrait (carte + tiroir) */
.periode-retrait { color: #8a5a00; font-weight: 600; }
