/*
Theme Name: موبینو (Mobino)
Theme URI: https://mobino.ir
Author: Mobino
Description: پوسته فروشگاهی مدرن وردپرس برای فروش موبایل و لوازم دیجیتال. راست‌به‌چپ، سازگار با ووکامرس، سبد خرید کشویی، علاقه‌مندی، مقایسه، جستجوی زنده و ریسپانسیو.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mobino
Tags: rtl-language-support, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================
   1. Variables & base
   ========================================================== */
:root{
  --p1:#6d3df5;
  --p2:#2f7bff;
  --accent:#ff3d71;
  --grad:linear-gradient(135deg,var(--p1) 0%,var(--p2) 100%);
  --grad-accent:linear-gradient(135deg,var(--accent) 0%,#ff8a3d 100%);
  --dark:#15122e;
  --ink:#2b2745;
  --muted:#7a7794;
  --line:#ebe8f7;
  --bg:#f5f4fb;
  --soft:#f1edff;
  --card:#fff;
  --success:#10b981;
  --warn:#ffb020;
  --radius:18px;
  --radius-sm:12px;
  --shadow-sm:0 2px 10px rgba(40,24,110,.06);
  --shadow:0 10px 30px rgba(40,24,110,.09);
  --shadow-lg:0 20px 50px rgba(40,24,110,.18);
  --container:1280px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;direction:rtl;text-align:right;
  font-family:'Vazirmatn',Tahoma,'Segoe UI',sans-serif;
  font-size:14px;line-height:1.9;color:var(--ink);background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .2s,background .2s,transform .2s,box-shadow .2s}
a:hover{color:var(--p1)}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,h5{color:var(--dark);margin:0 0 .5em;line-height:1.5;font-weight:800}
p{margin:0 0 1em}
button,input,select,textarea{font-family:inherit;font-size:inherit}
table{border-collapse:collapse;width:100%}
.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 18px}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.ico{display:inline-flex;width:22px;height:22px;flex:none}
.ico svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
::selection{background:var(--p1);color:#fff}

/* ==========================================================
   2. Buttons & form fields
   ========================================================== */
.btn,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,
input[type=submit],button[type=submit].button,.wp-block-button__link,
.single_add_to_cart_button,#place_order{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--grad);color:#fff !important;border:0;border-radius:14px;
  padding:12px 26px;font-weight:700;line-height:1.5;cursor:pointer;text-align:center;
  box-shadow:0 10px 22px -8px rgba(109,61,245,.65);
  transition:transform .2s,box-shadow .2s,filter .2s;
}
.btn:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,
input[type=submit]:hover,.single_add_to_cart_button:hover,#place_order:hover{
  transform:translateY(-2px);filter:brightness(1.08);
  box-shadow:0 16px 28px -10px rgba(109,61,245,.7);color:#fff;
}
.btn:active,.single_add_to_cart_button:active,.woocommerce a.button:active{transform:translateY(0)}
.btn-accent{background:var(--grad-accent);box-shadow:0 10px 22px -8px rgba(255,61,113,.65)}
.btn-accent:hover{box-shadow:0 16px 28px -10px rgba(255,61,113,.7)}
.btn-white{background:#fff;color:var(--p1) !important;box-shadow:0 10px 22px -10px rgba(0,0,0,.35)}
.btn-white:hover{color:var(--p1)}
.btn-outline{background:transparent;color:var(--p1) !important;box-shadow:inset 0 0 0 2px var(--p1)}
.btn-outline:hover{background:var(--grad);color:#fff !important;box-shadow:0 12px 24px -10px rgba(109,61,245,.6)}
.btn-soft,
ul.products li.product .button,.woocommerce ul.products li.product .button{
  background:var(--soft);color:var(--p1) !important;box-shadow:none;
}
.btn-soft:hover,
ul.products li.product .button:hover{background:var(--grad);color:#fff !important}
.btn-sm{padding:8px 16px;font-size:13px;border-radius:11px}
.btn-block{display:flex;width:100%}
.woocommerce a.button.disabled,.woocommerce button.button:disabled,.woocommerce button.button.disabled,.single_add_to_cart_button.disabled{opacity:.5;pointer-events:none;filter:grayscale(.4)}
a.added_to_cart{display:inline-flex;margin-top:8px;font-weight:700;color:var(--success)}

input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=search],input[type=url],select,textarea,
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{
  width:100%;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:11px 16px;
  color:var(--ink);outline:0;transition:border-color .2s,box-shadow .2s;
}
input:focus,select:focus,textarea:focus{border-color:var(--p1);box-shadow:0 0 0 4px rgba(109,61,245,.12)}
textarea{min-height:120px;resize:vertical}
label{font-weight:600}

/* ==========================================================
   3. Topbar
   ========================================================== */
.topbar{background:var(--dark);color:#cfcbe8;font-size:12.5px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:38px;gap:12px}
.topbar .msg{display:flex;align-items:center;gap:8px}
.topbar .msg::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px rgba(16,185,129,.25)}
.topbar-links{display:flex;gap:20px}
.topbar a:hover{color:#fff}

/* ==========================================================
   4. Header
   ========================================================== */
.site-header{background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(14px);position:sticky;top:0;z-index:100;box-shadow:0 1px 0 var(--line)}
.site-header.scrolled{box-shadow:0 8px 30px rgba(40,24,110,.1)}
.header-main{display:flex;align-items:center;gap:22px;padding:14px 18px}
.site-logo{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.site-logo:hover{transform:translateY(-1px)}
.logo-mark{
  width:42px;height:42px;border-radius:13px;background:var(--grad);color:#fff;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 10px 20px -8px rgba(109,61,245,.7);
}
.logo-mark .ico{width:22px;height:22px}
.logo-text{
  font-size:30px;font-weight:900;line-height:1;letter-spacing:-.5px;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
}
.site-logo img{max-height:48px;width:auto}

.header-search-wrap{flex:1;position:relative;max-width:640px}
.header-search{position:relative}
.header-search input[type=search]{
  height:48px;background:var(--bg);border:1.5px solid transparent;border-radius:14px;padding:0 20px 0 60px;
}
.header-search input[type=search]:focus{background:#fff;border-color:var(--p1)}
.header-search button{
  position:absolute;left:6px;top:6px;height:36px;width:44px;padding:0;border-radius:10px;border:0;
  background:var(--grad);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
}
.search-results{
  position:absolute;top:calc(100% + 8px);right:0;left:0;background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);
  padding:8px;display:none;z-index:200;max-height:70vh;overflow:auto;
}
.search-results.open{display:block}
.sr-item{display:flex;align-items:center;gap:12px;padding:8px;border-radius:12px}
.sr-item:hover{background:var(--soft)}
.sr-item img{width:48px;height:48px;object-fit:contain;border-radius:10px;background:var(--bg)}
.sr-item b{display:block;font-size:13px;color:var(--dark);line-height:1.6}
.sr-item .sr-price{font-size:12.5px;color:var(--p1);font-weight:700}
.sr-empty{padding:16px;text-align:center;color:var(--muted)}
.sr-all{display:block;text-align:center;padding:10px;margin-top:4px;border-top:1px solid var(--line);color:var(--p1);font-weight:700}

.header-actions{display:flex;align-items:center;gap:8px;margin-right:auto}
.icon-btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;min-width:46px;padding:0 14px;
  border:0;border-radius:14px;background:var(--bg);color:var(--dark);font-weight:700;cursor:pointer;
}
.icon-btn:hover{background:var(--soft);color:var(--p1);transform:translateY(-2px)}
.icon-btn.has-label{padding:0 16px}
.icon-btn.cart-btn{background:var(--grad);color:#fff;box-shadow:0 10px 20px -8px rgba(109,61,245,.65)}
.icon-btn.cart-btn:hover{color:#fff;background:var(--grad);filter:brightness(1.08)}
.badge{
  position:absolute;top:-6px;left:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;
  font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;border:2px solid #fff;line-height:1;
}
.badge[data-count="0"]{display:none}
.menu-toggle{display:none}

/* nav */
.main-nav{border-top:1px solid var(--line);background:#fff}
.main-nav .container{display:flex;align-items:center;gap:6px}
.cat-menu{position:relative;margin-left:8px}
.cat-menu-btn{
  display:inline-flex;align-items:center;gap:10px;background:var(--grad);color:#fff;border:0;cursor:pointer;
  padding:10px 20px;border-radius:12px;font-weight:700;margin:8px 0;box-shadow:0 8px 18px -8px rgba(109,61,245,.6);
}
.cat-dropdown{
  position:absolute;top:100%;right:0;width:min(860px,92vw);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);
  padding:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;opacity:0;visibility:hidden;transform:translateY(10px);transition:.22s;z-index:120;
}
.cat-menu:hover .cat-dropdown,.cat-menu.open .cat-dropdown{opacity:1;visibility:visible;transform:none}
.cat-col .cat-parent{display:flex;align-items:center;gap:8px;font-weight:800;color:var(--dark);margin-bottom:6px}
.cat-col .cat-parent::before{content:"";width:4px;height:16px;border-radius:4px;background:var(--grad)}
.cat-col li a{display:block;padding:3px 12px;color:var(--muted);border-radius:8px}
.cat-col li a:hover{background:var(--soft);color:var(--p1)}
.main-nav ul.menu{display:flex;flex-wrap:wrap;gap:2px}
.main-nav ul.menu>li{position:relative}
.main-nav ul.menu>li>a{display:block;padding:14px 14px;font-weight:700;color:var(--dark);position:relative}
.main-nav ul.menu>li>a::after{content:"";position:absolute;right:14px;left:14px;bottom:6px;height:2px;border-radius:2px;background:var(--grad);transform:scaleX(0);transition:.25s}
.main-nav ul.menu>li:hover>a,.main-nav ul.menu>li.current-menu-item>a{color:var(--p1)}
.main-nav ul.menu>li:hover>a::after,.main-nav ul.menu>li.current-menu-item>a::after{transform:scaleX(1)}
.main-nav ul.sub-menu{
  position:absolute;right:0;top:100%;min-width:230px;background:#fff;border-radius:14px;box-shadow:var(--shadow-lg);
  padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s;z-index:50;
}
.main-nav li:hover>ul.sub-menu{opacity:1;visibility:visible;transform:none}
.main-nav ul.sub-menu a{display:block;padding:9px 14px;border-radius:10px}
.main-nav ul.sub-menu a:hover{background:var(--soft)}
.nav-hotline{margin-right:auto;display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--accent)}

/* ==========================================================
   5. Hero
   ========================================================== */
.hero{padding:22px 0 8px}
.hero-grid{display:grid;grid-template-columns:2.3fr 1fr;gap:16px}
.hero-slider{position:relative;overflow:hidden;border-radius:24px;min-height:400px;background:var(--dark);box-shadow:var(--shadow)}
.hero-slide{
  position:absolute;inset:0;display:flex;align-items:center;padding:0 64px;background-size:cover;background-position:center;
  opacity:0;visibility:hidden;transition:opacity .7s;overflow:hidden;
}
.hero-slide.active{opacity:1;visibility:visible}
.hero-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(21,18,46,.82),rgba(21,18,46,.1))}
.hero-slide::after{
  content:"";position:absolute;left:-80px;bottom:-120px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.22),transparent 70%);
}
.hero-content{position:relative;z-index:2;color:#fff;max-width:480px;animation:fadeUp .7s both}
.hero-chip{display:inline-block;background:rgba(255,255,255,.16);backdrop-filter:blur(6px);border-radius:999px;padding:4px 14px;font-size:12.5px;margin-bottom:14px;font-weight:700}
.hero-content h2{color:#fff;font-size:36px;font-weight:900;line-height:1.5}
.hero-content p{opacity:.92;margin:0 0 24px;font-size:15px}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(255,255,255,.2);backdrop-filter:blur(8px);color:#fff;display:flex;align-items:center;justify-content:center;transition:.2s;
}
.hero-arrow:hover{background:#fff;color:var(--p1)}
.hero-arrow.prev{right:16px}.hero-arrow.next{left:16px}
.hero-dots{position:absolute;bottom:18px;right:50%;transform:translateX(50%);display:flex;gap:8px;z-index:3}
.hero-dots button{width:10px;height:10px;border-radius:99px;border:0;padding:0;background:rgba(255,255,255,.5);cursor:pointer;transition:.3s}
.hero-dots button.active{background:#fff;width:30px}
.hero-side{display:grid;gap:16px}
.hero-side a,.promo-banner a{display:block;border-radius:22px;overflow:hidden;background:var(--grad);min-height:192px;box-shadow:var(--shadow-sm);transition:.3s}
.hero-side a:hover,.promo-banner a:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hero-side a:nth-child(2){background:var(--grad-accent)}
.hero-side img,.promo-banner img{width:100%;height:100%;object-fit:cover}
.placeholder-banner{
  position:relative;display:flex;align-items:center;justify-content:center;height:100%;min-height:192px;color:#fff;
  font-size:22px;font-weight:900;text-align:center;padding:20px;overflow:hidden;
}
.placeholder-banner::before{content:"";position:absolute;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.14);top:-60px;left:-50px}
.placeholder-banner::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.1);bottom:-40px;right:-30px}
.placeholder-banner span{position:relative}

