/* =========================================================
   VELORA — Design tokens
   ========================================================= */
:root{
  --ink:#12141c;
  --paper:#f6f7f9;
  --surface:#ffffff;
  --primary:#1f3a5f;
  --primary-dark:#152840;
  --primary-light:#345683;
  --accent:#ff7a45;
  --accent-dark:#e35f2b;
  --mint:#2fb67c;
  --text:#1b1d23;
  --muted:#6b7280;
  --line:#e6e8ec;
  --line-strong:#d3d7de;
  --danger:#e0463b;
  --star:#ffb340;

  --radius-sm:6px;
  --radius:10px;
  --radius-lg:16px;

  --shadow-sm:0 1px 2px rgba(18,20,28,.06);
  --shadow:0 8px 24px rgba(18,20,28,.08);
  --shadow-lg:0 16px 40px rgba(18,20,28,.14);

  --font-head:"Sora", sans-serif;
  --font-body:"Inter", sans-serif;

  --container:1260px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--text);
  background:var(--paper);
  font-size:15.5px;
  line-height:1.6;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);
  color:var(--ink);
  font-weight:700;
  letter-spacing:-0.01em;
  margin:0;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

.container-xl{max-width:var(--container);margin-inline:auto;padding-inline:1rem;}
.section{padding:3.5rem 0;}
@media (max-width: 767.98px){.section{padding:2.25rem 0;}}

.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:1rem;margin-bottom:1.75rem;
}
.section-head h2{font-size:1.7rem;}
.section-head p{color:var(--muted);margin-top:.25rem;}
.section-link{
  font-weight:600;color:var(--primary);white-space:nowrap;font-size:.92rem;
  border-bottom:1px solid transparent;
}
.section-link:hover{border-color:var(--primary);}

/* =========================================================
   Buttons
   ========================================================= */
