:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-dim: #5b6475;
  --border: #e3e8ef;
  --primary: #0a7d63;
  --primary-dark: #07634e;
  --primary-soft: #e2f5ef;
  --primary-bright: #5eead4;
  --navy: #0b1f3a;
  --navy-2: #16305a;
  --sale: #d9480f;
  --sale-soft: #fff0e6;
  --danger: #c81e1e;
  --danger-soft: #fdecec;
  --warning: #92400e;
  --warning-soft: #fef3c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 14px 32px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Hind Siliguri', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; }

.icon { flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.card, .payment-result, .admin-login, .order-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

main { flex: 1; }

.page { padding: 28px 16px 56px; }

.page-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }

.btn-demo { background: var(--navy); color: #fff; }
.btn-demo:hover { background: var(--navy-2); }

.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #cdeee4; }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--danger);
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
  padding: 7px 0;
  text-align: center;
}

.topbar strong { color: #fff; font-weight: 600; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  color: #fff;
  font-size: 22px;
}

.logo img {
  max-height: 48px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-footer .logo img { max-height: 42px; }

.header-search {
  flex: 1;
  max-width: 350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
}

.header-search:focus-within { border-color: var(--primary); background: var(--surface); }

.header-search-category {
  flex-shrink: 0;
  max-width: 140px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  outline: none;
  padding: 6px 8px 6px 14px;
  border-radius: 999px 0 0 999px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  padding: 5px 0 5px 10px;
}

.header-search button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--primary-soft);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.cart-link:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }

@keyframes cartLinkFlash {
  0% { background: var(--primary); }
  100% { background: var(--primary-soft); }
}
.cart-link.bump { animation: cartLinkFlash 0.7s ease; }

@keyframes cartBump {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.5) rotate(-14deg); }
  50% { transform: scale(1.15) rotate(10deg); }
  75% { transform: scale(1.3) rotate(-6deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.cart-link.bump .icon { animation: cartBump 0.6s ease; color: var(--primary); }

@keyframes cartBadgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); box-shadow: 0 0 0 6px var(--primary-soft); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
.cart-badge.bump { animation: cartBadgePop 0.6s ease; }

/* Keeps softly repeating every couple seconds after an add, until the customer opens the
   cart or it times out on its own -- a one-off flash is too easy to miss entirely. */
@keyframes cartPulseRing {
  0% { box-shadow: 0 0 0 0 var(--primary-soft); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 165, 0); }
}
.cart-badge.pulsing { animation: cartPulseRing 1.8s ease-out infinite; }

@keyframes cartIconPulse {
  0%, 100% { color: inherit; transform: scale(1); }
  50% { color: var(--primary); transform: scale(1.12); }
}
.cart-link.pulsing .icon { animation: cartIconPulse 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .cart-link.bump, .cart-link.bump .icon, .cart-badge.bump,
  .cart-link.pulsing .icon, .cart-badge.pulsing { animation: none; }
}

.cart-wrap { position: relative; flex-shrink: 0; }

.cart-empty-drop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 20;
}

.cart-wrap-empty:hover .cart-empty-drop,
.cart-wrap-empty:focus-within .cart-empty-drop {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cart-empty-drop-emoji { font-size: 20px; }

.cart-empty-drop::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.cart-badge {
  position: absolute;
  top: 0;
  left: 22px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14.5px;
}

.alert a { font-weight: 600; text-decoration: underline; }
.alert-success { background: var(--primary-soft); color: var(--primary-dark); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }

/* ---------- Cart toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  max-width: calc(100vw - 32px);
  animation: toast-in 0.25s ease-out;
}

.toast.toast-hide { animation: toast-out 0.25s ease-in forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-text { font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.toast-btn { white-space: nowrap; padding: 10px 16px; }

.toast-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text); }

@media (max-width: 480px) {
  .toast { flex-wrap: wrap; justify-content: center; text-align: center; bottom: 16px; padding: 12px 14px; }
  .toast-text { white-space: normal; }
}
@media (max-width: 720px) {
  body.has-order-bar .toast { bottom: 92px; }
}


/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.10), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 24px 0 28px;
  text-align: center;
}

.hero .pill { background: rgba(255, 255, 255, 0.12); color: #e2e8f0; }

.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  margin: 10px auto 8px;
  max-width: 760px;
}

.hero h1 span { color: var(--primary-bright); }

.hero p {
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 16px;
  font-size: 16.5px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 14px;
  font-size: 14.5px;
  color: #e2e8f0;
}

.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--primary-bright); }

/* ---------- Sections ---------- */
.section { padding: 18px 0 4px; }

.section-tint-primary { background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%); }
.section-tint-plain { background: var(--surface); }
.section-tint-sale { background: linear-gradient(180deg, var(--bg) 0%, var(--sale-soft) 55%, var(--bg) 100%); }
.section-tint-warning { background: linear-gradient(180deg, var(--bg) 0%, var(--warning-soft) 55%, var(--bg) 100%); }
.section-tint-danger { background: linear-gradient(180deg, var(--bg) 0%, var(--danger-soft) 55%, var(--bg) 100%); }
.section-tint-navy { background: linear-gradient(180deg, var(--bg) 0%, var(--primary-soft) 100%); }