/* Benefits bar */
.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:14px 0 6px}
.benefit{display:flex;align-items:center;gap:14px;background:#fff;border-radius:var(--radius);padding:14px 18px;box-shadow:var(--shadow-sm);transition:.25s}
.benefit:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.benefit .b-ico{flex:0 0 48px;height:48px;border-radius:15px;background:var(--soft);color:var(--p1);display:flex;align-items:center;justify-content:center}
.benefit .b-ico .ico{width:24px;height:24px}
.benefit b{display:block;color:var(--dark);line-height:1.5}
.benefit small{color:var(--muted)}

/* ==========================================================
   6. Sections
   ========================================================== */
.section{padding:22px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}
.section-head h2{font-size:21px;margin:0;display:flex;align-items:center;gap:10px}
.section-head h2::before{content:"";width:6px;height:26px;border-radius:6px;background:var(--grad)}
.section-head .more{color:var(--p1);font-weight:700;display:inline-flex;align-items:center;gap:4px}
.section-head .more:hover{gap:8px}
.head-tools{display:flex;align-items:center;gap:14px}
.slider-arrows{display:flex;gap:8px}
.slider-arrows button{
  width:40px;height:40px;border-radius:12px;border:0;background:#fff;color:var(--dark);cursor:pointer;
  box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:center;transition:.2s;
}
.slider-arrows button:hover{background:var(--grad);color:#fff;transform:translateY(-2px)}

/* Category cards */
.cat-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:14px}
.cat-item{background:#fff;border-radius:var(--radius);padding:18px 8px 14px;text-align:center;box-shadow:var(--shadow-sm);transition:.3s;display:block;position:relative;overflow:hidden}
.cat-item::before{content:"";position:absolute;inset:0;background:var(--grad);opacity:0;transition:.3s}
.cat-item:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.cat-item:hover::before{opacity:.06}
.cat-item .c-ico{
  position:relative;width:72px;height:72px;margin:0 auto 10px;border-radius:24px;background:var(--soft);color:var(--p1);
  display:flex;align-items:center;justify-content:center;overflow:hidden;transition:.3s;
}
.cat-item:hover .c-ico{background:var(--grad);color:#fff;transform:rotate(-6deg) scale(1.05)}
.cat-item .c-ico img{width:100%;height:100%;object-fit:cover}
.cat-item .c-ico .ico{width:32px;height:32px}
.cat-item b{position:relative;display:block;color:var(--dark);font-size:13px}

/* Offers */
.offers{
  position:relative;background:linear-gradient(135deg,#2a1a8f 0%,var(--p1) 45%,var(--p2) 100%);
  border-radius:28px;padding:26px;overflow:hidden;box-shadow:0 24px 50px -20px rgba(109,61,245,.7);
}
.offers::before{content:"";position:absolute;width:380px;height:380px;border-radius:50%;background:rgba(255,255,255,.08);top:-140px;left:-100px}
.offers::after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.07);bottom:-110px;right:30%}
.offers>*{position:relative;z-index:1}
.offers .section-head h2{color:#fff}
.offers .section-head h2::before{background:#fff}
.offers .more{color:#fff}
.offers .slider-arrows button{background:rgba(255,255,255,.16);color:#fff;box-shadow:none}
.offers .slider-arrows button:hover{background:#fff;color:var(--p1)}
.countdown{display:inline-flex;align-items:center;gap:6px;direction:ltr}
.countdown span{background:#fff;color:var(--p1);min-width:40px;text-align:center;padding:3px 8px;border-radius:10px;font-weight:900;font-size:16px;line-height:1.6}
.countdown i{color:#fff;font-style:normal;font-weight:900}

/* Product rows */
.product-row ul.products{
  display:flex !important;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding:6px 4px 16px;scrollbar-width:none;margin:0 !important;
}
.product-row ul.products::-webkit-scrollbar{display:none}
.product-row ul.products li.product{flex:0 0 240px;scroll-snap-align:start}
.product-row .woocommerce{overflow:hidden}

/* ==========================================================
   7. Product card
   ========================================================== */
ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0 0 28px}
ul.products li.product{
  position:relative;background:#fff;border-radius:var(--radius);padding:12px 12px 14px;border:1px solid transparent;
  box-shadow:var(--shadow-sm);transition:.3s;display:flex;flex-direction:column;
}
ul.products li.product:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--line)}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1}
ul.products li.product img{
  width:100%;aspect-ratio:1/1;object-fit:contain;background:linear-gradient(180deg,#faf9ff,#f3f0ff);
  border-radius:14px;padding:14px;margin:0 0 12px;transition:.4s;
}
ul.products li.product:hover img{transform:scale(1.04)}
ul.products li.product .woocommerce-loop-product__title{
  font-size:13.5px;font-weight:700;color:var(--dark);margin:0 0 6px;padding:0;line-height:1.8;min-height:48px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
ul.products li.product .star-rating{margin:0 0 6px}
ul.products li.product .price{display:flex;flex-direction:column;gap:0;color:var(--dark);font-weight:800;font-size:15.5px;margin:auto 0 12px}
ul.products li.product .price del{color:var(--muted);font-weight:500;font-size:12.5px;opacity:.9}
ul.products li.product .price ins{text-decoration:none;color:var(--dark)}
ul.products li.product .price .woocommerce-Price-currencySymbol{font-size:11.5px;font-weight:600;color:var(--muted);margin-right:4px}
ul.products li.product .button{width:100%;margin-top:0}
ul.products li.product .added_to_cart{display:none}

.onsale{
  position:absolute;top:10px;right:10px;z-index:3;background:var(--grad-accent);color:#fff;border-radius:10px;
  min-width:0;min-height:0;padding:2px 10px;font-weight:800;font-size:12.5px;line-height:1.9;box-shadow:0 6px 14px -4px rgba(255,61,113,.6);
}
.oos-badge{position:absolute;top:10px;right:10px;z-index:4;background:var(--dark);color:#fff;border-radius:10px;padding:2px 10px;font-size:12px;font-weight:700}
.card-actions{
  position:absolute;top:10px;left:10px;z-index:5;display:flex;flex-direction:column;gap:8px;
  opacity:0;transform:translateX(-8px);transition:.25s;
}
ul.products li.product:hover .card-actions,.card-actions:focus-within{opacity:1;transform:none}
.act-btn{
  width:36px;height:36px;border-radius:12px;border:0;background:#fff;color:var(--muted);cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);transition:.2s;
}
.act-btn .ico{width:18px;height:18px}
.act-btn:hover{color:var(--p1);transform:scale(1.1)}
.act-btn.active{background:var(--accent);color:#fff}
.act-btn.js-compare.active{background:var(--p1)}
.act-btn.active .ico svg{fill:currentColor}
.js-compare.active .ico svg{fill:none}
.star-rating{position:relative;display:inline-block;height:1.2em;width:5.4em;overflow:hidden;line-height:1.2;font-size:13px;letter-spacing:.1em;direction:ltr;text-align:left}
.star-rating::before{content:"★★★★★";color:#ddd8ee;position:absolute;top:0;left:0}
.star-rating span{position:absolute;top:0;left:0;overflow:hidden;padding-top:1.5em;height:0}
.star-rating span::before{content:"★★★★★";color:var(--warn);position:absolute;top:0;left:0}

/* ==========================================================
   8. Promo / brands / cta / blog
   ========================================================== */
.promo-banner{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.promo-banner a{min-height:210px}
.promo-banner a:nth-child(2){background:var(--grad-accent)}
.brands{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.brand-item{
  background:#fff;border-radius:var(--radius);height:92px;display:flex;align-items:center;justify-content:center;padding:14px;
  font-weight:900;font-size:19px;color:#b3afca;box-shadow:var(--shadow-sm);transition:.3s;letter-spacing:.5px;
}
.brand-item img{max-height:100%;width:auto;filter:grayscale(1);opacity:.7;transition:.3s}
.brand-item:hover{color:var(--p1);transform:translateY(-4px);box-shadow:var(--shadow)}
.brand-item:hover img{filter:none;opacity:1}
.cta-band{
  position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,var(--dark),#2a1a8f);color:#fff;
  padding:38px 44px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.cta-band::before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(109,61,245,.6),transparent 70%);left:-60px;top:-100px}
.cta-band h3{color:#fff;font-size:24px;margin:0 0 6px;position:relative}
.cta-band p{margin:0;opacity:.85;position:relative}
.cta-band .btn{position:relative}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);transition:.3s}
.post-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.post-card .thumb{aspect-ratio:16/10;background:var(--soft);overflow:hidden;display:block}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:.5s}
.post-card:hover .thumb img{transform:scale(1.06)}
.post-card .body{padding:18px}
.post-card h3{font-size:15.5px;margin-bottom:6px}
.post-card .meta{font-size:12px;color:var(--muted)}
.post-card p{margin:8px 0 0;color:var(--muted)}

/* ==========================================================
   9. Footer / floating / bottom nav / drawer
   ========================================================== */
.site-footer{background:var(--dark);color:#bdb9d8;margin-top:40px;position:relative}
.footer-top{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:34px;padding:48px 18px 28px}
.site-footer h4{color:#fff;font-size:15.5px;margin-bottom:14px}
.site-footer li{padding:4px 0}
.site-footer a:hover{color:#fff}
.footer-logo .logo-text{font-size:28px;background:linear-gradient(135deg,#fff,#c9b8ff);-webkit-background-clip:text;background-clip:text}
.footer-about p{margin:12px 0;line-height:2.1}
.socials{display:flex;gap:8px;flex-wrap:wrap}
.socials a{background:rgba(255,255,255,.08);border-radius:12px;padding:6px 14px;font-size:12.5px;font-weight:700}
.socials a:hover{background:var(--grad)}
.footer-contact li{display:flex;gap:10px;align-items:flex-start}
.footer-contact .ico{width:18px;height:18px;margin-top:5px;color:var(--p2)}
.footer-trust{display:flex;flex-wrap:wrap;gap:12px;padding:0 18px 26px;align-items:center}
.footer-trust .box{background:#fff;border-radius:14px;padding:8px 12px;min-width:92px;min-height:70px;display:flex;align-items:center;justify-content:center}
.footer-trust .box img{max-height:60px;width:auto}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);text-align:center;padding:18px;font-size:12.5px}
.to-top{
  position:fixed;left:18px;bottom:22px;width:46px;height:46px;border-radius:14px;border:0;background:var(--grad);color:#fff;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(10px);transition:.25s;z-index:90;box-shadow:0 12px 24px -8px rgba(109,61,245,.7);
  display:flex;align-items:center;justify-content:center;
}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top .ico{transform:rotate(90deg)}
.float-support{position:fixed;right:18px;bottom:22px;z-index:90;display:flex;flex-direction:column;gap:10px}
.float-support a{
  width:50px;height:50px;border-radius:16px;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 24px -8px rgba(37,211,102,.8);
}
.float-support a.tg{background:#229ed9;box-shadow:0 12px 24px -8px rgba(34,158,217,.8)}
.float-support a:hover{color:#fff;transform:scale(1.08)}

/* Drawer (mini cart) */
.drawer-overlay{position:fixed;inset:0;background:rgba(21,18,46,.55);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:.3s;z-index:300}
.drawer-overlay.show{opacity:1;visibility:visible}
.mini-cart-drawer{
  position:fixed;top:0;bottom:0;left:0;width:min(420px,92vw);background:#fff;z-index:310;display:flex;flex-direction:column;
  transform:translateX(-102%);transition:transform .35s cubic-bezier(.22,.9,.3,1);box-shadow:var(--shadow-lg);
}
.mini-cart-drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}
.drawer-head b{font-size:17px;color:var(--dark)}
.drawer-close{width:38px;height:38px;border-radius:12px;border:0;background:var(--bg);cursor:pointer;display:flex;align-items:center;justify-content:center}
.drawer-close:hover{background:var(--accent);color:#fff}
.drawer-body{flex:1;overflow:auto;padding:6px 20px 20px;display:flex;flex-direction:column}
.widget_shopping_cart_content{display:flex;flex-direction:column;flex:1}
.woocommerce-mini-cart{flex:1}
.woocommerce-mini-cart-item{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 0 14px 34px;border-bottom:1px dashed var(--line)}
.woocommerce-mini-cart-item a:not(.remove){display:flex;align-items:center;gap:12px;font-weight:700;color:var(--dark);flex:1 1 100%}
.woocommerce-mini-cart-item img{width:64px;height:64px;object-fit:contain;background:var(--bg);border-radius:12px;padding:4px}
.woocommerce-mini-cart-item .quantity{color:var(--muted);font-size:13px;margin-right:76px;margin-top:-24px}
a.remove{
  position:absolute;left:0;top:14px;width:26px;height:26px;border-radius:50%;background:var(--bg);color:var(--accent) !important;
  display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;font-weight:700;
}
a.remove:hover{background:var(--accent);color:#fff !important}
.woocommerce-mini-cart__total{display:flex;justify-content:space-between;padding:16px 0;font-size:15px;font-weight:800;color:var(--dark)}
.woocommerce-mini-cart__buttons{display:grid;gap:10px}
.woocommerce-mini-cart__buttons a.button{width:100%}
.woocommerce-mini-cart__buttons a.button:not(.checkout){background:var(--soft);color:var(--p1) !important;box-shadow:none}
.woocommerce-mini-cart__empty-message{text-align:center;color:var(--muted);padding:60px 0}

/* Mobile bottom nav */
.bottom-nav{
  display:none;position:fixed;right:0;left:0;bottom:0;z-index:95;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);
  border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));grid-template-columns:repeat(4,1fr);
}
.bottom-nav a,.bottom-nav button{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--muted);
  background:none;border:0;padding:6px 0;cursor:pointer;
}
.bottom-nav .ico{width:23px;height:23px}
.bottom-nav a:hover,.bottom-nav a.active,.bottom-nav button:hover{color:var(--p1)}
.bottom-nav .badge{top:0;left:50%;margin-left:-4px}

/* Sticky add to cart (single product, mobile) */
.sticky-atc{
  position:fixed;right:0;left:0;bottom:0;z-index:96;background:#fff;box-shadow:0 -10px 30px rgba(40,24,110,.14);
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));display:none;align-items:center;gap:14px;transform:translateY(110%);transition:.3s;
}
.sticky-atc.show{transform:none}
.sticky-atc .sa-info{flex:1;min-width:0}
.sticky-atc .sa-info b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--dark)}
.sticky-atc .sa-info span{color:var(--p1);font-weight:800}
.sticky-atc .sa-info del{display:none}

/* ==========================================================
   10. Content pages & widgets
   ========================================================== */
.page-wrap{padding:26px 0 10px}
.content-box{background:#fff;border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-sm)}
.page-title{font-size:26px;margin-bottom:18px}
.entry-content p{margin:0 0 1.1em;line-height:2.1}
.entry-content img{border-radius:var(--radius-sm)}
.entry-content h2,.entry-content h3{margin-top:1.4em}
.layout-sidebar{display:grid;grid-template-columns:3fr 1fr;gap:22px;align-items:start}
.widget{background:#fff;border-radius:var(--radius);padding:20px;margin-bottom:18px;box-shadow:var(--shadow-sm)}
.widget-title{font-size:15px;padding-bottom:10px;margin-bottom:14px;border-bottom:2px solid var(--soft);position:relative}
.widget-title::after{content:"";position:absolute;right:0;bottom:-2px;width:46px;height:2px;background:var(--grad)}
.widget li{padding:6px 0}
.widget li a{display:flex;justify-content:space-between;gap:8px}
.widget li a:hover{color:var(--p1);padding-right:4px}
.widget .count{color:var(--muted);font-size:12px}
.pagination,.woocommerce-pagination{margin:28px 0;text-align:center}
.page-numbers{display:inline-flex;min-width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:#fff;margin:0 3px;box-shadow:var(--shadow-sm);font-weight:700}
.page-numbers.current,a.page-numbers:hover{background:var(--grad);color:#fff}
.woocommerce-pagination ul{display:inline-flex;gap:4px;flex-wrap:wrap;justify-content:center}
.woocommerce-pagination ul li a,.woocommerce-pagination ul li span{display:inline-flex;min-width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);font-weight:700}
.woocommerce-pagination ul li span.current,.woocommerce-pagination ul li a:hover{background:var(--grad);color:#fff}
.woocommerce-breadcrumb{color:var(--muted);font-size:12.5px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:4px}
.woocommerce-breadcrumb a{color:var(--muted)}
.woocommerce-breadcrumb a:hover{color:var(--p1)}

/* Notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#fff;border-right:5px solid var(--p1);
  border-radius:14px;padding:14px 20px;margin:0 0 18px;box-shadow:var(--shadow-sm);list-style:none;
}
.woocommerce-message{border-color:var(--success)}
.woocommerce-error{border-color:var(--accent);display:block}
.woocommerce-message .button{order:2}

/* ==========================================================
   11. Shop archive
   ========================================================== */
.shop-layout{display:grid;grid-template-columns:280px 1fr;gap:22px;align-items:start}
.shop-sidebar{position:sticky;top:150px}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border-radius:var(--radius);padding:10px 14px;margin-bottom:18px;box-shadow:var(--shadow-sm)}
.shop-toolbar .woocommerce-result-count{margin:0;color:var(--muted)}
.shop-toolbar .woocommerce-ordering{margin:0}
.woocommerce-ordering select{width:auto;padding:8px 14px;border-radius:10px;background:var(--bg);border-color:transparent}
.filter-toggle{display:none}
.cat-chips{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 14px;margin-bottom:6px;scrollbar-width:none}
.cat-chips::-webkit-scrollbar{display:none}
.cat-chips a{flex:none;background:#fff;border-radius:999px;padding:6px 18px;font-weight:700;box-shadow:var(--shadow-sm)}
.cat-chips a:hover{background:var(--grad);color:#fff}
.term-description{background:#fff;border-radius:var(--radius);padding:16px 20px;margin-bottom:18px;color:var(--muted);box-shadow:var(--shadow-sm)}
/* price filter slider */
.price_slider_wrapper{padding-top:6px}
.ui-slider{position:relative;height:6px;background:var(--line);border-radius:6px;margin:14px 8px 20px}
.ui-slider .ui-slider-range{position:absolute;height:100%;background:var(--grad);border-radius:6px}
.ui-slider .ui-slider-handle{position:absolute;top:-7px;width:20px;height:20px;margin-left:-10px;border-radius:50%;background:#fff;border:3px solid var(--p1);cursor:pointer;box-shadow:var(--shadow-sm);outline:0}
.price_slider_amount{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.price_slider_amount .button{padding:8px 18px}
.woocommerce-widget-layered-nav-list li{display:flex;justify-content:space-between}
.woocommerce-widget-layered-nav-list li.chosen a{color:var(--p1);font-weight:800}

/* ==========================================================
   12. Single product
   ========================================================== */
.woocommerce div.product,.single-product div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:26px;align-items:start}
.woocommerce-product-gallery{position:relative;background:#fff;border-radius:24px;padding:22px;box-shadow:var(--shadow-sm);margin:0}
.woocommerce-product-gallery__wrapper{margin:0}
.woocommerce-product-gallery__image img{width:100%;border-radius:16px;margin:0 auto;object-fit:contain;max-height:520px}
.woocommerce-product-gallery__trigger{position:absolute;top:18px;left:18px;z-index:9;width:40px;height:40px;border-radius:12px;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;font-size:0}
.woocommerce-product-gallery__trigger::before{content:"⤢";font-size:18px}
.flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}
.flex-control-thumbs li img{border-radius:12px;border:2px solid transparent;cursor:pointer;opacity:.6;background:var(--bg);padding:4px;aspect-ratio:1;object-fit:contain;transition:.2s}
.flex-control-thumbs li img.flex-active,.flex-control-thumbs li img:hover{opacity:1;border-color:var(--p1)}
.woocommerce div.product .summary{background:#fff;border-radius:24px;padding:26px;box-shadow:var(--shadow-sm);margin:0}
.product_title{font-size:23px;line-height:1.7}
.woocommerce-product-rating{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.woocommerce-product-rating a{color:var(--muted);font-size:12.5px}
.woocommerce div.product p.price,.woocommerce div.product span.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;font-size:26px;font-weight:900;color:var(--dark);margin:14px 0}
.woocommerce div.product p.price del{font-size:15px;color:var(--muted);font-weight:500}
.woocommerce div.product p.price ins{text-decoration:none;color:var(--accent)}
.woocommerce-product-details__short-description{color:var(--muted);border-top:1px dashed var(--line);padding-top:14px}
.woocommerce-product-details__short-description ul{list-style:disc;padding-right:20px}
form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0}
form.cart .single_add_to_cart_button{flex:1;min-width:180px;padding:15px 30px;font-size:15px}
form.variations_form{display:block}
table.variations{margin-bottom:14px}
table.variations td,table.variations th{padding:6px 0;text-align:right;display:block}
table.variations label{color:var(--dark)}
table.variations select{max-width:100%}
.reset_variations{font-size:12px;color:var(--accent)}
.woocommerce-variation-price .price{font-size:22px;font-weight:900}
.woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;width:100%}
.quantity{display:inline-flex;align-items:center;background:var(--bg);border-radius:14px;overflow:hidden}
.quantity input.qty{width:54px;height:48px;border:0;background:transparent;text-align:center;font-weight:800;padding:0;-moz-appearance:textfield;box-shadow:none}
.quantity input.qty::-webkit-outer-spin-button,.quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none}
.qty-btn{width:42px;height:48px;border:0;background:transparent;font-size:20px;cursor:pointer;color:var(--dark);font-weight:700}
.qty-btn:hover{background:var(--soft);color:var(--p1)}
.single-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.single-actions .act-btn-text{display:inline-flex;align-items:center;gap:8px;background:var(--bg);border:0;border-radius:12px;padding:9px 16px;font-weight:700;cursor:pointer;color:var(--ink)}
.single-actions .act-btn-text:hover{background:var(--soft);color:var(--p1)}
.single-actions .act-btn-text.active{background:var(--soft);color:var(--accent)}
.single-actions .act-btn-text .ico{width:18px;height:18px}
.single-actions .act-btn-text.active .ico svg{fill:currentColor}
.trust-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 0}
.trust-list li{display:flex;align-items:center;gap:10px;background:var(--bg);border-radius:14px;padding:10px 12px;font-size:12.5px;font-weight:600}
.trust-list .ico{color:var(--p1);width:22px;height:22px}
.stock{font-weight:700;margin:0 0 10px}
.stock.in-stock{color:var(--success)}
.stock.out-of-stock{color:var(--accent)}
.product_meta{display:grid;gap:4px;margin-top:18px;padding-top:16px;border-top:1px dashed var(--line);font-size:13px;color:var(--muted)}
.product_meta a{color:var(--p1);font-weight:600}
.woocommerce-tabs{grid-column:1/-1;background:#fff;border-radius:24px;padding:26px;box-shadow:var(--shadow-sm)}
.woocommerce-tabs ul.tabs{display:flex;gap:8px;border-bottom:2px solid var(--line);margin-bottom:22px;flex-wrap:wrap}
.woocommerce-tabs ul.tabs li a{display:block;padding:12px 22px;font-weight:800;color:var(--muted);border-radius:12px 12px 0 0;position:relative}
.woocommerce-tabs ul.tabs li.active a{color:var(--p1)}
.woocommerce-tabs ul.tabs li.active a::after{content:"";position:absolute;right:0;left:0;bottom:-2px;height:3px;border-radius:3px;background:var(--grad)}
.woocommerce-Tabs-panel h2{font-size:18px}
table.shop_attributes{border-radius:14px;overflow:hidden}
table.shop_attributes th{width:30%;background:var(--bg);text-align:right;padding:12px 16px;color:var(--dark)}
table.shop_attributes td{padding:12px 16px;border-bottom:1px solid var(--line)}
table.shop_attributes tr:nth-child(even) td{background:#fcfbff}
table.shop_attributes p{margin:0}
.related,.upsells{grid-column:1/-1}
.related>h2,.upsells>h2{font-size:21px}
#reviews #comments ol.commentlist{list-style:none;padding:0}
#reviews li.review{background:var(--bg);border-radius:16px;padding:16px;margin-bottom:12px}
.comment-form-rating .stars a{font-size:20px;color:var(--warn);margin-left:4px}

/* ==========================================================
   13. Cart / checkout / account
   ========================================================== */
.woocommerce-cart-form,.cart-collaterals .cart_totals,.woocommerce-checkout-review-order,#customer_details,.woocommerce-MyAccount-content,.woocommerce-MyAccount-navigation,.woocommerce form.login,.woocommerce form.register{
  background:#fff;border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm);
}
table.shop_table{border-radius:14px;overflow:hidden;border:1px solid var(--line);border-collapse:separate;border-spacing:0}
table.shop_table th{background:var(--bg);color:var(--dark);padding:14px;text-align:right}
table.shop_table td{padding:14px;border-top:1px solid var(--line);text-align:right;vertical-align:middle}
table.shop_table img{width:68px;height:68px;object-fit:contain;background:var(--bg);border-radius:12px;padding:4px}
td.product-name a{font-weight:700;color:var(--dark)}
.woocommerce-cart .woocommerce{display:grid;grid-template-columns:2fr 1fr;gap:22px;align-items:start}
.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
.cart-collaterals .cart_totals h2{font-size:18px}
.wc-proceed-to-checkout .button{width:100%;padding:15px}
.coupon{display:flex;gap:10px;flex-wrap:wrap}
.coupon input{width:auto;flex:1}
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;align-items:start}
.woocommerce-checkout form.checkout>#order_review_heading{display:none}
.woocommerce-checkout #customer_details .col-1,.woocommerce-checkout #customer_details .col-2{float:none;width:100%}
.woocommerce form .form-row{margin-bottom:14px}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:48.5%;float:right}
.woocommerce form .form-row-first{margin-left:3%}
.woocommerce form .form-row-wide{clear:both}
.woocommerce form .form-row label{display:block;margin-bottom:5px}
.woocommerce-checkout h3{font-size:17px}
#payment ul.payment_methods{list-style:none;padding:0;border:0}
#payment ul.payment_methods li{background:var(--bg);border-radius:14px;padding:12px 16px;margin-bottom:10px}
#payment div.payment_box{background:#fff;border-radius:12px;padding:12px;margin-top:10px;color:var(--muted)}
#place_order{width:100%;padding:16px;font-size:16px}
.woocommerce-MyAccount-navigation{margin-bottom:20px}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:260px 1fr;gap:22px;align-items:start}
.woocommerce-MyAccount-navigation li a{display:block;padding:11px 16px;border-radius:12px;font-weight:700}
.woocommerce-MyAccount-navigation li.is-active a,.woocommerce-MyAccount-navigation li a:hover{background:var(--grad);color:#fff}
.u-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.u-columns .col-1,.u-columns .col-2{float:none;width:100%}

/* Wishlist & compare pages */
.js-products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.pcard{position:relative;background:#fff;border-radius:var(--radius);padding:14px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:8px;transition:.3s}
.pcard:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.pcard img{width:100%;aspect-ratio:1;object-fit:contain;background:linear-gradient(180deg,#faf9ff,#f3f0ff);border-radius:14px;padding:12px}
.pcard h3{font-size:13.5px;margin:0;min-height:44px}
.pcard .p-price{font-weight:800;color:var(--dark)}
.pcard .p-price del{display:block;color:var(--muted);font-weight:500;font-size:12.5px}
.pcard .p-price ins{text-decoration:none}
.pcard .p-remove{position:absolute;top:10px;left:10px}
.empty-state{text-align:center;padding:60px 20px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-sm);color:var(--muted)}
.empty-state .ico{width:56px;height:56px;color:var(--p1);margin-bottom:10px}
.compare-wrap{overflow-x:auto;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.compare-table{min-width:720px}
.compare-table th{width:160px;background:var(--bg);text-align:right;padding:14px 18px;color:var(--dark);font-weight:800;position:sticky;right:0}
.compare-table td{padding:14px 18px;text-align:center;border-bottom:1px solid var(--line);min-width:200px;vertical-align:middle}
.compare-table tr:nth-child(even) td{background:#fcfbff}
.compare-table img{width:120px;height:120px;object-fit:contain;margin:0 auto 8px}
.compare-table .p-price del{display:block;color:var(--muted);font-size:12.5px}
.compare-table .p-price ins{text-decoration:none;font-weight:800}

/* ==========================================================
   14. Responsive
   ========================================================== */
@media(max-width:1100px){
  .hero-grid{grid-template-columns:1fr}
  .hero-side{grid-template-columns:1fr 1fr}
  .hero-side a{min-height:150px}
  .cat-grid{grid-template-columns:repeat(4,1fr)}
  ul.products,.js-products{grid-template-columns:repeat(3,1fr)}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .footer-top{grid-template-columns:1fr 1fr}
  .layout-sidebar{grid-template-columns:1fr}
  .shop-layout{grid-template-columns:1fr}
  .brands{grid-template-columns:repeat(3,1fr)}
  .cat-dropdown{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  body{padding-bottom:70px}
  .topbar-links{display:none}
  .topbar .container{justify-content:center}
  .header-main{flex-wrap:wrap;gap:10px;padding:10px 14px}
  .header-search-wrap{order:3;flex:1 0 100%;max-width:none}
  .header-actions{gap:6px}
  .icon-btn{height:42px;min-width:42px;padding:0 10px}
  .icon-btn .label,.header-actions .hide-m{display:none}
  .menu-toggle{display:inline-flex}
  .logo-text{font-size:25px}
  .logo-mark{width:38px;height:38px}
  .main-nav{display:none;max-height:75vh;overflow:auto}
  .main-nav.open{display:block}
  .main-nav .container{flex-direction:column;align-items:stretch;gap:0}
  .cat-menu{margin:0}
  .cat-menu-btn{width:100%;justify-content:center;margin:10px 0}
  .cat-dropdown{position:static;width:100%;box-shadow:none;grid-template-columns:1fr 1fr;opacity:1;visibility:visible;transform:none;display:none;padding:10px 4px;background:var(--bg);border-radius:14px}
  .cat-menu.open .cat-dropdown{display:grid}
  .main-nav ul.menu{flex-direction:column}
  .main-nav ul.sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;padding:0 14px}
  .nav-hotline{margin:8px 0 12px}
  .hero-slide{padding:0 26px}
  .hero-slider{min-height:310px;border-radius:20px}
  .hero-content h2{font-size:23px}
  .hero-content p{font-size:13px}
  .hero-arrow{display:none}
  .hero-side{grid-template-columns:1fr}
  .promo-banner,.posts-grid{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:repeat(4,1fr);gap:8px}
  .cat-item{padding:12px 4px 10px;border-radius:16px}
  .cat-item .c-ico{width:52px;height:52px;border-radius:17px}
  .cat-item b{font-size:11.5px}
  .benefits{gap:10px}
  .benefit{padding:12px;gap:10px}
  .benefit small{display:none}
  .section-head h2{font-size:17px}
  .offers{padding:16px;border-radius:22px}
  ul.products,.js-products{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-row ul.products li.product{flex-basis:172px}
  ul.products li.product{padding:8px 8px 10px}
  ul.products li.product .woocommerce-loop-product__title{font-size:12.5px;min-height:44px}
  ul.products li.product .price{font-size:14px}
  .card-actions{opacity:1;transform:none;top:8px;left:8px}
  .act-btn{width:32px;height:32px;border-radius:10px}
  .woocommerce div.product,.single-product div.product{grid-template-columns:1fr}
  .woocommerce-product-gallery,.woocommerce div.product .summary,.woocommerce-tabs{padding:16px;border-radius:20px}
  .woocommerce-tabs ul.tabs li a{padding:10px 12px}
  .trust-list{grid-template-columns:1fr}
  .woocommerce-cart .woocommerce,.woocommerce-checkout form.checkout,.woocommerce-account .woocommerce,.u-columns{grid-template-columns:1fr}
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none;margin:0 0 14px}
  .footer-top{grid-template-columns:1fr;gap:24px}
  .brands{grid-template-columns:repeat(3,1fr);gap:8px}
  .brand-item{height:68px;font-size:14px}
  .cta-band{padding:24px 20px;border-radius:22px}
  .cta-band h3{font-size:19px}
  .bottom-nav{display:grid}
  .sticky-atc{display:flex}
  .to-top{bottom:84px}
  .float-support{bottom:84px}
  .filter-toggle{display:inline-flex}
  .shop-sidebar{
    position:fixed;top:auto;right:0;left:0;bottom:0;z-index:320;max-height:82vh;overflow:auto;background:var(--bg);padding:16px;
    border-radius:24px 24px 0 0;transform:translateY(105%);transition:.35s;box-shadow:var(--shadow-lg);
  }
  .shop-sidebar.open{transform:none}
  .woocommerce-cart-form table.shop_table_responsive tr{display:block;margin-bottom:14px;border:1px solid var(--line);border-radius:14px}
  .woocommerce-cart-form table.shop_table_responsive td{display:flex;justify-content:space-between;align-items:center;border-top:0}
  .woocommerce-cart-form table.shop_table_responsive td::before{content:attr(data-title);font-weight:700}
  .woocommerce-cart-form table.shop_table_responsive thead{display:none}
}
@keyframes spin{to{transform:rotate(360deg)}}
.loading::after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;border:2px solid #fff;border-top-color:transparent;animation:spin .7s linear infinite;left:14px}
@media(prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important}}