.btn{border-radius:var(--radius-sm);font-weight:600;padding:.55rem 1.15rem;font-size:.92rem;transition:all .18s ease;border:1px solid transparent;}
.btn-primary{background:var(--primary);border-color:var(--primary);}
.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);}
.btn-accent{background:var(--accent);border-color:var(--accent);color:#fff;}
.btn-accent:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff;}
.btn-outline-dark{border-color:var(--line-strong);color:var(--text);}
.btn-outline-dark:hover{background:var(--ink);border-color:var(--ink);color:#fff;}
.btn-ghost{background:transparent;border:1px solid var(--line-strong);color:var(--text);}
.btn-ghost:hover{border-color:var(--primary);color:var(--primary);}
.btn-sm{padding:.35rem .8rem;font-size:.82rem;}
.btn-icon{
  width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line-strong);background:#fff;color:var(--text);transition:all .18s ease;
}
.btn-icon:hover{border-color:var(--primary);color:var(--primary);}
.btn-icon.active{background:var(--accent);border-color:var(--accent);color:#fff;}

/* =========================================================
   Badges
   ========================================================= */
.badge-pill{border-radius:20px;font-weight:600;font-size:.72rem;padding:.3rem .65rem;letter-spacing:.02em;}
.badge-new{background:rgba(47,182,124,.12);color:var(--mint);}
.badge-sale{background:rgba(255,122,69,.12);color:var(--accent-dark);}
.badge-hot{background:rgba(224,70,59,.1);color:var(--danger);}
.discount-flag{
  position:absolute;top:12px;left:12px;background:var(--accent);color:#fff;
  font-size:.72rem;font-weight:700;padding:.28rem .55rem;border-radius:var(--radius-sm);z-index:2;
}
.stock-flag{
  position:absolute;top:12px;left:12px;background:var(--mint);color:#fff;
  font-size:.72rem;font-weight:700;padding:.28rem .55rem;border-radius:var(--radius-sm);z-index:2;
}

/* =========================================================
   Top utility bar
   ========================================================= */
.topbar{background:var(--ink);color:#cfd3dc;font-size:.82rem;}
.topbar a{color:#cfd3dc;}
.topbar a:hover{color:#fff;}
.topbar .divider{width:1px;height:14px;background:#3a3d47;display:inline-block;margin:0 .6rem;vertical-align:middle;}

/* =========================================================
   Header
   ========================================================= */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1030;}
.brand{font-family:var(--font-head);font-weight:800;font-size:1.55rem;color:var(--ink);letter-spacing:-0.02em;}
.brand span{color:var(--accent);}

.header-search{position:relative;flex:1;max-width:560px;}
.header-search input{
  border-radius:var(--radius-sm) 0 0 var(--radius-sm);border:1px solid var(--line-strong);border-right:none;
  padding:.6rem 1rem;font-size:.9rem;
}
.header-search input:focus{outline:none;box-shadow:none;border-color:var(--primary);}
.header-search .search-btn{
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;background:var(--primary);color:#fff;border:1px solid var(--primary);
  padding:0 1.1rem;
}
.search-suggest{
  position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow-lg);z-index:1050;display:none;overflow:hidden;
}
.search-suggest.show{display:block;}
.search-suggest .s-item{display:flex;align-items:center;gap:.7rem;padding:.55rem .9rem;cursor:pointer;}
.search-suggest .s-item:hover{background:var(--paper);}
.search-suggest .s-item img{width:38px;height:38px;object-fit:cover;border-radius:var(--radius-sm);}
.search-suggest .s-name{font-size:.86rem;font-weight:600;}
.search-suggest .s-cat{font-size:.75rem;color:var(--muted);}

.header-actions{display:flex;align-items:center;gap:.55rem;}
.header-action{position:relative;text-align:center;color:var(--text);}
.header-action .icon-wrap{position:relative;display:inline-flex;}
.header-action i{font-size:1.15rem;}
.header-action .count{
  position:absolute;top:-8px;right:-10px;background:var(--accent);color:#fff;border-radius:50%;
  font-size:.65rem;width:17px;height:17px;display:flex;align-items:center;justify-content:center;font-weight:700;
}
.header-action .label{display:block;font-size:.68rem;color:var(--muted);margin-top:1px;}

/* Category / main nav */
.main-nav{background:var(--primary);}
.main-nav .nav-link{color:#e7ecf3 !important;font-weight:600;font-size:.88rem;padding:.75rem .95rem !important;}
.main-nav .nav-link:hover, .main-nav .nav-link.active{color:#fff !important;}
.cat-toggle-btn{
  background:var(--primary-dark);color:#fff;border:none;font-weight:600;font-size:.88rem;
  padding:.75rem 1rem;display:flex;align-items:center;gap:.5rem;white-space:nowrap;
}
.cat-toggle-btn:hover{background:var(--ink);}

.mega-menu{
  position:absolute;left:0;top:100%;width:100%;background:#fff;box-shadow:var(--shadow-lg);
  border-top:3px solid var(--accent);z-index:1040;display:none;padding:1.75rem 0;
}
.mega-menu.show{display:block;}
.mega-col h6{font-size:.85rem;text-transform:uppercase;letter-spacing:.04em;color:var(--primary);margin-bottom:.75rem;font-weight:700;}
.mega-col ul li{margin-bottom:.45rem;}
.mega-col ul li a{font-size:.88rem;color:var(--text);}
.mega-col ul li a:hover{color:var(--accent);}

/* Offcanvas category list (mobile) */
.cat-list-item{
  display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--line);font-weight:600;font-size:.9rem;
}
.cat-list-item i.left{color:var(--primary);width:22px;}

/* =========================================================
   Hero
   ========================================================= */
.hero{background:var(--primary);position:relative;overflow:hidden;}
.hero::after{
  content:"";position:absolute;right:-8%;top:-30%;width:60%;height:160%;
  background:var(--accent);opacity:.14;transform:rotate(18deg);
}
.hero-slide{padding:3.5rem 0;position:relative;z-index:1;}
.hero-eyebrow{color:var(--accent);font-weight:700;font-size:.85rem;margin-bottom:.75rem;display:inline-block;}
.hero h1{color:#fff;font-size:2.9rem;line-height:1.08;margin-bottom:1rem;}
.hero h1 em{font-style:normal;color:var(--accent);}
.hero p{color:#c9d3e0;font-size:1.02rem;max-width:440px;margin-bottom:1.6rem;}
.hero-price{color:#fff;font-family:var(--font-head);font-size:1.05rem;margin-bottom:1.5rem;}
.hero-price b{font-size:2rem;color:var(--accent);}
.hero-img-wrap{position:relative;text-align:center;}
.hero-img-wrap img{max-height:380px;margin-inline:auto;filter:drop-shadow(0 24px 32px rgba(0,0,0,.35));}
#heroCarousel .carousel-indicators{bottom:6px;}
#heroCarousel .carousel-indicators [data-bs-target]{background:#fff;opacity:.5;width:8px;height:8px;border-radius:50%;}
#heroCarousel .carousel-indicators .active{opacity:1;background:var(--accent);}
@media (max-width: 767.98px){
  .hero h1{font-size:1.9rem;}
  .hero-img-wrap img{max-height:220px;margin-top:1.5rem;}
}

/* Trust strip */
.trust-strip{background:#fff;border-bottom:1px solid var(--line);}
.trust-item{display:flex;align-items:center;gap:.75rem;padding:1rem 0;}
.trust-item i{font-size:1.4rem;color:var(--primary);}
.trust-item .t-title{font-weight:700;font-size:.88rem;}
.trust-item .t-sub{font-size:.78rem;color:var(--muted);}

/* =========================================================
   Category cards
   ========================================================= */
.cat-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem .75rem;text-align:center;
  transition:all .2s ease;height:100%;
}
.cat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:transparent;}
.cat-card .cat-ic{
  width:56px;height:56px;border-radius:50%;background:var(--paper);display:flex;align-items:center;justify-content:center;
  margin:0 auto .7rem;font-size:1.4rem;color:var(--primary);
}
.cat-card span{font-weight:600;font-size:.85rem;}
.cat-card small{display:block;color:var(--muted);font-size:.72rem;margin-top:.15rem;}

/* =========================================================
   Product card
   ========================================================= */
.product-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;height:100%;
  display:flex;flex-direction:column;transition:box-shadow .2s ease, transform .2s ease;position:relative;
}
.product-card:hover{box-shadow:var(--shadow);transform:translateY(-3px);}
.product-media{position:relative;background:var(--paper);aspect-ratio:1/1;overflow:hidden;}
.product-media img{width:100%;height:100%;object-fit:contain;padding:1.2rem;transition:transform .35s ease;}
.product-card:hover .product-media img{transform:scale(1.06);}
.product-quick-actions{
  position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:.4rem;
  opacity:0;transform:translateX(6px);transition:all .2s ease;
}
.product-card:hover .product-quick-actions{opacity:1;transform:translateX(0);}
.product-quick-actions .btn-icon{width:34px;height:34px;font-size:.85rem;}
.product-body{padding:1rem;display:flex;flex-direction:column;flex:1;gap:.35rem;}
.product-brand{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:600;}
.product-title{font-size:.92rem;font-weight:600;color:var(--text);line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em;}
.product-title:hover{color:var(--primary);}
.product-rating{display:flex;align-items:center;gap:.35rem;font-size:.78rem;color:var(--muted);}
.product-rating .stars{color:var(--star);font-size:.78rem;letter-spacing:1px;}
.product-price{display:flex;align-items:baseline;gap:.5rem;margin-top:.15rem;}
.price-now{font-family:var(--font-head);font-weight:700;font-size:1.08rem;color:var(--ink);}
.price-old{font-size:.82rem;color:var(--muted);text-decoration:line-through;}
.product-foot{margin-top:auto;padding-top:.6rem;}
.add-cart-btn{width:100%;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-sm);
  padding:.55rem;font-weight:600;font-size:.86rem;transition:background .18s ease;display:flex;align-items:center;justify-content:center;gap:.4rem;}
.add-cart-btn:hover{background:var(--accent);}
.color-dots{display:flex;gap:.3rem;margin-top:.1rem;}
.color-dots span{width:14px;height:14px;border-radius:50%;border:1px solid var(--line-strong);display:inline-block;cursor:pointer;}
.color-dots span.active{outline:2px solid var(--primary);outline-offset:1px;}

/* Compare / wishlist mini bar */
.floating-bar{
  position:fixed;bottom:0;left:0;right:0;background:var(--ink);color:#fff;z-index:1040;
  padding:.7rem 0;transform:translateY(110%);transition:transform .25s ease;box-shadow:0 -6px 20px rgba(0,0,0,.2);
}
.floating-bar.show{transform:translateY(0);}
.floating-bar .mini-thumb{width:40px;height:40px;background:#fff;border-radius:var(--radius-sm);object-fit:contain;padding:3px;}

/* =========================================================
   Tabs (filters / sort chips)
   ========================================================= */
.filter-chip{
  border:1px solid var(--line-strong);background:#fff;border-radius:20px;padding:.4rem 1rem;font-size:.85rem;font-weight:600;
  color:var(--text);transition:all .15s ease;
}
.filter-chip.active,.filter-chip:hover{background:var(--primary);border-color:var(--primary);color:#fff;}

.form-range::-webkit-slider-thumb{background:var(--primary);}
.form-check-input:checked{background-color:var(--primary);border-color:var(--primary);}

/* Sidebar filters (product listing / PDP related) */
.filter-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;margin-bottom:1rem;}
.filter-box h6{font-size:.85rem;font-weight:700;margin-bottom:.85rem;display:flex;justify-content:space-between;align-items:center;}
.filter-box .form-check{margin-bottom:.5rem;font-size:.87rem;}
.filter-box .form-check-label{display:flex;justify-content:space-between;width:100%;color:var(--text);}
.color-swatch{width:20px;height:20px;border-radius:50%;display:inline-block;border:1px solid var(--line-strong);cursor:pointer;}

/* =========================================================
   Banners
   ========================================================= */
.promo-banner{
  border-radius:var(--radius-lg);padding:2.2rem;position:relative;overflow:hidden;min-height:220px;display:flex;flex-direction:column;justify-content:center;
}
.promo-banner h3{font-size:1.5rem;margin-bottom:.4rem;}
.promo-banner p{color:var(--muted);margin-bottom:1rem;}
.promo-1{background:#eef2ff;}
.promo-2{background:#fff1e9;}
.promo-banner img{position:absolute;right:-10px;bottom:-10px;width:145px;opacity:.95;}

/* =========================================================
   Brand strip
   ========================================================= */
.brand-logo{
  border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;display:flex;align-items:center;justify-content:center;
  height:88px;background:#fff;filter:grayscale(1);opacity:.65;transition:all .2s ease;
}
.brand-logo:hover{filter:none;opacity:1;border-color:var(--primary-light);}

/* =========================================================
   Blog cards
   ========================================================= */
.blog-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;height:100%;transition:box-shadow .2s ease;}
.blog-card:hover{box-shadow:var(--shadow);}
.blog-card img{aspect-ratio:16/10;object-fit:cover;}
.blog-body{padding:1.1rem;}
.blog-meta{font-size:.76rem;color:var(--muted);margin-bottom:.4rem;display:flex;gap:.8rem;}
.blog-body h5{font-size:1rem;line-height:1.4;margin-bottom:.5rem;}
.blog-body h5:hover{color:var(--primary);}
.blog-body p{font-size:.86rem;color:var(--muted);}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;height:100%;}
.testimonial-card .stars{color:var(--star);font-size:.85rem;margin-bottom:.6rem;}
.testimonial-card p{font-size:.9rem;color:var(--text);margin-bottom:1rem;}
.testi-user{display:flex;align-items:center;gap:.7rem;}
.testi-user img{width:42px;height:42px;border-radius:50%;object-fit:cover;}
.testi-user .name{font-weight:700;font-size:.87rem;}
.testi-user .role{font-size:.76rem;color:var(--muted);}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter{background:var(--ink);border-radius:var(--radius-lg);padding:2.5rem;position:relative;overflow:hidden;}
.newsletter::before{content:"";position:absolute;left:-6%;bottom:-60%;width:40%;height:200%;background:var(--accent);opacity:.15;border-radius:50%;}
.newsletter h3{color:#fff;font-size:1.5rem;margin-bottom:.3rem;}
.newsletter p{color:#aeb4c0;margin-bottom:0;}
.newsletter .form-control{border-radius:var(--radius-sm) 0 0 var(--radius-sm);border:none;padding:.7rem 1rem;}
.newsletter .btn-accent{border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:.7rem 1.3rem;}

/* =========================================================
   FAQ
   ========================================================= */
.accordion-item{border:1px solid var(--line) !important;border-radius:var(--radius) !important;overflow:hidden;margin-bottom:.7rem;}
.accordion-button{font-weight:600;font-size:.92rem;background:#fff;}
.accordion-button:not(.collapsed){background:var(--paper);color:var(--primary);box-shadow:none;}
.accordion-button:focus{box-shadow:none;border-color:var(--line);}
.accordion-button::after{filter:none;}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{background:var(--ink);color:#b7bcc8;padding-top:3rem;}
.site-footer h6{color:#fff;font-size:.92rem;font-weight:700;margin-bottom:1rem;}
.site-footer ul li{margin-bottom:.55rem;font-size:.87rem;}
.site-footer ul li a:hover{color:#fff;}
.footer-social a{
  width:36px;height:36px;border-radius:50%;border:1px solid #2c2f3a;display:inline-flex;align-items:center;justify-content:center;
  margin-right:.5rem;color:#cfd3dc;transition:all .18s ease;
}
.footer-social a:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
.footer-bottom{border-top:1px solid #262a35;margin-top:2.2rem;padding:1.1rem 0;font-size:.82rem;color:#8b90a0;}
.payment-icons i{font-size:1.6rem;margin-left:.5rem;color:#cfd3dc;}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb-bar{background:#fff;border-bottom:1px solid var(--line);padding:.85rem 0;}
.breadcrumb{font-size:.82rem;margin:0;}
.breadcrumb-item+.breadcrumb-item::before{content:"/";color:var(--muted);}
.breadcrumb-item a{color:var(--muted);}
.breadcrumb-item.active{color:var(--text);font-weight:600;}

/* =========================================================
   Product details page
   ========================================================= */
.pdp-gallery-main{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;}
.pdp-gallery-main img{width:100%;height:100%;object-fit:contain;padding:2rem;}
.pdp-thumbs{display:flex;gap:.6rem;margin-top:.8rem;}
.pdp-thumbs img{
  width:70px;height:70px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:.4rem;cursor:pointer;transition:border-color .15s ease;
}
.pdp-thumbs img.active,.pdp-thumbs img:hover{border-color:var(--primary);}
.pdp-title{font-size:1.5rem;margin-bottom:.4rem;}
.pdp-meta{display:flex;align-items:center;gap:1rem;font-size:.85rem;color:var(--muted);margin-bottom:.9rem;flex-wrap:wrap;}
.pdp-meta .stars{color:var(--star);}
.pdp-price-row{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem;}
.pdp-price-row .price-now{font-size:1.9rem;}
.pdp-price-row .price-old{font-size:1.05rem;}
.pdp-desc{color:var(--text);font-size:.92rem;margin-bottom:1.2rem;}
.pdp-variant-label{font-weight:700;font-size:.86rem;margin-bottom:.5rem;}
.size-box{
  width:42px;height:38px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);display:inline-flex;
  align-items:center;justify-content:center;font-size:.82rem;font-weight:600;cursor:pointer;margin-right:.5rem;margin-bottom:.5rem;
}
.size-box.active,.size-box:hover{border-color:var(--primary);color:var(--primary);background:#eef2f7;}
.qty-control{display:inline-flex;align-items:center;border:1px solid var(--line-strong);border-radius:var(--radius-sm);overflow:hidden;}
.qty-control button{width:38px;height:40px;border:none;background:#fff;font-size:1rem;}
.qty-control button:hover{background:var(--paper);}
.qty-control input{width:46px;height:40px;border:none;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;font-weight:700;}
.pdp-actions{display:flex;gap:.6rem;margin:1.2rem 0;flex-wrap:wrap;}
.pdp-actions .add-cart-btn{flex:1;min-width:180px;padding:.75rem;font-size:.92rem;}
.pdp-extra-links{display:flex;gap:1.2rem;font-size:.85rem;font-weight:600;margin-bottom:1.2rem;}
.pdp-extra-links i{margin-right:.35rem;color:var(--primary);}
.pdp-info-list{border-top:1px solid var(--line);padding-top:1rem;font-size:.85rem;color:var(--muted);}
.pdp-info-list div{margin-bottom:.5rem;}
.pdp-info-list b{color:var(--text);width:110px;display:inline-block;}
.coupon-box{
  border:1px dashed var(--accent);background:#fff6f0;border-radius:var(--radius-sm);padding:.7rem .9rem;
  display:flex;align-items:center;justify-content:space-between;font-size:.85rem;margin-bottom:1rem;
}
.coupon-box .code{font-weight:700;color:var(--accent-dark);letter-spacing:.03em;}

.nav-tabs.pdp-tabs .nav-link{border:none;color:var(--muted);font-weight:600;font-size:.9rem;padding:.8rem 0;margin-right:2rem;border-bottom:2px solid transparent;}
.nav-tabs.pdp-tabs .nav-link.active{color:var(--ink);border-color:var(--accent);background:transparent;}
.nav-tabs.pdp-tabs{border-bottom:1px solid var(--line);}

.review-item{border-bottom:1px solid var(--line);padding:1.1rem 0;}
.review-item:last-child{border-bottom:none;}
.review-user{display:flex;align-items:center;gap:.6rem;margin-bottom:.4rem;}
.review-user img{width:38px;height:38px;border-radius:50%;object-fit:cover;}
.review-user .name{font-weight:700;font-size:.87rem;}
.review-user .date{font-size:.76rem;color:var(--muted);}
.rating-summary{display:flex;gap:2rem;align-items:center;flex-wrap:wrap;padding:1.3rem;background:var(--paper);border-radius:var(--radius);margin-bottom:1.3rem;}
.rating-score{text-align:center;}
.rating-score .big{font-family:var(--font-head);font-size:2.6rem;font-weight:800;color:var(--ink);}
.rating-score .stars{color:var(--star);}
.rating-bar-row{display:flex;align-items:center;gap:.6rem;font-size:.8rem;margin-bottom:.35rem;}
.rating-bar-row .progress{flex:1;height:7px;}
.rating-bar-row .progress-bar{background:var(--star);}

/* =========================================================
   Checkout
   ========================================================= */
.checkout-steps{display:flex;justify-content:center;gap:2.2rem;margin-bottom:2rem;flex-wrap:wrap;}
.checkout-step{display:flex;align-items:center;gap:.6rem;font-size:.87rem;font-weight:600;color:var(--muted);}
.checkout-step .num{
  width:30px;height:30px;border-radius:50%;background:var(--line);color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:.85rem;
}
.checkout-step.active{color:var(--ink);}
.checkout-step.active .num{background:var(--primary);color:#fff;}
.checkout-step.done .num{background:var(--mint);color:#fff;}
.checkout-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;margin-bottom:1.2rem;}
.checkout-card h5{font-size:1.05rem;margin-bottom:1.1rem;}
.pay-option{
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);padding:.85rem 1rem;display:flex;align-items:center;
  gap:.7rem;margin-bottom:.7rem;cursor:pointer;transition:all .15s ease;
}
.pay-option:hover{border-color:var(--primary);}
.pay-option.selected{border-color:var(--primary);background:#eef2f7;}
.pay-option i{font-size:1.3rem;color:var(--primary);}
.order-summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;position:sticky;top:90px;}
.order-summary h5{font-size:1.05rem;margin-bottom:1.1rem;}
.order-line-item{display:flex;gap:.8rem;padding:.7rem 0;border-bottom:1px solid var(--line);}
.order-line-item img{width:56px;height:56px;object-fit:contain;background:var(--paper);border-radius:var(--radius-sm);padding:.3rem;}
.order-line-item .name{font-size:.85rem;font-weight:600;}
.order-line-item .meta{font-size:.76rem;color:var(--muted);}
.order-line-item .price{font-weight:700;font-size:.87rem;white-space:nowrap;}
.summary-row{display:flex;justify-content:space-between;font-size:.9rem;margin-bottom:.6rem;color:var(--muted);}
.summary-row.total{color:var(--ink);font-weight:800;font-size:1.15rem;border-top:1px solid var(--line);padding-top:.8rem;margin-top:.4rem;}
.apply-coupon{display:flex;gap:.5rem;margin:1rem 0;}
.secure-note{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--muted);margin-top:1rem;}
.secure-note i{color:var(--mint);}

/* Cart drawer / offcanvas cart */
.cart-item{display:flex;gap:.8rem;padding:.9rem 0;border-bottom:1px solid var(--line);}
.cart-item img{width:64px;height:64px;object-fit:contain;background:var(--paper);border-radius:var(--radius-sm);padding:.3rem;}
.cart-item .remove-item{color:var(--danger);font-size:.8rem;}

/* Modal (quick view / compare) */
.compare-table th,.compare-table td{vertical-align:middle;font-size:.86rem;}
.compare-table img{width:70px;height:70px;object-fit:contain;}

/* Auth */
.auth-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:2.2rem;max-width:460px;margin:0 auto;box-shadow:var(--shadow);}
.auth-side{background:var(--primary);border-radius:var(--radius-lg);color:#fff;padding:2.2rem;height:100%;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;}
.auth-side::after{content:"";position:absolute;right:-20%;bottom:-30%;width:70%;height:100%;background:var(--accent);opacity:.15;border-radius:50%;}

/* Dashboard */
.dash-sidebar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:.8rem;}
.dash-sidebar a{display:flex;align-items:center;gap:.7rem;padding:.65rem .8rem;border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;color:var(--text);margin-bottom:.2rem;}
.dash-sidebar a i{width:18px;color:var(--muted);}
.dash-sidebar a:hover,.dash-sidebar a.active{background:var(--paper);color:var(--primary);}
.dash-sidebar a.active i{color:var(--primary);}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;}
.stat-card .ic{width:44px;height:44px;border-radius:50%;background:var(--paper);display:flex;align-items:center;justify-content:center;color:var(--primary);margin-bottom:.7rem;}
.stat-card .val{font-family:var(--font-head);font-size:1.6rem;font-weight:800;}
.stat-card .lbl{font-size:.8rem;color:var(--muted);}

.sidebar-cat-link{display:flex;justify-content:space-between;padding:.5rem 0;font-size:.87rem;font-weight:600;color:var(--text);border-bottom:1px solid var(--line);}
.sidebar-cat-link:last-child{border-bottom:none;}
.sidebar-cat-link span{color:var(--muted);font-weight:400;}
.sidebar-cat-link.active,.sidebar-cat-link:hover{color:var(--primary);}
.rating-filter-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.55rem;cursor:pointer;font-size:.85rem;}
.rating-filter-row .stars{color:var(--star);font-size:.8rem;}

/* Shop list view */
.view-toggle-btn{width:38px;height:38px;border:1px solid var(--line-strong);background:#fff;border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;color:var(--muted);}
.view-toggle-btn.active{background:var(--primary);border-color:var(--primary);color:#fff;}
.shop-list-view .product-card{flex-direction:row;}
.shop-list-view .product-media{width:200px;flex:0 0 200px;aspect-ratio:auto;}
.shop-list-view .product-body{flex-direction:row;flex-wrap:wrap;align-items:center;gap:1rem;}
.shop-list-view .product-title{min-height:auto;-webkit-line-clamp:1;font-size:1rem;flex:0 0 100%;}
.shop-list-view .product-foot{margin-top:0;width:170px;}
@media (max-width: 767.98px){
  .shop-list-view .product-card{flex-direction:column;}
  .shop-list-view .product-media{width:100%;flex:none;aspect-ratio:1/1;}
  .shop-list-view .product-foot{width:100%;}
}

/* Blog listing page */
.blog-hero{background:var(--primary);padding:2.6rem 0;position:relative;overflow:hidden;}
.blog-hero::after{content:"";position:absolute;right:-8%;top:-40%;width:50%;height:180%;background:var(--accent);opacity:.14;transform:rotate(18deg);}
.blog-hero h1{color:#fff;font-size:2.1rem;position:relative;z-index:1;}
.blog-hero p{color:#c9d3e0;position:relative;z-index:1;margin-top:.4rem;}
.blog-list-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:box-shadow .2s ease;}
.blog-list-card:hover{box-shadow:var(--shadow);}
.blog-list-card img{width:100%;height:100%;object-fit:cover;min-height:220px;}
.blog-list-card .blog-body{padding:1.4rem;}
.blog-list-card .cat-tag{color:var(--accent-dark);font-weight:700;font-size:.76rem;text-transform:uppercase;letter-spacing:.03em;}
.blog-list-card h4{font-size:1.2rem;margin:.4rem 0 .6rem;}
.blog-list-card h4:hover{color:var(--primary);}
.blog-sidebar-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;margin-bottom:1.2rem;}
.blog-sidebar-box h6{font-weight:700;font-size:.92rem;margin-bottom:1rem;}
.recent-post{display:flex;gap:.7rem;margin-bottom:.9rem;}
.recent-post img{width:56px;height:56px;object-fit:cover;border-radius:var(--radius-sm);}
.recent-post .t{font-size:.83rem;font-weight:600;line-height:1.35;}
.recent-post .d{font-size:.74rem;color:var(--muted);}
.tag-pill{display:inline-block;border:1px solid var(--line-strong);border-radius:20px;padding:.3rem .8rem;font-size:.78rem;margin:0 .35rem .5rem 0;color:var(--text);}
.tag-pill:hover{border-color:var(--primary);color:var(--primary);}
.cat-count-row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:.87rem;}
.cat-count-row:last-child{border-bottom:none;}
.cat-count-row a{color:var(--text);font-weight:600;}
.cat-count-row a:hover{color:var(--primary);}
.cat-count-row span{color:var(--muted);}
.blog-author-box{background:var(--paper);border-radius:var(--radius);padding:1.2rem;text-align:center;}
.blog-author-box img{width:74px;height:74px;border-radius:50%;object-fit:cover;margin:0 auto .7rem;}

.status-badge{border-radius:20px;font-size:.74rem;font-weight:700;padding:.3rem .7rem;}
.status-delivered{background:rgba(47,182,124,.12);color:var(--mint);}
.status-shipped{background:rgba(41,128,185,.12);color:#2980b9;}
.status-processing{background:rgba(255,122,69,.12);color:var(--accent-dark);}
.status-cancelled{background:rgba(224,70,59,.1);color:var(--danger);}
.address-card{border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;height:100%;position:relative;}
.address-card.default{border-color:var(--primary);}
.address-card .tag{position:absolute;top:-10px;left:1rem;background:var(--primary);color:#fff;font-size:.7rem;font-weight:700;padding:.2rem .6rem;border-radius:20px;}
.address-card .addr-actions{display:flex;gap:.6rem;margin-top:.9rem;font-size:.82rem;font-weight:600;}
.address-card .addr-actions a{color:var(--primary);}
.address-card .addr-actions a.text-danger{color:var(--danger) !important;}
.add-address-card{border:1px dashed var(--line-strong);border-radius:var(--radius);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);min-height:160px;transition:all .15s ease;}
.add-address-card:hover{border-color:var(--primary);color:var(--primary);}
.payment-method-card{border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;display:flex;align-items:center;gap:1rem;margin-bottom:.9rem;}
.payment-method-card i{font-size:1.8rem;color:var(--primary);}
.payment-method-card .exp{font-size:.78rem;color:var(--muted);}
.dash-tab-title{font-size:1.15rem;margin-bottom:1.2rem;}
.profile-avatar-wrap{position:relative;width:88px;height:88px;margin:0 auto;}
.profile-avatar-wrap img{width:88px;height:88px;border-radius:50%;object-fit:cover;}
.profile-avatar-wrap .edit-avatar{position:absolute;bottom:0;right:0;width:28px;height:28px;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem;border:2px solid #fff;cursor:pointer;}

.text-primary-c{color:var(--primary) !important;}
.text-accent{color:var(--accent) !important;}
.bg-paper{background:var(--paper) !important;}
.rounded-lg{border-radius:var(--radius-lg) !important;}
.toast-alert{position:fixed;top:100px;right:20px;z-index:1080;min-width:260px;}

@media (max-width: 991.98px){
  .order-summary{position:static;}
}

.cat-section .cat-card{
    --accent:#6366f1; --accent2:#ec4899;
    position:relative; overflow:hidden; text-align:center;
    padding:18px 8px 16px; border-radius:18px;
    background:#fff; border:1px solid rgba(0,0,0,.06);
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    text-decoration:none;
    opacity:0; transform:translateY(24px);
    animation:catUp .6s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay:calc(var(--i) * 70ms);
    transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  }

  /* hover glow */
  .cat-section .cat-card::before{
    content:""; position:absolute; inset:0; z-index:0;
    background:radial-gradient(circle at 50% 0%, rgba(99,102,241,.14), transparent 70%);
    opacity:0; transition:opacity .35s;
  }

  /* shine sweep */
  .cat-section .cat-card::after{
    content:""; position:absolute; top:0; left:-80%; width:50%; height:100%; z-index:1;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,.7), transparent);
    transform:skewX(-20deg); pointer-events:none;
  }

  .cat-section .cat-card:hover{
    transform:translateY(-8px);
    border-color:rgba(99,102,241,.35);
    box-shadow:0 16px 32px rgba(99,102,241,.18);
  }
  .cat-section .cat-card:hover::before{opacity:1}
  .cat-section .cat-card:hover::after{left:130%; transition:left .8s ease}
  .cat-section .cat-card:active{transform:translateY(-3px) scale(.97)}

  .cat-section .cat-card > *{position:relative; z-index:2}

  /* ---------- Icon + gradient ring ---------- */
  .cat-section .cat-ic{
    width:68px; height:68px; margin:0 auto 10px;
    display:grid; place-items:center; border-radius:50%;
    background:#fff; position:relative;
    transition:transform .45s cubic-bezier(.34,1.56,.64,1);
    /* default pulse */
    animation:catPulse 2.2s ease-out infinite;
    animation-delay:calc(var(--i, 0) * 70ms + 700ms);
  }
  .cat-section .cat-ic::before{
    content:""; position:absolute; inset:-3px; border-radius:50%; z-index:-1;
    background:conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent));
    animation:catSpin 6s linear infinite; opacity:.55; transition:opacity .3s;
  }
  .cat-section .cat-ic::after{
    content:""; position:absolute; inset:0; border-radius:50%; z-index:-1; background:#fff;
  }
  .cat-section .cat-card:hover .cat-ic{transform:scale(1.12) rotate(-6deg)}
  .cat-section .cat-card:hover .cat-ic::before{opacity:1; animation-duration:2s}

  .cat-section .cat-ic img{
    width:58px; height:58px; object-fit:cover; border-radius:50%;
  }
  .cat-section .cat-ic img.is-icon{width:34px; height:34px; object-fit:contain; border-radius:0}
  .cat-section .cat-ic i{font-size:26px; color:var(--accent)}

  /* image beat */
  .cat-section .cat-ic img,
  .cat-section .cat-ic i{
    animation:catBeat 2.2s ease-in-out infinite;
    animation-delay:calc(var(--i, 0) * 70ms + 700ms);
  }

  /* pause pulse on hover so the hover effect is clear */
  .cat-section .cat-card:hover .cat-ic,
  .cat-section .cat-card:hover .cat-ic img,
  .cat-section .cat-card:hover .cat-ic i{
    animation-play-state:paused;
  }

  /* ---------- Text ---------- */
  .cat-section .cat-name{
    display:block; font-weight:600; font-size:.95rem; color:#1f2937;
    transition:color .3s;
  }
  .cat-section .cat-count{
    display:block; margin-top:2px; font-size:.75rem; color:#9ca3af;
  }
  .cat-section .cat-card:hover .cat-name{color:var(--accent)}

  /* arrow slides in on hover */
  .cat-section .cat-arrow{
    position:absolute; right:12px; bottom:10px; font-size:.75rem; color:var(--accent);
    opacity:0; transform:translateX(-8px); transition:all .3s;
  }
  .cat-section .cat-card:hover .cat-arrow{opacity:1; transform:translateX(0)}

  /* ---------- Keyframes ---------- */
  @keyframes catUp{to{opacity:1; transform:translateY(0)}}
  @keyframes catSpin{to{transform:rotate(360deg)}}
  @keyframes catPulse{
    0%   { box-shadow:0 0 0 0 rgba(99,102,241,.45); }
    70%  { box-shadow:0 0 0 14px rgba(99,102,241,0); }
    100% { box-shadow:0 0 0 0 rgba(99,102,241,0); }
  }
  @keyframes catBeat{
    0%,100% { transform:scale(1); }
    50%     { transform:scale(1.07); }
  }

  /* ---------- Mobile ---------- */
  @media (max-width:575px){
    .cat-section .cat-card{padding:12px 4px; border-radius:14px}
    .cat-section .cat-ic{width:54px; height:54px}
    .cat-section .cat-ic img{width:46px; height:46px}
    .cat-section .cat-ic img.is-icon{width:28px; height:28px}
    .cat-section .cat-name{font-size:.8rem}
    .cat-section .cat-arrow{display:none}
  }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion:reduce){
    .cat-section .cat-card{animation:none; opacity:1; transform:none}
    .cat-section .cat-ic,
    .cat-section .cat-ic img,
    .cat-section .cat-ic i{animation:none}
    .cat-section .cat-ic::before{animation:none}
  }