@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');
/* ═══════════════════════════════════════════════════════════
   ShopPanel — E-Commerce Frontend Styles (xukeji.net style)
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #212121;
  background: #f5f5f5;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;         /* prevent horizontal scroll from any overflowing element */
  word-break: break-word;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #2474F5;
  --primary-dark: #1a5cc5;
  --primary-light: #e8f0fe;
  --price-color: #e53e3e;
  --original-price: #878787;
  --discount-green: #388e3c;
  --orange: #ff6200;
  --text: #212121;
  --text-light: #717171;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --header-height: 56px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ─── Page Loader ───────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-logo {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  animation: logoPulse 1s ease-in-out infinite alternate;
}
@keyframes logoPulse { from { transform: scale(1); } to { transform: scale(1.08); } }
.loader-bar { width: 200px; height: 4px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.loader-progress {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--orange));
  border-radius: 99px; animation: loadProgress 1.2s ease-in-out infinite;
}
@keyframes loadProgress { 0%{width:0%} 50%{width:70%} 100%{width:100%} }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  height: var(--header-height);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  border-bottom: 1px solid #eee;
}
.header-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center; gap: 12px;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 800; color: #222; letter-spacing: -0.5px; }
.logo-text span { color: var(--primary); }

/* Search Bar (header) */
.header-search {
  flex: 1; max-width: 560px;
  display: flex; align-items: center;
  background: #fff; border-radius: 4px;
  overflow: hidden;
}
.header-search input {
  flex: 1; border: none; outline: none;
  padding: 9px 14px; font-size: 14px; color: #212121;
}
.header-search button {
  background: var(--primary); border: none;
  color: #fff; padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.header-search button:hover { background: var(--primary-dark); }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Cart Icon */
.cart-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  color: #222; background: none; border: none;
  padding: 6px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 500;
  transition: background .2s;
  text-decoration: none;
  gap: 2px;
}
.cart-btn:hover { background: rgba(0,0,0,.05); }
.cart-btn svg { flex-shrink: 0; }
.cart-btn-label { font-size: 11px; color: #222; white-space: nowrap; }
.cart-count {
  position: absolute; top: 2px; right: 6px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count.hidden { display: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.menu-toggle span { width: 24px; height: 2px; background: #333; border-radius: 2px; display: block; }

/* Nav Bar (below header) */
.site-nav {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  position: sticky; top: var(--header-height); z-index: 99;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: #333; white-space: nowrap;
  transition: color .2s;
  display: block; border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Mobile Nav */
.mobile-nav {
  display: none; background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-height); z-index: 98;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 20px;
  color: var(--text); font-size: 15px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* Search Bar — in document flow, pushes content, never overlays */
.search-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.search-bar.open { display: block; }
.search-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center;
}
.search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 8px 16px;
}
.search-input-wrap input { flex: 1; border: none; background: none; outline: none; font-size: 15px; }
.search-input-wrap button {
  background: var(--primary); color: #fff; border: none;
  padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
}
.search-close { background: none; border: none; font-size: 18px; color: var(--text-light); padding: 6px; }
.search-toggle {
  padding: 8px; border: none; background: none; color: #333;
  border-radius: 6px; transition: background .2s;
}
.search-toggle:hover { background: rgba(0,0,0,.06); }

/* ─── Layout ─────────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - var(--header-height) - 200px); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ─── Ad Zones ───────────────────────────────────────────────── */
/* ── All ad containers: force center alignment ── */
.ad-zone,
.ad-universal-below-header,
.ad-home-top,
.ad-inline,
.ad-bottom,
.ad-article-top,
.ad-article-bottom,
.ad-before-related,
.ad-after-related,
.ad-sidebar,
.ad-cat-top-zone {
  text-align: center;
  overflow: hidden;
}
/* Center every direct child & ins tag inside any ad container */
.ad-zone > *,
.ad-universal-below-header > *,
.ad-home-top > *,
.ad-inline > *,
.ad-bottom > *,
.ad-article-top > *,
.ad-article-bottom > *,
.ad-before-related > *,
.ad-after-related > *,
.ad-sidebar > *,
.ad-cat-top-zone > *,
ins.adsbygoogle {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* "Advertisement" label above every ad — AdSense compliance */
.ad-zone::before,
.ad-universal-below-header::before,
.ad-home-top::before,
.ad-inline::before,
.ad-bottom::before,
.ad-article-top::before,
.ad-article-bottom::before,
.ad-before-related::before,
.ad-after-related::before,
.ad-sidebar::before,
.ad-cat-top-zone::before {
  content: 'Advertisement';
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #9e9e9e;
  text-align: center;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.ad-universal-below-header { background: #fff; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ── Per-page ad zone wrapper ── */
.ad-zone {
  padding: 10px 0 14px;
  text-align: center;
  overflow: hidden;
}
.ad-zone::before {
  content: 'Advertisement';
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #bbb;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.ad-home-top  { background: #fff; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ad-home-mid  { background: #fafafa; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-home-bot  { background: #fff; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-inline { padding: 16px 0; }
.ad-bottom { margin: 24px 0; }
.ad-article-top    { background: #fff; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.ad-before-desc    { background: #fafafa; border-radius: 6px; padding: 10px; margin-bottom: 14px; }
.ad-article-bottom, .ad-before-related, .ad-after-related { margin: 20px 0; }
.ad-sidebar { margin-bottom: 20px; }
/* AdSense responsive fix — ins tag must not overflow */
ins.adsbygoogle { max-width: 100% !important; }

/* ─── Category Showcase ─────────────────────────────────────── */
.category-showcase {
  background: #fff; padding: 16px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.category-showcase .container {}
.showcase-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.showcase-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.showcase-card {
  text-align: center; cursor: pointer;
  transition: transform .2s;
}
.showcase-card:hover { transform: translateY(-3px); }
.showcase-card-img {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  margin: 0 auto 8px;
  max-width: 96px;
  background: #f5f5f5;
}
.showcase-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.showcase-card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.showcase-card-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.showcase-discount {
  font-size: 11px; font-weight: 700; color: var(--discount-green);
}

/* ─── Section Header ─────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px; margin-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.section-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}
.section-view-all {
  font-size: 13px; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px;
}
.section-view-all:hover { text-decoration: underline; }

/* ─── Product Grid ───────────────────────────────────────────── */
.products-section { background: #fff; padding: 0 0 20px; margin-bottom: 12px; }
.products-section .container {}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.product-card {
  background: var(--card-bg);
  position: relative;
  transition: box-shadow .2s;
  overflow: hidden;
}
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); z-index: 1; }
.product-card-link { display: block; text-decoration: none; color: inherit; }
.product-image-wrap {
  position: relative;
  padding: 0; background: #fff;
  aspect-ratio: 3/4; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
  display: block;
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--price-color); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  z-index: 2;
}
.product-info { padding: 12px 14px 14px; }
.product-brand {
  font-size: 11px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 4px;
}
.product-title {
  font-size: 13px; font-weight: 400; color: #424242;
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.price-sale { font-size: 16px; font-weight: 700; color: var(--text); }
.price-original {
  font-size: 13px; color: var(--original-price);
  text-decoration: line-through;
}
.price-discount { font-size: 13px; font-weight: 600; color: var(--discount-green); }
.btn-add-cart {
  width: 100%; padding: 8px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  transition: background .2s;
  letter-spacing: .2px;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-add-cart.added { background: var(--discount-green); }

/* ─── Product Grid — Home ad inline ────────────────────────── */
.product-grid-ad { grid-column: 1 / -1; background: #fff; padding: 12px; }

/* ─── Category Pills (horizontal scroll) ────────────────────── */
.cat-pill-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0; overflow-x: auto; scrollbar-width: none;
  white-space: nowrap; display: flex; align-items: center;
}
.cat-pill-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-light); border-bottom: 2px solid transparent;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.cat-pill:hover, .cat-pill.active {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-light);
  padding: 10px 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .6; }

/* ─── Product Detail (single.php) ────────────────────────────── */
.product-detail-section {
  background: #fff; margin-bottom: 12px; padding: 20px 0;
}
.product-detail-grid {
  display: grid; grid-template-columns: 420px 1fr; gap: 32px;
  align-items: start;
}
.product-detail-images { position: sticky; top: 76px; }
.product-main-image {
  aspect-ratio: 3/4; background: #fff; border-radius: 8px;
  overflow: hidden; margin-bottom: 8px; padding: 0;
  border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.product-main-image img { width: 100%; height: 100%; object-fit: contain; display:block; }
.product-detail-info { padding: 8px 0; }
.product-detail-brand {
  font-size: 13px; color: var(--text-light); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.product-detail-title {
  font-size: 22px; font-weight: 500; line-height: 1.35;
  color: var(--text); margin-bottom: 12px;
}
.product-detail-pricing {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.detail-price-sale { font-size: 28px; font-weight: 700; color: var(--text); }
.detail-price-original {
  font-size: 18px; color: var(--original-price); text-decoration: line-through;
}
.detail-discount-pct {
  font-size: 18px; font-weight: 700; color: var(--price-color);
}
.product-detail-off-badge {
  display: inline-block; background: var(--price-color);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 16px;
}
.delivery-info {
  background: #f8fff8; border: 1px solid #c8e6c9;
  border-radius: 6px; padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; color: #2e7d32;
  display: flex; align-items: center; gap: 8px;
}
.cod-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--primary); border-radius: 4px;
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  margin-bottom: 16px;
}
.product-cta-row {
  display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.btn-cart-detail {
  flex: 1; min-width: 140px; padding: 14px 20px;
  background: var(--orange); color: #fff; border: none;
  border-radius: 4px; font-size: 15px; font-weight: 700;
  transition: background .2s; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.btn-cart-detail:hover { background: #e5580a; }
.btn-cart-detail.added { background: var(--discount-green); }
.btn-buy-detail {
  flex: 1; min-width: 140px; padding: 14px 20px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 4px; font-size: 15px; font-weight: 700;
  transition: background .2s; display: flex; align-items: center;
  justify-content: center; gap: 8px; text-decoration: none;
}
.btn-buy-detail:hover { background: var(--primary-dark); }
.btn-buy-external {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 2px solid var(--primary);
  color: var(--primary); border-radius: 4px; font-size: 14px; font-weight: 600;
  transition: all .2s; margin-top: 8px;
}
.btn-buy-external:hover { background: var(--primary); color: #fff; }
.product-meta-row {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-light); margin-top: 12px;
}
.product-meta-row a { color: var(--primary); }

/* Article Content (product description) */
.article-section { background: #fff; margin-bottom: 12px; padding: 24px 0; }
.article-section .container {}
.article-section-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.article-content {
  font-size: 15px; line-height: 1.8; color: #424242;
  word-break: break-word; overflow-wrap: anywhere;
  max-width: 100%; overflow-x: hidden;
}
.article-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.article-content h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.article-content h4 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 12px 0 12px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content strong { font-weight: 700; color: var(--text); }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding: 14px 18px;
  margin: 20px 0; background: var(--primary-light);
  border-radius: 0 6px 6px 0; font-style: italic; color: var(--text-light);
}
.article-content img { border-radius: 8px; margin: 16px auto; max-width: 100%; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content code {
  background: #f5f5f5; padding: 2px 6px; border-radius: 4px;
  font-family: monospace; font-size: 13px; color: #e53e3e;
}
.article-content pre {
  background: #1e293b; color: #e2e8f0; padding: 18px;
  border-radius: 8px; overflow-x: auto; margin: 16px 0; font-size: 13px;
}
.article-content pre code { background: none; color: inherit; padding: 0; }

/* Article footer */
.article-footer-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 16px 0;
  border-top: 1px solid var(--border); margin-top: 24px;
}
.article-tags { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tag-link {
  padding: 4px 10px; background: #f5f5f5; border-radius: 4px;
  font-size: 12px; font-weight: 600; color: var(--text);
  transition: background .2s;
}
.tag-link:hover { background: var(--primary); color: #fff; }
.article-share { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.share-btn {
  padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; color: #fff;
}
.share-twitter { background: #1da1f2; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-btn:hover { opacity: .85; }

/* ─── Related Posts ──────────────────────────────────────────── */
.related-posts { margin: 0 0 12px; background: #fff; padding: 20px 0; }
.related-posts .container {}
.related-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; border-left: 4px solid var(--primary); padding-left: 10px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.related-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.related-card {
  background: var(--card-bg); overflow: hidden;
  transition: box-shadow .2s;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 1; }
.related-image-wrap { display: block; overflow: hidden; aspect-ratio: 1; background: #f5f5f5; }
.related-image-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.related-card:hover .related-image-wrap img { transform: scale(1.04); }
.related-body { padding: 8px 10px 12px; }
.related-post-title,
.article-content .related-post-title {
  font-size: 12px !important; font-weight: 500; line-height: 1.4;
  margin: 0 !important; color: #424242;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-post-title a { color: inherit; }
.related-post-title a:hover { color: var(--primary); }
.related-price { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 4px; }

/* ─── Sidebar (article page) ─────────────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 20px;
  padding: 16px 0 40px;
}
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 76px; height: fit-content; }
.sidebar-widget {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 16px; margin-bottom: 16px;
}
.widget-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary); text-transform: uppercase;
  letter-spacing: .3px;
}
.widget-categories li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--border); transition: color .2s;
}
.widget-categories li:last-child a { border-bottom: none; }
.widget-categories li a:hover { color: var(--primary); }
.cat-count {
  background: #f5f5f5; color: var(--text-light);
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
}
.widget-recent li a {
  display: flex; gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.widget-recent li:last-child a { border-bottom: none; }
.widget-recent li a img { width: 52px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recent-title { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.4; display: block; }
.recent-date { font-size: 11px; color: #9e9e9e; display: block; margin-top: 2px; }
.widget-recent li a:hover .recent-title { color: var(--primary); }

/* ─── Category Page ─────────────────────────────────────────── */

/* Old header kept for compatibility */
.category-page-header {
  background: #fff; padding: 8px 0 10px; margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

/* NEW compact category header strip */
.cat-header-strip {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.cat-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.cat-breadcrumb-inline {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-light); margin-bottom: 2px;
}
.cat-breadcrumb-inline a { color: var(--primary); text-decoration: none; }
.cat-breadcrumb-inline a:hover { text-decoration: underline; }
.cat-title-inline {
  font-size: 17px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1.3;
}
.cat-count-badge {
  font-size: 11px; font-weight: 700;
  background: var(--primary-light); color: var(--primary);
  padding: 2px 9px; border-radius: 20px; flex-shrink: 0;
}
.cat-desc {
  font-size: 13px; color: var(--text-light); max-width: 380px; margin: 0; line-height: 1.4;
}
/* Ad zone right below category header */
.ad-cat-top-zone {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 8px 0; min-height: 0;
}
.category-page-title {
  font-size: 22px; font-weight: 700; color: var(--text); margin: 4px 0 0;
}
.category-page-count {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600;
  margin-left: 8px;
}
.category-article {
  background: #fff; margin-top: 12px; padding: 20px;
  border: 1px solid var(--border); font-size: 14px; line-height: 1.8;
}

/* ─── Cart Page ─────────────────────────────────────────────── */
.cart-page { padding: 20px 0 60px; }
.cart-page-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.cart-items-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.cart-item {
  display: flex; gap: 16px; padding: 16px;
  border-bottom: 1px solid var(--border); align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px; flex-shrink: 0;
  background: #f5f5f5; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--text); }
.cart-item-original { font-size: 12px; color: var(--original-price); text-decoration: line-through; margin-left: 6px; }
.cart-qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--border);
  background: #fff; border-radius: 4px; font-size: 16px; font-weight: 700;
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove {
  font-size: 12px; color: var(--price-color); background: none; border: none;
  padding: 4px 8px; cursor: pointer; text-decoration: underline; margin-top: 4px;
  display: block;
}
.cart-summary-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; position: sticky; top: 76px; }
.summary-title { font-size: 14px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-of-type { border-bottom: none; }
.summary-total { font-size: 16px; font-weight: 700; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; display: flex; justify-content: space-between; }
.cod-info { background: #e8f5e9; border-radius: 4px; padding: 10px 12px; font-size: 12px; color: #2e7d32; margin: 12px 0; display: flex; align-items: center; gap: 6px; }
.btn-checkout {
  display: block; width: 100%; padding: 14px;
  background: var(--orange); color: #fff; border: none;
  border-radius: 4px; font-size: 15px; font-weight: 700;
  text-align: center; text-decoration: none; margin-top: 12px;
  transition: background .2s;
}
.btn-checkout:hover { background: #e5580a; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.cart-empty svg { margin: 0 auto 16px; opacity: .3; }
.cart-empty h2 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.btn-shop-now {
  display: inline-block; padding: 12px 28px; background: var(--primary);
  color: #fff; border-radius: 4px; font-size: 14px; font-weight: 700;
  margin-top: 16px; transition: background .2s;
}
.btn-shop-now:hover { background: var(--primary-dark); }

/* ─── Checkout Page ──────────────────────────────────────────── */
.checkout-page { padding: 20px 0 60px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.checkout-form-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}
.checkout-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #424242; margin-bottom: 5px; }
.form-label span { color: var(--price-color); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 4px; font-size: 14px; color: var(--text); outline: none;
  transition: border-color .2s; background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,116,245,.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 2px solid var(--primary); border-radius: 6px;
  background: var(--primary-light); margin-bottom: 16px;
}
.payment-option svg { color: var(--primary); flex-shrink: 0; }
.payment-option-text { font-size: 14px; font-weight: 600; color: var(--primary); }
.order-summary-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; position: sticky; top: 76px; max-width: 100%; box-sizing: border-box; overflow: hidden; min-width: 0; }
.order-item-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item-row:last-child { border-bottom: none; }
.order-item-img { width: 56px; height: 56px; background: #f5f5f5; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.order-item-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.order-item-qty { font-size: 12px; color: var(--text-light); }
.order-item-price { font-size: 14px; font-weight: 700; margin-left: auto; flex-shrink: 0; }

/* ─── Order Success ──────────────────────────────────────────── */
.order-success-page { padding: 40px 0 80px; }
.order-success-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; max-width: 640px; margin: 0 auto; padding: 40px;
  text-align: center;
}
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-title { font-size: 26px; font-weight: 700; color: #2e7d32; margin-bottom: 8px; }
.success-subtitle { font-size: 15px; color: var(--text-light); margin-bottom: 24px; }
.order-number-badge {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); font-size: 16px; font-weight: 700;
  padding: 8px 20px; border-radius: 4px; margin-bottom: 24px;
}
.order-details-table { width: 100%; text-align: left; border-collapse: collapse; margin-bottom: 24px; }
.order-details-table td { padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.order-details-table td:first-child { color: var(--text-light); font-weight: 500; width: 40%; }
.order-details-table td:last-child { font-weight: 600; }
.btn-continue-shopping {
  display: inline-block; padding: 12px 32px;
  background: var(--primary); color: #fff; border-radius: 4px;
  font-size: 15px; font-weight: 700; transition: background .2s;
}
.btn-continue-shopping:hover { background: var(--primary-dark); }

/* ─── Static Page ────────────────────────────────────────────── */
.static-page { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 32px; }
.static-page .article-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 28px 0;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 4px; font-size: 13px; font-weight: 600;
  color: var(--text-light); background: var(--card-bg);
  border: 1px solid var(--border); transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── No Posts ───────────────────────────────────────────────── */
.no-posts { text-align: center; padding: 60px 20px; color: var(--text-light); grid-column: 1 / -1; background: #fff; }
.no-posts svg { margin: 0 auto 16px; opacity: .3; }

/* ─── Toast Notification ─────────────────────────────────────── */
.cart-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #323232; color: #fff; padding: 12px 24px;
  border-radius: 4px; font-size: 14px; font-weight: 500;
  z-index: 9999; opacity: 0; transition: all .3s; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #172337; color: #90a4b7; padding: 40px 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #2a3f55; }
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: #ffd700; }
.footer-about p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #607d8b; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-trust { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid #2a3f55; }
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: #1e3148; padding: 8px 14px; border-radius: 4px;
  font-size: 12px; color: #fff; font-weight: 500;
}
.trust-badge svg { color: #ffd700; flex-shrink: 0; }
.footer-pages-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid #2a3f55; }
.footer-pages-links a { font-size: 12px; color: #607d8b; transition: color .2s; }
.footer-pages-links a:hover { color: var(--primary); }
.footer-bottom { padding: 14px 0; text-align: center; font-size: 12px; color: #455a6a; border-top: 1px solid #2a3f55; }

/* ─── Search Results Page ────────────────────────────────────── */
.search-results-header { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.search-query-title { font-size: 18px; font-weight: 600; }
.search-query-title span { color: var(--primary); }

/* ─── Product Gallery Slider ─────────────────────────────────── */
.product-gallery-wrap { position: relative; }
.product-gallery-main {
  background: #fff; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 3/4;
}
.gallery-slide {
  display: none;
  position: absolute; inset: 0;
}
.gallery-slide.active { display: block; }
.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Transition */
.gallery-slide { animation: galleryFade .3s ease; }
@keyframes galleryFade { from { opacity: .5; } to { opacity: 1; } }
/* Prev/Next arrows */
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; background: rgba(255,255,255,.9);
  border: 1px solid var(--border); border-radius: 50%;
  font-size: 20px; line-height: 1; color: #424242;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: all .2s;
}
.gallery-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
/* Thumbnail strip */
.gallery-thumbs-strip {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px;
  max-width: 100%; width: 100%; box-sizing: border-box;
}
.gallery-thumbs-strip::-webkit-scrollbar { display: none; }
.gallery-strip-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 4px;
  overflow: hidden; cursor: pointer; background: #f5f5f5;
  transition: border-color .2s;
}
.gallery-strip-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery-strip-thumb.active,
.gallery-strip-thumb:hover { border-color: var(--primary); }

/* ─── Product Size & Color Selectors ──────────────────────────── */
.ps-variant-block { margin:14px 0 10px; }
.ps-variant-header { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.ps-variant-label { font-size:12px; font-weight:700; color:#3e4152; letter-spacing:.8px; text-transform:uppercase; }
.ps-size-chart-link { font-size:12px; color:#ff3f6c; font-weight:600; text-decoration:none; }
.ps-selected-val { font-size:13px; color:#212121; font-weight:600; }
.ps-size-options { display:flex; flex-wrap:wrap; gap:8px; }
.ps-size-btn {
  min-width:44px; height:44px; padding:0 6px; border-radius:50%;
  border:1.5px solid #d4d5d9; background:#fff;
  font-size:13px; font-weight:500; color:#3e4152;
  cursor:pointer; transition:border-color .15s, color .15s;
  display:flex; align-items:center; justify-content:center;
}
.ps-size-btn:hover { border-color:#3e4152; }
.ps-size-btn.selected { border-color:#ff3f6c; color:#ff3f6c; border-width:2px; font-weight:700; }
.ps-color-options { display:flex; flex-wrap:wrap; gap:10px; }
.ps-color-btn {
  width:32px; height:32px; border-radius:50%;
  background:var(--swatch,#ccc);
  border:2px solid transparent; cursor:pointer;
  outline:none; transition:box-shadow .15s;
}
.ps-color-btn:hover { box-shadow:0 0 0 2px #fff, 0 0 0 4px #3e4152; }
.ps-color-btn.selected { box-shadow:0 0 0 2px #fff, 0 0 0 4px #ff3f6c; }
.ps-variant-err { font-size:12px; color:#e53935; margin-top:6px; }
.sc-preset-btn {
  font-size:11px; padding:3px 8px; border-radius:4px;
  border:1px solid #cbd5e1; background:#f8fafc; color:#475569;
  cursor:pointer; transition:background .15s, border-color .15s;
  white-space:nowrap;
}
.sc-preset-btn:hover { background:#e2e8f0; border-color:#94a3b8; }

/* ─── Trending Slider ─────────────────────────────────────────── */
.trending-section {
  background: #fff; padding: 0 0 20px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.trending-slider-wrap { position: relative; }
.trending-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
  padding: 8px 4px 4px;
}
.trending-track::-webkit-scrollbar { display: none; }
.trending-card {
  flex: 0 0 160px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  transition: box-shadow .2s;
}
.trending-card:hover { box-shadow: var(--shadow-md); }
.trending-card-link { display: block; text-decoration: none; color: inherit; }
.trending-card-img {
  aspect-ratio: 1; overflow: hidden; background: #f5f5f5;
  position: relative;
}
.trending-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.trending-card:hover .trending-card-img img { transform: scale(1.05); }
.trending-card-info { padding: 8px 10px 10px; }
/* Slider arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; background: #fff;
  border: 1px solid var(--border); border-radius: 50%;
  font-size: 22px; line-height: 1; color: #424242;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: all .2s;
}
.slider-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slider-arrow-left { left: -16px; }
.slider-arrow-right { right: -16px; }
@media (max-width: 768px) {
  .slider-arrow-left { left: 0; }
  .slider-arrow-right { right: 0; }
  .trending-track { padding: 8px 40px 4px; }
  .trending-card { flex: 0 0 140px; }
}

/* ─── Product Image Overlays (share / wishlist) ──────────────── */
.product-img-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px; z-index: 10;
}
.img-action-btn {
  width: 36px; height: 36px; background: #fff;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #757575; box-shadow: var(--shadow); transition: all .2s;
}
.img-action-btn:hover { color: var(--primary); border-color: var(--primary); }
.img-action-btn.wished svg path { fill: #e91e8c; stroke: #e91e8c; }

/* Product image dots */
.product-img-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 10px;
  flex-wrap: wrap; max-width: 100%; overflow: hidden;
}
.img-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .2s;
}
.img-dot.active { background: var(--primary); }

/* ─── Special Offer Row ──────────────────────────────────────── */
.special-offer-row {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #424242;
  margin: 6px 0 10px; cursor: pointer;
}
.special-offer-row svg { color: #e91e8c; flex-shrink: 0; }
.special-offer-link { color: #e91e8c; }

/* ─── Free Delivery + Rating badges row ─────────────────────── */
.product-badges-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.product-free-delivery {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid #388e3c; color: #388e3c;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px;
}
.product-rating-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--border); color: var(--text-light);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 4px;
}
.product-rating-pill .star-val { color: var(--text); font-weight: 700; }
.product-rating-pill .star-ico { color: #ffa534; font-size: 13px; }

/* ─── Product Reviews Section ────────────────────────────────── */
/* ─── Recent Products Section (below reviews on product page) ── */
.recent-products-section {
  background: #f5f5f5;
  padding: 28px 0 36px;
  border-top: 8px solid #ebebeb;
}
.recent-products-section .product-grid {
  margin-top: 0;
}

.product-reviews {
  background: #fff; border-top: 8px solid #f5f5f5;
  padding: 24px 0 32px;
}
.reviews-header {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}
.rating-summary {
  display: flex; gap: 28px; align-items: flex-start;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rating-big { text-align: center; flex-shrink: 0; min-width: 90px; }
.rating-big-num {
  font-size: 52px; font-weight: 700; line-height: 1; color: var(--text);
}
.rating-big-star { color: #ffa534; font-size: 22px; margin-top: 2px; }
.rating-big-count { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.rating-bar-label { font-size: 13px; font-weight: 600; color: var(--text); min-width: 68px; }
.rating-bar-track {
  flex: 1; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden;
}
.rating-bar-fill { height: 100%; border-radius: 4px; background: #388e3c; transition: width .4s; }
.rating-bar-fill.poor { background: #e53e3e; }
.rating-bar-count { font-size: 12px; color: var(--text-light); min-width: 36px; text-align: right; }
.review-card {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }
.review-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-stars-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #388e3c; color: #fff;
  font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 3px;
}
.review-title { font-size: 14px; font-weight: 700; color: var(--text); }
.review-body { font-size: 14px; color: #424242; line-height: 1.6; margin-bottom: 8px; }
.review-photos { display: flex; gap: 8px; margin-bottom: 8px; }
.review-photos img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border);
}
.review-meta { display: flex; align-items: center; justify-content: space-between; }
.review-author { font-size: 12px; color: var(--text-light); }
.review-likes {
  font-size: 12px; color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
}

/* ─── Product CTA row — always visible (no sticky bar) ─────── */
.product-cta-row {
  display: flex !important;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ─── Cart Sticky Bottom Bar ─────────────────────────────────── */
.cart-sticky-bottom {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}
.cart-sticky-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 12px;
}
.cart-sticky-price { font-size: 12px; color: var(--text-light); }
.cart-sticky-price strong {
  font-size: 18px; font-weight: 700; color: var(--text);
  display: block; line-height: 1.1;
}
.btn-cart-continue {
  padding: 12px 28px; background: var(--primary); color: #fff;
  border: none; border-radius: 4px; font-size: 15px; font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ─── Cart Enhancements ──────────────────────────────────────── */
.sold-by { font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
.free-delivery-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e8f5e9; color: #2e7d32;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 12px; margin-top: 6px;
}
.summary-row-discount { color: #388e3c; font-weight: 700; }
.cart-discount-banner {
  background: #e8f5e9; border-radius: 4px; padding: 8px 12px;
  text-align: center; font-size: 13px; color: #2e7d32; font-weight: 600;
  margin-top: 12px;
}

/* ─── Coupon Box ──────────────────────────────────────────────── */
.coupon-box {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.coupon-input-row {
  display: flex; gap: 8px;
}
.coupon-input {
  flex: 1; padding: 9px 12px;
  border: 1.5px solid #e0e0e0; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  outline: none; transition: border .2s;
}
.coupon-input:focus { border-color: var(--primary); }
.coupon-apply-btn {
  padding: 9px 16px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 6px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity .2s;
}
.coupon-apply-btn:hover { opacity: .88; }
.coupon-apply-btn:disabled { opacity: .6; cursor: default; }
.coupon-applied {
  display: flex; align-items: center; gap: 8px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 6px; padding: 9px 12px;
  font-size: 13px; color: #166534;
}
.coupon-applied span { flex: 1; }
.coupon-remove-btn {
  background: none; border: none; cursor: pointer;
  color: #888; font-size: 14px; line-height: 1;
  padding: 2px 4px; border-radius: 3px;
}
.coupon-remove-btn:hover { color: #e53935; background: #fde8e8; }

/* ─── New 5-Step Checkout Progress Bar ───────────────────────── */
.co-prog {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 14px 16px 10px;
  position: sticky; top: var(--header-height); z-index: 90;
  overflow-x: auto; scrollbar-width: none;
}
.co-prog::-webkit-scrollbar { display: none; }
.co-prog-inner {
  display: flex; align-items: flex-start;
  max-width: 560px; margin: 0 auto;
}
.co-step-w { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.co-step-c {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 2px solid #e0e0e0; background: #fff; color: #bbb;
  transition: all .2s; flex-shrink: 0;
}
.co-step-c.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.co-step-c.done   { border-color: #43a047; background: #43a047; color: #fff; font-size: 10px; }
.co-step-lbl { font-size: 10px; font-weight: 600; color: #bbb; white-space: nowrap; }
.co-step-lbl.active { color: var(--primary); }
.co-step-lbl.done   { color: #43a047; }
.co-prog-seg { flex: 1; height: 2px; background: #e0e0e0; margin-top: 14px; min-width: 10px; }
.co-prog-seg.done { background: #43a047; }

/* Mini bar (replaces existing per-page mini bars) */
.co-mini-bar { background: #fff; border-bottom: 1px solid var(--border); }
.co-mini-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}

/* ─── Checkout Multi-step Navigation ─────────────────────────── */
.checkout-steps-nav {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-height); z-index: 90;
  overflow-x: auto; scrollbar-width: none;
}
.checkout-steps-nav::-webkit-scrollbar { display: none; }
.checkout-steps-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: stretch; white-space: nowrap;
}
.checkout-step-tab {
  padding: 14px 16px; font-size: 14px; font-weight: 600;
  color: var(--text-light); border-bottom: 2px solid transparent;
  cursor: default; transition: all .2s; flex-shrink: 0;
  display: block; text-decoration: none;
}
.checkout-step-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.checkout-step-tab.done { color: #388e3c; }
.checkout-step-tab.clickable { cursor: pointer; }
.checkout-step-sep {
  display: flex; align-items: center; color: #bdbdbd; font-size: 12px;
  padding: 0 4px; flex-shrink: 0;
}

/* Mini order bar */
.checkout-mini-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  max-width: 1200px; /* show inside container */
}
.checkout-mini-img {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 4px; background: #f5f5f5; flex-shrink: 0;
}
.checkout-mini-info { flex: 1; font-size: 13px; }
.checkout-mini-info strong { display: block; color: var(--text); font-size: 13px; }
.checkout-mini-info span { color: var(--text-light); font-size: 12px; }

/* Step sections */
.checkout-step-section { display: none; }
.checkout-step-section.active { display: block; }

/* Save & Continue button */
.btn-save-continue {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.btn-save-continue:hover { background: var(--primary-dark); }

/* Info tip boxes */
.checkout-info-box {
  background: #ede7f6; border-radius: 4px; padding: 10px 14px;
  font-size: 12px; color: #4527a0; margin: 8px 0 14px;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.checkout-info-box svg { flex-shrink: 0; margin-top: 1px; }
.checkout-info-box-blue { background: #e3f2fd; color: #0d47a1; }

/* Use location button */
.use-location-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: 13px; font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 0;
}

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap > svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #bdbdbd; pointer-events: none; z-index: 1;
}
.input-icon-wrap input { padding-left: 38px; }

/* ─── Checkout Multi-Page Styles ────────────────────────────── */

/* Fix overflow on narrow screens */
.checkout-form-box { overflow: hidden; min-width: 0; }

/* Error bar */
.checkout-error-bar {
  background: #fef2f2; border-left: 3px solid #ef4444;
  color: #dc2626; padding: 12px 16px; font-size: 14px; line-height: 1.5;
  max-width: 1200px; margin: 0 auto;
}

/* Divider between form sections */
.checkout-section-divider {
  height: 1px; background: var(--border); margin: 20px 0;
}

/* Button row with Back + Continue */
.checkout-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.checkout-btn-row .btn-back {
  flex: 1;
  min-width: 100px;
  text-align: center;
}
.checkout-btn-row .btn-save-continue {
  flex: 2;
  min-width: 0;
}

.btn-back {
  background: #f5f5f5; color: var(--text);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 12px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-sizing: border-box;
}
.btn-back:hover { background: #e0e0e0; }

/* ── Place Order big button ── */
.btn-place-order {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s;
  margin-bottom: 0;
}
.btn-place-order:hover { background: #e5580a; }
.btn-place-order:disabled { opacity: .7; cursor: not-allowed; }

/* ── Review page back buttons row ── */
.review-back-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.review-back-row .btn-back {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

/* ── Terms note ── */
.checkout-terms-note {
  font-size: 11px;
  color: #9e9e9e;
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.checkout-terms-note a { color: var(--primary); }

/* Trust badges box inside checkout sidebar */
.checkout-trust-box {
  background: #f9fafb; border-radius: 4px; padding: 12px;
  margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.checkout-trust-item {
  font-size: 11px; color: #424242; display: flex; align-items: flex-start; gap: 5px; line-height: 1.4;
}

/* Payment page info grid */
.checkout-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.checkout-info-card {
  background: #f9f9f9; border-radius: 6px; padding: 14px; text-align: center;
  border: 1px solid var(--border);
}
.checkout-info-card-icon { font-size: 22px; margin-bottom: 6px; }
.checkout-info-card-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.checkout-info-card-text { font-size: 11px; color: var(--text-light); line-height: 1.4; }

/* COD payment card */
.cod-payment-card {
  border: 2px solid var(--primary); border-radius: 6px; padding: 16px;
  display: flex; align-items: center; gap: 14px; background: var(--primary-light);
  margin-bottom: 14px;
}
.cod-payment-card-icon { font-size: 28px; flex-shrink: 0; }
.cod-payment-card-text { font-size: 15px; font-weight: 700; color: var(--text); }
.cod-payment-card-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.cod-payment-card-check { margin-left: auto; flex-shrink: 0; }

/* Review page section boxes */
.review-section {
  background: #f9f9f9; border-radius: 6px; padding: 14px 16px;
  margin-bottom: 12px; position: relative;
}
.review-section-label {
  font-size: 11px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.review-section-value { font-size: 14px; color: var(--text); line-height: 1.6; padding-right: 64px; word-break: break-word; }
.review-change-btn {
  position: absolute; top: 14px; right: 14px;
  color: var(--primary); font-size: 12px; font-weight: 700;
  background: none; border: none; cursor: pointer; text-decoration: none;
}
.review-items-box {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 16px;
}
.review-items-header {
  background: #f9f9f9; padding: 10px 14px;
  font-size: 12px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border);
}
.review-item-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.review-item-row:last-child { border-bottom: none; }
.review-item-img {
  width: 60px; height: 60px; flex-shrink: 0;
  background: #f5f5f5; border-radius: 4px; overflow: hidden;
}
.review-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.review-item-title { font-size: 13px; font-weight: 500; line-height: 1.3; margin-bottom: 3px; }
.review-item-meta { font-size: 12px; color: var(--text-light); }
.review-item-price { font-size: 14px; font-weight: 700; margin-left: auto; flex-shrink: 0; }

/* Cart rich content sections */
.cart-policy-section { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-top: 20px; }
.cart-policy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 14px 0; }
.cart-policy-card { text-align: center; padding: 14px 10px; background: #f9f9f9; border-radius: 6px; }
.cart-policy-card-icon { font-size: 24px; margin-bottom: 6px; }
.cart-policy-card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cart-policy-card-text { font-size: 12px; color: var(--text-light); line-height: 1.4; }
.cart-product-details { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-top: 16px; }
.cart-product-detail-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-product-detail-item:last-child { border-bottom: none; }
.cart-product-detail-img { width: 72px; height: 72px; flex-shrink: 0; background: #f5f5f5; border-radius: 4px; overflow: hidden; }
.cart-product-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-product-detail-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cart-product-detail-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.cart-faq-section { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-top: 16px; }
.cart-faq-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-faq-item:last-child { border-bottom: none; }
.cart-faq-q { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cart-faq-a { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail-grid { grid-template-columns: 360px 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .showcase-grid { grid-template-columns: repeat(5, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ── Navigation ── */
  .menu-toggle { display: flex; }
  .site-nav { display: none; }
  .header-search { display: none; }
  .search-toggle { display: flex; }

  /* ── Showcase / grid ── */
  .showcase-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .showcase-card-img { max-width: 72px; }
  .showcase-card-name { font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Product detail ── */
  .product-detail-grid { grid-template-columns: 1fr; gap: 0; }
  .product-detail-images { position: static; }
  .product-detail-info { padding: 12px 0 0; }
  .product-detail-title { font-size: 18px; }
  .detail-price-sale { font-size: 22px; }

  /* ── Gallery full-width edge-to-edge on mobile ── */
  .product-detail-section { padding: 0 0 8px; }
  .product-gallery-main {
    width: 100vw;
    margin-left: -16px;
    box-sizing: border-box;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: #fff;
    aspect-ratio: 3/4;
  }
  .gallery-slide { position: absolute; inset: 0; width: 100%; }
  .gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* ── Product CTA buttons — stacked full-width on mobile ── */
  .product-cta-row { flex-direction: column !important; gap: 10px; }
  .btn-cart-detail,
  .btn-buy-detail {
    flex: unset !important;
    width: 100% !important;
    font-size: 15px;
    padding: 14px 16px;
    min-width: 0;
  }

  /* ── Layouts ── */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-trust { gap: 8px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; padding: 12px 0 32px; }

  /* ── Checkout ── */
  .checkout-mini-bar { padding: 10px 12px; }
  .checkout-form-box { padding: 14px; overflow: hidden; }
  .btn-save-continue { font-size: 15px; padding: 14px; width: 100%; box-sizing: border-box; }

  /* Checkout back/change buttons — stack vertically, full width */
  .checkout-btn-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }
  .checkout-btn-row .btn-back {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    white-space: normal;
    padding: 12px 16px;
    font-size: 14px;
  }

  .checkout-info-grid { grid-template-columns: 1fr 1fr; }
  .cart-policy-grid { grid-template-columns: repeat(2, 1fr); }
  .review-item-img { width: 48px; height: 48px; }

  /* Hide sidebar order-summary on mobile — price info already shown in form */
  .order-summary-box { display: none; }

  /* ── Cart sticky bar ── */
  .cart-sticky-bottom { display: block; }
  .cart-page { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .product-gallery-main { margin: 0 -12px; }
  .showcase-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .showcase-card-img { max-width: 60px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .product-image-wrap { padding: 0; }
  .product-info { padding: 8px 10px 10px; }
  .product-title { font-size: 12px; }
  .price-sale { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .cart-item { flex-wrap: wrap; }
  .order-success-card { padding: 24px 16px; }

  /* Checkout form tighter on tiny screens */
  .checkout-form-box { padding: 12px; }
  .checkout-section-title { font-size: 14px; }
  .form-label { font-size: 12px; }
  .form-control { font-size: 14px; padding: 10px 10px 10px 34px; box-sizing: border-box; width: 100%; }
  .input-icon-wrap > svg { left: 10px; }
  .input-icon-wrap input { padding-left: 34px; }
  /* Gallery on phones — keep aspect ratio */
  .product-gallery-main { aspect-ratio: 3/4; }

  /* Review page items */
  .review-section { padding: 12px; }
  .review-item-row { flex-wrap: wrap; gap: 8px; }
  .review-item-img { width: 44px; height: 44px; }
  .review-item-price { width: 100%; text-align: left; padding-left: 52px; }
  .gallery-thumbs-strip { margin-top: 8px; }
  .gallery-strip-thumb { width: 56px; height: 56px; }
}


/* ═══════════════════════════════════════════════════════════
   KB-STYLE LAYOUT (kisbig.com inspired)
   ═══════════════════════════════════════════════════════════ */

/* ── Shared ── */
.kb-sec-wrap { max-width:1200px; margin:0 auto; padding:0 20px; }
.kb-sec-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size:28px; font-weight:700; text-align:center;
  color:#1a1a1a; margin:0 0 28px; padding-top:40px;
}

/* ── Hero Banner ── */
.kb-hero { overflow:hidden; max-width:1200px; margin:20px auto; }
.kb-hero-ticker {
  background:#c0392b; color:#fff;
  font-size:11px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; padding:6px 0;
  overflow:hidden; white-space:nowrap;
}
.kb-hero-ticker-inner {
  display:inline-block;
  animation:kb-tick 25s linear infinite;
}
@keyframes kb-tick { from{transform:translateX(100vw)} to{transform:translateX(-100%)} }
.kb-hero-body {
  display:flex; align-items:stretch; min-height:360px;
}
.kb-hero-imgs {
  display:flex; flex:1; overflow:hidden; align-items:flex-end;
}
.kb-hero-imgs a { flex:1; display:block; overflow:hidden; }
.kb-hero-imgs img {
  width:100%; height:100%; min-height:320px;
  object-fit:cover; object-position:top; display:block;
}
.kb-hero-copy {
  flex:0 0 300px; display:flex; flex-direction:column;
  justify-content:center; align-items:center;
  padding:32px 24px; text-align:center; color:#fff;
}
.kb-hero-label {
  font-size:12px; letter-spacing:3px; text-transform:uppercase;
  margin:0 0 6px; opacity:.9;
}
.kb-hero-sub {
  font-size:18px; font-style:italic; font-family:Georgia,serif;
  margin:0 0 4px;
}
.kb-hero-big {
  font-size:64px; font-weight:900; line-height:1;
  margin:0 0 24px; letter-spacing:-1px;
}
.kb-hero-btn {
  display:inline-block; background:rgba(0,0,0,.35);
  color:#fff; padding:10px 28px; border-radius:30px;
  font-size:11px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; text-decoration:none;
  border:1px solid rgba(255,255,255,.5);
  transition:background .2s;
}
.kb-hero-btn:hover { background:rgba(0,0,0,.55); }

/* ── Shop By Category ── */
.kb-shop-cats { background:#fff; padding-bottom:36px; }
.kb-cat-row {
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.kb-cat-item { text-decoration:none; color:inherit; text-align:center; display:block; }
.kb-cat-item-img {
  width:100%; aspect-ratio:3/4; overflow:hidden; background:#f5f5f5;
  margin-bottom:10px;
}
.kb-cat-item-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; display:block; }
.kb-cat-item:hover .kb-cat-item-img img { transform:scale(1.05); }
.kb-cat-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:36px; }
.kb-cat-item-name { font-size:14px; font-weight:500; color:#333; }
.kb-cat-item-disc { display:none; }

/* ── Home Product Grid ── */
.kb-products-sec { background:#fff; padding-bottom:36px; }
.kb-home-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}

/* ── KB Product Card (shared) ── */
.kb-card { background:#fff; position:relative; }
.kb-card-a { display:block; text-decoration:none; color:inherit; }
.kb-card-img {
  position:relative; overflow:hidden;
  aspect-ratio:3/4; background:#f5f5f5;
}
.kb-card-img img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .4s ease;
}
.kb-card:hover .kb-card-img img { transform:scale(1.05); }
.kb-badge {
  position:absolute; top:8px; left:8px;
  background:#e53935; color:#fff;
  font-size:11px; font-weight:700; padding:3px 7px; border-radius:3px; z-index:1;
}
.kb-img-btn {
  position:absolute; bottom:0; left:0; right:0;
  background:rgba(0,0,0,.7); color:#fff;
  text-align:center; padding:10px; font-size:12px; font-weight:600;
  transform:translateY(100%); transition:transform .25s ease;
}
.kb-card:hover .kb-img-btn { transform:translateY(0); }
.kb-card-body { padding:10px 8px 6px; text-align:center; }
.kb-card-brand { font-size:10px; color:#9e9e9e; text-transform:uppercase; letter-spacing:.5px; margin-bottom:3px; }
.kb-card-name {
  font-size:13px; font-weight:500; color:#212121;
  line-height:1.4; margin:0 0 6px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.kb-card-pricing { display:flex; gap:6px; justify-content:center; align-items:baseline; }
.kb-sp { font-size:14px; font-weight:600; color:#212121; }
.kb-op { font-size:12px; color:#9e9e9e; text-decoration:line-through; }
.kb-card-footer { padding:0 8px 10px; }
.kb-cart-btn {
  width:100%; padding:8px 0;
  background:#8bc34a; color:#fff; border:none;
  border-radius:4px; font-size:13px; font-weight:600;
  cursor:pointer; transition:background .2s;
}
.kb-cart-btn:hover { background:#7cb342; }

/* ── Category Page ── */
.kb-cat-page {
  display:grid; grid-template-columns:220px 1fr;
  min-height:60vh; background:#f8f6f3;
}
.kb-sidebar {
  background:#fff; border-right:1px solid #e8e8e8;
  padding:20px 14px; position:relative;
}
.kb-sidebar-close { display:none; }
.kb-sidebar-inner { position:sticky; top:80px; }
.kb-sb-search {
  display:flex; border:1px solid #ddd; border-radius:4px;
  overflow:hidden; margin-bottom:20px;
}
.kb-sb-search input {
  flex:1; min-width:0; border:none; outline:none;
  padding:8px 8px; font-size:12px;
}
.kb-sb-search button {
  flex-shrink:0; background:#8bc34a; border:none;
  padding:0 10px; cursor:pointer; color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.kb-filter-section h4 {
  font-size:14px; font-weight:700; color:#333;
  margin:0 0 14px; padding-bottom:8px; border-bottom:1px solid #e8e8e8;
}
.kb-range-wrap { position:relative; margin:24px 0 14px; }
.kb-range-track {
  position:relative; height:4px; background:#ddd;
  border-radius:4px; margin:0 0 0;
}
.kb-range-fill {
  position:absolute; height:4px; background:#8bc34a;
  border-radius:4px; pointer-events:none;
}
.kb-range {
  position:absolute; top:-7px; width:100%; height:18px;
  background:none; pointer-events:none;
  -webkit-appearance:none; appearance:none; margin:0;
}
.kb-range::-webkit-slider-thumb {
  pointer-events:all; width:16px; height:16px;
  border-radius:50%; background:#8bc34a;
  border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.25);
  -webkit-appearance:none; cursor:pointer;
}
.kb-range::-moz-range-thumb {
  pointer-events:all; width:14px; height:14px;
  border-radius:50%; background:#8bc34a;
  border:2px solid #fff; cursor:pointer;
}
.kb-price-labels { display:flex; gap:8px; margin-bottom:12px; }
.kb-price-box {
  flex:1; border:1px solid #ddd; border-radius:4px;
  padding:5px 10px; font-size:13px; color:#333;
  display:flex; gap:3px;
}
.kb-filter-apply {
  width:100%; padding:9px; background:#8bc34a; color:#fff;
  border:none; border-radius:4px; font-size:13px;
  font-weight:600; cursor:pointer; transition:background .2s;
}
.kb-filter-apply:hover { background:#7cb342; }
.kb-sidebar-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.4); z-index:999;
}
.kb-sidebar-overlay.show { display:block; }
.kb-main { padding:16px 20px; min-width:0; overflow:hidden; }
.kb-breadcrumb {
  font-size:12px; color:#757575; margin-bottom:8px;
}
.kb-breadcrumb a { color:#757575; text-decoration:none; }
.kb-breadcrumb a:hover { color:#8bc34a; }
.kb-breadcrumb span { margin:0 4px; }
.kb-cat-title {
  font-family:'Merriweather', Georgia, serif;
  font-size:30px; font-weight:700; color:#8bc34a; margin:0 0 14px;
}
/* Hide Add-to-Cart footer button in listing pages (matches kisbig.com) */
.kb-cat-page .kb-card-footer { display:none; }
.kb-products-sec .kb-card-footer { display:none; }
.kb-toolbar {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid #ddd;
  flex-wrap:wrap; gap:8px;
}
.kb-showing { font-size:13px; color:#757575; }
.kb-sort-sel {
  border:1px solid #ddd; border-radius:4px;
  padding:6px 10px; font-size:13px; cursor:pointer; outline:none;
}
.kb-mob-filter-btn {
  display:none; align-items:center; gap:6px;
  padding:7px 14px; background:#fff; border:1px solid #ddd;
  border-radius:4px; font-size:13px; font-weight:600; cursor:pointer;
}
.kb-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}

/* ── Responsive ── */
@media (max-width:1280px) {
  /* sidebar still visible — drop to 3 cols so cards don't squeeze */
  .kb-grid { grid-template-columns:repeat(3,1fr); gap:12px; }
}
@media (max-width:1024px) {
  .kb-home-grid { grid-template-columns:repeat(3,1fr); }
  .kb-cat-row   { grid-template-columns:repeat(4,1fr); }
  .kb-grid      { grid-template-columns:repeat(3,1fr); gap:12px; }
  .kb-cat-page  { grid-template-columns:200px 1fr; }
}
@media (max-width:768px) {
  .kb-hero-body  { flex-direction:column; }
  .kb-hero-imgs  { min-height:220px; }
  .kb-hero-imgs img { min-height:220px; }
  .kb-hero-big   { font-size:44px; }
  .kb-hero-copy  { flex:none; padding:20px 16px 28px; }
  .kb-cat-row    { grid-template-columns:repeat(2,1fr); gap:12px; }
  .kb-home-grid  { grid-template-columns:repeat(2,1fr); gap:10px; }
  .kb-sec-wrap   { padding:0 12px; }
  .kb-sec-title  { font-size:20px; padding-top:24px; }
  /* Category page mobile — sidebar stacks BELOW products (kisbig.com style) */
  .kb-cat-page {
    display:flex; flex-direction:column; background:#f8f6f3;
  }
  .kb-main   { order:1; padding:12px 12px; }
  .kb-sidebar {
    order:2;
    position:static; width:100%; height:auto;
    border-right:none; border-top:1px solid #e8e8e8;
    padding:16px 16px 20px; box-shadow:none;
  }
  .kb-sidebar-inner { position:static; }
  .kb-sidebar-close  { display:none; }
  .kb-sidebar-overlay { display:none !important; }
  .kb-mob-filter-btn  { display:none; }
  .kb-cat-title  { font-size:22px; }
  .kb-grid       { grid-template-columns:repeat(2,1fr); gap:10px; }
  .kb-toolbar    { flex-direction:row; }
}
@media (max-width:480px) {
  .kb-home-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
  .kb-grid      { grid-template-columns:repeat(2,1fr); gap:8px; }
  .kb-cat-row   { grid-template-columns:repeat(2,1fr); gap:8px; }
  .kb-hero-big  { font-size:36px; }
}