.section-head { text-align: center; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin: 4px 0 4px; }
.section-head p { color: var(--text-dim); margin: 0 auto; max-width: 560px; }

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.section-head.split h2 { margin-bottom: 0; }

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.section-head .see-all { margin-top: 6px; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.category-card {
  --c: var(--primary);
  --c-soft: var(--primary-soft);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  background: var(--c-soft);
  border: 1.5px solid var(--c);
  border-radius: var(--radius);
  transition: box-shadow 0.15s, transform 0.15s;
}

.category-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.category-card:nth-child(6n+2) { --c: #4338ca; --c-soft: #eef0ff; }
.category-card:nth-child(6n+3) { --c: #b45309; --c-soft: #fdf3e2; }
.category-card:nth-child(6n+4) { --c: #be123c; --c-soft: #fdecef; }
.category-card:nth-child(6n+5) { --c: #0369a1; --c-soft: #e6f3fb; }
.category-card:nth-child(6n+6) { --c: #7e22ce; --c-soft: #f5ebfd; }

.category-initial {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--c);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.category-card strong { display: block; font-size: 13.5px; line-height: 1.3; }
.category-card small { color: var(--text-dim); font-size: 11.5px; }

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.shop-products-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pagination-nav, .pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.pagination-nav:hover, .pagination-num:hover { border-color: var(--primary); color: var(--primary); }
.pagination-num.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination-ellipsis { color: var(--text-dim); padding: 0 4px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.product-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}

.product-cover img { width: 100%; height: 100%; object-fit: cover; }

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-soft), #eef2ff);
}

.sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.demo-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 31, 58, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.product-body h3 a:hover { color: var(--primary); }
.product-body form, .product-body .btn { margin-top: auto; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-row del { color: var(--text-dim); font-size: 14px; }
.price-row strong { color: var(--primary); font-size: 19px; }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 44px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state p { margin: 0 0 16px; }

.empty-state-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 14px;
  animation: emptyStateWobble 2.5s ease-in-out infinite;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

@keyframes emptyStateWobble {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-8deg); }
  20% { transform: rotate(8deg); }
  30% { transform: rotate(-6deg); }
  40% { transform: rotate(6deg); }
  50% { transform: rotate(0deg); }
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.why-card {
  --c: var(--primary);
  --c-soft: var(--primary-soft);
  background: var(--c-soft);
  border-color: var(--c-soft);
  padding: 24px 20px;
  text-align: center;
}

.why-card:nth-child(6n+2) { --c: #4338ca; --c-soft: #eef0ff; }
.why-card:nth-child(6n+3) { --c: #b45309; --c-soft: #fdf3e2; }
.why-card:nth-child(6n+4) { --c: #be123c; --c-soft: #fdecef; }
.why-card:nth-child(6n+5) { --c: #0369a1; --c-soft: #e6f3fb; }
.why-card:nth-child(6n+6) { --c: #7e22ce; --c-soft: #f5ebfd; }

.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.why-card h3 { font-size: 17px; margin: 0 0 6px; }
.why-card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ---------- Shop ---------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.shop-toolbar h1 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.shop-toolbar small { color: var(--text-dim); font-size: 14px; }

.sort-form select {
  width: auto;
  margin-top: 0;
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-dim);
}

.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Product page ---------- */
.breadcrumb {
  display: none;
}

.breadcrumb a:hover { color: var(--primary); }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 28px;
}

.product-gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.08);
}

.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .cover-placeholder { font-size: 96px; }

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.product-thumbs::-webkit-scrollbar { display: none; }

.product-thumbs .thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}
.product-thumbs .thumb:hover { opacity: 1; transform: translateY(-2px); }

.product-thumbs .thumb img,
.product-thumbs .thumb .cover-placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 22px; }
.product-thumbs .thumb.active { border-color: var(--primary); opacity: 1; }

@media (min-width: 901px) {
  /* Keeps the product image in view while the (taller) buy column scrolls past. */
  .product-media { position: sticky; top: 96px; align-self: start; }
}

.mobile-order-bar { display: none; }

.product-summary h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 14px;
}

.price-block { margin-bottom: 16px; }
.price-row.large { align-items: center; gap: 6px 12px; }
.price-row.large strong { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.price-row.large del { font-size: 18px; }

.discount-chip {
  background: var(--sale);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.save-line { margin: 6px 0 0; font-size: 14px; color: var(--text-dim); }
.save-line b { color: var(--sale); }

.offer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(217, 72, 15, 0.28);
  background: linear-gradient(100deg, #fff4ec, #fffaf5);
  border-radius: 12px;
  margin-bottom: 16px;
}

.offer-banner-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sale);
  font-weight: 700;
  font-size: 14.5px;
}

.offer-bolt {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sale);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: bolt-pulse 1.6s ease-in-out infinite;
}

@keyframes bolt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 72, 15, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(217, 72, 15, 0); }
}

.offer-countdown-compact { display: flex; align-items: center; gap: 4px; }

.offer-countdown-compact .cd-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.offer-countdown-compact .cd-pill b { font-size: 16px; font-weight: 700; }
.offer-countdown-compact .cd-pill small { font-size: 11px; font-weight: 600; color: #cbd5e1; }
.offer-countdown-compact .cd-sep { color: var(--sale); font-weight: 700; }

.short-desc {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

.save-badge {
  background: var(--sale-soft);
  color: var(--sale);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.buy-actions form { display: contents; }
.buy-actions .btn { border-radius: 12px; }
.buy-actions .buy-now { flex: 1 1 100%; padding: 15px 26px; font-size: 17.5px; box-shadow: 0 10px 22px rgba(10, 125, 99, 0.28); }
.buy-actions > .btn, .buy-actions form .btn:not(.buy-now) { flex: 1 1 0; min-width: 0; padding: 12px 10px; }

/* A slow light sweep across the main buy buttons to draw the eye. */
.buy-now, .mob-bar-buy .btn { position: relative; overflow: hidden; }
.buy-now::after, .mob-bar-buy .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}

.trust-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.trust-cell + .trust-cell { border-left: 1px solid var(--border); }

.trust-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-cell.hot .trust-ic { background: var(--sale-soft); color: var(--sale); }

.meta-list {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
  background: var(--surface-2);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-dim);
  display: grid;
  gap: 8px;
}
.meta-list li { display: flex; align-items: flex-start; gap: 9px; }
.meta-list li .icon { color: var(--primary); margin-top: 4px; }
.meta-list strong { color: var(--text); font-weight: 600; }

.product-details { margin-top: 24px; padding: 28px 32px; }
.product-details .rich-text { max-width: 860px; }

@media (prefers-reduced-motion: reduce) {
  .offer-bolt, .buy-now::after, .mob-bar-buy .btn::after { animation: none; }
  .buy-now::after, .mob-bar-buy .btn::after { display: none; }
}

.tab-title {
  display: inline-block;
  font-size: 18px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
}

.rich-text { line-height: 1.85; }
.rich-text p { margin: 0 0 12px; }
.rich-text h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.rich-text ul { margin: 0 0 14px; padding-left: 22px; }
.rich-text li { margin: 4px 0; }
.rich-text li::marker { color: var(--primary); }

/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-items { padding: 6px 20px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-thumb, .summary-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}

.cart-thumb img, .summary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .cover-placeholder, .summary-thumb .cover-placeholder { font-size: 24px; }

.cart-info { flex: 1; min-width: 0; }
.cart-info a { font-weight: 600; display: block; margin-bottom: 4px; }
.cart-info a:hover { color: var(--primary); }
.cart-info .price-row strong { font-size: 16px; }

.order-summary { padding: 22px; position: sticky; top: 130px; }
.order-summary h2 { font-size: 18px; margin: 0 0 16px; }

.summary-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14.5px; }
.summary-item .summary-thumb { width: 48px; height: 48px; }
.summary-item .summary-title { flex: 1; min-width: 0; }

.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-dim); }
.summary-row.total { border-top: 1px solid var(--border); margin: 8px 0 18px; padding-top: 14px; color: var(--text); font-size: 18px; }
.summary-row.total strong { color: var(--primary); }
.summary-row.coupon-applied-row { color: var(--primary); font-weight: 600; font-size: 14px; }

.coupon-form { display: flex; gap: 8px; margin: 4px 0 10px; }
.coupon-form input { margin: 0; padding: 9px 12px; font-size: 14px; }
.coupon-form .btn { flex-shrink: 0; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 12px 0 0;
  text-align: center;
}

.checkout-form { padding: 24px; }
.checkout-form h2 { font-size: 18px; margin: 0 0 6px; }
.checkout-form h2 + .form-help { margin-bottom: 18px; }
.form-help a { text-decoration: underline; color: var(--primary); }

.payment-method-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s, background 0.15s;
}

.payment-method-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.payment-method-option input { margin: 0; flex-shrink: 0; width: 18px; height: 18px; }
.payment-method-option span { display: flex; flex-direction: column; gap: 2px; }
.payment-method-option strong { color: var(--text); font-size: 14.5px; }
.payment-method-option small { color: var(--text-dim); font-size: 12.5px; }

