/*
Theme Name: MyPharmacy
Theme URI: https://mypharmacy.tn/
Author: MyPharmacy
Description: Classic WordPress theme replicating the MyPharmacy.tn homepage design. Uses an inline SVG icon sprite (no icon font) via the theme_icon() helper.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mypharmacy
*/

:root{
  --green:#55bb3e;          /* nav / primary */
  --green-dark:#3a7a29;     /* PROMOTIONS tab, hover */
  --green-brand:#4caf50;    /* brand / prices */
  --green-deep:#284000;     /* top promo bar */
  --green-light:#eef6f1;    /* section / card bg */
  --green-lighter:#e8f3d8;  /* category circles */
  --wa:#6dac03;             /* whatsapp button */
  --red:#c75551;            /* brand red (MARQUES / badges / discounts) */
  --badge:#c75551;
  --text:#222;
  --muted:#666;
  --line:#e6e6e6;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Roboto',Arial,sans-serif;color:var(--text);background:#fff;font-size:15px;line-height:1.5}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{max-width:1500px;margin:0 auto;padding:0 20px}
.btn{cursor:pointer;border:none;font-family:inherit}

/* ============ ICON BASE (sprite) ============ */
.icon{width:1em;height:1em;display:inline-block;vertical-align:-0.15em;flex:0 0 auto;fill:currentColor}

/* ============ TOP PROMO BAR ============ */
.topbar{background:var(--green-deep);color:#fff;font-size:12.5px;overflow:hidden}
.topbar .container{display:flex;align-items:center;justify-content:space-between;height:34px}
.marquee{overflow:hidden;flex:1}
.marquee ul{display:flex;list-style:none;gap:48px;white-space:nowrap;animation:scrollx 28s linear infinite;padding-right:48px}
.marquee li{display:flex;align-items:center;gap:8px}
.marquee li .icon{color:var(--green)}
@keyframes scrollx{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.topbar .social{display:flex;align-items:center;gap:10px;white-space:nowrap;padding-left:24px}
.topbar .social a{width:22px;height:22px;border-radius:50%;background:#fff;color:var(--green-deep);display:grid;place-items:center;font-size:12px}

/* ============ HEADER ============ */
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.site-header .container{display:flex;align-items:center;gap:30px;height:118px}
.logo img{height:78px;width:auto}
.search{flex:1;max-width:640px;position:relative}
.search input{width:100%;height:44px;border:1px solid #d9d9d9;border-radius:24px;padding:0 54px 0 22px;font-size:14px;outline:none}
.search input:focus{border-color:var(--green)}
.search button{position:absolute;right:5px;top:5px;width:34px;height:34px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:15px}
.head-actions{display:flex;align-items:center;gap:24px;margin-left:auto}
.head-actions .item{display:flex;align-items:center;gap:8px;color:#444;font-size:14px;cursor:pointer}
.head-actions .item .icon{font-size:19px}
.icon-badge{position:relative;color:var(--green-brand)}
.icon-badge .count{position:absolute;bottom:-7px;right:-9px;color:var(--green-brand);font-size:12px;font-weight:700}
.cart-btn{border:1px solid var(--green);border-radius:24px;padding:9px 20px;color:#333;font-weight:500;display:flex;align-items:center;gap:9px;background:#fff;font-family:inherit;font-size:14px;cursor:pointer}
.cart-btn .icon{color:var(--green-brand)}
.wa-btn{background:var(--wa);border:none;border-radius:30px;padding:4px 18px 4px 0;display:flex;align-items:center;gap:9px;font-weight:700;color:#fff;height:36px}
.wa-btn .waicon{width:34px;height:34px;border-radius:50%;background:#fff;color:var(--wa);display:grid;place-items:center;font-size:19px;flex:0 0 auto;transform:scale(1.1)}

/* ============ NAV ============ */
nav.mainnav{background:var(--green)}
nav.mainnav .container{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap}
nav.mainnav a{color:#fff;font-weight:500;font-size:14.5px;letter-spacing:.3px;padding:16px 20px;transition:background .15s;text-transform:uppercase}
nav.mainnav a:hover{background:rgba(0,0,0,.12)}
nav.mainnav a.promo{background:var(--green-dark)}
nav.mainnav a.marques{background:var(--red)}

/* ============ HEADINGS ============ */
.page-h1{text-align:center;font-size:32px;font-weight:700;color:#222;padding:28px 15px 20px;text-transform:uppercase}
.section-title{font-size:22px;font-weight:700;margin:0 0 24px;color:#222;text-transform:uppercase}
.section-title.center{text-align:center}
section{padding:44px 0}

/* ============ HERO CAROUSEL ============ */
.hero{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.slides{display:flex;transition:transform .6s ease}
.slides a{min-width:100%}
.slides picture{display:block;width:100%}
.slides img{width:100%;height:auto;aspect-ratio:1920/600;object-fit:cover;background:#eaf3fb}
.dots{position:absolute;bottom:14px;left:0;right:0;display:flex;justify-content:center;gap:9px}
.dots span{width:11px;height:11px;border-radius:50%;background:rgba(255,255,255,.65);cursor:pointer;border:1px solid rgba(0,0,0,.15)}
.dots span.active{background:var(--green)}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.85);display:grid;place-items:center;cursor:pointer;color:#333;font-size:16px;z-index:2}
.hero-arrow.prev{left:14px}.hero-arrow.next{right:14px}
/* On mobile the slide swaps to the mobile image (via <picture>); drop the fixed
   desktop 1920/600 ratio so the mobile image shows at its own proportions
   instead of being cropped into a wide strip. */
@media(max-width:768px){.slides img{aspect-ratio:auto;height:auto;object-fit:contain}}

/* ============ PROMO BANNERS ROW ============ */
.promo-banners{display:grid;grid-template-columns:2fr 3fr 3fr;gap:20px;margin-bottom:26px}
.promo-banners--two{grid-template-columns:1fr 1fr}
.promo-banners .wide{border-radius:14px;overflow:hidden}
.promo-banners .wide img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/7}

/* ============ PRODUCT GRID / CARDS ============ */
.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}
.grid.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;position:relative;transition:box-shadow .2s,transform .2s;display:flex;flex-direction:column}
.card:hover{box-shadow:0 8px 24px rgba(0,0,0,.10);transform:translateY(-3px)}
.card.is-oos{opacity:.55}
.card.is-oos:hover{transform:none;box-shadow:none}
.badge{position:absolute;top:12px;left:12px;background:var(--badge);color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:20px;z-index:3}
.card .oos{color:var(--badge);font-size:12px;font-weight:600;margin-bottom:6px}
.card .thumb{height:220px;display:flex;align-items:center;justify-content:center;padding:18px;background:#fff;overflow:hidden}
.card .thumb img,.woocommerce ul.products li.product .card .thumb img{max-width:100%;max-height:100%;width:auto!important;height:auto!important;object-fit:contain;display:block;margin:0}
.card .body{background:var(--green-light);border-radius:14px;margin:0;padding:16px;flex:1;display:flex;flex-direction:column;position:relative;min-height:140px}
.card .name{font-size:13px;font-weight:600;color:#333;line-height:1.35;text-transform:uppercase;min-height:34px;padding-right:6px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.card .name a{color:#333}
.card .name a:hover{color:var(--green-brand)}
.card .prices{margin-top:auto;padding-top:14px;display:flex;align-items:flex-start;gap:8px}
.card .price,.card .price .amount{font-size:22px;font-weight:800;color:#222}
.card .old,.card .old .amount{font-size:11px;font-weight:400;color:#999;text-decoration:line-through}
.card .desc{font-size:12px;color:#777;margin-top:8px;line-height:1.4}
.cart-circle{position:absolute;right:14px;bottom:14px;width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:15px;cursor:pointer;transition:background .15s}
.cart-circle:hover{background:var(--green-dark)}
.pt-badge{margin-top:auto;padding-top:14px;font-size:19px;font-weight:700;color:#222}
.echanger{position:absolute;right:14px;bottom:14px;background:#9aa0a6;color:#fff;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:500}
/* Variable / grouped fallback (get_price_html → <ins>/<del>) mapped to the design.
   NB: scoped to ins/del only — a blanket `.card .prices .amount` rule used to
   clobber the struck `.old` price, forcing it to 20px solid black. */
.card .prices ins,.card .prices ins .amount{font-size:22px;font-weight:800;color:#222;text-decoration:none;background:none}
.card .prices del{margin-left:2px}
.card .prices del,.card .prices del .amount{font-size:11px;font-weight:400;color:#999;text-decoration:line-through}
.card .name a{color:#333}
.card .name a:hover{color:var(--green-brand)}
.card .thumb a,.card .thumb{width:100%}
/* WooCommerce appends a "view cart" link after ajax add buttons — hide it in cards */
.card .added_to_cart{display:none!important}
.mp-empty{grid-column:1/-1;color:var(--muted);text-align:center;padding:30px 0}
/* WooCommerce page content (cart, checkout, my account, shop) */
.entry-content{padding-bottom:24px}
.entry-content a{color:var(--green-brand)}
.woocommerce-content{padding-top:6px;padding-bottom:24px}

/* ---- Stepped progress (arrow / chevron bar) ---- */
.mp-steps{display:flex;gap:6px;margin:0 0 26px;flex-wrap:nowrap}
.mp-step{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:16px;background:#ededed;color:#a4a4a4;padding:18px 26px 18px 42px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;font-size:15px;text-decoration:none;transition:background .15s,color .15s;
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%)}
.mp-step:first-child{padding-left:28px;border-radius:10px 0 0 10px;
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%)}
.mp-step .mp-step-num{font-size:28px;font-weight:800;opacity:.5;line-height:1}
.mp-step.active{background:var(--green);color:#fff}
.mp-step.active .mp-step-num{opacity:.9}
.mp-step.done{background:var(--green-light);color:var(--green-dark)}
a.mp-step{cursor:pointer}
a.mp-step:hover{filter:brightness(.96)}
a.mp-step.active:hover{background:var(--green-dark);filter:none}
a.mp-step.done:hover{background:#dcecc9;filter:none}
@media(max-width:700px){
  .mp-steps{flex-wrap:wrap;gap:8px}
  .mp-step,.mp-step:first-child{flex-basis:100%;clip-path:none;border-radius:8px;padding:14px 20px;justify-content:space-between}
}

/* ---- Points banner ---- */
.mp-points-banner{background:linear-gradient(90deg,var(--green-dark),#183405);color:#fff;border-radius:30px;padding:15px 28px;font-weight:700;margin:0 0 24px;text-align:left}

/* ---- Cart ---- */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:14px;border-collapse:separate;border-spacing:0;overflow:hidden}
.woocommerce table.shop_table thead th{color:var(--green-brand);text-transform:uppercase;font-size:13px;letter-spacing:.5px;padding:18px;border:none}
.woocommerce table.shop_table td{padding:18px;vertical-align:middle;border-top:1px solid var(--line)}
.woocommerce table.shop_table .cart_item td.product-thumbnail img{width:64px;border:1px solid var(--line);border-radius:8px}
.woocommerce a.remove{color:#a9a9a9!important;border:1px solid var(--line);border-radius:6px;width:30px;height:30px;line-height:28px;font-size:15px}
.woocommerce a.remove:hover{color:var(--red)!important;background:#faecea!important;border-color:#f2c9c3}
.woocommerce .quantity{border:1px solid var(--line);border-radius:24px;display:inline-flex;align-items:center;overflow:hidden;background:#fff}
.woocommerce .quantity input.qty{border:none;background:transparent;text-align:center;width:46px;height:38px;-moz-appearance:textfield}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,.woocommerce .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.mp-qty-btn{border:none;background:transparent;width:34px;height:38px;font-size:18px;cursor:pointer;color:#555}
.mp-qty-btn:hover{color:var(--green-dark)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{border-radius:24px;font-weight:700;padding:13px 24px;background:var(--green);color:#fff;text-transform:none;border:none;transition:background .15s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--green-dark);color:#fff}
.woocommerce .button.mp-continue{background:#3a3a3a;color:#fff;margin-right:10px}
.woocommerce .button.mp-continue:hover{background:#222}
.cart-collaterals .cart_totals{border:1px solid var(--line);border-radius:14px;padding:6px 22px 22px}
.cart_totals h2{text-transform:uppercase;color:var(--green-dark);font-size:18px}
.cart_totals .order-total .amount,.cart_totals .amount{color:var(--green-dark)}

/* two-column cart on desktop: items | totals */
.woocommerce-cart .woocommerce{display:flex;flex-wrap:wrap;gap:0 34px;align-items:flex-start}
.woocommerce-cart .woocommerce-notices-wrapper{flex:0 0 100%;width:100%}
.woocommerce-cart .woocommerce-cart-form{flex:1 1 560px;min-width:300px}
.woocommerce-cart .cart-collaterals{flex:1 1 340px;max-width:430px;width:auto;float:none;margin:0}
.woocommerce-cart .cart-collaterals .cart_totals{width:100%;float:none}

/* WooCommerce primary color → brand green (fixes the purple buttons) */
:root{--wc-primary:var(--green);--wc-primary-text:#fff}
.woocommerce .button.alt,.woocommerce a.button.alt,.woocommerce input.button.alt,.woocommerce button.button.alt,.wc-proceed-to-checkout a.checkout-button{background-color:var(--green)!important;color:#fff!important;border:none}
.woocommerce .button.alt:hover,.woocommerce a.button.alt:hover,.wc-proceed-to-checkout a.checkout-button:hover{background-color:var(--green-dark)!important;color:#fff!important}
.wc-proceed-to-checkout a.checkout-button{display:block;width:100%;text-align:center;font-size:15px;padding:15px}

/* coupon field */
.woocommerce .cart .actions .coupon .input-text{width:190px;border:1px solid var(--line);border-radius:24px;padding:11px 16px;min-height:44px;margin-right:8px}

@media(max-width:820px){
  .woocommerce-cart .cart-collaterals{max-width:100%;flex-basis:100%}
}

/* ============ SHOP / ARCHIVE ============ */
.woocommerce-products-header{text-align:center;margin-bottom:8px}
.woocommerce-products-header__title,.woocommerce .woocommerce-products-header__title{font-size:28px;font-weight:700;text-transform:uppercase;margin:6px 0}
.term-description{color:#555;text-align:center;max-width:900px;margin:0 auto 18px;line-height:1.7}
.woocommerce .woocommerce-result-count{color:var(--muted);font-size:14px;margin:0 0 14px}
.woocommerce .woocommerce-ordering{margin:0 0 14px}
.woocommerce .woocommerce-ordering select,.woocommerce select.orderby{background:#f4f4f4;border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:44px}
.woocommerce ul.products{display:grid !important;grid-template-columns:repeat(4,1fr);gap:20px;margin:16px 0 0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none !important;display:none !important}
.woocommerce ul.products li.product{width:auto !important;margin:0 !important;padding:0 !important;float:none !important;clear:none !important}
.woocommerce ul.products li.product::before{display:none}
.woocommerce ul.products li.product .card{height:100%}
.woocommerce nav.woocommerce-pagination{margin-top:30px}
.woocommerce nav.woocommerce-pagination ul{border:none;display:flex;gap:8px;justify-content:center}
.woocommerce nav.woocommerce-pagination ul li{border:none;margin:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--line) !important;border-radius:8px;min-width:42px;height:42px;line-height:40px;padding:0;color:#333}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--green) !important;color:#fff !important;border-color:var(--green) !important}
@media(max-width:1100px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}

/* ============ SINGLE PRODUCT ============ */
.single-product div.product{display:flex;flex-wrap:wrap;gap:44px;align-items:flex-start}
.single-product div.product .woocommerce-product-gallery{flex:1 1 44%;min-width:300px;margin:0;float:none}
.single-product div.product .summary{flex:1 1 44%;min-width:300px;margin:0;float:none;clear:none}
.single-product .product_title{font-size:28px;font-weight:700;margin:0 0 14px;text-transform:uppercase;line-height:1.25}
.single-product .woocommerce-product-gallery__image img{border:1px solid var(--line);border-radius:12px}
.single-product .summary p.price,.single-product .summary p.price .amount,.single-product .summary p.price .mp-now,.single-product .summary p.price .mp-now .amount{color:#222;font-size:26px;font-weight:700}
.single-product .summary p.price del .amount,.single-product .summary p.price .mp-old,.single-product .summary p.price .mp-old .amount{color:#999;font-size:16px;font-weight:400;text-decoration:line-through}
.single-product .summary p.price .mp-old{margin-left:8px}
.single-product .summary p.price ins,.single-product .summary p.price ins .amount{text-decoration:none;background:none}
.single-product .woocommerce-product-details__short-description{color:#555;line-height:1.7;margin:14px 0}
.single-product form.cart{display:flex;align-items:center;gap:14px;margin:20px 0;flex-wrap:wrap}
.single-product form.cart .button.single_add_to_cart_button{background:var(--green);border-radius:24px;padding:14px 32px;font-weight:700;text-transform:none;font-size:15px}
.single-product form.cart .button.single_add_to_cart_button:hover{background:var(--green-dark)}
.single-product .product_meta{font-size:13px;color:#666;margin-top:18px;line-height:2}
.single-product .product_meta>span{display:block}
.single-product .product_meta a{color:var(--green-brand)}
.single-product .onsale,.woocommerce span.onsale{background:var(--badge);color:#fff;border-radius:6px;padding:4px 12px;font-weight:700;min-height:0;min-width:0;line-height:1.6}
.single-product table.variations{margin:14px 0;border:none}
.single-product table.variations td,.single-product table.variations th{padding:8px 8px 8px 0;border:none;background:none}
.single-product .reset_variations{color:var(--green-brand)}
/* product tabs */
.woocommerce-tabs{margin-top:44px;clear:both}
.woocommerce-tabs ul.tabs{border:none;padding:0;margin:0 0 4px;display:flex;gap:10px;flex-wrap:wrap}
.woocommerce-tabs ul.tabs::before{display:none}
.woocommerce-tabs ul.tabs li{border:1px solid var(--line);border-radius:24px;background:#fff;padding:0}
.woocommerce-tabs ul.tabs li::before,.woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce-tabs ul.tabs li a{color:#444;font-weight:600;padding:10px 22px;display:block}
.woocommerce-tabs ul.tabs li.active{background:var(--green);border-color:var(--green)}
.woocommerce-tabs ul.tabs li.active a{color:#fff}
.woocommerce-tabs .woocommerce-Tabs-panel{padding-top:22px;color:#555;line-height:1.7}
.woocommerce-tabs .woocommerce-Tabs-panel h2{font-size:20px;color:#222;margin-bottom:12px}
/* related / upsells reuse the product grid */
.related.products,.up-sells.products,.upsells.products{clear:both;margin-top:46px}
.related.products>h2,.upsells.products>h2,.up-sells.products>h2{font-size:22px;font-weight:700;margin-bottom:22px}
@media(max-width:820px){
  .single-product div.product{gap:24px}
}

/* ---- Checkout: two columns ---- */
.woocommerce-checkout form.checkout.woocommerce-checkout{display:flex;gap:36px;flex-wrap:wrap;align-items:flex-start}
.woocommerce-checkout #customer_details{flex:1 1 440px;min-width:300px}
.woocommerce-checkout .woocommerce-checkout-review-order{flex:1 1 360px;min-width:300px}
.woocommerce-billing-fields h3{font-size:24px;font-weight:800;margin:0 0 18px}
.woocommerce-billing-fields h3+.woocommerce-billing-fields__field-wrapper{margin-bottom:26px}
.woocommerce form .form-row{margin:0 0 16px;padding:0}
.woocommerce form .form-row label{font-weight:500;color:#333;margin-bottom:6px;display:block}
.woocommerce form .form-row .required{color:var(--red);border:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce-checkout select,.select2-container--default .select2-selection--single{background:#f4f4f4;border:1px solid transparent;border-radius:8px;padding:12px 14px;min-height:48px;width:100%;box-shadow:none}
.select2-container--default .select2-selection--single{display:flex;align-items:center}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,.woocommerce form .form-row select:focus{border-color:var(--green);background:#fff;outline:none}
.woocommerce form .form-row-first{float:left;width:48%}
.woocommerce form .form-row-last{float:right;width:48%}
.woocommerce form .form-row-wide{clear:both;width:100%}
.mp-hidden{display:none!important}
.woocommerce-account-fields .create-account label span{font-weight:500}
.woocommerce-checkout #order_review_heading,.woocommerce-checkout h3#order_review_heading{display:none}
.woocommerce-checkout-review-order .shop_table{border:1px solid var(--line);border-radius:14px}
.woocommerce-checkout-review-order .shop_table th{color:var(--green-brand);text-transform:uppercase}
.woocommerce-checkout-review-order .order-total .amount{color:var(--green-dark);font-size:20px}
.woocommerce-checkout #payment{background:var(--green-light);border-radius:14px;margin-top:16px}
.woocommerce-checkout #payment ul.payment_methods{border:none}
.woocommerce #payment #place_order,.woocommerce-checkout #place_order{width:100%;background:#111;border-radius:8px;padding:15px;text-transform:uppercase;font-weight:800;letter-spacing:.5px}
.woocommerce #payment #place_order:hover{background:#000}
@media(max-width:820px){
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{float:none;width:100%}
}

/* ============ CATEGORIES ============ */
.cats{display:flex;justify-content:center;gap:36px;flex-wrap:wrap}
.cat{text-align:center;width:150px;cursor:pointer}
.cat .circle{width:120px;height:120px;border-radius:50%;background:var(--green-lighter);display:grid;place-items:center;margin:0 auto 12px;font-size:42px;color:var(--green);border:2px solid var(--green);transition:transform .2s;overflow:hidden}
.cat .circle img{width:100%;height:100%;object-fit:cover;display:block}
.cat:hover .circle{transform:scale(1.05)}
.cat span{font-size:14px;color:#333;font-weight:500}
.cat:hover span{color:var(--green-brand)}

/* ============ LOYALTY ============ */
.loyalty-lead{color:var(--muted);margin:-10px 0 22px}
.loyalty-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:20px}
.loyalty-hero{background:linear-gradient(135deg,#3aa832,#1f7a1a);border-radius:12px;color:#fff;padding:26px;display:flex;flex-direction:column;justify-content:center;min-height:250px}
.loyalty-hero h3{font-size:26px;font-weight:900;line-height:1.15}
.loyalty-hero p{margin:10px 0 20px;font-size:14px;opacity:.95}
.loyalty-hero .disc{background:#111;color:#fff;align-self:flex-start;padding:11px 22px;border-radius:24px;font-weight:700;display:flex;gap:8px;align-items:center}

/* ============ TABS ============ */
.tabs{display:flex;justify-content:center;gap:14px;margin-bottom:26px;flex-wrap:wrap}
.tab{padding:9px 22px;border-radius:22px;border:1px solid #d7d7d7;background:#fff;color:#444;font-weight:500;font-size:14px;cursor:pointer;transition:.15s}
.tab.active{background:var(--green);color:#fff;border-color:var(--green)}
.tabpane{display:none}.tabpane.active{display:block}
.voir-plus-wrap{text-align:center;margin-top:26px}
.voir-plus{display:inline-block;background:var(--green);color:#fff;border-radius:24px;padding:11px 34px;font-weight:600;font-size:14px;transition:background .15s}
.voir-plus:hover{background:var(--green-dark);color:#fff}

/* ============ BRANDS ============ */
.brands{overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.brands-track{display:flex;gap:18px;width:max-content;animation:brandscroll 70s linear infinite}
.brands:hover .brands-track{animation-play-state:paused}
@keyframes brandscroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.brands .b{flex:0 0 auto;width:200px;border:1px solid #eee;border-radius:10px;height:110px;display:grid;place-items:center;padding:18px;background:#fff;transition:.2s}
.brands .b:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
.brands .b img{max-height:60px;width:auto;object-fit:contain;filter:grayscale(20%)}
.brands .b .mp-brand-name{font-weight:700;color:#555;font-size:15px}

/* ============ TRUST TEXT ============ */
.trust{text-align:center}
.trust h2{text-align:center;color:var(--green-brand);font-size:26px;font-weight:700;margin-bottom:22px}
.trust p{color:#555;margin:0 auto 16px;line-height:1.7;max-width:1200px}
.trust p b{color:#333}
.trust a{color:var(--green-brand)}

/* ============ FAQ ============ */
.faq{max-width:1200px}
.faq .q{border-bottom:1px solid var(--line);padding:18px 0;cursor:pointer}
.faq .q h3{font-size:19px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq .q h3 .icon{color:var(--green);transition:transform .2s;font-size:16px}
.faq .q.open h3 .icon{transform:rotate(45deg)}
.faq .a{max-height:0;overflow:hidden;transition:max-height .3s ease;color:#555;line-height:1.7}
.faq .q.open .a{max-height:400px;padding-top:12px}
.faq .a a{color:var(--green-brand)}
.faq .a ul{margin:8px 0 0 20px}
.faq .a p{margin:0 0 10px}.faq .a p:last-child{margin-bottom:0}
.faq-group{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--green-dark);margin:22px 0 4px}
.mp-page-faq{margin-top:44px}

/* ============ SOCIAL ============ */
.social-cta{text-align:center;background:var(--green-light);padding:40px 0}
.social-cta h2{color:#5a5a5a;letter-spacing:1px;margin-bottom:26px;font-size:22px}
.social-btns{display:flex;justify-content:center;gap:26px;flex-wrap:wrap}
.sbtn{display:flex;align-items:center;gap:14px;background:#fff;border-radius:12px;padding:14px 26px 14px 14px;box-shadow:0 6px 16px rgba(0,0,0,.09);min-width:230px}
.sbtn .ic{width:56px;height:56px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:26px}
.sbtn .ic.fb{background:#1877f2}
.sbtn .ic.ig{background:radial-gradient(circle at 30% 110%,#fdc468,#e1306c 45%,#833ab4)}
.sbtn .t small{color:#666;font-size:13px}
.sbtn .t b{display:block;font-size:20px}

/* ============ FEATURE BAR ============ */
.features{background:var(--green);color:#fff}
.features .container{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.feat{display:flex;align-items:center;gap:16px;padding:26px 24px;border-right:1px solid rgba(255,255,255,.25)}
.feat:last-child{border-right:none}
.feat .icon{font-size:34px}
.feat b{display:block;font-size:15px;font-weight:700}
.feat span{font-size:13px;opacity:.92}

/* ============ FOOTER ============ */
.site-footer{background:#0f0f0f;color:#cfcfcf;padding:50px 0 30px}
.site-footer .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:40px}
.site-footer .logo-f img{height:78px;margin-bottom:14px;filter:brightness(1.1)}
.site-footer h4{color:#fff;font-size:15px;letter-spacing:.5px;margin-bottom:18px;text-transform:uppercase}
.site-footer .about h4{margin-bottom:10px}
.site-footer .about p{font-size:13.5px;line-height:1.7;color:#bdbdbd}
.site-footer ul{list-style:none}
.site-footer ul li{padding:7px 0;font-size:14px;color:#cfcfcf;display:flex;gap:8px;align-items:center;cursor:pointer}
.site-footer ul li:hover{color:var(--green)}
.site-footer ul li:before{content:"\203A";color:#888}
.site-footer .contact p{font-size:14px;margin-bottom:12px;display:flex;gap:10px;align-items:flex-start;color:#cfcfcf}
.site-footer .contact .icon{color:var(--green);margin-top:3px}
.site-footer .pay{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.site-footer .pay span{background:#fff;border-radius:6px;padding:8px 10px;font-size:12px;font-weight:700;color:#333;display:grid;place-items:center;min-width:52px}
.copyright{border-top:1px solid #262626;margin-top:36px;padding-top:20px;text-align:center;color:#8a8a8a;font-size:13px}

/* ============ MINI-CART FLYOUT ============ */
.mp-minicart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;z-index:90}
.mp-minicart-overlay.open{opacity:1;visibility:visible}
.mp-minicart{position:fixed;top:0;right:0;height:100%;width:410px;max-width:92vw;background:#fff;box-shadow:-6px 0 30px rgba(0,0,0,.16);transform:translateX(100%);transition:transform .3s ease;z-index:91;display:flex;flex-direction:column}
.mp-minicart.open{transform:translateX(0)}
.mp-minicart-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}
.mp-minicart-head span{color:var(--green-brand);font-weight:700;font-size:18px;letter-spacing:.5px}
.mp-minicart-close{background:none;border:none;cursor:pointer;color:#555;display:grid;place-items:center;width:34px;height:34px;font-size:20px;border-radius:6px}
.mp-minicart-close:hover{background:var(--green-light);color:#111}
.mp-minicart-inner{flex:1;display:flex;flex-direction:column;min-height:0}
.mp-minicart-body{flex:1;overflow-y:auto;padding:16px 24px}
.mp-minicart-empty{color:var(--muted);text-align:center;margin:40px 0}
.mp-minicart-items{list-style:none;margin:0;padding:0}
.mp-minicart-item{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line)}
.mp-minicart-thumb{width:66px;flex:0 0 66px}
.mp-minicart-thumb img{width:100%;height:auto;border:1px solid var(--line);border-radius:8px;display:block}
.mp-minicart-info{flex:1;min-width:0}
.mp-minicart-qtyprice{font-weight:700;font-size:14px;color:#222}
.mp-minicart-qtyprice .amount{color:#222}
.mp-minicart-name{font-size:12.5px;color:#555;margin-top:5px;text-transform:uppercase;line-height:1.35}
.mp-minicart-name a{color:#555}
.mp-minicart-name a:hover{color:var(--green-brand)}
.mp-minicart-remove{flex:0 0 auto;color:#b3b3b3;display:grid;place-items:center;width:28px;height:28px;font-size:15px;border-radius:6px}
.mp-minicart-remove:hover{color:var(--red);background:#faecea}
.mp-minicart-remove .icon{width:17px;height:17px}
.mp-minicart-foot{border-top:1px solid var(--line);padding:18px 24px}
.mp-minicart-total{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.mp-minicart-total span{font-weight:700;font-size:15px;letter-spacing:.3px}
.mp-minicart-total strong{font-size:22px;color:#222}
.mp-btn{display:block;width:100%;text-align:center;padding:14px;border-radius:6px;font-weight:700;font-size:14px;cursor:pointer;border:none;font-family:inherit;margin-bottom:10px;text-transform:none}
.mp-btn:last-child{margin-bottom:0}
.mp-btn-primary{background:var(--green-dark);color:#fff}
.mp-btn-primary:hover{background:#2f6421}
.mp-btn-dark{background:#111;color:#fff}
.mp-btn-dark:hover{background:#000}
@media(max-width:520px){.mp-minicart{width:100%;max-width:100%}}

/* ============ FLOATING ============ */
.float-order{position:fixed;left:18px;bottom:18px;background:var(--green-dark);color:#fff;border-radius:26px;padding:11px 18px;display:flex;align-items:center;gap:10px;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.25);z-index:60}
.float-order .waicon{width:26px;height:26px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;font-size:15px}
.float-ai{position:fixed;right:18px;bottom:18px;width:86px;height:86px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#8fe04a,#4caf50);color:#fff;display:grid;place-items:center;text-align:center;font-size:13px;font-weight:700;box-shadow:0 6px 20px rgba(0,0,0,.25);z-index:60;cursor:pointer;line-height:1.2}
.float-top{position:fixed;right:22px;bottom:112px;width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:60;box-shadow:0 4px 12px rgba(0,0,0,.2);font-size:18px}

/* ============ RESPONSIVE ============ */
@media(max-width:1200px){
  .grid,.grid.g4{grid-template-columns:repeat(3,1fr)}
  .promo-banners{grid-template-columns:1fr}
  .loyalty-grid{grid-template-columns:1fr 1fr}
  .site-footer .cols{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .site-header .container{flex-wrap:wrap;height:auto;padding:14px 20px;gap:14px}
  .search{order:3;max-width:none;flex-basis:100%}
  .grid,.grid.g4{grid-template-columns:repeat(2,1fr)}
  .features .container{grid-template-columns:1fr 1fr}
  .feat{border-right:none;border-bottom:1px solid rgba(255,255,255,.25)}
  .page-h1{font-size:22px}
  .site-footer .cols{grid-template-columns:1fr}
}
@media(max-width:520px){
  .grid,.grid.g4{grid-template-columns:1fr 1fr}
  .cats{gap:18px}.cat{width:110px}.cat .circle{width:88px;height:88px;font-size:32px}
}