.manual-payment-panel, .auto-payment-panel {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.manual-steps {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.manual-steps li { margin-bottom: 3px; }
.manual-steps strong { color: var(--text); }

.manual-number-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.manual-number-box span { font-size: 13px; color: var(--text-dim); flex-shrink: 0; }
.manual-number-box strong { font-size: 17px; color: var(--primary-dark); letter-spacing: 0.5px; flex: 1; }

.btn-copy-number {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- Forms ---------- */
form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], input[type="datetime-local"], input[type="file"],
textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.header-search input { width: auto; margin: 0; padding: 5px 0 5px 10px; border: none; border-radius: 0; background: transparent; }
.header-search input:focus { outline: none; }

input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }

textarea { resize: vertical; line-height: 1.6; }

.form-help { display: block; font-size: 13px; color: var(--text-dim); margin: 6px 0 0; font-weight: 400; }

.checkbox-label { display: flex; align-items: center; gap: 10px; color: var(--text); }
.checkbox-label input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.form-section { padding: 22px; margin-bottom: 20px; }
.form-section h2 { font-size: 17px; margin: 0 0 16px; }

/* ---------- Payment gateway cards ---------- */
.gateway-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--surface);
}
.gateway-card.gateway-live { border-color: var(--primary); }
.gateway-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
}
.gateway-card-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.gateway-card-toggle > .icon:first-child { color: var(--text-dim); flex-shrink: 0; transition: transform 0.15s; }
.gateway-card-toggle.open > .icon:first-child { transform: rotate(180deg); }
.gateway-card-title { display: flex; align-items: center; gap: 10px; color: var(--text); }
.gateway-card-title .icon { color: var(--text-dim); }
.gateway-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--warning-soft);
  color: var(--warning);
}
.gateway-badge-live { background: var(--primary-soft); color: var(--primary); }
.gateway-card-body { padding: 16px; }
.gateway-card-body > *:last-child { margin-bottom: 0; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.switch-track::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
}
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::before { transform: translateX(18px); }

.current-cover { display: block; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; margin-top: 8px; background: var(--surface-2); }
.current-cover img { width: 100%; height: 100%; object-fit: cover; }

.field-group { display: block; margin-bottom: 16px; }
.field-group-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }

.permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.permission-editor summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 13.5px; }
.permission-editor .permission-grid { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.permission-editor .btn { margin-top: 10px; }

.remove-check { margin-top: 8px; font-size: 13.5px; color: var(--danger); }
.remove-check input { accent-color: var(--danger); }

.or-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.coupon-product-select {
  width: 100%;
  min-height: 160px;
  padding: 6px;
  font-size: 13.5px;
}
.coupon-product-select option { padding: 6px 8px; border-radius: 6px; }
.coupon-product-select option:checked { background: var(--primary-soft); color: var(--primary-dark); }

.gallery-manage { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.gallery-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 84px;
  font-weight: 400;
}
.gallery-thumb img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.gallery-thumb-remove {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--danger);
}
.gallery-thumb-remove input { width: 14px; height: 14px; margin: 0; accent-color: var(--danger); }

/* ---------- Static pages ---------- */
.page-narrow { max-width: 820px; }
.page-content { padding: 32px; }
.page-content h1 { margin-top: 0; }

.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; }

/* ---------- Payment result ---------- */
.payment-result { text-align: center; max-width: 600px; margin: 40px auto; padding: 36px 24px; }
.payment-result h1 { margin-top: 0; }
.download-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.thank-you-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}
.thank-you-icon-pending { background: var(--warning-soft); color: var(--warning); }
.thank-you-sub { color: var(--text-dim); margin-top: -8px; }
.thank-you-continue { margin-top: 8px; }

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}
.download-item .download-title { flex: 1; min-width: 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b6c2d6;
  margin-top: 64px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 16px 36px;
}

.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { line-height: 1.75; margin: 0; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 4px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; }

.footer-accordion summary { cursor: default; list-style: none; }
.footer-accordion summary::-webkit-details-marker,
.footer-accordion summary::marker { display: none; content: ''; }
.footer-accordion summary h4 { display: inline-flex; }

/* Footer category links: plain, same as other footer links; nudge right on hover. */
.footer-cat-list li a {
  position: relative;
  padding-left: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}
.footer-cat-list li a:hover { transform: translateX(5px); filter: brightness(1.25); }

.socials { display: flex; gap: 10px; margin-top: 18px; }

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.socials a:hover { background: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; font-size: 13px; }

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.4);
  z-index: 60;
  transition: transform 0.15s;
}

.whatsapp-float:hover { transform: scale(1.06); }

/* "just purchased" popup: bounces in bottom-left on desktop, drops from the top like a
   phone notification on mobile (swipe up/sideways to dismiss). */
.fake-purchase-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 65;
  width: 340px;
  max-width: calc(100vw - 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 14px 40px 17px 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-40px) scale(0.94);
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-select: none;
}
.fake-purchase-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
}
.fake-purchase-toast.show { opacity: 1; transform: none; }
.fake-purchase-toast.leaving {
  opacity: 0;
  transform: translateX(-40px) scale(0.94);
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.fake-purchase-toast.dragging { transition: none; }

.fake-purchase-main { display: flex; align-items: center; gap: 13px; }

.fake-purchase-thumb { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.fake-purchase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}
.fake-purchase-check {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fake-purchase-toast.show .fake-purchase-thumb { animation: fp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }
.fake-purchase-toast.show .fake-purchase-check { animation: fp-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both; }

@keyframes fp-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

.fake-purchase-body { min-width: 0; flex: 1; }
.fake-purchase-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.fake-purchase-name b { color: var(--text); font-weight: 700; }
.fake-purchase-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.fake-purchase-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: fp-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes fp-ping {
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.fake-purchase-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin: 3px 0 7px;
}
.fake-purchase-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 4px 11px;
  border-radius: 999px;
  transition: gap 0.15s, background 0.15s;
}
.fake-purchase-view:hover { gap: 8px; background: #cdeee3; }

.fake-purchase-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fake-purchase-close:hover { background: var(--surface-2); color: var(--text); }

.fake-purchase-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--primary-soft); }
.fake-purchase-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  transform-origin: left;
  animation: fp-progress linear forwards;
}
.fake-purchase-toast.paused .fake-purchase-progress span { animation-play-state: paused; }

@keyframes fp-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.fake-purchase-grabber { display: none; }

@media (max-width: 720px) {
  .fake-purchase-toast {
    left: 10px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top));
    bottom: auto;
    width: auto;
    max-width: none;
    border-radius: 22px;
    padding: 12px 38px 22px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    transform: translateY(-140%) scale(0.95);
    touch-action: none;
  }
  .fake-purchase-toast::before { display: none; }
  .fake-purchase-toast.show { transform: none; }
  .fake-purchase-toast.leaving { transform: translateY(-140%) scale(0.95); }
  .fake-purchase-thumb { width: 48px; height: 48px; }
  .fake-purchase-thumb img { border-radius: 11px; }
  .fake-purchase-grabber {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 2px;
    background: rgba(15, 23, 42, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fake-purchase-toast,
  .fake-purchase-toast.leaving { transition: opacity 0.2s ease; transform: none; }
  .fake-purchase-toast.show .fake-purchase-thumb,
  .fake-purchase-toast.show .fake-purchase-check,
  .fake-purchase-live::after { animation: none; }
}

/* ---------- Responsive ---------- */
.hide-sm { display: inline; }

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .header-main { flex-wrap: wrap; gap: 10px 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-wrap { margin-left: auto; }
  .cart-link .cart-text { display: none; }
  .order-summary, .cart-items, .checkout-form { border-radius: 12px; }
  .product-details { padding: 20px 18px; }
  .shop-products-panel { padding: 12px; }

  .product-hero { padding: 12px; gap: 18px; border-radius: 18px; }
  .product-gallery { border-radius: 12px; }
  .product-thumbs { gap: 8px; margin-top: 10px; }
  .product-thumbs .thumb { width: 56px; height: 56px; border-radius: 9px; }

  /* When there's a gallery, the rail moves beside the image (vertical, fading scroll,
     tinted glass background) instead of the old horizontal strip below it.
     No thumbs = untouched single column. */
  .product-media:has(.product-thumbs) { position: relative; }
  .product-media:has(.product-thumbs) .product-gallery { margin-right: 66px; }
  .product-media:has(.product-thumbs) .product-thumbs {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58px;
    flex-direction: column;
    margin-top: 0;
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(195deg, rgba(34, 211, 165, 0.16), rgba(255, 176, 32, 0.14));
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .product-media:has(.product-thumbs) .product-thumbs .thumb {
    position: relative;
    width: 100%;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    scroll-snap-align: start;
    transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.2s, opacity 0.2s;
  }
  .product-media:has(.product-thumbs) .product-thumbs .thumb.active {
    opacity: 1;
    border: 2px solid transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(135deg, var(--primary), #ffb020) border-box;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.32);
  }
  .product-media:has(.product-thumbs) .product-thumbs .thumb.active::after {
    content: '✓';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.35);
  }
  @media (prefers-reduced-motion: reduce) {
    .product-media:has(.product-thumbs) .product-thumbs .thumb { transition: none; }
    .product-media:has(.product-thumbs) .product-thumbs .thumb.active { transform: none; }
  }
  .product-summary { padding: 0 4px; }
  .product-summary h1 { font-size: 1.22rem; margin-bottom: 10px; }
  .price-row.large strong { font-size: 30px; }
  .price-row.large del { font-size: 16px; }
  .discount-chip { font-size: 12px; padding: 3px 9px; }
  .save-line { font-size: 13px; margin-top: 4px; }
  .offer-banner { flex-wrap: nowrap; padding: 8px 8px 8px 10px; gap: 8px; }
  .offer-banner-text { font-size: 13px; gap: 6px; min-width: 0; white-space: nowrap; }
  .offer-bolt { width: 22px; height: 22px; }
  .offer-countdown-compact { gap: 3px; flex-shrink: 0; }
  .offer-countdown-compact .cd-pill { padding: 5px 6px; border-radius: 7px; }
  .offer-countdown-compact .cd-pill b { font-size: 14px; }
  .offer-countdown-compact .cd-pill small { font-size: 10px; }
  .short-desc { font-size: 14px; line-height: 1.75; padding: 12px 13px; }
  .buy-actions .buy-now { padding: 14px 18px; font-size: 16.5px; }
  .buy-actions > .btn, .buy-actions form .btn:not(.buy-now) { font-size: 14.5px; padding: 11px 8px; gap: 6px; }

  /* Trust badges: one compact row of four instead of two big rows. */
  .trust-cell { padding: 8px 2px; gap: 4px; font-size: 10.5px; }
  .trust-ic { width: 26px; height: 26px; }
  .trust-ic .icon { width: 14px; height: 14px; }
  .meta-list { font-size: 13.5px; padding: 11px 13px; }

  body.has-order-bar { padding-bottom: 80px; }
  body.has-order-bar .whatsapp-float { bottom: 92px; }
  .mobile-order-bar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  }
  .mobile-order-bar .add-to-cart-form { display: flex; }
  .mob-bar-icon {
    width: 58px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
  }
  .mob-bar-icon .icon { color: var(--primary); }
  .mob-bar-icon:active { transform: scale(0.94); }
  .mob-bar-icon.is-in-cart { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }
  .checkout-submit-desktop { display: none; }
  .mob-bar-buy { flex: 1; min-width: 0; display: flex; }
  .mob-bar-buy .btn {
    width: 100%;
    gap: 7px;
    padding: 10px 10px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(10, 125, 99, 0.3);
  }
  .mob-bar-price {
    margin-left: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 14px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 14px; position: relative; z-index: 50; }
  .admin-sidebar .logo { margin: 0; }
  .admin-nav-toggle { display: inline-flex; }
  .admin-sidebar nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 10px 14px 16px;
    background: var(--navy);
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 14px 14px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .admin-sidebar nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .admin-main { padding: 20px 16px; }
  .page-content { padding: 22px 18px; }
  .date-filter { display: block; }
  .date-filter-btn { width: 100%; justify-content: space-between; }
  .date-filter-menu { min-width: 100%; }

  /* Dashboard stat cards: 2 tidy columns instead of a squeezed auto-fit row. */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-grid .stat-card:nth-child(5):last-child { grid-column: span 2; }
  .stat-card {
    padding: 16px 10px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }
  .stat-card span { font-size: 21px; }
  .stat-card-accent .stat-icon { padding: 7px; border-radius: 10px; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 10px; gap: 8px; }
  .product-body h3 { font-size: 14px; }
  .price-row strong { font-size: 16px; }
  .price-row del { font-size: 12.5px; }
  .product-card .btn-sm { padding: 8px 6px; font-size: 13px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .category-card { padding: 9px; gap: 7px; }
  .category-initial, .category-icon-img { width: 30px; height: 30px; font-size: 14px; }
  .category-card strong { font-size: 12px; }
  .category-card small { font-size: 10.5px; }
  .hero { padding: 18px 0 20px; }
  .hero h1 { margin: 8px auto 6px; }
  .hero p { margin: 0 auto 12px; }
  .hero-points { margin-top: 10px; gap: 8px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding: 32px 16px 24px; }
  .footer-grid > :first-child { padding-bottom: 22px; }
  .header-search-category { max-width: 122px; font-size: 12.5px; padding-left: 12px; }

  /* Categories/links/contact become a tap-to-collapse accordion instead of one long stack. */
  .footer-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
  }
  .footer-accordion summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-accordion summary h4 { margin: 0; }
  .footer-accordion summary::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid #7c8aa3;
    border-bottom: 2px solid #7c8aa3;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .footer-accordion[open] summary::after { transform: rotate(-135deg); }
  .footer-accordion ul { margin-top: 14px; }
}

@media (max-width: 360px) {
  .mob-bar-icon { width: 50px; font-size: 10px; }
  .mob-bar-buy .btn { font-size: 15px; gap: 5px; }
  .mob-bar-buy .btn > .icon { display: none; }
  .offer-banner-text { font-size: 12px; }
  .offer-bolt { display: none; }
}

/* ========== শপ (ফিজিকাল প্রোডাক্ট) সংযোজন ========== */
.hero-cta { margin-top: 20px; }
.hero-cta .btn { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

.header-links { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; color: var(--text-dim); flex-shrink: 0; }
.header-links a { display: inline-flex; align-items: center; gap: 6px; }
.header-links a:hover, .header-links .btn-plain:hover { color: var(--primary); }
.header-links form { margin: 0; display: inline; }
.btn-plain { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }

.unit { display: block; color: var(--text-dim); font-size: 12.5px; margin: -6px 0 0; }
.cart-info .unit { margin: 0 0 4px; }
.unit-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.stock-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stock-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.stock-tag.in { background: var(--primary-soft); color: var(--primary-dark); }
.stock-tag.low { background: var(--warning-soft); color: var(--warning); }
.stock-tag.out { background: var(--danger-soft); color: var(--danger); }
.stock-chip { position: absolute; bottom: 10px; left: 10px; background: rgba(11, 31, 58, 0.85); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.stock-chip.out { background: rgba(200, 30, 30, 0.9); }

.qty-box { flex: 1 1 100%; display: flex !important; align-items: center; gap: 12px; margin: 0 !important; font-weight: 600; color: var(--text) !important; }
.qty-box input { width: 96px; margin: 0; }

.cart-item input.cart-qty { width: 72px; flex: 0 0 72px; margin: 0; padding: 8px 10px; text-align: center; }
.cart-item .cart-info { min-width: 140px; }
.cart-line { min-width: 84px; text-align: right; flex-shrink: 0; }
.cart-update { padding: 14px 0 8px; border-top: 1px solid var(--border); }
.muted-note { color: var(--text-dim); font-size: 13px; }
.free-ship-note { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-size: 13.5px; }

.pad { padding: 24px; }
.narrow-form { max-width: 460px; margin: 0 auto; }
.center-box { max-width: 560px; margin: 0 auto; text-align: center; }
.center-box .receipt { text-align: left; margin-top: 18px; }
.muted { color: var(--text-dim); }
.tracking-code { font-size: 1.9rem; font-weight: 700; letter-spacing: 2px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 12px; padding: 8px; margin: 6px 0 14px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text); }
.s-pending, .p-pending_verification { background: #fff3cd; color: #8a6d00; }
.s-confirmed { background: #dbeafe; color: #1e4fa3; }
.s-shipped { background: #e0e7ff; color: #3730a3; }
.s-delivered, .p-paid { background: var(--primary-soft); color: var(--primary-dark); }
.s-cancelled, .p-failed { background: var(--danger-soft); color: var(--danger); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th { background: var(--surface-2); font-size: 13px; color: var(--text-dim); }
.data-table tr:last-child td { border-bottom: none; }

.timeline { list-style: none; margin: 16px 0 4px; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

@media (max-width: 720px) {
  .header-links { gap: 12px; }
  .cart-item { flex-wrap: wrap; }
  .cart-line { min-width: 0; }
}

/* ========== প্রোডাক্ট পেজ (গ্যালারি, বাটন, রিভিউ), নেভ বার, ভাসমান কার্ট ========== */
.cat-nav { background: var(--navy); }
.cat-nav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-in::-webkit-scrollbar { display: none; }
.cat-nav a { color: #e2e8f0; padding: 11px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cat-nav a.on { color: #fff; border-bottom-color: var(--primary); }

.float-cart { position: fixed; right: 0; top: 46%; z-index: 60; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 12px 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22); }
.float-cart strong { font-size: 13.5px; background: #fff; color: var(--primary-dark); border-radius: 6px; padding: 1px 8px; margin-top: 2px; }
.float-cart:hover { filter: brightness(1.05); }
@media (max-width: 720px) { .float-cart { top: auto; bottom: 90px; border-radius: 12px 0 0 12px; padding: 8px 10px; } }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); padding: 14px 0 12px; }
.breadcrumb a:hover { color: var(--primary); }

.tag-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; z-index: 2; }

/* গ্যালারি */
.gal { display: flex; gap: 12px; }
.gal-thumbs { display: flex; flex-direction: column; gap: 10px; width: 74px; flex-shrink: 0; max-height: 460px; overflow-y: auto; scrollbar-width: none; }
.gal-thumb { padding: 0; width: 74px; height: 74px; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; opacity: .8; flex-shrink: 0; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { border-color: var(--primary); opacity: 1; }
.gal-main { position: relative; flex: 1; min-width: 0; aspect-ratio: 1 / 1; border: 1px solid var(--border); border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gal-main > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gal-main .cover-placeholder { font-size: 96px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .92); font-size: 24px; line-height: 1; cursor: pointer; color: var(--text); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 720px) { .gal { flex-direction: column-reverse; } .gal-thumbs { flex-direction: row; width: auto; max-height: none; overflow-x: auto; } }

/* কেনার অংশ */
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 10px; font-size: 14px; color: var(--text-dim); }
.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d5d9e0; }
.stars.lg { font-size: 22px; }
.pd .price-row.large strong { color: var(--primary); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 40px; height: 42px; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; color: var(--text); }
.qty-stepper button:hover { background: var(--primary); color: #fff; }
.qty-stepper input { width: 60px; height: 42px; margin: 0; padding: 0; text-align: center; border: 0; border-radius: 0; font-weight: 600; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.buy-grid .btn { border-radius: 8px; padding: 13px 10px; font-size: 14.5px; text-transform: none; }
.btn-orange { background: var(--primary); color: #fff; } .btn-orange:hover { background: var(--primary-dark); }
.btn-dark { background: var(--navy); color: #fff; } .btn-dark:hover { background: var(--navy-2); }
.btn-wa { background: #16a34a; color: #fff; } .btn-wa:hover { background: #15803d; }
.btn-call { background: #1e3a8a; color: #fff; } .btn-call:hover { background: #1e40af; }
.brand-box { display: inline-block; border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; margin-bottom: 16px; font-size: 14px; }

/* ট্যাব ও বিবরণ */
.pd-tabs { display: flex; gap: 10px; margin: 22px 0 16px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pd-tabs a { padding: 9px 20px; border-radius: 8px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--text-dim); }
.pd-tabs a.on { background: var(--navy); color: #fff; }
.pd-tabs a:hover { color: var(--primary); } .pd-tabs a.on:hover { color: #fff; }
html { scroll-behavior: smooth; }
#details, #reviews { scroll-margin-top: 90px; }

/* রিভিউ */
.review-box { margin-top: 20px; padding: 26px 28px; }
.review-top { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr; gap: 28px; align-items: start; }
.review-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avg-num { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.rating-bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; color: var(--text-dim); }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #f5a623; }
.review-form h3 { margin: 0 0 12px; font-size: 18px; border-bottom: 3px solid var(--primary); display: inline-block; padding-bottom: 4px; }
.review-form label { margin-bottom: 12px; }
.review-form textarea { min-height: 84px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.review-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--border); }
.review-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-list li:last-child { border-bottom: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-list p { margin: 6px 0 0; color: var(--text); }
@media (max-width: 900px) { .review-top { grid-template-columns: 1fr; } .review-box { padding: 18px; } }

/* ========== উইশলিস্ট, ড্রপডাউন নেভ, ফুটার লোগো, রিভিউর ছবি ========== */
.product-card { position: relative; }
.product-card .sale-badge { top: 50px; }
.wish-form { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.wish-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .95); color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wish-btn:hover { color: #e11d48; border-color: #e11d48; }
.wish-btn.on { color: #e11d48; background: #fff1f2; border-color: #fda4af; }
.wish-btn.on .icon { fill: #e11d48; }
.wl-link { position: relative; }
.wl-count { background: #e11d48; color: #fff; border-radius: 99px; min-width: 18px; height: 18px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; margin-left: -4px; }
.pd-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.pd-extra .brand-box { margin: 0; }
.pd-extra form { margin: 0; }
.wish-line { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.wish-line:hover { border-color: #e11d48; color: #e11d48; }
.wish-line.on { color: #e11d48; border-color: #fda4af; background: #fff1f2; }
.wish-line.on .icon { fill: #e11d48; }

/* নেভ বারের ড্রপডাউন (সাব-ক্যাটেগরি) */
.cat-nav-in { overflow: visible; flex-wrap: wrap; }
.cat-nav .dd { position: relative; }
.cat-nav .dd > a .caret { font-size: 11px; opacity: .8; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(15, 23, 42, .16); z-index: 70; padding: 6px 0; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; color: var(--text) !important; padding: 9px 16px; font-size: 14px; border: 0 !important; }
.dd-menu a:hover { background: var(--primary-soft); color: var(--primary-dark) !important; }
@media (max-width: 720px) {
  .cat-nav-in { flex-wrap: nowrap; overflow-x: auto; }
  .dd-menu { display: none !important; }   /* মোবাইলে সাব-ক্যাটেগরি শপ পেজের চিপ থেকে */
}
.chip-sub { margin-top: -10px; padding-left: 12px; border-left: 3px solid var(--primary); }

/* ফুটারের পেমেন্ট লোগো ও অ্যাপ ব্যাজ */
.pay-logos { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-title { font-weight: 600; margin-right: 4px; }
.pay-logos img { height: 26px; width: auto; max-width: 70px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px 4px; }
.pay-pill, .app-pill { display: inline-block; background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 3px 10px; font-size: 12.5px; }
.app-badges { margin-top: 18px; }
.app-badges strong { display: block; margin-bottom: 8px; font-size: 14px; }
.app-badges div { display: flex; flex-wrap: wrap; gap: 8px; }
.app-badges img { height: 40px; width: auto; border-radius: 6px; }

/* রিভিউর ছবি */
.upload-box { border: 1px dashed var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.upload-box input[type=file] { margin-top: 8px; background: #fff; }
.review-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-imgs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.review-imgs a:hover img { border-color: var(--primary); }

/* ========== ব্যানার (হোম) — না থাকলে সেকশন আঁকাই হয় না ========== */
.bn-top { padding: 16px 0 4px; }
.bn-slider { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.bn-track { display: flex; transition: transform .5s ease; }
.bn-slide { flex: 0 0 100%; position: relative; display: block; }
.bn-slide img, .bn-promo img { display: block; width: 100%; height: auto; }
.has-cap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 65%); pointer-events: none; }
.bn-cap { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 55%; color: #fff; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.bn-cap strong { font-size: clamp(1.1rem, 3.2vw, 2.4rem); line-height: 1.25; }
.bn-cap span { font-size: clamp(.85rem, 1.6vw, 1.15rem); }
.bn-cap em { font-style: normal; background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; text-shadow: none; }
.bn-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.bn-nav:hover { background: var(--primary); color: #fff; }
.bn-prev { left: 12px; } .bn-next { right: 12px; }
.bn-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.bn-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .6); cursor: pointer; }
.bn-dot.on { background: var(--primary); width: 26px; border-radius: 99px; }
.bn-mid { padding: 18px 0 4px; }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.bn-promo { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.bn-promo .bn-cap { max-width: 70%; }
.bn-promo .bn-cap strong { font-size: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 720px) {
  .bn-nav { width: 32px; height: 32px; font-size: 20px; }
  .bn-cap { max-width: 80%; left: 4%; }
  .bn-cap em { padding: 6px 14px; font-size: 13px; }
}

/* কার্ট: +/− পরিমাণ ও সাথে সাথে আপডেট */
.cart-item .qty-stepper button { width: 34px; height: 36px; font-size: 18px; }
.cart-item .qty-stepper input { width: 46px; height: 36px; }
.cart-item.busy { opacity: .55; transition: opacity .15s; }
.cart-item.busy .qty-stepper { pointer-events: none; }

/* ========== GhorerBazar-ধাঁচের হোম: স্লাইডার, ক্যাটেগরি, ব্র্যান্ড, মতামত ========== */
[hidden] { display: none !important; }
.no-scroll { overflow: hidden; }

/* হিরো: স্লাইডার + সাইড ব্যানার */
.bn-hero.has-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.bn-side .bn-promo { height: 100%; }
.bn-side .bn-promo img { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .bn-hero.has-side { display: block; } .bn-side { display: none; } }

/* সাধারণ অনুভূমিক স্লাইডার */
.car { position: relative; }
.car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 10px; }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 calc(20% - 13px); min-width: 0; scroll-snap-align: start; display: flex; }
.car-item > .product-card { width: 100%; }
@media (max-width: 1100px) { .car-item { flex-basis: calc(25% - 12px); } }
@media (max-width: 800px) { .car-item { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 560px) { .car-item { flex-basis: calc(50% - 8px); } .car-track { gap: 12px; } }
.car-btn { position: absolute; top: 42%; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 23, 42, .16); }
.car-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
@media (max-width: 720px) { .car-btn { display: none !important; } }

/* ফিচার্ড ক্যাটেগরি */
.cat-track { gap: 18px; }
.cat-tile { flex: 0 0 112px; text-align: center; scroll-snap-align: start; color: var(--text); }
.cat-img { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid var(--border); background: #fff; overflow: hidden; display: grid; place-items: center; transition: border-color .15s, transform .15s; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .cat-img { border-color: var(--primary); transform: translateY(-3px); }
.cat-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
@media (max-width: 560px) { .cat-tile { flex-basis: 88px; } .cat-img { width: 76px; height: 76px; } }

/* ব্র্যান্ড লোগো */
.brand-track { gap: 14px; align-items: stretch; }
.brand-tile { flex: 0 0 156px; height: 84px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 12px; scroll-snap-align: start; font-weight: 700; color: var(--text-dim); text-align: center; transition: box-shadow .15s, border-color .15s; }
.brand-tile img { max-width: 100%; max-height: 58px; object-fit: contain; }
.brand-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }

/* গ্রাহকদের মতামত */
.tm-track { gap: 16px; }
.tm-card { flex: 0 0 min(380px, 88%); margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.tm-card blockquote { margin: 0; color: var(--text); line-height: 1.75; font-size: 15px; flex: 1; }
.tm-card figcaption { display: flex; align-items: center; gap: 12px; }
.tm-card figcaption img, .tm-initial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tm-initial { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 18px; }
.tm-card figcaption strong { display: block; }
.tm-card figcaption small { color: var(--text-dim); }

/* প্রোডাক্ট কার্ড: Add To Cart → +/−, কাউন্টডাউন */
.tag-badge { display: inline-flex; align-items: center; gap: 4px; }
.pc-actions { display: grid; gap: 8px; margin-top: auto; }
.pc-actions form { margin: 0; }
.pc-stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--primary); border-radius: 10px; overflow: hidden; background: #fff; }
.pc-stepper button { width: 42px; height: 36px; border: 0; background: var(--primary-soft); color: var(--primary-dark); font-size: 20px; cursor: pointer; }
.pc-stepper button:hover { background: var(--primary); color: #fff; }
.pc-stepper span { flex: 1; text-align: center; font-weight: 700; }
.pc-timer { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sale); font-weight: 600; }
.pc-timer span.ended { color: var(--text-dim); }
@media (max-width: 720px) { .pc-buy { display: none; } }

/* হেডার: আরও মেনু, অফার জোন লিংক */
.more { position: relative; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.more:hover .more-btn, .more.open .more-btn { color: var(--primary); }
.more-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px rgba(15, 23, 42, .16); padding: 6px 0; z-index: 80; }
.more:hover .more-menu, .more.open .more-menu { display: block; }
.more-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--text); font-weight: 500; }
.more-menu a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.cat-nav a.nav-offer { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; border-radius: 6px; margin: 6px 8px 6px 0; padding: 5px 14px; border-bottom: 0; }
.cat-nav a.nav-offer:hover { filter: brightness(1.08); }

/* ফুটার: কলাম সংখ্যা যত, তত */
.footer-grid { grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); }
.f-line { display: flex; gap: 8px; align-items: flex-start; color: #cbd5e1; font-size: 14px; }

/* মিনি-কার্ট, মোবাইল মেনু ও সার্চ */
.drawer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 190; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(400px, 92vw); background: #fff; z-index: 200; display: flex; flex-direction: column; transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
.drawer-right { right: 0; transform: translateX(105%); }
.drawer-left { left: 0; transform: translateX(-105%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 17px; }
.drawer-head button { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--text-dim); }
.drawer-body { flex: 1; overflow-y: auto; }
.mc-list { list-style: none; margin: 0; padding: 8px 16px; }
.mc-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); position: relative; }
.mc-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-thumb .cover-placeholder { font-size: 22px; }
.mc-info { flex: 1; min-width: 0; padding-right: 22px; }
.mc-info > a { font-weight: 600; font-size: 14.5px; display: block; line-height: 1.4; }
.mc-info small { color: var(--text-dim); }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.mc-stepper { width: 104px; }
.mc-stepper button { width: 32px; height: 30px; font-size: 17px; }
.mc-del { position: absolute; top: 8px; right: 0; border: 0; background: none; font-size: 22px; color: var(--text-dim); cursor: pointer; }
.mc-del:hover { color: var(--danger); }
.mc-foot { padding: 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; position: sticky; bottom: 0; background: #fff; }
.mc-sub { display: flex; justify-content: space-between; font-size: 17px; }
.mc-sub strong { color: var(--primary); }
.mc-note { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.mc-empty { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.mc-emoji { font-size: 56px; }
.mm-top { display: grid; padding: 6px 0; }
.mm-top a, .mm-cats a, .mm-cats summary { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--text); font-weight: 500; cursor: pointer; }
.mm-top a:hover, .mm-cats a:hover, .mm-cats summary:hover { background: var(--primary-soft); }
.mm-offer { color: var(--primary-dark) !important; font-weight: 700 !important; }
.mm h4 { margin: 10px 18px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.mm-cats { list-style: none; margin: 0; padding: 0; }
.mm-cats details a { padding-left: 38px; font-size: 14px; }
.mm-cats summary { list-style: none; justify-content: space-between; }
.mm-cats summary::after { content: "▾"; color: var(--text-dim); }
.search-overlay { position: fixed; top: 0; left: 0; right: 0; z-index: 210; background: #fff; padding: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); transform: translateY(-110%); transition: transform .2s ease; }
.search-overlay.open { transform: none; }
.search-overlay form { display: flex; gap: 8px; max-width: 700px; margin: 0 auto; }
.search-overlay input { margin: 0; flex: 1; }
.toast-box { position: fixed; left: 16px; bottom: 24px; z-index: 300; display: grid; gap: 8px; }
.toast-msg { background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); transition: opacity .3s; }
.toast-msg a { color: var(--primary-bright); font-weight: 600; text-decoration: underline; margin-left: 6px; }
.toast-msg.out { opacity: 0; }

/* মোবাইলের নিচের নেভিগেশন বার */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px 7px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-dim); background: none; border: 0; cursor: pointer; position: relative; }
  .bottom-nav a.on, .bottom-nav a:hover, .bottom-nav button:hover { color: var(--primary); }
  .bn-cart .cart-badge { position: absolute; top: 3px; left: calc(50% + 6px); }
  body.has-bottom-nav { padding-bottom: 62px; }
  body.has-bottom-nav:has(.mobile-order-bar) .bottom-nav { display: none; }
  body.has-bottom-nav:has(.mobile-order-bar) { padding-bottom: 0; }
  body.has-bottom-nav .whatsapp-float { bottom: 76px; }
  body.has-bottom-nav .float-cart { top: 52%; bottom: auto; }
  .toast-box { bottom: 76px; }
}

/* ========== মোবাইল: কম্প্যাক্ট ও গোছানো লেআউট ========== */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .container { padding-left: 12px; padding-right: 12px; }
  .page { padding: 16px 12px 40px; }

  /* হেডার: প্রথম সারিতে লোগো + আইকন, দ্বিতীয় সারিতে সার্চ */
  .topbar { font-size: 12px; padding: 5px 0; }
  .header-main { padding: 8px 12px; gap: 8px 10px; }
  .logo { font-size: 17px; gap: 7px; margin-right: auto; min-width: 0; }
  .logo-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; }
  .logo img { max-height: 34px; max-width: 130px; }
  .header-links { gap: 4px; }
  .header-links a, .header-links .btn-plain { padding: 6px; }
  .cart-link { padding: 6px; }
  .cart-text { display: none; }
  .header-search { height: 38px; }
  .header-search-category { display: none; }
  .header-search input { font-size: 14px; padding-left: 12px; }

  /* নেভ বার */
  .cat-nav a { padding: 8px 11px; font-size: 13px; }

  /* সেকশন ও শিরোনাম */
  .section { padding: 12px 0 2px; }
  .section-head { margin-bottom: 8px; }
  .section-head h2 { font-size: 1.15rem; margin: 2px 0; }
  .section-head p { font-size: 12.5px; }
  .section-head.split { gap: 8px; }
  h1 { font-size: 1.3rem; }

  /* কার্ড */
  .product-grid { gap: 8px; }
  .product-body { padding: 8px; gap: 5px; }
  .product-body h3 { font-size: 13px; line-height: 1.3; }
  .product-body h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-body .unit { font-size: 11.5px; }
  .price-row strong { font-size: 15px; }
  .price-row del { font-size: 11.5px; }
  .product-card .btn-sm { padding: 7px 4px; font-size: 12.5px; }
  .product-card .btn-sm .icon { width: 14px; height: 14px; }
  .sale-badge, .tag-badge { font-size: 10.5px; padding: 2px 6px; }
  .wish-btn { width: 30px; height: 30px; }
  .pc-timer { font-size: 11px; }

  /* শপ পেজ */
  .shop-toolbar { gap: 8px; margin-bottom: 10px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }
  .chip-sub { margin-top: -6px; }

  /* ফুটার */
  .footer-grid { padding: 22px 12px 14px; }
  .footer-accordion { padding: 12px 0; }
  .footer-bottom { font-size: 12px; }

  /* বাটন ও ফর্ম */
  .btn { padding: 10px 16px; font-size: 14px; }
  input, select, textarea { font-size: 16px; }   /* iOS জুম বন্ধ */

  /* ভাসমান বাটন */
  .float-cart { padding: 6px 8px; font-size: 11px; }
  .float-cart strong { font-size: 12px; padding: 0 6px; }
  .bottom-nav a, .bottom-nav button { font-size: 10.5px; padding: 6px 2px 5px; }
}

/* ---------- Why us: কম্প্যাক্ট (আইকন বাঁয়ে, লেখা ডানে) ---------- */
.why-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.why-card, .why-card:nth-child(n) {
  --c: var(--primary); --c-soft: var(--primary-soft);
  background: var(--surface); border: 1px solid var(--border); box-shadow: none;
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px;
}
.why-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; margin: 0; background: var(--c-soft); }
.why-icon .icon { width: 20px; height: 20px; }
.why-card h3 { font-size: 15px; margin: 0 0 2px; }
.why-card p { font-size: 12.5px; line-height: 1.45; }
.section-tint-navy .section-head h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .why-card, .why-card:nth-child(n) { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .why-icon { width: 34px; height: 34px; border-radius: 10px; }
  .why-icon .icon { width: 17px; height: 17px; }
  .why-card h3 { font-size: 13px; }
  .why-card p { font-size: 11.5px; }
}

/* গ্যালারি: থাম্বনেইল/তীরের নরম অ্যানিমেশন */
.gal-thumb { transition: transform .18s ease, opacity .18s ease, border-color .18s ease, box-shadow .18s ease; }
.gal-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gal-thumb.on { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transform: scale(1.04); }
.gal-nav { transition: background .18s, color .18s, transform .18s, opacity .18s; opacity: 0; }
.gal-main:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:active { transform: translateY(-50%) scale(.9); }
.gal-main > img { will-change: transform, opacity; }
@media (hover: none) { .gal-nav { opacity: .9; } }

/* লোগো বড়: ডেস্কটপ ও মোবাইল */
.site-header .logo img { max-height: 68px; max-width: 260px; }
.header-main { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 720px) { .site-header .logo img { max-height: 46px; max-width: 170px; } }

.site-header .logo img { max-height: 92px; max-width: 340px; }
@media (max-width: 720px) { .site-header .logo img { max-height: 58px; max-width: 210px; } }

/* কম্প্যাক্ট হেডার: লোগো বড়ই থাকে, ছবির ফাঁকা কিনারা লেআউট থেকে বাদ */
.site-header .logo img { max-height: 92px; max-width: 340px; margin: -18px 0; }
.header-main { padding-top: 4px; padding-bottom: 4px; gap: 16px; }
.topbar { padding: 5px 0; font-size: 13px; }
.cat-nav a { padding-top: 9px; padding-bottom: 9px; }
.header-search { height: 42px; }
@media (max-width: 720px) {
  .site-header .logo img { max-height: 58px; max-width: 210px; margin: -9px 0; }
  .header-main { padding-top: 4px; padding-bottom: 6px; }
  .cat-nav a { padding-top: 7px; padding-bottom: 7px; }
}

/* হেডার চূড়ান্ত: লোগো নির্দিষ্ট উচ্চতায়, নেগেটিভ মার্জিন নেই */
.site-header .logo img { max-height: 58px; max-width: 250px; margin: 0; }
.header-main { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 720px) {
  .site-header .logo img { max-height: 44px; max-width: 170px; margin: 0; }
  .header-main { padding-top: 6px; padding-bottom: 6px; }
}

.site-header .logo img { max-height: 46px; max-width: 200px; }
@media (max-width: 720px) { .site-header .logo img { max-height: 36px; max-width: 140px; } }

/* ========== প্রোডাক্ট কার্ড: আরও পরিপাটি (পিসি ও ফোন) ========== */
.product-card {
  border-radius: 16px;
  border-color: #e8ecf2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 35%, #e8ecf2); box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }

.product-cover { background: #fff; padding: 10px; aspect-ratio: 1 / 1; }
.product-cover img { object-fit: contain; border-radius: 10px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-cover img { transform: scale(1.06); }
.product-cover::after { content: ''; position: absolute; inset: auto 0 0 0; height: 26%; background: linear-gradient(to top, rgba(255, 255, 255, .9), transparent); pointer-events: none; }

.tag-badge { top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }
.product-card .sale-badge { top: auto; bottom: 10px; left: 10px; right: auto; border-radius: 8px; font-size: 12px; padding: 3px 9px; z-index: 2; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.product-card .stock-chip { z-index: 2; }
.wish-btn { width: 34px; height: 34px; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); transition: transform .2s, color .2s, background .2s; }
.wish-btn:hover { transform: scale(1.1); }
.wish-form { z-index: 3; }

.product-body { gap: 6px; padding: 12px 14px 14px; }
.product-body h3 { font-size: 15px; line-height: 1.4; min-height: 2.8em; font-weight: 600; }
.product-body h3 a { color: var(--text); }
.product-body .unit {
  display: inline-block; align-self: flex-start; margin: 0; padding: 2px 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.price-row { gap: 2px 8px; align-items: baseline; margin-top: 2px; }
.price-row strong { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.price-row del { font-size: 13px; }

.pc-actions { gap: 7px; }
.pc-actions .btn { border-radius: 12px; min-height: 38px; font-weight: 700; font-size: 14px; transition: transform .15s, box-shadow .2s, background .2s; }
.pc-actions .btn:active { transform: scale(.97); }
.pc-add { box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
.pc-add:hover { box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 45%, transparent); }
.pc-buy .btn-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); min-height: 36px; }
.pc-buy .btn-dark:hover { background: var(--navy); color: #fff; }
.pc-stepper { border-radius: 12px; height: 38px; border-width: 1.5px; }
.pc-stepper button { height: 100%; font-weight: 700; }
.pc-stepper span { font-size: 15px; }

@media (max-width: 720px) {
  .product-card { border-radius: 14px; }
  .product-cover { padding: 6px; }
  .product-cover::after { display: none; }
  .tag-badge { top: 7px; left: 7px; padding: 3px 8px; font-size: 10.5px; }
  .tag-badge .icon { width: 11px; height: 11px; }
  .product-card .sale-badge { bottom: 7px; left: 7px; font-size: 11px; padding: 2px 7px; }
  .wish-btn { width: 30px; height: 30px; }
  .product-body { padding: 8px 10px 10px; gap: 5px; }
  .product-body h3 { font-size: 13px; min-height: 2.7em; }
  .product-body .unit { font-size: 10.5px; padding: 1px 8px; }
  .price-row strong { font-size: 16px; }
  .price-row del { font-size: 11.5px; }
  .pc-actions .btn { min-height: 34px; font-size: 13px; border-radius: 10px; }
  .pc-stepper { height: 34px; border-radius: 10px; }
  .pc-stepper button { width: 36px; font-size: 18px; }
  .product-card:hover { transform: none; }
}
