: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: 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;   /* Noto only supplies the clearer Bengali digit ১ (see header.php); everything else is Hind Siliguri */
  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(--tb-bg, var(--navy));
  color: var(--tb-fg, #cbd5e1);
  font-size: 13px;
  padding: 7px 0;
  text-align: center;
}

.topbar strong { color: #fff; font-weight: 600; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; padding-right: 34px; padding-left: 34px; }
.topbar-msg { line-height: 1.4; }
.topbar-btn {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 12.5px;
  background: #fff; color: var(--tb-bg, var(--navy)); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.topbar-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); }
.topbar-close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.75; padding: 2px 8px;
}
.topbar-close:hover { opacity: 1; }

.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: 48px; background: #fff; padding: 8px 14px; border-radius: 10px; }

.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(94, 234, 212, 0.18), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #0c3448 60%, #0a5a4b 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; }

/* Colorful, slightly playful category links — each cycles through a palette and
   nudges right + brightens on hover instead of just a flat color swap. */
.footer-cat-list li a {
  position: relative;
  padding-left: 14px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.footer-cat-list li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.footer-cat-list li a { color: #fff; }
.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; }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-main { flex: 1; min-width: 0; padding: 32px; }
.admin-main h1 { margin-top: 0; }

.admin-login { max-width: 400px; margin: 56px auto; padding: 28px; }
.admin-login h1 { margin-top: 0; }

.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-page-header h1 { margin: 0; }

.admin-main h2 { margin: 22px 0 10px; font-size: 17px; }
.admin-main h2:first-of-type { margin-top: 0; }

.admin-form { max-width: 720px; }

.admin-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.admin-table th { background: var(--surface-2); color: var(--text-dim); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--primary); font-weight: 600; }

.table-wrap { overflow-x: auto; }

.drag-handle {
  width: 28px;
  text-align: center;
  font-size: 18px;
  color: var(--text-dim);
  cursor: grab;
  user-select: none;
}
.drag-handle:active { cursor: grabbing; }
.admin-table tr.dragging { opacity: 0.4; background: var(--surface-2); }

.table-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.table-thumb .cover-placeholder { font-size: 22px; }
.table-thumb .category-initial, .table-thumb .category-icon-img { width: 100%; height: 100%; border-radius: 0; font-size: 20px; }

.flag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-dim); margin-right: 8px; }

.product-code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.inline-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; max-width: 560px; }
.inline-form input { flex: 1; margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 11.5px;
}

.stat-card span { font-size: 19px; font-weight: 700; color: var(--text); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  font-family: inherit;
}

button.badge { cursor: pointer; }

.badge-paid { background: var(--primary-soft); color: var(--primary-dark); }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-failed, .badge-cancelled { background: var(--danger-soft); color: var(--danger); }

.select-col { width: 34px; text-align: center; }
.bulk-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bulk-toolbar .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Manual payment review (admin) ---------- */
.mp-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mp-filter-bar input[type="text"] { flex: 1; min-width: 200px; margin: 0; padding: 9px 12px; font-size: 13.5px; }
.mp-filter-bar select { margin: 0; padding: 9px 10px; font-size: 13.5px; width: auto; }

.mp-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mp-method-bkash { background: #fde7f0; color: #d6067f; }
.mp-method-nagad { background: #ffe9d6; color: #e8720c; }

.mp-trx {
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 6px;
}

.mp-copyable {
  cursor: pointer;
  border-bottom: 1px dashed var(--text-dim);
  transition: color 0.15s;
}
.mp-copyable:hover { color: var(--primary); border-color: var(--primary); }
.mp-copyable.mp-copied { color: var(--primary-dark); border-color: transparent; font-weight: 700; }
code.mp-copyable.mp-copied { background: var(--primary-soft); }

.mp-table th, .mp-table td { padding: 10px 12px; font-size: 13.5px; }
.mp-row-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.mp-row-actions form { margin: 0; }
.mp-row-actions .btn-sm { padding: 6px 12px; font-size: 13px; }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.filter-tabs a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.filter-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.order-detail { padding: 20px; margin-bottom: 20px; }
.order-detail p { margin: 6px 0; color: var(--text-dim); }
.order-detail strong { color: var(--text); }

/* ---------- Live visitors (admin) ---------- */
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: 10px;
  vertical-align: middle;
  animation: live-pulse 1.6s infinite;
}
.live-dot.live-dot-error { background: var(--danger); animation: none; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 125, 99, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(10, 125, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 125, 99, 0); }
}

.stat-card-accent { background: var(--accent-soft); border-top: 3px solid var(--accent); border-color: var(--accent) var(--border) var(--border); transition: box-shadow 0.2s; }
.stat-card-accent span { color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 6px; }
.stat-card-accent .stat-icon { display: inline-flex; padding: 5px; border-radius: 8px; background: var(--surface); color: var(--accent); }

.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.device-badge svg { flex-shrink: 0; }
.device-badge.device-desktop { background: var(--primary-soft); color: var(--primary-dark); }
.device-badge.device-mobile { background: var(--sale-soft); color: var(--sale); }
.device-badge.device-tablet { background: var(--warning-soft); color: var(--warning); }

.page-code { font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

#live-table-wrap { transition: opacity 0.15s; }

/* ---------- Date filter dropdown (admin dashboard) ---------- */
.date-filter { position: relative; display: inline-block; margin-bottom: 16px; }

.date-filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.date-filter-btn:hover { border-color: var(--primary); }
.date-filter-btn svg:first-child { color: var(--primary); flex-shrink: 0; }
.date-filter-btn svg:last-child { color: var(--text-dim); flex-shrink: 0; margin-left: 2px; }

.date-filter-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  min-width: 230px;
  padding: 6px;
}
.date-filter-menu.open { display: flex; }

.date-filter-opt {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.date-filter-opt:hover { background: var(--surface-2); }
.date-filter-opt.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.date-filter-custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 6px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.date-filter-custom label { font-size: 12.5px; color: var(--text-dim); display: flex; flex-direction: column; gap: 4px; }
.date-filter-custom input { margin-top: 0; }

/* ---------- 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-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; }
}

/* Why us — compact: icon beside the text, 3 columns on desktop, 1 on phones. */
.why-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.why-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.why-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; flex: none; }
.why-icon .icon { width: 20px; height: 20px; }
.why-card h3 { font-size: 15px; margin: 0 0 2px; }
.why-card p { font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; gap: 8px; }
  .why-card { padding: 10px 12px; }
}

/* ---------- Customer account (email-code login, profile, invoices) ---------- */
.account-link { margin-left: auto; }
.account-link + .cart-wrap { margin-left: 0; }
.login-card { max-width: 440px; margin: 30px auto; padding: 28px 26px; text-align: center; }
.login-card h1 { font-size: 1.35rem; margin: 10px 0 6px; }
.login-card form { text-align: left; }
.login-card .btn-block { width: 100%; margin-top: 14px; justify-content: center; }
.login-lead { margin: 0 0 16px; }
.login-ico { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-dark); }
.code-input { text-align: center; font-size: 1.6rem; letter-spacing: 0.5em; font-weight: 700; }
.login-resend { margin-top: 14px; text-align: center !important; }

.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.account-who { display: flex; align-items: center; gap: 14px; }
.account-who h1 { margin: 0; font-size: 1.4rem; }
.account-who .form-help { margin: 0; }
.account-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; flex: none; }
.order-card { padding: 0; margin-bottom: 14px; overflow: hidden; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.order-card-head .form-help { display: block; margin: 2px 0 0; }
.order-card-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-items li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.order-items li:last-child { border-bottom: 0; }
.order-item-title { flex: 1; font-weight: 600; min-width: 0; }
.order-item-price { color: var(--text-dim); white-space: nowrap; }
.order-items .btn-sm { padding: 7px 12px; font-size: 13.5px; gap: 6px; white-space: nowrap; }
@media (max-width: 560px) {
  .order-items li { flex-wrap: wrap; }
  .order-item-title { flex-basis: 100%; }
  .order-item-price { flex: 1; }
}
.btn-google { background: #fff; color: #1f2937; border: 1px solid var(--border); gap: 10px; display: flex; align-items: center; justify-content: center; }
.btn-google:hover { background: var(--surface-2); }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; margin: 16px 0 12px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-card label { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; }
.pw-card { margin-top: 20px; }
.pw-form { padding: 14px 18px 18px; }
.pw-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .pw-grid { grid-template-columns: 1fr; } }

/* Compact login card */
.login-card { max-width: 380px; margin: 16px auto; padding: 18px 20px; }
.login-card h1 { font-size: 1.15rem; margin: 0 0 4px; }
.login-lead { margin: 0 0 8px; font-size: 13px; }
.login-card label { margin-top: 8px; font-size: 13px; }
.login-card input { padding: 8px 12px; font-size: 14px; margin-top: 3px; }
.login-card .btn-block { margin-top: 10px; padding: 9px 14px; font-size: 14.5px; }
.login-card .alert { padding: 8px 12px; font-size: 13px; margin: 0 0 8px; }
.login-resend { margin: 8px 0 0; }
.login-or { margin: 10px 0 8px; }

/* ---------- Login animations ---------- */
@keyframes loginCardIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes loginRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes loginShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes loginSpin { to { transform: rotate(360deg); } }
@keyframes loginGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 125, 99, 0.35); } 50% { box-shadow: 0 0 0 7px rgba(10, 125, 99, 0); } }

.login-card { animation: loginCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.login-card > *, .login-card form > * { animation: loginRise 0.45s ease both; }
.login-card > h1 { animation-delay: 0.08s; }
.login-card > .login-lead { animation-delay: 0.14s; }
.login-card form > *:nth-child(2) { animation-delay: 0.2s; }
.login-card form > *:nth-child(3) { animation-delay: 0.27s; }
.login-card form > *:nth-child(4) { animation-delay: 0.34s; }
.login-card > .login-resend { animation-delay: 0.4s; }
.login-card > .login-or { animation-delay: 0.45s; }
.login-card > .btn-google { animation-delay: 0.5s; }
.login-card > .alert-error { animation: loginRise 0.35s ease both, loginShake 0.5s 0.15s ease both; }
.login-card > .alert-success { animation: loginRise 0.35s ease both; }

.login-card input { transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s; }
.login-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); transform: translateY(-1px); }
.login-card label { transition: color 0.2s; }
.login-card label:focus-within { color: var(--primary-dark); }

.login-card .btn-block { position: relative; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s; }
.login-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 125, 99, 0.3); }
.login-card .btn-block:active { transform: translateY(0) scale(0.98); }
.login-card .btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); }
.login-card .btn-primary:hover::after { transform: translateX(120%); transition: transform 0.7s ease; }
.login-card .btn-google:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: loginSpin 0.7s linear infinite; }
.btn.loading { pointer-events: none; opacity: 0.85; }
.btn-primary.loading .btn-spin { display: inline-block; margin-left: 8px; }
.btn-google.loading { animation: loginGlow 1s ease infinite; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-40%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s, transform 0.2s; }
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.pw-toggle.on { color: var(--primary); transform: translateY(-40%) scale(1.1); }
.login-resend a { position: relative; }
.login-resend a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.login-resend a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .login-card, .login-card > *, .login-card form > *, .btn-spin, .btn-google.loading { animation: none; }
  .login-card input, .login-card .btn-block, .pw-toggle { transition: none; }
}

/* Telegram floating button — sits above the WhatsApp one (or in its place when there is none). */
.telegram-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #229ed9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.4);
  z-index: 60;
  transition: transform 0.15s;
}
.telegram-float.with-wa { bottom: 84px; }
.telegram-float:hover { transform: scale(1.06); }
@media (max-width: 720px) {
  body.has-order-bar .telegram-float { bottom: 92px; }
  body.has-order-bar .telegram-float.with-wa { bottom: 158px; }
}

/* ---------- Landing-page style product page ---------- */
.lp { overflow-x: clip; }
.lp-hero { background: linear-gradient(135deg, #062e26 0%, #0a7d63 55%, #12a582 100%); color: #fff; padding: 36px 0 44px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.lp-cat { display: inline-block; padding: 3px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.lp-hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.2; margin: 0 0 12px; }
.lp-sub { font-size: 1.05rem; opacity: 0.92; margin: 0 0 18px; max-width: 560px; }
.lp-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-price strong { font-size: 2.2rem; line-height: 1; }
.lp-price del { opacity: 0.7; font-size: 1.15rem; }
.lp-price-center { justify-content: center; }
.lp-offer { margin-bottom: 16px; max-width: 460px; }
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-buy-form { margin: 0; }
.lp-cta { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); animation: lpPulse 2.2s ease-in-out infinite; }
.lp-hero .lp-cta { background: #fff; color: #0a7d63; }
.lp-hero .lp-cta:hover { background: #f1fdf8; }
.lp-trust { list-style: none; display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 0; margin: 0; font-size: 13.5px; opacity: 0.92; }
.lp-trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-media { min-width: 0; }
.lp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); background: #000; }
.lp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-cover { width: 100%; max-height: 460px; object-fit: contain; border-radius: 16px; background: rgba(255, 255, 255, 0.08); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3); }

.lp-section { padding: 38px 0; }
.lp-tint { background: var(--surface-2); }
.lp-narrow { max-width: 780px; }
.lp-h2 { text-align: center; font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 22px; }
.lp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.lp-benefit { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.lp-benefit p { margin: 2px 0 0; color: var(--text-dim); font-size: 14px; }
.lp-check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; }
.lp-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lp-shots img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.lp-shots a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.lp-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lp-review { margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.lp-review blockquote { margin: 0 0 12px; line-height: 1.7; }
.lp-review blockquote::before { content: '“'; font-size: 2rem; line-height: 0; color: var(--primary); margin-right: 4px; vertical-align: -0.4em; }
.lp-review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.lp-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.lp-faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.lp-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); transition: transform 0.2s; }
.lp-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq p { margin: 0; padding: 0 18px 16px; color: var(--text-dim); line-height: 1.7; }
.lp-final { background: linear-gradient(135deg, #062e26 0%, #0a7d63 100%); color: #fff; text-align: center; padding: 44px 0 52px; }
.lp-final h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 14px; }
.lp-final .lp-buy-form { display: inline-block; }
.lp-final .lp-cta { background: #fff; color: #0a7d63; }
.lp-note { margin: 14px 0 0; font-size: 13.5px; opacity: 0.85; display: flex; align-items: center; justify-content: center; gap: 6px; }
@keyframes lpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (max-width: 860px) {
  .lp-hero { padding: 22px 0 30px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .lp-hero-media { order: -1; }
  .lp-section { padding: 26px 0; }
  .lp-price strong { font-size: 1.9rem; }
  .lp-actions .btn { width: 100%; justify-content: center; }
  .lp-buy-form { width: 100%; }
  .lp-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .lp-cta { animation: none; } }

/* Landing page — compact pass */
.lp-hero { padding: 22px 0 26px; }
.lp-hero-grid { gap: 22px; }
.lp-cat { font-size: 12px; padding: 2px 11px; margin-bottom: 8px; }
.lp-hero h1 { font-size: clamp(1.4rem, 3.4vw, 2.05rem); margin-bottom: 8px; }
.lp-sub { font-size: 0.95rem; margin-bottom: 12px; }
.lp-price { gap: 8px; margin-bottom: 10px; }
.lp-price strong { font-size: 1.7rem; }
.lp-price del { font-size: 1rem; }
.lp-offer { margin-bottom: 10px; }
.lp-actions { gap: 8px; margin-bottom: 10px; }
.lp-actions .btn-lg, .lp-final .btn-lg { padding: 11px 20px; font-size: 15.5px; }
.lp-trust { font-size: 12.5px; gap: 4px 14px; }
.lp-video, .lp-cover { border-radius: 12px; }
.lp-cover { max-height: 340px; }

.lp-section { padding: 22px 0; }
.lp-h2 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin-bottom: 14px; }
.lp-benefits { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.lp-benefit { gap: 10px; padding: 10px 12px; border-radius: 12px; }
.lp-benefit strong { font-size: 14.5px; }
.lp-benefit p { font-size: 13px; }
.lp-check { width: 24px; height: 24px; }
.lp-check .icon { width: 14px; height: 14px; }
.lp-shots { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lp-shots img { border-radius: 10px; }
.lp-reviews { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.lp-review { padding: 12px 14px; border-radius: 12px; }
.lp-review blockquote { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.lp-review figcaption { font-size: 13px; }
.lp-avatar { width: 26px; height: 26px; font-size: 13px; }
.lp-faq { margin-bottom: 6px; border-radius: 10px; }
.lp-faq summary { padding: 10px 40px 10px 14px; font-size: 14.5px; }
.lp-faq p { padding: 0 14px 12px; font-size: 14px; }
.lp-final { padding: 28px 0 34px; }
.lp-final h2 { font-size: clamp(1.15rem, 2.8vw, 1.5rem); margin-bottom: 8px; }
.lp-note { margin-top: 8px; font-size: 12.5px; }
.lp .rich-text { font-size: 14.5px; }
@media (max-width: 860px) {
  .lp-hero { padding: 14px 0 20px; }
  .lp-hero-grid { gap: 14px; }
  .lp-section { padding: 18px 0; }
  .lp-price strong { font-size: 1.55rem; }
  .lp-actions .btn-lg { padding: 10px 16px; }
  .lp-final { padding: 22px 0 26px; }
}

/* Checkout: logged-in customer summary */
.co-logged-in { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-radius: 12px; }
.co-logged-in > div { flex: 1; min-width: 0; }
.co-logged-in strong { display: block; line-height: 1.3; }
.co-logged-in small { display: block; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
.co-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }

/* ---------- Header login + add-to-cart buttons ---------- */
.account-link {
  background: linear-gradient(135deg, #0a7d63 0%, #12a582 100%);
  color: #fff;
  padding: 8px 16px 8px 10px;
  gap: 9px;
  box-shadow: 0 6px 16px rgba(10, 125, 99, 0.32);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.account-link .icon { background: rgba(255, 255, 255, 0.22); border-radius: 50%; padding: 5px; box-sizing: content-box; width: 18px; height: 18px; transition: transform 0.3s; }
.account-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%); transform: translateX(-120%); }
.account-link:hover { border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10, 125, 99, 0.42); }
.account-link:hover::after { transform: translateX(120%); transition: transform 0.7s ease; }
.account-link:hover .icon { transform: scale(1.12) rotate(-6deg); }

.add-to-cart-form .btn-primary, .add-to-cart-form .btn-outline {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  font-weight: 700;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s, color 0.25s;
}
.add-to-cart-form .btn-primary { background: linear-gradient(135deg, #0a7d63 0%, #12a582 100%); box-shadow: 0 6px 14px rgba(10, 125, 99, 0.28); }
.add-to-cart-form .btn-primary:hover { background: linear-gradient(135deg, #07634e 0%, #0a7d63 100%); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(10, 125, 99, 0.4); }
.add-to-cart-form .btn-outline { border: 2px solid var(--primary); background: var(--surface); }
.add-to-cart-form .btn-outline:hover { background: linear-gradient(135deg, #0a7d63 0%, #12a582 100%); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(10, 125, 99, 0.35); }
.add-to-cart-form .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.add-to-cart-form .btn:hover::after { transform: translateX(120%); transition: transform 0.7s ease; }
.add-to-cart-form .btn .icon { transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.add-to-cart-form .btn:hover .icon { transform: translateX(-2px) rotate(-12deg) scale(1.15); }
.add-to-cart-form .btn:active { transform: translateY(0) scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .account-link, .account-link .icon, .add-to-cart-form .btn, .add-to-cart-form .btn .icon { transition: none; }
  .account-link::after, .add-to-cart-form .btn::after { display: none; }
}
.login-note { text-align: center; margin: 10px 0 0; }
.login-card .btn-google { padding: 12px 16px; font-size: 15px; }

/* Star rating */
.rating { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; line-height: 1; }
.stars { position: relative; display: inline-block; font-size: 16px; letter-spacing: 1px; color: #d8dde3; white-space: nowrap; }
.stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--fill, 100%); overflow: hidden; color: #f5a623; }
.rating-count { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.product-details-head .rating, .product-summary .rating { margin: 4px 0 8px; }
.product-summary .stars { font-size: 18px; }

/* Product page: customer reviews */
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pr-head .tab-title { margin: 0; }
.pr-avg { display: flex; align-items: center; gap: 8px; }
.pr-avg b { font-size: 1.5rem; }
.pr-avg .rating { margin: 0; }
.pr-list { display: grid; gap: 10px; }
.pr-item { padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.pr-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pr-top small { margin-left: auto; color: var(--text-dim); }
.pr-av { width: 30px; height: 30px; font-size: 13px; }
.pr-item p { margin: 8px 0 0; line-height: 1.7; font-size: 14.5px; }
.pr-ver { font-size: 11.5px; font-weight: 700; color: #047857; background: #d1fae5; padding: 1px 9px; border-radius: 999px; }

/* Login page on a device where an admin is signed in */
.login-admin { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; margin: 4px 0 12px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-radius: 12px; }
.login-admin-av { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.login-admin strong { display: block; line-height: 1.3; }
.login-admin small { color: var(--text-dim); }
.login-admin-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; }

/* Phones: keep the word on the login / admin button (only the cart goes icon-only) */
@media (max-width: 720px) {
  .account-link { padding: 6px 13px 6px 7px; gap: 7px; font-size: 14.5px; }
  .account-link .cart-text { display: inline; }
}

/* Admin device: header button opens a two-option menu (admin / customer login) */
.acct-menu { position: relative; margin-left: auto; flex-shrink: 0; }
.acct-menu .account-link { margin-left: 0; border: 0; font-family: inherit; font-size: 15px; cursor: pointer; }
.account-link + .cart-wrap, .acct-menu + .cart-wrap { margin-left: 0; }
.acct-caret { width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin: -3px 2px 0 2px; transition: transform 0.2s; }
.acct-menu .account-link[aria-expanded="true"] .acct-caret { transform: rotate(-135deg); margin-top: 3px; }
.acct-drop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 250px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18); animation: acctIn 0.18s ease both; }
.acct-drop[hidden] { display: none; }
@keyframes acctIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.acct-drop a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--text); transition: background 0.15s; }
.acct-drop a:hover { background: var(--primary-soft); }
.acct-drop .icon { flex: none; color: var(--primary); background: var(--primary-soft); border-radius: 9px; padding: 7px; box-sizing: content-box; width: 17px; height: 17px; }
.acct-drop b { display: block; font-size: 14.5px; line-height: 1.3; }
.acct-drop small { display: block; color: var(--text-dim); font-size: 12px; }
@media (max-width: 720px) { .acct-menu .account-link { padding: 6px 12px 6px 7px; } .acct-drop { min-width: 230px; } }

/* Login page: make the Google button stand out */
.login-card .btn-google {
  position: relative;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  border: 2px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4) border-box;
  background-size: 100% 100%, 300% 300%;
  box-shadow: 0 10px 26px rgba(66, 133, 244, 0.25);
  animation: gBorder 4s linear infinite, gPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-card .btn-google svg { width: 24px; height: 24px; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.login-card .btn-google:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(66, 133, 244, 0.38); background-color: #fff; }
.login-card .btn-google:hover svg { transform: rotate(-12deg) scale(1.15); }
.login-card .btn-google:active { transform: translateY(0) scale(0.98); }
@keyframes gBorder { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 300% 50%; } }
@keyframes gPulse { 0%, 100% { box-shadow: 0 10px 26px rgba(66, 133, 244, 0.25), 0 0 0 0 rgba(66, 133, 244, 0.3); } 50% { box-shadow: 0 10px 26px rgba(66, 133, 244, 0.25), 0 0 0 9px rgba(66, 133, 244, 0); } }
@media (prefers-reduced-motion: reduce) { .login-card .btn-google { animation: none; } }

/* Login Google button — solid Google-blue so it cannot be missed (desktop + phone) */
.login-card .btn-google,
.login-card a.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 55%, #1765cc 100%);
  box-shadow: 0 12px 28px rgba(26, 115, 232, 0.45);
  animation: gBluePulse 2.2s ease-in-out infinite;
}
.login-card .btn-google svg { flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 7px; background: #fff; border-radius: 10px; }
.login-card .btn-google:hover { color: #fff; background: linear-gradient(135deg, #5a95f5 0%, #2b7de9 55%, #1a73e8 100%); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(26, 115, 232, 0.55); }
.login-card .btn-google:hover svg { transform: rotate(-10deg) scale(1.08); }
.login-card .btn-google.loading { opacity: 0.85; }
@keyframes gBluePulse { 0%, 100% { box-shadow: 0 12px 28px rgba(26, 115, 232, 0.45), 0 0 0 0 rgba(66, 133, 244, 0.5); } 50% { box-shadow: 0 12px 28px rgba(26, 115, 232, 0.45), 0 0 0 10px rgba(66, 133, 244, 0); } }
@media (prefers-reduced-motion: reduce) { .login-card .btn-google { animation: none; } }

/* Header buttons (account + cart): same height, clear icon + word, easy to tell apart */
.site-header .cart-link, .site-header .account-link { height: 44px; box-sizing: border-box; border-radius: 14px; padding: 0 16px 0 10px; gap: 9px; font-size: 15px; font-weight: 700; }
.site-header .cart-link:not(.account-link) { background: #fff; border: 1.5px solid color-mix(in srgb, var(--primary) 45%, var(--border)); color: var(--primary-dark); padding: 0 16px 0 12px; }
.site-header .cart-link:not(.account-link):hover { background: var(--primary-soft); border-color: var(--primary); }
.site-header .cart-link:not(.account-link) .icon { color: var(--primary); }
.site-header .account-link .icon { width: 20px; height: 20px; padding: 6px; }
.site-header .account-link .cart-text, .site-header .cart-link .cart-text { white-space: nowrap; line-height: 1; }
.cart-badge { background: #f97316; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(249, 115, 22, 0.5); font-weight: 800; }
.header-main { gap: 12px; }

@media (max-width: 720px) {
  /* app-style: icon on top, word underneath — both buttons the same size */
  .site-header .cart-link, .site-header .account-link, .acct-menu .account-link {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 58px;
    height: 54px;
    padding: 0;
    border-radius: 14px;
  }
  .site-header .cart-link .cart-text, .site-header .account-link .cart-text, .acct-menu .account-link .cart-text { display: block; font-size: 11.5px; font-weight: 700; }
  .site-header .account-link .icon { width: 18px; height: 18px; padding: 4px; }
  .site-header .cart-link:not(.account-link) .icon { width: 22px; height: 22px; }
  .acct-caret { display: none; }
  .header-main { gap: 8px 10px; }
  .cart-badge { top: 2px; right: 6px; }
}


/* ---------- Promo pop-up (admin: Settings -> Marketing) ---------- */
.promo-pop {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8, 15, 30, 0.62); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.25s;
}
.promo-pop[hidden] { display: none; }
.promo-pop.on { opacity: 1; }
html.promo-lock { overflow: hidden; }
.promo-card {
  position: relative; width: 100%; max-width: 440px; max-height: 94vh; overflow-y: auto; text-align: center; color: #e2e8f0;
  padding: 30px 24px 20px; border-radius: 28px; border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(160deg, #1b2c52 0%, #0f1b36 55%, #0b1224 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(18px) scale(0.96); transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.2);
}
.promo-pop.on .promo-card { transform: none; }
.promo-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(148, 163, 184, 0.22); color: #fff; font-size: 22px; line-height: 1;
}
.promo-x:hover { background: rgba(148, 163, 184, 0.4); }
.promo-img { display: block; width: calc(100% + 48px); max-width: none; margin: -30px -24px 16px; border-radius: 28px 28px 0 0; max-height: 240px; object-fit: cover; }
@media (max-width: 480px) { .promo-img { width: calc(100% + 32px); margin: -26px -16px 14px; border-radius: 24px 24px 0 0; max-height: 200px; } }
.promo-badge {
  display: inline-block; padding: 8px 20px; margin-bottom: 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.4px; color: #fff; background: linear-gradient(90deg, #2563eb, #4f8bff);
}
.promo-title { margin: 0 0 8px; color: #fff; font-size: 27px; line-height: 1.25; font-weight: 800; }
.promo-sub { margin: 0 0 16px; color: #aab6cc; font-size: 15px; line-height: 1.6; }
.promo-price-box {
  margin: 0 0 16px; padding: 16px 12px 16px; border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 27, 54, 0.6);
}
.promo-reg { color: #aab6cc; font-size: 14px; font-weight: 600; }
.promo-price-box del { display: block; margin-bottom: 8px; color: #94a3b8; font-size: 22px; font-weight: 800; }
.promo-price { color: #fff; font-size: 56px; line-height: 1.1; font-weight: 800; margin: 2px 0 8px; }
.promo-save { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #10b981; color: #fff; font-size: 13.5px; font-weight: 800; }
.promo-cta {
  display: block; padding: 16px 14px; margin-bottom: 12px; border-radius: 16px; text-decoration: none; color: #fff;
  font-size: 17px; font-weight: 800; background: linear-gradient(90deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45); transition: transform 0.15s;
}
.promo-cta:hover { transform: translateY(-2px); }
.promo-row { display: flex; gap: 10px; }
.promo-sec {
  flex: 1; padding: 12px 8px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #e2e8f0;
  background: rgba(30, 41, 70, 0.7); border: 1px solid rgba(148, 163, 184, 0.28);
}
.promo-sec:hover { background: rgba(51, 65, 105, 0.8); }
.promo-foot { margin: 14px 0 0; color: #94a3b8; font-size: 12.5px; }
@media (max-width: 480px) {
  .promo-card { padding: 26px 16px 16px; border-radius: 24px; }
  .promo-title { font-size: 23px; }
  .promo-price { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { .promo-pop, .promo-card, .promo-cta { transition: none; } }

/* ---- Promo pop-up: eye-catching layer ---- */
.promo-card { isolation: isolate; overflow: hidden; }
.promo-card::before {   /* slowly turning rainbow glow behind a 2px frame */
  content: ''; position: absolute; inset: -60%; z-index: -2;
  background: conic-gradient(from 0deg, #2563eb, #22d3ee, #10b981, #facc15, #f43f5e, #a855f7, #2563eb);
  animation: promo-spin 7s linear infinite; opacity: 0.9;
}
.promo-card::after {    /* the dark card sits on top, leaving a glowing edge */
  content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: 26px;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.35), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.28), transparent 45%),
    linear-gradient(160deg, #1b2c52 0%, #0f1b36 55%, #0b1224 100%);
}
@keyframes promo-spin { to { transform: rotate(360deg); } }
.promo-pop.on .promo-card { animation: promo-pop-in 0.55s cubic-bezier(.2, 1.1, .3, 1.15) both; }
@keyframes promo-pop-in { 0% { transform: translateY(30px) scale(0.85); opacity: 0; } 100% { transform: none; opacity: 1; } }

.promo-badge { position: relative; overflow: hidden; box-shadow: 0 6px 18px rgba(59, 130, 246, 0.55); animation: promo-float 2.6s ease-in-out infinite; }
.promo-badge::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: promo-shine 2.8s ease-in-out infinite; }
@keyframes promo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes promo-shine { 0% { left: -80%; } 55%, 100% { left: 150%; } }

.promo-title { text-shadow: 0 2px 18px rgba(96, 165, 250, 0.45); }
.promo-price-box { position: relative; background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(15, 27, 54, 0.75)); border-color: rgba(250, 204, 21, 0.45); }
.promo-price-box del { color: #fb7185; text-decoration-thickness: 3px; text-decoration-color: #f43f5e; }
.promo-price {
  background: linear-gradient(180deg, #fff 25%, #fde68a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 16px rgba(250, 204, 21, 0.35)); animation: promo-beat 1.8s ease-in-out infinite;
}
@keyframes promo-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.promo-off {
  position: absolute; top: -14px; right: -8px; padding: 7px 12px; border-radius: 999px; transform: rotate(8deg);
  background: linear-gradient(135deg, #f43f5e, #fb923c); color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.5); animation: promo-wiggle 2.4s ease-in-out infinite;
}
@keyframes promo-wiggle { 0%, 100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.1); } }
.promo-save { box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5); }

.promo-cta {
  position: relative; overflow: hidden; background: linear-gradient(90deg, #16a34a, #22c55e, #16a34a); background-size: 200% 100%;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.5); animation: promo-pulse 1.6s ease-in-out infinite, promo-slide 4s linear infinite;
}
.promo-cta::after { content: ''; position: absolute; top: 0; left: -70%; width: 40%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: promo-shine 2.2s ease-in-out infinite; }
.promo-cta::before { content: ''; }
@keyframes promo-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(34, 197, 94, 0.5); } 50% { transform: scale(1.03); box-shadow: 0 14px 38px rgba(34, 197, 94, 0.8); } }
@keyframes promo-slide { to { background-position: 200% 0; } }
.promo-sec { transition: transform 0.15s, background 0.15s; }
.promo-sec:hover { transform: translateY(-2px); }
.promo-x { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .promo-card::before, .promo-badge, .promo-badge::after, .promo-price, .promo-off, .promo-cta, .promo-cta::after, .promo-pop.on .promo-card { animation: none; }
}

/* scrolling lives in an inner box so the glowing frame can be clipped */
.promo-card { padding: 0; overflow: hidden; max-height: none; }
.promo-scroll { max-height: 94vh; overflow-y: auto; padding: 30px 24px 20px; position: relative; }
@media (max-width: 480px) { .promo-card { padding: 0; } .promo-scroll { padding: 26px 16px 16px; } }

/* ---------- Phones: search behind a button on product / shop / cart / checkout ---------- */
.search-toggle { display: none; }
@media (max-width: 720px) {
  .search-collapsed .search-toggle { display: flex; margin-left: auto; width: 52px; }
  .search-collapsed .search-toggle + .account-link, .search-collapsed .search-toggle ~ .acct-menu { margin-left: 0; }
  .search-collapsed .cart-wrap { margin-left: 0; }
  .search-collapsed .header-search { display: none; }
  .search-collapsed.search-open .header-search { display: flex; }
  .search-collapsed.search-open .search-toggle { background: var(--primary-soft, #e6f4f1); }

  /* Shop: category chips become one swipeable row instead of a wrapped block; toolbar stays on one line */
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; gap: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 6px 13px; font-size: 13px; white-space: nowrap; scroll-snap-align: start; }
  .shop-toolbar { flex-wrap: nowrap; align-items: flex-end; margin-bottom: 10px; gap: 8px; }
  .shop-toolbar h1 { font-size: 1.15rem; line-height: 1.25; }
  .shop-toolbar small { font-size: 12.5px; }
  .sort-form select { padding: 6px 8px; font-size: 13px; max-width: 150px; }
}

/* ---------- Shop: category navigation (sidebar on desktop, swipeable tiles on phones) ---------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.shop-main { min-width: 0; }
.cat-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.shop-side { position: sticky; top: 84px; }
.cat-nav-title { padding: 6px 10px 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; color: var(--text-dim); }
.cat-item {
  --c: var(--primary); --c-soft: var(--primary-soft);
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid transparent;
  color: var(--text); font-size: 14.5px; font-weight: 600; transition: background 0.15s, border-color 0.15s;
}
.cat-item:hover { background: var(--c-soft); }
.cat-item.active { background: var(--c-soft); border-color: var(--c); color: var(--c); }
.cat-ico { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--c-soft); color: var(--c); font-weight: 800; overflow: hidden; }
.cat-ico .category-initial, .cat-ico .category-icon-img { width: 36px; height: 36px; border-radius: 10px; background: transparent; font-size: 16px; }
.cat-item.active .cat-ico { background: var(--surface); }
.cat-name { flex: 1; min-width: 0; line-height: 1.3; }
.cat-count { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #f1f5f9); color: var(--text-dim); font-size: 12px; font-weight: 700; text-align: center; }
.cat-item.active .cat-count { background: var(--c); color: #fff; }

@media (max-width: 900px) {
  .shop-layout { display: block; }
  .shop-side { position: static; margin-bottom: 12px; }
  .cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 10px 10px 8px; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav-title { display: none; }
  .cat-item { flex: none; flex-direction: column; justify-content: flex-start; width: 78px; gap: 5px; padding: 6px 4px; text-align: center; border-radius: 14px; font-size: 12px; scroll-snap-align: start; position: relative; }
  .cat-ico, .cat-ico .category-initial, .cat-ico .category-icon-img { width: 46px; height: 46px; border-radius: 50%; font-size: 19px; }
  .cat-ico .category-icon-img { border-radius: 50%; }
  .cat-name { flex: none; width: 100%; font-size: 12px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-count { position: absolute; top: 2px; right: 6px; min-width: 20px; padding: 1px 6px; font-size: 10.5px; background: var(--c); color: #fff; }
}

/* Phones: compact one-line category pills (icon + name + count) — about 40px tall instead of ~100px */
@media (max-width: 900px) {
  .shop-side { margin-bottom: 8px; }
  .cat-nav { gap: 6px; padding: 6px 12px; }
  .cat-item { flex-direction: row; align-items: center; width: auto; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; border-color: var(--border); background: var(--surface); font-size: 13px; white-space: nowrap; }
  .cat-item.active { border-color: var(--c); background: var(--c-soft); }
  .cat-ico, .cat-ico .category-initial, .cat-ico .category-icon-img { width: 26px; height: 26px; font-size: 13px; }
  .cat-name { flex: none; width: auto; display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 13px; }
  .cat-count { position: static; min-width: 0; padding: 0 6px; font-size: 11px; }
  .shop-toolbar { margin-bottom: 8px; }
  .shop-products-panel { padding: 10px; }
  .container.page { padding-top: 12px; }
}

/* ---------- Phone search button + bar: clearer, friendlier ---------- */
.search-toggle .st-x { display: none; }
@media (max-width: 720px) {
  .site-header .search-collapsed .search-toggle,
  .site-header.search-collapsed .search-toggle {
    background: #fff; color: var(--primary-dark); border: 1.5px solid color-mix(in srgb, var(--primary) 45%, var(--border));
    box-shadow: 0 2px 8px rgba(10, 125, 99, 0.12); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s;
  }
  .site-header.search-collapsed .search-toggle::after { display: none; }
  .site-header.search-collapsed .search-toggle:active { transform: scale(0.94); }
  .site-header.search-collapsed .search-toggle .st-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft, #e6f4f1); color: var(--primary); }
  .site-header.search-collapsed .search-toggle .icon { width: 17px; height: 17px; padding: 0; background: none; border-radius: 0; color: inherit; }
  .site-header.search-collapsed .search-toggle .st-x { font-size: 26px; line-height: 30px; width: 30px; height: 30px; text-align: center; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
  /* open: filled green with a ✕ */
  .site-header.search-collapsed.search-open .search-toggle { background: linear-gradient(135deg, var(--primary), var(--primary-dark, #075e4a)); color: #fff; border-color: transparent; }
  .site-header.search-collapsed.search-open .search-toggle .st-ico { display: none; }
  .site-header.search-collapsed.search-open .search-toggle .st-x { display: block; }

  .site-header.search-collapsed.search-open .header-search {
    display: flex; height: 46px; border: 1.5px solid var(--primary); border-radius: 14px; background: #fff;
    box-shadow: 0 6px 18px rgba(10, 125, 99, 0.18); animation: searchDrop 0.22s ease both;
  }
  .site-header.search-collapsed.search-open .header-search input { font-size: 15px; padding-left: 14px; }
  .site-header.search-collapsed.search-open .header-search button { width: 46px; border-radius: 0 12px 12px 0; background: var(--primary); color: #fff; }
}
@keyframes searchDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.search-collapsed.search-open .header-search { animation: none; } }

/* Product card: discount next to the price, demo as a feature line under it (nothing on top of the picture) */
.card-off { padding: 2px 8px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 12px; font-weight: 800; white-space: nowrap; }
.card-demo {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--primary-dark); background: var(--primary-soft, #e6f4f1); border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
}
.card-demo .icon { color: var(--primary); flex: none; }
.card-demo:hover { background: color-mix(in srgb, var(--primary) 16%, #fff); }


/* ---------- Sliders for many reviews / demos ---------- */
.rv-wrap { position: relative; }
.rv-wrap.is-slider .rv-track {
  display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rv-wrap.is-slider .rv-track::-webkit-scrollbar { display: none; }
.rv-wrap.is-slider .rv-track > * { flex: 0 0 min(330px, 86%); scroll-snap-align: start; margin: 0; }
.rv-arrow {
  position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; margin-top: -26px; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--primary); font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  display: none; align-items: center; justify-content: center; transition: transform 0.15s, opacity 0.2s;
}
.rv-wrap.is-slider .rv-arrow { display: inline-flex; }
.rv-arrow:hover { transform: scale(1.1); }
.rv-prev { left: -8px; }
.rv-next { right: -8px; }
.rv-arrow[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 720px) { .rv-arrow { width: 32px; height: 32px; margin-top: -22px; } .rv-prev { left: -4px; } .rv-next { right: -4px; } }

/* ---------- আরো ডেমো দেখুন ---------- */
.demo-wrap .rv-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.demo-card { display: block; padding: 0; text-align: left; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14); }
.demo-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0f2a43, #0a7d63); overflow: hidden; }
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.demo-card:hover .demo-thumb img { transform: scale(1.06); }
.demo-nothumb { position: absolute; inset: 0; }
.demo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.94); color: var(--primary); font-size: 20px; padding-left: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.demo-zoom { width: 40px; height: 40px; padding: 0; font-size: 18px; opacity: 0; transition: opacity 0.2s; }
.demo-card:hover .demo-zoom { opacity: 1; }
.demo-title { display: block; padding: 10px 12px 12px; font-weight: 700; font-size: 14.5px; line-height: 1.4; }

.demo-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(5, 10, 20, 0.86); }
.demo-modal-box { position: relative; width: min(960px, 100%); }
.demo-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.demo-modal-frame iframe, .demo-modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-modal-img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 12px; object-fit: contain; }
.demo-modal-title { margin: 10px 4px 0; color: #fff; font-weight: 700; text-align: center; }
.demo-modal-x { position: absolute; top: -14px; right: -6px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }

.card-demo-sm { display: inline-flex; margin-top: 6px; padding: 3px 10px; font-size: 12px; }

/* Home "কী খুঁজছেন?" on phones: one swipeable row of compact pills instead of several rows of tiles */
@media (max-width: 720px) {
  .category-grid {
    display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { flex: none; scroll-snap-align: start; padding: 5px 12px 5px 5px; gap: 7px; border-radius: 999px; white-space: nowrap; align-items: center; }
  .category-card .category-initial, .category-card .category-icon-img { width: 30px; height: 30px; border-radius: 50%; font-size: 14px; }
  .category-card > span:not(.category-initial) { display: flex; align-items: center; gap: 6px; }
  .category-card strong { font-size: 13px; }
  .category-card small { font-size: 0; }                       /* hide "n টি প্রোডাক্ট" text … */
  .category-card small::before { content: attr(data-n); font-size: 11px; }
  .section-tint-primary { padding-top: 14px; padding-bottom: 12px; }
  .section-tint-primary .section-head { margin-bottom: 8px; }
  .section-tint-primary .section-head h2 { font-size: 1.15rem; }
}
@media (max-width: 720px) {
  .category-card small::before { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--c); color: #fff; text-align: center; font-weight: 700; line-height: 1.4; }
}

.thank-you-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.thank-you-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.thank-you-actions .thank-you-continue { margin: 0; }

/* ============ Phones: new category styles ============ */
@media (max-width: 720px) {
  /* Home: "story" circles — a coloured ring around the icon, the name underneath, count as a small badge */
  .category-grid { gap: 14px; padding: 6px 16px 10px; }
  .category-card {
    position: relative; flex-direction: column; justify-content: flex-start; width: 74px; padding: 0; gap: 7px;
    background: none; border: 0; border-radius: 0; text-align: center; box-shadow: none; transform: none;
  }
  .category-card:hover { box-shadow: none; transform: none; }
  .category-card .category-initial, .category-card .category-icon-img {
    width: 58px; height: 58px; border-radius: 50%; padding: 3px; box-sizing: border-box; font-size: 22px; background: var(--surface);
    border: 2.5px solid var(--c); box-shadow: 0 0 0 3px var(--c-soft), 0 8px 16px color-mix(in srgb, var(--c) 28%, transparent);
    object-fit: cover; transition: transform 0.2s;
  }
  .category-card:active .category-initial, .category-card:active .category-icon-img { transform: scale(0.92); }
  .category-card > span:not(.category-initial) { display: block; width: 100%; }
  .category-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; font-size: 12px; line-height: 1.3; font-weight: 700; }
  .category-card small { position: absolute; top: -3px; right: 2px; font-size: 0; }
  .category-card small::before { content: attr(data-n); font-size: 10.5px; padding: 1px 6px; min-width: 18px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
}

@media (max-width: 900px) {
  /* Shop: sticky tab bar — icon + name, the active tab is a filled gradient pill */
  .shop-side { position: sticky; top: 0; z-index: 20; margin: 0 -16px 10px; background: color-mix(in srgb, var(--bg, #fff) 94%, transparent); backdrop-filter: blur(8px); }
  .cat-nav { gap: 4px; padding: 6px 12px; margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
  .cat-item {
    border: 0; background: transparent; border-radius: 12px; padding: 7px 12px 7px 7px; gap: 7px; color: var(--text-dim);
    font-weight: 700; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .cat-item .cat-ico, .cat-item .cat-ico .category-initial, .cat-item .cat-ico .category-icon-img { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
  .cat-item.active {
    background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); color: #fff; border: 0;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent);
  }
  .cat-item.active .cat-ico { background: rgba(255, 255, 255, 0.22); }
  .cat-item.active .cat-count { background: rgba(255, 255, 255, 0.28); }
  .cat-count { background: var(--surface-2, #eef2f1); color: var(--text-dim); }
}


/* ---------- Thank-you page: offer for chosen products ---------- */
.ty-ad { max-width: 980px; margin: 8px auto 40px; }
.ty-ad-head { text-align: center; margin-bottom: 18px; }
.ty-ad-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: linear-gradient(90deg, #f97316, #f43f5e); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35); animation: tyFloat 2.6s ease-in-out infinite; }
@keyframes tyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.ty-ad-head h2 { margin: 12px 0 4px; font-size: clamp(1.4rem, 3.6vw, 2rem); }
.ty-ad-head p { margin: 0; color: var(--text-dim); }
.ty-ad-coupon { display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: 12px; border: 2px dashed #10b981; background: #ecfdf5; color: #065f46; font-size: 14px; }
.ty-ad-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ty-ad-n1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.ty-ad-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px rgba(6, 46, 38, 0.1); transition: transform 0.2s, box-shadow 0.2s; }
.ty-ad-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(6, 46, 38, 0.18); }
.ty-ad-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.ty-ad-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ty-ad-card:hover .ty-ad-img img { transform: scale(1.05); }
.ty-ad-off { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #f43f5e, #fb923c); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 6px 14px rgba(244, 63, 94, 0.45); }
.ty-ad-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.ty-ad-body h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.ty-ad-body h3 a { color: inherit; }
.ty-ad-body .price-row strong { font-size: 24px; color: var(--primary); }
.ty-ad-body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 40%, transparent); }
.ty-ad-more { text-align: center; font-size: 13px; color: var(--text-dim); }
@media (max-width: 560px) { .ty-ad { margin: 4px auto 28px; } .ty-ad-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ty-ad-badge { animation: none; } }

/* ---------- Thank-you page: compact on phones ---------- */
@media (max-width: 600px) {
  .payment-result.thank-you { margin: 10px 10px 14px; padding: 16px 12px 14px; border-radius: 16px; }
  .thank-you .thank-you-icon { width: 46px; height: 46px; margin-bottom: 8px; }
  .thank-you .thank-you-icon svg { width: 24px; height: 24px; }
  .thank-you h1 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.3; }
  .thank-you p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
  .thank-you .thank-you-sub { margin-top: 0; }
  .thank-you .download-list { gap: 8px; margin-top: 10px; }
  .thank-you .download-item { padding: 8px 10px; gap: 9px; flex-wrap: wrap; border-radius: 12px; }
  .thank-you .download-item .cart-thumb { width: 44px; height: 44px; flex: none; }
  .thank-you .download-item .download-title { font-size: 13.5px; line-height: 1.35; flex: 1 1 calc(100% - 60px); }
  .thank-you .download-item .download-title small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; }
  .thank-you .download-item .btn { flex: 1 1 100%; padding: 8px 10px; font-size: 14px; }
  .thank-you-actions { gap: 8px; margin-top: 10px; flex-wrap: nowrap; }
  .thank-you-actions .btn { flex: 1 1 0; min-width: 0; padding: 9px 8px; font-size: 13px; white-space: normal; line-height: 1.25; justify-content: center; text-align: center; }
  .thank-you-actions .btn .icon { display: none; }

  /* offer cards: picture on the left, text on the right — about 110px tall each */
  .ty-ad { margin: 0 10px 22px; }
  .ty-ad-head { margin-bottom: 10px; }
  .ty-ad-badge { padding: 4px 12px; font-size: 12px; }
  .ty-ad-head h2 { margin: 8px 0 2px; font-size: 1.1rem; }
  .ty-ad-head p { font-size: 13px; }
  .ty-ad-coupon { margin-top: 8px; padding: 5px 12px; font-size: 12.5px; }
  .ty-ad-grid { gap: 10px; }
  .ty-ad-card { flex-direction: row; border-radius: 14px; }
  .ty-ad-img { flex: none; width: 112px; aspect-ratio: auto; min-height: 112px; }
  .ty-ad-off { top: 6px; right: auto; left: 6px; padding: 2px 8px; font-size: 11.5px; }
  .ty-ad-body { padding: 9px 10px; gap: 6px; justify-content: center; }
  .ty-ad-body h3 { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ty-ad-body .price-row strong { font-size: 18px; }
  .ty-ad-body .price-row del { font-size: 12px; }
  .ty-ad-body .btn { padding: 7px 10px; font-size: 13px; }
  .ty-ad-more { display: none; }
}
@media (max-width: 600px) {
  .ty-ad-body .rating-row, .ty-ad-body .stars-row, .ty-ad-body .rating { font-size: 12.5px; margin: 0; }
  .ty-ad-body .price-row { gap: 2px 8px; }
  .ty-ad-body .card-off { font-size: 11px; padding: 1px 7px; }
}

/* Thank-you offers: picture beside the text (never above), always square on phones */
@media (min-width: 601px) {
  .ty-ad-grid { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
  .ty-ad-n1 { grid-template-columns: minmax(0, 760px); }
  .ty-ad-card { flex-direction: row; align-items: stretch; }
  .ty-ad-img { flex: 0 0 42%; aspect-ratio: 1 / 1; max-height: 340px; }
  .ty-ad-body { justify-content: center; padding: 20px; gap: 12px; }
  .ty-ad-card:nth-child(even) { flex-direction: row-reverse; }   /* alternate left / right when there are several */
}
@media (max-width: 600px) {
  .ty-ad-img { width: 112px; height: 112px; min-height: 0; aspect-ratio: 1 / 1; }
  .ty-ad-img img { width: 100%; height: 100%; object-fit: cover; }
}

/* Thank-you page on desktop: the order card and the offer sit side by side */
.ty-layout > .payment-result { width: 100%; }
@media (min-width: 981px) {
  .ty-layout.ty-has-ad { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: start; max-width: 1220px; }
  .ty-layout.ty-has-ad > .payment-result { max-width: none; margin: 40px 0 40px; }
  .ty-layout.ty-has-ad > .ty-ad { max-width: none; margin: 40px 0; }
  .ty-layout.ty-has-ad .ty-ad-grid { grid-template-columns: 1fr; }
  .ty-layout.ty-has-ad .ty-ad-head { text-align: left; }
}

/* Thank-you page: compact on desktop */
@media (min-width: 981px) {
  .ty-layout { margin-top: 0; }
  .ty-layout > .payment-result.thank-you { padding: 22px 22px 18px; }
  .ty-layout.ty-has-ad > .payment-result, .ty-layout.ty-has-ad > .ty-ad { margin: 20px 0 28px; }
  .thank-you .thank-you-icon { width: 54px; height: 54px; margin-bottom: 10px; }
  .thank-you .thank-you-icon svg { width: 28px; height: 28px; }
  .thank-you h1 { margin: 0 0 6px; font-size: 1.55rem; line-height: 1.3; }
  .thank-you p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; }
  .thank-you .download-list { gap: 8px; margin-top: 12px; }
  .thank-you .download-item { padding: 9px 12px; gap: 10px; }
  .thank-you .download-item .cart-thumb { width: 52px; height: 52px; flex: none; }
  .thank-you .download-item .download-title { font-size: 14.5px; line-height: 1.4; }
  .thank-you .download-item .download-title small { font-size: 12px; }
  .thank-you .download-item .btn { padding: 8px 14px; font-size: 14px; }
  .thank-you-actions { margin-top: 12px; gap: 8px; }
  .thank-you-actions .btn { padding: 9px 14px; font-size: 14px; }

  /* offers: smaller picture, tighter text */
  .ty-ad-head { margin-bottom: 12px; }
  .ty-ad-badge { padding: 4px 13px; font-size: 12.5px; }
  .ty-ad-head h2 { margin: 8px 0 2px; font-size: 1.45rem; }
  .ty-ad-head p { font-size: 14px; }
  .ty-ad-coupon { margin-top: 8px; padding: 5px 13px; font-size: 13px; }
  .ty-ad-grid { gap: 12px; }
  .ty-ad-card { border-radius: 16px; box-shadow: 0 6px 16px rgba(6, 36, 29, 0.09); }
  .ty-ad-img { flex: 0 0 150px; max-height: none; }
  .ty-ad-body { padding: 12px 14px; gap: 6px; }
  .ty-ad-body h3 { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ty-ad-body .price-row strong { font-size: 20px; }
  .ty-ad-body .btn { padding: 8px 12px; font-size: 14px; }
  .ty-ad-more { display: none; }
}


/* Thank-you page: coupon ticket */
.ty-coupon {
  position: relative; margin: 14px 0 2px; padding: 14px 16px 12px; text-align: center; border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2); border: 2px dashed #f97316; overflow: hidden;
}
.ty-coupon::before, .ty-coupon::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--surface, #fff); border: 2px dashed #f97316; }
.ty-coupon::before { left: -11px; }
.ty-coupon::after { right: -11px; }
.ty-coupon-main { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ty-coupon-msg { font-weight: 800; font-size: 15.5px; line-height: 1.4; color: #9a3412; }
.ty-coupon-off { padding: 3px 12px; border-radius: 999px; background: linear-gradient(135deg, #f43f5e, #fb923c); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 5px 12px rgba(244, 63, 94, 0.4); }
.ty-coupon-code { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25); }
.ty-coupon-code b { padding: 8px 18px; background: #fff; color: #c2410c; font-size: 20px; letter-spacing: 2px; font-family: 'Courier New', monospace; user-select: all; }
.ty-coupon-copy { border: 0; cursor: pointer; padding: 0 14px; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; }
.ty-coupon-copy:hover { filter: brightness(1.08); }
.ty-coupon-note { display: block; margin-top: 8px; color: #7c2d12; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 600px) { .ty-coupon { padding: 10px 12px 9px; } .ty-coupon-msg { font-size: 13.5px; } .ty-coupon-code b { font-size: 17px; padding: 6px 12px; } }

/* Coupon ticket v2: slim, side stub with the discount, perforated edge */
.ty-coupon { display: none; }
.ty-tk {
  display: flex; align-items: stretch; margin: 12px auto 0; max-width: 460px; text-align: left; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1.5px solid #fdba74; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.16);
}
.ty-tk-stub {
  position: relative; flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  color: #fff; background: linear-gradient(160deg, #f43f5e, #fb923c); padding: 8px 6px;
}
.ty-tk-stub b { font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -0.5px; }
.ty-tk-stub span { font-size: 12px; font-weight: 700; opacity: 0.95; }
.ty-tk-stub::after {   /* perforation */
  content: ''; position: absolute; top: 0; bottom: 0; right: -5px; width: 10px;
  background: radial-gradient(circle at 5px 6px, #fff 4px, transparent 4.5px) repeat-y; background-size: 10px 12px;
}
.ty-tk-body { flex: 1; min-width: 0; padding: 9px 12px 8px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; background: linear-gradient(135deg, #fffaf5, #fff5f5); }
.ty-tk-msg { margin: 0 !important; font-size: 13px !important; font-weight: 800; line-height: 1.35 !important; color: #9a3412; }
.ty-tk-row { display: flex; align-items: stretch; width: fit-content; max-width: 100%; border-radius: 9px; overflow: hidden; border: 1.5px dashed #f97316; background: #fff; }
.ty-tk-row code { padding: 3px 12px; font: 800 17px/1.4 'Courier New', monospace; letter-spacing: 1.5px; color: #c2410c; user-select: all; overflow: hidden; text-overflow: ellipsis; }
.ty-tk-copy { border: 0; cursor: pointer; padding: 0 12px; background: #f97316; color: #fff; font: inherit; font-weight: 700; font-size: 12.5px; }
.ty-tk-copy:hover { background: #ea580c; }
.ty-tk-note { color: #9a6a4f; font-size: 11.5px; line-height: 1.3; }
@media (max-width: 600px) { .ty-tk { margin-top: 8px; } .ty-tk-stub { width: 72px; } .ty-tk-stub b { font-size: 21px; } .ty-tk-msg { font-size: 12px !important; } .ty-tk-row code { font-size: 15px; padding: 2px 9px; } }

/* Offer heading: the badge and the title share one line */
.ty-ad-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ty-ad-head h2 { order: 2; margin: 0 !important; flex: 0 1 auto; }
.ty-ad-badge { order: 1; flex: none; }
.ty-ad-head p, .ty-ad-head .ty-ad-coupon { order: 3; flex: 1 0 100%; margin: 0; }
@media (min-width: 981px) { .ty-layout.ty-has-ad .ty-ad-head { justify-content: flex-start; } }
@media (max-width: 980px) { .ty-ad-head { justify-content: center; text-align: center; } }

/* Checkout: compact + clearer boxes — desktop / tablet only (phones keep the original layout) */
@media (min-width: 721px) {
.container.page:has(.checkout-layout) { padding-top: 14px; padding-bottom: 20px; }
.container.page:has(.checkout-layout) .page-title { margin: 0 0 10px; font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
.checkout-layout { gap: 16px; }
.checkout-form { padding: 16px 18px; }
.checkout-form h2 { font-size: 16px; margin: 0 0 4px; }
.checkout-form h2 + .form-help { margin-bottom: 10px; }
.checkout-form .form-help { font-size: 12.5px; line-height: 1.45; margin: 4px 0 8px; }
.checkout-form label { margin-bottom: 8px; font-size: 14px; }
.checkout-form input[type="text"], .checkout-form input[type="email"], .checkout-form select { margin-top: 3px; padding: 8px 12px; font-size: 14.5px; border-radius: 9px; }
.checkout-form .co-logged-in { padding: 7px 10px; margin-bottom: 6px; }
.checkout-form .co-avatar { width: 32px; height: 32px; font-size: 14px; }
.checkout-form .payment-method-picker { gap: 6px; margin-bottom: 10px; }
.checkout-form .payment-method-option { padding: 8px 12px; }
.checkout-form .payment-method-option strong { font-size: 14px; }
.checkout-form .payment-method-option small { font-size: 12px; }
.checkout-form .manual-steps { padding: 8px 12px 8px 28px; font-size: 13px; margin: 6px 0; }
.checkout-form .manual-number-box { padding: 8px 12px; margin: 6px 0; }
.checkout-form .btn-lg { padding: 11px 16px; font-size: 16px; }
.checkout-form .secure-note { margin: 8px 0 0; font-size: 12px; }
.order-summary { padding: 14px 16px; top: 100px; }
.order-summary h2 { font-size: 16px; margin: 0 0 10px; }
.order-summary .summary-item { gap: 9px; margin-bottom: 8px; font-size: 13.5px; }
.order-summary .summary-item .summary-thumb { width: 40px; height: 40px; border-radius: 8px; }
.order-summary .summary-row { padding: 5px 0; font-size: 14px; }
.order-summary .summary-row.total { margin: 4px 0 8px; padding-top: 10px; font-size: 17px; }
.order-summary .coupon-form { margin: 2px 0 6px; }
.order-summary .coupon-form input { padding: 7px 10px; font-size: 13.5px; }
.order-summary .form-help { font-size: 12px; margin: 6px 0 0; }


/* ---------- Checkout: clearer boxes and text ---------- */
.checkout-form, .order-summary { border: 1.5px solid color-mix(in srgb, var(--primary) 22%, var(--border)); box-shadow: 0 6px 18px rgba(6, 46, 38, 0.07); }
.order-summary { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 5%, var(--surface)), var(--surface) 55%); }
.checkout-form h2, .order-summary h2 {
  display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}
.checkout-form h2::before, .order-summary h2::before { content: ''; flex: none; width: 5px; height: 18px; border-radius: 3px; background: var(--primary); }
.checkout-form h2 + .form-help { margin-top: 0; }
/* labels: darker and bolder so they read as titles of the fields */
.checkout-form label { color: var(--text); font-weight: 700; }
.checkout-form label .form-help, .checkout-form .form-help { font-weight: 400; color: var(--text-dim); }
/* fields: a visible edge and a faint tint, a clear focus ring */
.checkout-form input[type="text"], .checkout-form input[type="email"], .checkout-form select {
  border: 1.5px solid #b7c4c0; background: #fbfdfc; font-weight: 500; color: var(--text);
}
.checkout-form input::placeholder { color: #94a3a0; font-weight: 400; }
.checkout-form input[type="text"]:focus, .checkout-form input[type="email"]:focus, .checkout-form select:focus {
  background: #fff; border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
/* payment options as clearly separate boxes */
.checkout-form .payment-method-option { border: 1.5px solid #c3cfcb; background: #fff; }
.checkout-form .payment-method-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.checkout-form .co-logged-in { border: 1.5px solid color-mix(in srgb, var(--primary) 35%, var(--border)); }
/* summary: items boxed, the total stands out */
.order-summary .summary-item { padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.order-summary .summary-title { font-weight: 600; color: var(--text); }
.order-summary .summary-row { color: var(--text); }
.order-summary .summary-row.total { border-top: 2px dashed color-mix(in srgb, var(--primary) 30%, var(--border)); }
.order-summary .summary-row.total strong { font-size: 1.15em; }
.order-summary .coupon-form input { border: 1.5px solid #b7c4c0; background: #fbfdfc; }
}

/* Checkout: trust box under the pay button */
.trust-box {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 11px 14px; text-align: left; border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf9); border: 1.5px solid #6ee7b7; box-shadow: 0 6px 16px rgba(16, 185, 129, 0.14);
}
.trust-box-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4); }
.trust-box-txt { min-width: 0; }
.trust-box-txt strong { display: block; color: #065f46; font-size: 15px; font-weight: 800; line-height: 1.3; }
.trust-box .secure-note { display: block; margin: 2px 0 0 !important; font-size: 13px !important; line-height: 1.45; text-align: left !important; color: #047857 !important; font-weight: 600; }
.trust-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.trust-points li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #a7f3d0; color: #065f46; font-size: 12px; font-weight: 700; }
.trust-points .icon { color: #059669; }
@media (max-width: 720px) { .trust-box { padding: 9px 11px; gap: 10px; } .trust-box-ic { width: 36px; height: 36px; } .trust-box-txt strong { font-size: 14px; } .trust-points li { font-size: 11.5px; padding: 2px 8px; } }

/* Checkout on phones: compact, spacing and sizes only (no layout-changing rules) */
@media (max-width: 720px) {
  .container.page:has(.checkout-layout) { padding-top: 8px; padding-bottom: 12px; }
  .container.page:has(.checkout-layout) .page-title { font-size: 1.15rem; margin: 0 0 8px; }
  .checkout-layout { gap: 10px; }
  .checkout-form { padding: 12px; }
  .checkout-form h2 { font-size: 15.5px; margin-bottom: 4px; }
  .checkout-form .form-help { font-size: 12px; line-height: 1.4; }
  .checkout-form input[type="text"], .checkout-form input[type="email"], .checkout-form select { padding: 8px 10px; font-size: 14px; }
  .checkout-form .co-logged-in { padding: 7px 10px; }
  .checkout-form .payment-method-option { padding: 8px 12px; }
  .checkout-form .manual-steps { padding-top: 6px; padding-bottom: 6px; }
  .order-summary { padding: 10px 12px; }
  .order-summary h2 { font-size: 15.5px; margin-bottom: 8px; }
  .order-summary .summary-item { margin-bottom: 6px; }
  .order-summary .summary-item .summary-thumb { width: 36px; height: 36px; }
  .order-summary .summary-row { padding: 4px 0; }
  .order-summary .summary-row.total { margin: 4px 0 6px; padding-top: 8px; font-size: 16.5px; }
}

/* Checkout on phones: clearer boxes and text — colours, borders and weights only */
@media (max-width: 720px) {
  .checkout-form, .order-summary { border: 1.5px solid color-mix(in srgb, var(--primary) 25%, var(--border)); box-shadow: 0 4px 14px rgba(6, 46, 38, 0.08); }
  .order-summary { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 5%, var(--surface)), var(--surface) 60%); }
  .checkout-form h2, .order-summary h2 { font-weight: 800; padding-bottom: 6px; border-bottom: 2px solid color-mix(in srgb, var(--primary) 20%, var(--border)); }
  .checkout-form label { color: var(--text); font-weight: 700; }
  .checkout-form .form-help { font-weight: 400; color: var(--text-dim); }
  .checkout-form input[type="text"], .checkout-form input[type="email"], .checkout-form select { border: 1.5px solid #b7c4c0; background: #fbfdfc; font-weight: 500; }
  .checkout-form input[type="text"]:focus, .checkout-form input[type="email"]:focus, .checkout-form select:focus { background: #fff; border-color: var(--primary); }
  .checkout-form .payment-method-option { border: 1.5px solid #c3cfcb; background: #fff; }
  .checkout-form .payment-method-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
  .order-summary .summary-title { font-weight: 600; color: var(--text); }
  .order-summary .summary-row { color: var(--text); }
  .order-summary .summary-row.total { border-top: 2px dashed color-mix(in srgb, var(--primary) 30%, var(--border)); }
  .order-summary .coupon-form input { border: 1.5px solid #b7c4c0; background: #fbfdfc; }
}


/* Checkout: the "correct email" notice — highlighted box on desktop, pop-up on phones */
.co-note {
  display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #fff7e6, #fffbf0); border: 1.5px solid #fbbf24; border-left: 6px solid #f59e0b;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.14);
}
.co-note-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f59e0b; color: #fff; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); }
.co-note p { margin: 0 !important; font-size: 14px !important; line-height: 1.6 !important; color: #78350f; }
.co-note p b { color: #92400e; font-weight: 800; }
.co-note a { color: #b45309; font-weight: 800; text-decoration: underline; }
.co-note-link, .co-pop { display: none; }
@media (max-width: 720px) {
  .co-note { display: none; }
  .co-note-link {
    display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 10px; padding: 5px 12px; border: 1px solid #fbbf24; border-radius: 999px;
    background: #fffbeb; color: #92400e; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  }
  .co-pop { position: fixed; inset: 0; z-index: 2500; display: flex; align-items: flex-end; justify-content: center; padding: 14px; background: rgba(8, 15, 30, 0.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.2s; }
  .co-pop[hidden] { display: none; }
  .co-pop.on { opacity: 1; }
  .co-pop-card {
    width: 100%; max-width: 420px; margin-bottom: 8vh; padding: 22px 18px 16px; text-align: center; border-radius: 22px; background: #fff;
    border-top: 5px solid #f59e0b; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); transform: translateY(24px) scale(0.97); transition: transform 0.28s cubic-bezier(.2, .9, .3, 1.15);
  }
  .co-pop.on .co-pop-card { transform: none; }
  .co-pop-ic { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: -42px 0 6px; border-radius: 50%; background: #f59e0b; color: #fff; border: 4px solid #fff; box-shadow: 0 8px 18px rgba(245, 158, 11, 0.5); }
  .co-pop-card h3 { margin: 4px 0 6px; font-size: 19px; color: #78350f; }
  .co-pop-card p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
  .co-pop-card .co-pop-sub { font-size: 13px; color: var(--text-dim); }
  .co-pop-actions { display: flex; gap: 8px; margin-top: 12px; }
  .co-pop-actions .btn { flex: 1; padding: 10px 8px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .co-pop, .co-pop-card { transition: none; } }

/* email notice box: slimmer */
.co-note { gap: 10px; margin: 2px 0 12px; padding: 7px 12px; border-radius: 12px; border-left-width: 5px; box-shadow: 0 3px 10px rgba(245, 158, 11, 0.12); align-items: center; }
.co-note-ic { width: 30px; height: 30px; }
.co-note-ic .icon { width: 16px; height: 16px; }
.co-note p { font-size: 13px !important; line-height: 1.5 !important; }

/* Desktop: cart and checkout headings are centred */
@media (min-width: 721px) {
  .container.page:has(.checkout-layout) .page-title,
  .container.page:has(.cart-layout) .page-title,
  .container.page:has(.empty-state-cart) .page-title { text-align: center; }
  .checkout-form h2, .order-summary h2 { justify-content: center; text-align: center; }
  .cart-items > h2, .cart-layout h2 { text-align: center; }
}


/* ---------- Thank-you: Telegram group pop-up + line ---------- */
.tg-pop { position: fixed; inset: 0; z-index: 2600; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 15, 30, 0.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.22s; }
.tg-pop[hidden] { display: none; }
.tg-pop.on { opacity: 1; }
.tg-pop-card {
  position: relative; width: 100%; max-width: 380px; padding: 30px 22px 16px; text-align: center; border-radius: 26px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #3ab4ee 0%, transparent 55%), linear-gradient(160deg, #1d96d3, #0f6fa6 70%, #0b5a88);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5); transform: translateY(22px) scale(0.96); transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.15);
}
.tg-pop.on .tg-pop-card { transform: none; }
.tg-pop-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.tg-pop-ic { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 8px; border-radius: 50%; background: #fff; color: #229ed9; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); animation: tgFloat 2.4s ease-in-out infinite; }
@keyframes tgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.tg-pop-badge { display: block; width: fit-content; margin: 0 auto 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); font-size: 12.5px; font-weight: 700; }
.tg-pop-card h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.3; color: #fff; }
.tg-pop-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.tg-pop-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 14px; border-radius: 14px; background: #fff; color: #0f6fa6; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28); transition: transform 0.15s; animation: tgPulse 1.8s ease-in-out infinite; }
.tg-pop-btn:hover { transform: translateY(-2px); }
@keyframes tgPulse { 0%, 100% { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(255, 255, 255, 0.55); } 50% { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 9px rgba(255, 255, 255, 0); } }
.tg-pop-later { margin-top: 10px; border: 0; background: none; color: rgba(255, 255, 255, 0.8); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.tg-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; text-align: left; border-radius: 12px; background: #eaf6fd; border: 1.5px solid #9bd3f0; color: #0b6a9a; text-decoration: none; }
.tg-line .icon, .tg-line svg { flex: none; color: #229ed9; }
.tg-line span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tg-line b { font-size: 14px; color: #0b6a9a; }
.tg-line small { font-size: 12px; color: #4b6a7c; }
@media (prefers-reduced-motion: reduce) { .tg-pop, .tg-pop-card { transition: none; } .tg-pop-ic, .tg-pop-btn { animation: none; } }

/* Telegram: one slim row with a small Join button (no pop-up) */
.tg-pop { display: none !important; }
.tg-line { display: none; }
.tg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px auto 0; max-width: 460px; padding: 6px 8px 6px 12px; border-radius: 999px; background: #eaf6fd; border: 1.5px solid #9bd3f0; }
.tg-row-txt { display: flex; align-items: center; gap: 8px; min-width: 0; color: #0b6a9a; font-size: 13.5px; line-height: 1.3; text-align: left; }
.tg-row-txt svg, .tg-row-txt .icon { flex: none; color: #229ed9; }
.tg-join { flex: none; padding: 5px 18px; border-radius: 999px; background: #229ed9; color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none; box-shadow: 0 4px 10px rgba(34, 158, 217, 0.4); transition: transform 0.15s, background 0.15s; }
.tg-join:hover { background: #1a8bc2; transform: translateY(-1px); }
@media (max-width: 600px) { .tg-row { margin-top: 8px; padding: 5px 6px 5px 10px; } .tg-row-txt { font-size: 12.5px; } .tg-join { padding: 4px 14px; font-size: 13px; } }

/* ---------- Product page picture zoom viewer ---------- */
.pz-box { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center; background: rgba(5, 10, 20, 0.92); }
.pz-view { max-width: min(1100px, 94vw); max-height: 90vh; overflow: auto; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.pz-view img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 10px; transition: transform 0.25s; transform-origin: center; user-select: none; }
.pz-box.zoomed .pz-view { cursor: zoom-out; align-items: flex-start; justify-content: flex-start; }
.pz-box.zoomed .pz-view img { max-width: none; max-height: none; width: 190%; border-radius: 0; }
.pz-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.pz-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--primary); font-size: 16px; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.pz-prev { left: 14px; }
.pz-next { right: 14px; }
.pz-box.single .pz-nav { display: none; }
.pz-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 13px; }
.pz-hint { position: absolute; top: 22px; left: 18px; color: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
.pz-box.zoomed .pz-hint { display: none; }
@media (max-width: 600px) { .pz-nav { width: 38px; height: 38px; } .pz-prev { left: 6px; } .pz-next { right: 6px; } }


/* "Protected" notice (content protection) */
.protect-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 4000; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0f2a43, #0a7d63); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, 24px) scale(0.96); opacity: 0; pointer-events: none; transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.2), opacity 0.2s;
}
.protect-toast.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.protect-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 17px; }
.protect-toast span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.protect-toast b { font-size: 15px; letter-spacing: 0.4px; }
.protect-toast small { font-size: 12px; opacity: 0.88; }
@media (prefers-reduced-motion: reduce) { .protect-toast { transition: none; } }


/* Reviews: up to 5 are visible at once on wide screens; more than 5 slide in pages */
.rv-wrap.rv-five .rv-track { gap: 14px; }
@media (min-width: 640px) { .rv-wrap.rv-five .rv-track > * { flex: 0 0 calc((100% - 28px) / 3); } }
@media (min-width: 1000px) { .rv-wrap.rv-five .rv-track > * { flex: 0 0 calc((100% - 56px) / 5); } }
.rv-wrap.rv-five .rv-track > * { min-width: 0; }


/* ---- Promo pop-up: compact sizing (fits a phone screen without scrolling) ---- */
.promo-card { max-width: 400px; }
.promo-scroll { max-height: 92vh; max-height: 92dvh; padding: 22px 20px 16px; }
.promo-img { width: calc(100% + 40px); margin: -22px -20px 12px; max-height: 190px; }
.promo-badge { padding: 6px 16px; margin-bottom: 10px; font-size: 12px; }
.promo-title { font-size: 23px; margin-bottom: 6px; }
.promo-sub { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.promo-price-box { padding: 14px 10px 12px; margin-bottom: 12px; border-radius: 18px; }
.promo-prod {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 8px; padding: 5px 12px; max-width: 92%;
  border-radius: 999px; background: rgba(250, 204, 21, 0.13); border: 1px solid rgba(250, 204, 21, 0.4); color: #fde68a; font-size: 13.5px; font-weight: 700; line-height: 1.35;
}
.promo-prod .icon { flex: none; color: #facc15; }
.promo-prod span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.promo-prices { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin-bottom: 8px; }
.promo-col { min-width: 0; }
.promo-col + .promo-col { padding-left: 18px; border-left: 1px dashed rgba(148, 163, 184, 0.4); }
.promo-reg { font-size: 12.5px; }
.promo-price-box del { display: block; margin: 0; font-size: 20px; }
.promo-price { font-size: 40px; margin: 0; }
.promo-off { top: -12px; right: -6px; padding: 5px 10px; font-size: 13px; }
.promo-save { padding: 5px 14px; font-size: 13px; }
.promo-cta { padding: 13px 12px; margin-bottom: 10px; font-size: 16px; border-radius: 14px; }
.promo-sec { padding: 10px 6px; font-size: 14px; border-radius: 12px; }
.promo-foot { margin-top: 10px; font-size: 12px; }
.promo-x { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 20px; }
@media (max-width: 480px) {
  .promo-pop { padding: 12px; }
  .promo-scroll { padding: 18px 14px 14px; }
  .promo-img { width: calc(100% + 28px); margin: -18px -14px 10px; max-height: 24vh; max-height: 24dvh; }
  .promo-title { font-size: 20px; }
  .promo-sub { font-size: 13.5px; margin-bottom: 10px; }
  .promo-price { font-size: 36px; }
  .promo-prices { gap: 14px; }
  .promo-col + .promo-col { padding-left: 14px; }
}
@media (max-height: 640px) { .promo-img { max-height: 120px; } .promo-sub { display: none; } }

/* ---- Promo pop-up: extra compact (less vertical space) ---- */
.promo-scroll { padding: 14px 16px 12px; }
.promo-img { width: calc(100% + 32px); margin: -14px -16px 8px; max-height: 120px; }
.promo-badge { padding: 4px 13px; margin-bottom: 6px; font-size: 11.5px; }
.promo-title { font-size: 19px; line-height: 1.2; margin-bottom: 3px; }
.promo-sub { font-size: 12.5px; line-height: 1.4; margin-bottom: 8px; }
.promo-price-box { padding: 10px 8px 8px; margin-bottom: 8px; border-radius: 14px; }
.promo-prod { margin-bottom: 5px; padding: 3px 10px; font-size: 12.5px; }
.promo-prices { margin-bottom: 5px; gap: 12px; }
.promo-col + .promo-col { padding-left: 12px; }
.promo-reg { font-size: 11.5px; line-height: 1.3; }
.promo-price-box del { font-size: 16px; line-height: 1.2; }
.promo-price { font-size: 30px; line-height: 1.1; }
.promo-off { top: -10px; padding: 4px 8px; font-size: 12px; }
.promo-save { padding: 3px 11px; font-size: 12px; }
.promo-cta { padding: 10px 10px; margin-bottom: 7px; font-size: 15px; border-radius: 12px; }
.promo-sec { padding: 7px 4px; font-size: 13px; border-radius: 10px; }
.promo-foot { margin-top: 7px; font-size: 11.5px; }
.promo-x { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 18px; }
@media (max-width: 480px) {
  .promo-scroll { padding: 12px 12px 10px; }
  .promo-img { width: calc(100% + 24px); margin: -12px -12px 7px; max-height: 17vh; max-height: 17dvh; }
  .promo-title { font-size: 18px; }
  .promo-price { font-size: 28px; }
}

/* ---- Promo pop-up: smarter, calmer look ---- */
.promo-card::before { animation-duration: 14s; opacity: 0.55; }            /* slower, softer frame glow */
.promo-card::after {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(170deg, #14213d 0%, #0d1730 60%, #0a1122 100%);
}
.promo-img { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); margin-bottom: 0; }
.promo-badge {
  animation: none; box-shadow: none; letter-spacing: 0.3px; color: #bae6fd; background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
}
.promo-badge::after { display: none; }
.promo-title { text-shadow: none; letter-spacing: -0.2px; }
.promo-sub { color: #94a3b8; }
.promo-price-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.promo-prod { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #f1f5f9; }
.promo-prod .icon { color: #34d399; }
.promo-price { animation: none; filter: none; background: linear-gradient(180deg, #fff, #fcd34d); -webkit-background-clip: text; background-clip: text; }
.promo-price-box del { color: #f87171; text-decoration-thickness: 2px; }
.promo-off { animation: none; transform: rotate(6deg); box-shadow: 0 6px 14px rgba(244, 63, 94, 0.4); }
.promo-save { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.5); box-shadow: none; }
.promo-cta { animation: promo-pulse 2.4s ease-in-out infinite; background: linear-gradient(135deg, #22c55e, #16a34a); background-size: 100% 100%; letter-spacing: 0.2px; }
.promo-cta::after { animation-duration: 3.6s; }
.promo-cta::before { content: '→'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; opacity: 0.9; }
.promo-sec { background: transparent; border-color: rgba(255, 255, 255, 0.16); color: #cbd5e1; font-weight: 600; }
.promo-sec:hover { background: rgba(255, 255, 255, 0.07); transform: none; }
.promo-foot { color: #7c8aa5; }
.promo-x { background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); }


/* ---------- Floating cart button: appears on the right edge once something is in the cart ---------- */
.cart-fab {
  position: fixed; right: 0; top: 50%; z-index: 900; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 10px 10px 9px;
  border-radius: 16px 0 0 16px; background: linear-gradient(160deg, #fb923c, #f97316); color: #fff; text-decoration: none;
  box-shadow: -4px 6px 20px rgba(249, 115, 22, 0.4); font-weight: 700; line-height: 1.2; transition: transform 0.25s, opacity 0.25s;
}
.cart-fab:hover { color: #fff; transform: translateY(-50%) translateX(-3px); }
.cart-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(100%); }
.cart-fab .icon { width: 24px; height: 24px; }
.cart-fab .cf-n { font-size: 11.5px; white-space: nowrap; }
.cart-fab .cf-total { padding: 3px 10px; border-radius: 8px; background: #fff; color: #c2410c; font-size: 13px; font-weight: 800; white-space: nowrap; }
.cart-fab.bump { animation: cartFabBump 0.7s ease; }
.cart-fab.pulsing { animation: cartFabPulse 1.8s ease-in-out infinite; }
@keyframes cartFabBump { 0%, 100% { transform: translateY(-50%); } 30% { transform: translateY(-50%) translateX(-10px) scale(1.06); } }
@keyframes cartFabPulse { 0%, 100% { box-shadow: -4px 6px 20px rgba(249, 115, 22, 0.4); } 50% { box-shadow: -4px 6px 30px rgba(249, 115, 22, 0.95); } }
@media (max-width: 720px) { .cart-fab { min-width: 64px; padding: 8px 8px 7px; top: 56%; } .cart-fab .cf-total { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .cart-fab, .cart-fab.bump, .cart-fab.pulsing { animation: none; transition: none; } }


/* Header cart is only for an empty cart; once something is in it, the floating button takes over */
.cart-wrap.is-off { display: none; }
/* Floating cart in the site's own colours, simpler shape */
.cart-fab {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark)); box-shadow: -3px 6px 18px rgba(7, 99, 78, 0.38);
  min-width: 68px; padding: 9px 8px 8px; gap: 2px;
}
.cart-fab .icon { width: 22px; height: 22px; }
.cart-fab .cf-n { font-size: 11px; font-weight: 600; opacity: 0.95; }
.cart-fab .cf-total { color: var(--primary-dark); background: #fff; font-size: 13px; }
@keyframes cartFabPulse { 0%, 100% { box-shadow: -3px 6px 18px rgba(7, 99, 78, 0.38); } 50% { box-shadow: -3px 6px 28px rgba(10, 125, 99, 0.9); } }
@media (max-width: 720px) { .cart-fab { min-width: 60px; padding: 7px 6px 6px; } }

/* ---- Floating cart v2: draggable anywhere, live dot, highlight on change ---- */
.cart-fab { transform: none; translate: 0 -50%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: left, top;
  transition: scale 0.25s, opacity 0.25s, box-shadow 0.25s; animation: cfIn 0.5s cubic-bezier(.2, 1.2, .3, 1) both; }
.cart-fab.moved { translate: none; right: auto; border-radius: 16px; }
.cart-fab.dragging { cursor: grabbing; scale: 1.06; box-shadow: 0 14px 34px rgba(7, 99, 78, 0.55); transition: none; animation: none; }
.cart-fab:hover { transform: none; scale: 1.04; color: #fff; }
.cart-fab.is-hidden { opacity: 0; pointer-events: none; scale: 0.5; transform: none; animation: none; }
.cart-fab.bump { animation: cfBump 0.6s ease; }
.cart-fab.pulsing { animation: cfGlow 2s ease-in-out infinite; }
@keyframes cfIn { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
@keyframes cfBump { 0% { scale: 1; } 35% { scale: 1.18; } 65% { scale: 0.95; } 100% { scale: 1; } }
@keyframes cfGlow { 0%, 100% { box-shadow: -3px 6px 18px rgba(7, 99, 78, 0.38); } 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.25), -3px 6px 26px rgba(10, 125, 99, 0.8); } }
.cart-fab .icon { animation: cfIcon 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes cfIcon { 0%, 82%, 100% { rotate: 0deg; } 88% { rotate: -14deg; } 94% { rotate: 12deg; } }
/* live dot */
.cf-live { position: absolute; top: 6px; left: 7px; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.cf-live::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #4ade80; animation: cfPing 1.6s ease-out infinite; }
@keyframes cfPing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
/* changed numbers flash */
.cart-fab .cf-n b, .cart-fab .cf-total { transition: background 0.3s, color 0.3s; }
.cart-fab .cf-total.flash { animation: cfFlash 1.2s ease; }
.cart-fab .cf-n b.flash { animation: cfFlashTxt 1.2s ease; }
@keyframes cfFlash { 0%, 100% { background: #fff; } 25%, 60% { background: #fde047; transform: scale(1.12); } }
@keyframes cfFlashTxt { 0%, 100% { color: inherit; } 25%, 60% { color: #fde047; } }
.cf-plus { position: absolute; top: -6px; right: 8px; font-size: 13px; font-weight: 800; color: #fde047; opacity: 0; pointer-events: none; }
.cf-plus.go { animation: cfPlus 1s ease-out; }
@keyframes cfPlus { 0% { opacity: 1; transform: translateY(6px); } 100% { opacity: 0; transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) { .cart-fab, .cart-fab .icon, .cf-live::after, .cart-fab .cf-total.flash { animation: none !important; } }


/* ---------- Back-to-top button (appears after scrolling down) ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 86px; z-index: 64; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px rgba(7, 99, 78, 0.4); opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.8);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, box-shadow 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(7, 99, 78, 0.55); }
.to-top:hover svg { animation: toTopNudge 0.7s ease-in-out infinite; }
@keyframes toTopNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 720px) { .to-top { right: 22px; bottom: 82px; width: 42px; height: 42px; } body.has-order-bar .to-top { bottom: 156px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top:hover svg { transition: none; animation: none; } }

/* Back-to-top: left side (above the bottom-left "just purchased" popup) */
.to-top { right: auto; left: 22px; bottom: 90px; }
@media (max-width: 720px) { .to-top { right: auto; left: 14px; bottom: 82px; } }


/* Back-to-top: scroll-progress ring around the button */
.to-top { overflow: visible; }
.to-top .tt-arrow { position: relative; z-index: 1; }
.to-top .tt-ring { position: absolute; left: 50%; top: 50%; width: calc(100% + 12px); height: calc(100% + 12px); transform: translate(-50%, -50%) rotate(-90deg); pointer-events: none; }
.to-top .tt-track { fill: none; stroke: rgba(10, 125, 99, 0.18); stroke-width: 3; }
.to-top .tt-bar { fill: none; stroke: #34d399; stroke-width: 3.2; stroke-linecap: round; transition: stroke-dashoffset 0.12s linear; filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.7)); }
.to-top { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(7, 99, 78, 0.28); }
.to-top .tt-arrow { color: #fff; }
.to-top::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(160deg, var(--primary), var(--primary-dark)); }
@media (prefers-reduced-motion: reduce) { .to-top .tt-bar { transition: none; } }

/* Back-to-top: smaller */
.to-top { width: 34px; height: 34px; left: 20px; bottom: 88px; }
.to-top .tt-arrow { width: 16px; height: 16px; }
.to-top .tt-ring { width: calc(100% + 10px); height: calc(100% + 10px); }
.to-top .tt-track, .to-top .tt-bar { stroke-width: 3.6; }
@media (max-width: 720px) { .to-top { width: 32px; height: 32px; left: 14px; bottom: 82px; } body.has-order-bar .to-top { bottom: 156px; } }


/* Back-to-top: yellow -> red with scroll, light see-through inside */
.to-top { --tt-c: hsl(50, 95%, 50%); --tt-bg: hsla(50, 100%, 60%, 0.2); --tt-ar: hsl(50, 90%, 38%); background: transparent; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.to-top::before { background: var(--tt-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.2s; }
.to-top .tt-arrow { color: var(--tt-ar); stroke-width: 3; }
.to-top .tt-track { stroke: rgba(0, 0, 0, 0.1); }
.to-top .tt-bar { stroke: var(--tt-c); filter: drop-shadow(0 0 3px var(--tt-c)); }
.to-top:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }

/* Back-to-top: even smaller, border and fill both see-through */
.to-top { width: 28px; height: 28px; left: 18px; bottom: 86px; box-shadow: none; }
.to-top .tt-arrow { width: 13px; height: 13px; }
.to-top .tt-ring { width: calc(100% + 8px); height: calc(100% + 8px); opacity: 0.7; }
.to-top .tt-track, .to-top .tt-bar { stroke-width: 3.4; }
.to-top .tt-track { stroke: rgba(0, 0, 0, 0.06); }
.to-top .tt-bar { filter: none; }
.to-top::before { background: color-mix(in srgb, var(--tt-c) 12%, transparent); }
.to-top:hover { box-shadow: none; }
.to-top:hover .tt-ring { opacity: 1; }
@media (max-width: 720px) { .to-top { width: 27px; height: 27px; left: 12px; bottom: 80px; } body.has-order-bar .to-top { bottom: 154px; } }

/* Back-to-top on phones: right at the bottom edge */
@media (max-width: 720px) { .to-top { bottom: 14px; } body.has-order-bar .to-top { bottom: 92px; } }

/* Back-to-top on desktop: bottom-left corner; the "just purchased" popup moves right of it */
@media (min-width: 721px) {
  .to-top { bottom: 20px; left: 20px; }
  .fake-purchase-toast { left: 64px; }
}


/* ---------- Home banner (16:9) ---------- */
.home-banner { padding: 16px 0 4px; }
.hb-frame { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #e9eef5; box-shadow: 0 10px 28px rgba(15, 42, 67, 0.14); }
.hb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.hb-frame { transition: transform 0.2s, box-shadow 0.2s; }
a.hb-frame:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 42, 67, 0.2); }
@media (max-width: 720px) { .home-banner { padding: 10px 0 0; } .hb-frame { border-radius: 12px; } }

/* Home banner: smaller and slimmer, sits above "নতুন প্রোডাক্ট" */
.home-banner { padding: 6px 0; }
.home-banner .hb-frame { max-width: 620px; margin: 0 auto; border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 42, 67, 0.12); }
@media (max-width: 720px) { .home-banner { padding: 2px 0; } .home-banner .hb-frame { max-width: 100%; border-radius: 10px; } }

/* Home banner: 16:5 */
.hb-frame { aspect-ratio: 16 / 5; }
.home-banner .hb-frame { max-width: 780px; }


/* Home bottom ad / offer strip */
.home-promo { padding: 14px 0 22px; }
.home-promo .hb-frame { max-width: 100%; }
.offer-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; padding: 18px 24px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #14b88f); box-shadow: 0 10px 26px rgba(7, 99, 78, 0.28); position: relative; overflow: hidden;
}
.offer-strip::after { content: ''; position: absolute; top: -40%; right: -6%; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); pointer-events: none; }
.os-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; z-index: 1; }
.os-text strong { font-size: 19px; line-height: 1.3; }
.os-text span { font-size: 14px; opacity: 0.9; }
.os-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transition: transform 0.15s; }
.os-btn:hover { transform: translateY(-2px); color: var(--primary-dark); }
@media (max-width: 720px) { .offer-strip { padding: 14px 16px; border-radius: 12px; } .os-text strong { font-size: 16.5px; } .os-btn { width: 100%; justify-content: center; } }


/* Home offer strip v2: icon + tag + coupon chip + button */
.home-promo { padding: 18px 0 0; margin-bottom: -34px; }
.offer-strip {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px 20px; padding: 16px 22px; border-radius: 18px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(94, 234, 212, 0.35), transparent 55%), linear-gradient(120deg, #064e3b, var(--primary-dark) 45%, var(--primary));
  box-shadow: 0 14px 30px rgba(7, 99, 78, 0.3); border: 1px solid rgba(255, 255, 255, 0.14);
}
.offer-strip::after { display: none; }
.os-ico { font-size: 26px; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.16); color: #fde68a; animation: osFloat 3.4s ease-in-out infinite; }
@keyframes osFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-6deg); } }
.os-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #fde047; color: #713f12; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; }
.os-text { gap: 4px; }
.os-text strong { font-size: 20px; }
.os-sub { opacity: 0.85; }
.os-code {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 16px 5px; border: 2px dashed rgba(253, 224, 71, 0.85); border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; font: inherit; line-height: 1.2; position: relative; z-index: 1;
}
.os-code small { font-size: 10.5px; opacity: 0.85; }
.os-code b { font-size: 19px; letter-spacing: 1.5px; color: #fde047; }
.os-code em { font-style: normal; font-size: 10.5px; opacity: 0.85; }
.os-code:hover { background: rgba(255, 255, 255, 0.18); }
.os-code.ok em { color: #86efac; opacity: 1; font-weight: 700; }
.os-btn { padding: 11px 22px; background: #fde047; color: #713f12; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); animation: osPulse 2.2s ease-in-out infinite; }
.os-btn:hover { color: #713f12; background: #facc15; }
@keyframes osPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (max-width: 720px) {
  .home-promo { padding-top: 12px; margin-bottom: -40px; }
  .offer-strip { grid-template-columns: auto 1fr; padding: 14px; gap: 10px 12px; border-radius: 14px; }
  .os-ico { width: 42px; height: 42px; border-radius: 12px; }
  .os-text strong { font-size: 17px; }
  .os-code { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 10px; }
  .os-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .os-ico, .os-btn { animation: none; } }

/* Home: no big white gap above the footer */
.home-promo, .home-promo { margin-bottom: 0; padding: 14px 0 16px; }
body[data-page-type="home"] .site-footer { margin-top: 0; }
@media (max-width: 720px) { .home-promo { margin-bottom: 0; padding: 10px 0 14px; } }


/* ---------- Home banner slider ---------- */
.hb-slider { position: relative; max-width: 780px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(15, 42, 67, 0.12); }
.hb-track { display: flex; transition: transform 0.55s cubic-bezier(.4, 0, .2, 1); touch-action: pan-y; }
.hb-slide { flex: 0 0 100%; min-width: 0; }
.hb-slider .hb-frame { position: relative; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.hb-slider a.hb-frame:hover { transform: none; box-shadow: none; }
.hb-btn {
  position: absolute; left: 4%; bottom: 14%; display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px;
  background: #fde047; color: #713f12; font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); transition: transform 0.15s;
}
.hb-btn:hover { transform: translateY(-2px); color: #713f12; background: #facc15; }
.hb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.78); color: #0f2a43; font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; z-index: 2; }
.hb-slider:hover .hb-nav { opacity: 1; }
.hb-prev { left: 8px; } .hb-next { right: 8px; }
.hb-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.hb-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.6); cursor: pointer; transition: width 0.25s, background 0.25s; }
.hb-dot.on { width: 20px; background: #fff; }
@media (max-width: 720px) { .hb-slider { max-width: 100%; border-radius: 10px; } .hb-nav { display: none; } .hb-btn { padding: 5px 12px; font-size: 12px; bottom: 16%; } }
@media (prefers-reduced-motion: reduce) { .hb-track { transition: none; } }


/* Slide button: placed in a corner / edge chosen per picture, small and out of the artwork's way */
.hb-btn { left: auto; right: auto; top: auto; bottom: auto; padding: 6px 14px; font-size: 13px; }
.hb-btn.hb-pos-br { right: 3%; bottom: 20px; }
.hb-btn.hb-pos-bl { left: 3%; bottom: 20px; }
.hb-btn.hb-pos-bc { left: 50%; bottom: 20px; transform: translateX(-50%); }
.hb-btn.hb-pos-bc:hover { transform: translateX(-50%) translateY(-2px); }
.hb-btn.hb-pos-tr { right: 3%; top: 10px; }
.hb-btn.hb-pos-tl { left: 3%; top: 10px; }
.hb-btn.hb-pos-tc { left: 50%; top: 10px; transform: translateX(-50%); }
.hb-btn.hb-pos-tc:hover { transform: translateX(-50%) translateY(-2px); }
@media (max-width: 720px) { .hb-btn { padding: 4px 10px; font-size: 11.5px; } .hb-btn.hb-pos-br, .hb-btn.hb-pos-bl, .hb-btn.hb-pos-bc { bottom: 16px; } .hb-btn.hb-pos-tr, .hb-btn.hb-pos-tl, .hb-btn.hb-pos-tc { top: 6px; } }


/* Slide button v3: highlighted, half on the picture, half below it (straddles the bottom edge) */
.hb-slider { overflow: visible; border-radius: 0; box-shadow: none; }
.hb-clip { overflow: hidden; border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 42, 67, 0.12); }
.home-banner.has-btn { padding-bottom: 26px; }
.hb-btn {
  position: absolute; top: auto; bottom: 0; z-index: 3; transform: translateY(50%); padding: 10px 24px; border-radius: 999px; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, #fde047, #f59e0b); color: #5b3000; border: 3px solid #fff; text-decoration: none;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.55), 0 0 0 0 rgba(253, 224, 71, 0.7); animation: hbGlow 2s ease-out infinite; transition: opacity 0.3s;
  left: auto; right: auto;
}
.hb-btn:hover { color: #5b3000; background: linear-gradient(135deg, #facc15, #f59e0b); transform: translateY(50%) scale(1.05); }
.hb-btn.hb-pos-c { left: 50%; right: auto; transform: translate(-50%, 50%); }
.hb-btn.hb-pos-c:hover { transform: translate(-50%, 50%) scale(1.05); }
.hb-btn.hb-pos-l { left: 4%; }
.hb-btn.hb-pos-r { right: 4%; }
.hb-slider.is-multi .hb-btn { opacity: 0; pointer-events: none; }
.hb-slider.is-multi .hb-btn.on { opacity: 1; pointer-events: auto; }
@keyframes hbGlow { 0% { box-shadow: 0 8px 20px rgba(245, 158, 11, 0.55), 0 0 0 0 rgba(253, 224, 71, 0.75); } 70%, 100% { box-shadow: 0 8px 20px rgba(245, 158, 11, 0.55), 0 0 0 14px rgba(253, 224, 71, 0); } }
.hb-dots { bottom: auto; top: 8px; }
@media (max-width: 720px) {
  .hb-clip { border-radius: 10px; }
  .home-banner.has-btn { padding-bottom: 22px; }
  .hb-btn { padding: 7px 16px; font-size: 13px; border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .hb-btn { animation: none; } }

/* Slide button: compact */
.hb-btn { padding: 5px 15px; font-size: 13px; gap: 5px; border-width: 2px; }
.hb-btn .icon { width: 12px; height: 12px; }
.home-banner.has-btn { padding-bottom: 20px; }
@keyframes hbGlow { 0% { box-shadow: 0 5px 12px rgba(245, 158, 11, 0.5), 0 0 0 0 rgba(253, 224, 71, 0.7); } 70%, 100% { box-shadow: 0 5px 12px rgba(245, 158, 11, 0.5), 0 0 0 10px rgba(253, 224, 71, 0); } }
@media (max-width: 720px) { .hb-btn { padding: 4px 12px; font-size: 12px; } .home-banner.has-btn { padding-bottom: 16px; } }


/* Phones: "recently bought" card, extra compact (less height) */
@media (max-width: 720px) {
  .fake-purchase-toast { left: 8px; right: 8px; top: calc(6px + env(safe-area-inset-top)); border-radius: 16px; padding: 7px 30px 12px 9px; }
  .fake-purchase-main { gap: 9px; }
  .fake-purchase-thumb { width: 38px; height: 38px; }
  .fake-purchase-thumb img { border-radius: 9px; }
  .fake-purchase-check { width: 15px; height: 15px; right: -4px; bottom: -4px; }
  .fake-purchase-check svg { width: 8px; height: 8px; }
  .fake-purchase-name { font-size: 11.5px; gap: 5px; }
  .fake-purchase-live { width: 6px; height: 6px; }
  .fake-purchase-title { font-size: 12px; line-height: 1.3; margin: 1px 0 4px; -webkit-line-clamp: 1; }
  .fake-purchase-view { font-size: 10.5px; padding: 2px 9px; }
  .fake-purchase-close { top: 4px; right: 4px; width: 24px; height: 24px; font-size: 16px; }
  .fake-purchase-grabber { bottom: 4px; width: 30px; height: 3px; margin-left: -15px; }
}

/* Floating cart: warm orange so it stands out on the teal / dark sections */
.cart-fab { background: linear-gradient(160deg, #fb923c, #ea580c); box-shadow: -3px 6px 18px rgba(234, 88, 12, 0.45); border: 2px solid rgba(255, 255, 255, 0.85); border-right: 0; }
.cart-fab .cf-total { color: #c2410c; }
.cart-fab.moved { border-right: 2px solid rgba(255, 255, 255, 0.85); }
@keyframes cfGlow { 0%, 100% { box-shadow: -3px 6px 18px rgba(234, 88, 12, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(251, 146, 60, 0.3), -3px 6px 26px rgba(234, 88, 12, 0.85); } }

/* Desktop only: wider search bar */
@media (min-width: 1000px) {
  .site-header .header-search { max-width: 520px; flex: 1 1 420px; margin: 0 24px; }
}
@media (min-width: 1300px) {
  .site-header .header-search { max-width: 560px; }
}

/* Desktop: search bar exactly in the middle of the header */
@media (min-width: 1000px) and (max-width: 1199px) {
  .site-header .header-search { margin: 0 auto; }
}
@media (min-width: 1200px) {
  .site-header .header-main { position: relative; }
  .site-header .header-search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: calc(100% - 640px); margin: 0; flex: none; }
}
@media (min-width: 1300px) {
  .site-header .header-search { width: 560px; }
}

/* Desktop: category dropdown and search box share the same font, size and weight */
@media (min-width: 721px) {
  .site-header .header-search-category,
  .site-header .header-search input {
    font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--text);
  }
  .site-header .header-search-category { max-width: 170px; padding-top: 7px; padding-bottom: 7px; }
  .site-header .header-search input { padding-top: 7px; padding-bottom: 7px; }
  .site-header .header-search input::placeholder { color: var(--text-dim); opacity: 1; font-weight: 500; }
}

/* Desktop search bar: slimmer (less height), contents vertically centred */
@media (min-width: 721px) {
  .site-header .header-search { padding: 2px; align-items: center; }
  .site-header .header-search-category,
  .site-header .header-search input { height: 32px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 32px; font-size: 14.5px; }
  .site-header .header-search button { width: 30px; height: 30px; }
}

/* Shop page heading (desktop): one tidy slim row — title + count chip on the left, sort on the right */
@media (min-width: 721px) {
  .container.page:has(.shop-toolbar) { padding-top: 14px; }
  .shop-toolbar { align-items: center; margin-bottom: 12px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 42, 67, 0.04); }
  .shop-toolbar > div:first-child { display: flex; align-items: center; gap: 10px; position: relative; padding-left: 12px; }
  .shop-toolbar > div:first-child::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--primary), #14b88f); }
  .shop-toolbar h1 { font-size: 1.3rem; line-height: 1.3; }
  .shop-toolbar small { padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; }
  .shop-toolbar .sort-form select { height: 34px; padding: 0 30px 0 12px; font-size: 14px; border-radius: 10px; }
}

/* Phones: footer lines tidied — one soft frame, evenly spaced sections, hairline dividers, centred bottom row */
@media (max-width: 720px) {
  .footer-grid { padding: 24px 14px 8px; gap: 10px; }
  .footer-grid > :first-child { padding: 0 2px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 4px; }
  .footer-grid > :first-child p { margin: 10px 0 12px; font-size: 13.5px; line-height: 1.6; }
  .footer-accordion { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.03); padding: 0; overflow: hidden; }
  .footer-accordion summary { padding: 13px 14px; min-height: 22px; }
  .footer-accordion summary h4 { font-size: 15px; }
  .footer-accordion[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .footer-accordion ul { margin: 0; padding: 4px 14px 8px; }
  .footer-accordion li { padding: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .footer-accordion li:last-child { border-bottom: 0; }
  .footer-accordion li a { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
  .footer-cat-list { display: block; }
  .footer-bottom { margin-top: 14px; padding: 12px 0 14px; }
  .footer-bottom .container { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .site-footer { padding-bottom: 6px; }
}

/* Back-to-top: the hover nudge must move only the arrow — it was also overriding the ring's centring/rotation */
.to-top:hover svg { animation: none; }
.to-top:hover .tt-arrow { animation: toTopNudge 0.7s ease-in-out infinite; }
.to-top:active .tt-ring, .to-top:focus .tt-ring { transform: translate(-50%, -50%) rotate(-90deg); }
.to-top:focus { outline: none; }

/* Footer bottom: trade licence number */
.fb-lic i { font-style: normal; margin: 0 4px; opacity: 0.6; }
.fb-lic b { font-weight: 700; color: #dbe5f3; letter-spacing: 0.2px; }
@media (max-width: 720px) {
  .footer-bottom .container > span { display: block; width: 100%; line-height: 1.5; }
  .footer-bottom .container > span:first-child { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
  .fb-lic { display: block; margin-top: 4px; font-size: 12.5px; }
  .fb-lic i { display: none; }
  .footer-bottom { font-size: 12.5px; }
}

/* Phone footer bottom: 1) copyright, 2) trade licence (one line), 3) payment (small, full width) */
@media (max-width: 720px) {
  .footer-bottom .container > span:first-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .fb-lic { display: block; margin: 6px 0 8px; padding: 6px 0; border-top: 1px dashed rgba(255, 255, 255, 0.12); border-bottom: 1px dashed rgba(255, 255, 255, 0.12); white-space: nowrap; font-size: clamp(11.5px, 3.4vw, 13px); }
  .footer-bottom .container > span:last-child { font-size: clamp(10.5px, 3vw, 12px); opacity: 0.85; }
}


/* Footer headings: icon chip beside each title; titles share one baseline */
.site-footer h4 { display: flex; align-items: center; gap: 10px; line-height: 1.2; margin: 0 0 14px; }
.site-footer .footer-accordion summary h4 { display: inline-flex; margin: 0; }
.footer-accordion summary { padding-top: 4px; padding-bottom: 12px; }
.fh-ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  color: #5eead4; background: rgba(94, 234, 212, 0.12); border: 1px solid rgba(94, 234, 212, 0.28);
}
.fh-ic .icon { width: 16px; height: 16px; }
@media (min-width: 721px) {
  .footer-grid { align-items: start; }
  .footer-grid > .footer-accordion { padding-top: 6px; }
  .footer-accordion[open] summary { margin-bottom: 4px; }
}
@media (max-width: 720px) { .fh-ic { width: 26px; height: 26px; border-radius: 8px; } .site-footer h4 { gap: 9px; } .footer-accordion summary { padding-top: 13px; padding-bottom: 13px; } }


/* Simpler cart / checkout */
.co-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 5px; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--text-dim); }
.co-hint svg { flex: none; margin-top: 3px; color: var(--primary); }
.co-hint a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.co-opt { color: var(--text-dim); font-weight: 400; }
.coupon-toggle { margin: 6px 0 2px; }
.coupon-toggle > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px dashed var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--primary); user-select: none; }
.coupon-toggle > summary::-webkit-details-marker { display: none; }
.coupon-toggle[open] > summary { border-style: solid; background: var(--primary-soft); }
.coupon-toggle .coupon-form { margin-top: 10px; }
.checkout-form .secure-note { margin: 10px 0 4px; text-align: center; font-size: 13px; color: var(--text-dim); }


/* Checkout: remove an item, add more */
.order-summary .summary-item { position: relative; }
.summary-rm { margin: 0; flex: none; }
.summary-rm button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-dim); font-size: 21px; line-height: 1; cursor: pointer; }
.summary-rm button:hover { background: #fee2e2; color: #b91c1c; }
.summary-more { display: inline-block; margin: 2px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.summary-more:hover { text-decoration: underline; }


/* Cart toast v2: tidy card, pop-in tick, auto-close progress line; one compact row on phones */
.toast { overflow: hidden; border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 42, 67, .22); }
.toast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #10b981, #0a7d63); transform-origin: left; animation: toast-bar 5s linear forwards; }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-icon { background: linear-gradient(135deg, #10b981, #0a7d63); color: #fff; box-shadow: 0 4px 10px rgba(10, 125, 99, .35); animation: toast-pop .45s cubic-bezier(.2, 1.4, .4, 1) .05s both; }
@keyframes toast-pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-text { display: flex; flex-direction: column; line-height: 1.25; }
.toast-text small { display: none; font-weight: 400; font-size: 12px; color: var(--text-dim); margin-top: 1px; }
@media (min-width: 721px) { .toast-text small { display: block; } }
@media (max-width: 720px) {
  .toast { left: 12px; right: 12px; width: auto; max-width: none; transform: none; flex-wrap: nowrap; justify-content: flex-start; text-align: left; gap: 10px; padding: 9px 8px 11px 10px; border-radius: 14px; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(18px) scale(.97); } }
  .toast-icon { width: 30px; height: 30px; }
  .toast-icon svg { width: 16px; height: 16px; }
  .toast-text { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; }
  .toast-btn { flex: none; padding: 8px 14px; font-size: 13.5px; border-radius: 10px; gap: 4px; }
  .toast-close { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .toast::after, .toast-icon { animation: none; } }


/* Search suggestions */
.header-search { position: relative; }
.sg { position: absolute; top: calc(100% + 8px); left: 0; z-index: 120; width: max(100%, 340px); max-width: calc(100vw - 24px); max-height: min(420px, 70vh); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 44px rgba(15, 42, 67, .2); animation: sg-in .16s ease both; }
.sg[hidden] { display: none; }
@keyframes sg-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sg-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px; color: var(--text); text-decoration: none; font-size: 14px; }
.sg-i.on, .sg-i:hover { background: var(--primary-soft); }
.sg-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.sg-ic img { width: 100%; height: 100%; object-fit: cover; }
.sg-t { flex: 1; min-width: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-t b { color: var(--primary); font-weight: 700; }
.sg-p { flex: none; font-weight: 700; color: var(--primary); font-size: 13.5px; }
.sg-g { flex: none; font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; }
@media (max-width: 720px) { .sg { left: 0; right: 0; width: auto; max-width: none; } .sg-ic { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .sg { animation: none; } }

/* Phone footer: the category list's dot sat on top of the text (the phone row padding cancelled the dot's room) */
@media (max-width: 720px) {
  .footer-accordion .footer-cat-list li a { padding: 10px 0 10px 20px; }
  .footer-accordion .footer-cat-list li a::before { left: 4px; width: 7px; height: 7px; }
}

/* Search suggestions as separate cards */
.sg { padding: 8px; background: var(--surface-2); display: flex; flex-direction: column; gap: 7px; }
.sg-i { padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 1px 2px rgba(15, 42, 67, .05); transition: border-color .15s, box-shadow .15s, transform .12s; }
.sg-i .sg-t { color: var(--text); font-weight: 600; }
.sg-i.on, .sg-i:hover { background: var(--surface); border-color: var(--primary); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 20%, transparent); transform: translateY(-1px); }
.sg-ic { width: 44px; height: 44px; border-radius: 10px; }
.sg-p { padding: 3px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-dark); }
.sg-d { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--text-dim); }
.sg-c .sg-ic, .sg-q .sg-ic { background: var(--primary-soft); }
@media (max-width: 720px) { .sg { padding: 6px; gap: 6px; } .sg-ic { width: 40px; height: 40px; } }

/* Search suggestions v3: grouped, staggered, accent bar, "see all" footer */
.sg { border-radius: 20px; padding: 6px 8px 8px; border-color: color-mix(in srgb, var(--primary) 22%, var(--border)); box-shadow: 0 24px 56px rgba(15, 42, 67, .24), 0 0 0 4px color-mix(in srgb, var(--primary) 7%, transparent); background: linear-gradient(180deg, var(--surface-2), var(--surface-2)); }
.sg-h { padding: 8px 6px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-dim); }
.sg-i { position: relative; overflow: hidden; border-radius: 15px; animation: sg-row .28s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes sg-row { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sg-i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #10b981, #0a7d63); transform: scaleY(0); transform-origin: center; transition: transform .18s; }
.sg-i.on::before, .sg-i:hover::before { transform: scaleY(1); }
.sg-ic { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 42, 67, .12); }
.sg-t { font-size: 14px; }
.sg-t b { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--primary) 22%, transparent) 62%); color: var(--primary-dark); }
.sg-p { background: linear-gradient(135deg, #10b981, #0a7d63); color: #fff; box-shadow: 0 3px 8px rgba(10, 125, 99, .3); }
.sg-d { color: #b45309; font-weight: 600; }
.sg-all { display: block; margin-top: 8px; padding: 10px 12px; text-align: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 13.5px; text-decoration: none; transition: background .15s, transform .12s; }
.sg-all:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); transform: translateY(-1px); }
@media (max-width: 720px) { .sg-ic { width: 42px; height: 42px; } .sg-t { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .sg-i { animation: none; } .sg-i::before { transition: none; } }

/* Search suggestions: warm yellow theme */
.sg { background: #fffbe8; border-color: #f6dc7a; box-shadow: 0 24px 56px rgba(120, 80, 0, .2), 0 0 0 4px rgba(250, 204, 21, .14); }
.sg-h { color: #92700c; }
.sg-i { background: #fffef7; border-color: #f3e3a0; }
.sg-i.on, .sg-i:hover { background: #fff; border-color: #f59e0b; box-shadow: 0 4px 14px rgba(245, 158, 11, .3); }
.sg-i::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.sg-ic { background: #fff3c4; }
.sg-t b { background: linear-gradient(transparent 62%, rgba(250, 204, 21, .5) 62%); color: #78350f; }
.sg-p { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #5b3500; box-shadow: 0 3px 8px rgba(217, 119, 6, .35); }
.sg-g { border-color: #f3e3a0; color: #92700c; background: #fff7cf; }
.sg-d { color: #b45309; }
.sg-c .sg-ic, .sg-q .sg-ic { background: #fff3c4; }
.sg-all { background: #fde68a; color: #78350f; }
.sg-all:hover { background: #fcd34d; }

.cart-more-head { margin: 34px 0 16px; text-align: center; }
.cart-more-head h2 { margin: 0 0 4px; font-size: 22px; }
.cart-more-head p { margin: 0; color: var(--text-dim); }

/* Search suggestions: even lighter yellow */
.sg { background: #fffdf3; border-color: #f8ebb4; box-shadow: 0 22px 50px rgba(120, 80, 0, .14), 0 0 0 3px rgba(250, 204, 21, .08); }
.sg-h { color: #a8870f; }
.sg-i { background: #fff; border-color: #fbf0c4; box-shadow: none; }
.sg-i.on, .sg-i:hover { border-color: #f7c948; box-shadow: 0 4px 12px rgba(245, 158, 11, .18); }
.sg-ic, .sg-c .sg-ic, .sg-q .sg-ic { background: #fff8d9; }
.sg-g { background: #fffbe6; border-color: #f8ebb4; color: #a8870f; }
.sg-all { background: #fff3bf; }
.sg-all:hover { background: #ffe98a; }

/* Empty-cart suggestions heading: always centred and full width (it was shrinking to the text width) */
.cart-more-head { display: block; width: 100%; align-self: stretch; text-align: center; }
.cart-more-head h2, .cart-more-head p { display: block; width: 100%; max-width: none; margin-left: 0; margin-right: 0; text-align: center; }


/* Bundle box on the product page */
.bundle-sec .section-head { margin-bottom: 10px; }
.bundle-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 6px 20px rgba(15, 42, 67, .06); }
.bundle-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; padding: 10px 10px 8px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.bundle-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.bundle-item:not(:has(input:checked)) { opacity: .6; }
.bundle-item input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.bundle-cover { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; display: block; background: #fff; }
.bundle-cover img, .bundle-cover .cover-placeholder { width: 100%; height: 100%; object-fit: cover; }
.bundle-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.bundle-price { font-weight: 800; color: var(--primary); font-size: 14.5px; }
.bundle-plus { font-size: 26px; font-weight: 700; color: var(--text-dim); }
.bundle-sum { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-left: 10px; padding-left: 18px; border-left: 1px dashed var(--border); }
.bundle-sum small { color: var(--text-dim); }
.bundle-sum strong { font-size: 24px; color: var(--primary); line-height: 1; }
@media (max-width: 720px) {
  .bundle-box { gap: 6px; padding: 10px; }
  .bundle-item { width: calc(33.3% - 18px); min-width: 92px; padding: 8px 6px; }
  .bundle-cover { width: 64px; height: 64px; }
  .bundle-plus { font-size: 18px; }
  .bundle-sum { width: 100%; flex-direction: row; justify-content: space-between; margin: 6px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px dashed var(--border); }
}


/* Payment failed / cancelled */
.pay-retry { text-align: center; max-width: 560px; margin: 0 auto; padding: 36px 16px; }
.pr-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #fff; }
.pr-ic.is-fail { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 8px 20px rgba(220, 38, 38, .3); }
.pr-ic.is-cancel { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 20px rgba(217, 119, 6, .3); }
.pay-retry h1 { margin: 0 0 8px; font-size: 24px; }
.pay-retry > p { color: var(--text-dim); margin: 0 0 14px; line-height: 1.6; }
.pr-order { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 16px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pr-order b { color: var(--primary); font-size: 20px; }
.pr-order span { color: var(--text-dim); font-size: 13.5px; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pr-hint { margin: 14px 0 0; font-size: 13px; color: var(--text-dim); }
.pr-help { margin-top: 18px; font-size: 14px; }
.pr-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; text-decoration: none; }


/* "You may also like": centred heading, "see all" under the grid */
.more-head { text-align: center; margin-bottom: 14px; }
.more-head .pill { display: inline-block; margin-bottom: 6px; }
.more-head h2 { margin: 0; }
.more-all { text-align: center; margin-top: 14px; }
.more-all .see-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lp-more-wrap { padding-top: 10px; padding-bottom: 6px; }

/* Product page: a little air between the header and the product card */
.container.page:has(.product-hero) { padding-top: 34px; }
@media (max-width: 720px) { .container.page:has(.product-hero) { padding-top: 18px; } }


/* Reviews that slide by themselves */
.rv-wrap.rv-marquee .rv-track { scroll-snap-type: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.rv-wrap.rv-marquee .rv-track > * { flex: 0 0 min(320px, 82%); }
.rv-wrap.rv-marquee .rv-arrow { display: none !important; }

/* A light but visible line (and a soft shadow) under the header, so it reads as separate from the page */
.site-header { border-bottom: 1px solid #d5dce8; box-shadow: 0 2px 10px rgba(15, 42, 67, .07); }

/* Reviews on phones: the same sliding strip as on the computer — narrower cards so the next ones peek in */
@media (max-width: 720px) {
  .rv-wrap.rv-marquee .rv-track { gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .rv-wrap.rv-marquee .rv-track > * { flex: 0 0 68%; min-width: 0; padding: 11px 12px; }
  .rv-wrap.rv-marquee .pr-item p, .rv-wrap.rv-marquee .lp-review p { font-size: 13.5px; line-height: 1.6; }
  .product-reviews { padding-left: 14px; padding-right: 14px; }
}

/* Landing reviews strip: the cards must always be visible (the scroll-in fade would leave copies and off-screen cards hidden) */
.rv-wrap.rv-marquee .lp-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
.rv-wrap.rv-marquee .lp-review { height: auto; }
@media (max-width: 720px) {
  .rv-wrap.rv-marquee .lp-review blockquote { font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }
  .rv-wrap.rv-marquee .lp-review figcaption { font-size: 13px; }
}
.lp-zoom-btn { display: none !important; }

/* the round quote badge on landing review cards sits above the card: leave room so the strip does not clip it */
.rv-wrap.rv-marquee .lp-reviews { padding-top: 30px; margin-top: -12px; }


/* Review belt: moves by CSS alone. Overrides the scroll-slider rules above for the strips that use it. */
.rv-wrap.rv-marquee .rv-track { display: block !important; overflow: hidden; padding: 6px 0 10px; scroll-snap-type: none; }
.rv-belt { display: flex; width: max-content; animation: rv-belt var(--dur, 40s) linear infinite; will-change: transform; }
.rv-set { display: flex; flex: none; }
.rv-set > * { flex: 0 0 min(320px, 74vw); width: min(320px, 74vw); margin: 0 14px 0 0; min-width: 0; box-sizing: border-box; }
@keyframes rv-belt { to { transform: translateX(calc(-100% / var(--k, 2))); } }
.rv-wrap.rv-marquee:hover .rv-belt, .rv-wrap.rv-marquee:focus-within .rv-belt, .rv-wrap.rv-marquee:active .rv-belt { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .rv-belt { animation-duration: calc(var(--dur, 40s) * 2); } }
@media (max-width: 720px) { .rv-set > * { flex-basis: 68vw; width: 68vw; margin-right: 10px; } }
.rv-wrap.rv-marquee .lp-reviews { padding-top: 30px; margin-top: -12px; }
.rv-wrap.rv-marquee .rv-track > .rv-belt { padding: 0 !important; margin: 0 !important; }
.rv-wrap.rv-marquee.is-held .rv-belt { animation-play-state: paused; }

/* drag the review belt with a finger or the mouse (vertical page scrolling still works) */
.rv-wrap.rv-marquee .rv-track { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.rv-wrap.rv-marquee .rv-belt:active { cursor: grabbing; }
.rv-wrap.rv-marquee .rv-belt img { -webkit-user-drag: none; pointer-events: none; }

/* ---------- Hero with a picture / looping video behind it (admin -> Settings -> হোমপেজ হিরো; none set = the gradient above) ---------- */
.hero.hero-media { position: relative; overflow: hidden; padding: 44px 0 48px; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; z-index: 0; }
.hero-bg-video { z-index: 1; }
.hero-ov { position: absolute; inset: 0; z-index: 2; background: linear-gradient(135deg, rgba(8, 24, 36, calc(var(--hero-ov, .45) + .1)) 0%, rgba(8, 24, 36, var(--hero-ov, .45)) 55%, rgba(6, 60, 50, var(--hero-ov, .45)) 100%); }
.hero.hero-media .container { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .hero-bg-video { display: none; } }
@media (max-width: 720px) { .hero.hero-media { padding: 30px 0 34px; } }

/* hero with several pictures: they fade into each other */
.hero-bg-img { opacity: 0; transition: opacity 1.4s ease; }
.hero-bg-img.on { opacity: 1; }

/* pop-up picture: show the WHOLE picture (an advert with text must never be cut); the card scrolls if the screen is short */
.promo-img { max-height: 72vh !important; max-height: 72dvh !important; height: auto !important; object-fit: contain !important; -webkit-mask-image: none !important; mask-image: none !important; margin-bottom: 10px !important; background: transparent; }
@media (max-width: 480px) { .promo-img { max-height: 60vh !important; max-height: 60dvh !important; } }

/* pop-up picture that is also a link (admin ticks "ছবিতে চাপলেও যাবে") */
a.promo-imglink { display: block; cursor: pointer; text-decoration: none; }

/* bundle: the tick box alone picks/drops a product; the rest of the card opens that product */
.bundle-item { cursor: default; }
.bundle-ck { position: absolute; top: 0; left: 0; z-index: 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bundle-item .bundle-ck input { position: static; top: auto; left: auto; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.bundle-link { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; color: inherit; text-decoration: none; }
a.bundle-link { cursor: pointer; }
a.bundle-link:hover .bundle-title { color: var(--primary); text-decoration: underline; }

/* ---- category menu (blog + shop): a top-left button, hover or click opens it; like the admin sidebar ---- */
/* top bar: category menu (left) + search (right) */
.blog-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; position: relative; z-index: 20; }
.bp .blog-bar, .blog-wrap > .blog-bar { margin-bottom: 10px; }
.bcm { position: relative; }
.bcm-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text); transition: .15s; }
.bcm-btn:hover, .bcm.open .bcm-btn { border-color: var(--primary); color: var(--primary); }
.bcm-car { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.bcm-panel { display: none; position: absolute; top: 100%; left: 0; padding-top: 6px; min-width: 230px; z-index: 40; }
.bcm-panel > .bcm-all, .bcm-groups { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-hover); }
.bcm-all { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 12px 12px 0 0; border-bottom: 0 !important; font-size: 14px; font-weight: 600; }
.bcm-all:hover, .bcm-all.on { background: var(--primary-soft); color: var(--primary-dark); }
.bcm small { color: var(--text-dim); font-size: 12px; font-weight: 400; }
.bcm-groups { list-style: none; margin: 0; padding: 4px 0; border-radius: 0 0 12px 12px; border-top: 1px solid var(--border) !important; }
.bcm-g { position: relative; }
.bcm-gt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 14px; border: 0; background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: var(--text); }
.bcm-gt i { width: 6px; height: 6px; border-right: 2px solid var(--text-dim); border-top: 2px solid var(--text-dim); transform: rotate(45deg); }
.bcm-g:hover > .bcm-gt, .bcm-g.open > .bcm-gt, .bcm-g.has-on > .bcm-gt { background: var(--surface-2); color: var(--primary-dark); }
.bcm-g.has-on > .bcm-gt { font-weight: 600; }
.bcm-sub { display: none; list-style: none; margin: 0; padding: 4px 0; position: absolute; left: 100%; top: -5px; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-hover); }
.bcm-sub a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 14px; font-size: 14px; }
.bcm-sub a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.bcm-sub a.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.bcm.open > .bcm-panel { display: block; }
.bcm-g.open > .bcm-sub { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .bcm:hover > .bcm-panel { display: block; }
  .bcm-g:hover > .bcm-sub { display: block; }
}

.bcm-flat .bcm-item { display: flex; align-items: center; gap: 9px; padding: 6px 14px; font-size: 14px; }
.bcm-flat .bcm-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
.bcm-flat .bcm-item.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.bcm-flat .bcm-name { flex: 1; min-width: 0; }
.bcm-ico { flex: none; width: 24px; height: 24px; border-radius: 7px; overflow: hidden; display: inline-flex; background: var(--primary-soft); }
.bcm-ico .category-initial, .bcm-ico .category-icon-img { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; background: transparent; display: inline-flex; align-items: center; justify-content: center; object-fit: cover; font-weight: 700; color: var(--primary); }
.shop-bar { display: none; position: relative; z-index: 30; margin: 0 0 8px; }
@media (max-width: 900px) {
  .shop-bar { display: block; }
  .shop-side { display: none; }
  .bcm-panel { width: min(320px, 92vw); }
  .bcm-sub { position: static; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 4px 12px; min-width: 0; }
  .bcm-gt i { transform: rotate(135deg); }
  .bcm-g.open > .bcm-gt i { transform: rotate(-45deg); }
}
@media (max-width: 600px) {
  .bcm-btn { padding: 3px 10px; font-size: 12.5px; gap: 5px; line-height: 1.5; }
  .bcm-btn svg { width: 14px; height: 14px; }
  .bcm-car { display: none; }
  .shop-bar { margin: -4px 0 4px; }
  .container.page:has(.shop-bar) { padding-top: 8px; }
  .shop-bar + .shop-toolbar { margin-bottom: 6px; padding: 5px 10px; }
  .blog-bar { margin-bottom: 2px; }
}

/* ---- category menu: smooth open/close, prettier phone button (later rules win) ---- */
.bcm-panel { display: block; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top left; pointer-events: none; transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; }
.bcm.open > .bcm-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.bcm-sub { display: block; visibility: hidden; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s; }
.bcm-g.open > .bcm-sub { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.bcm-car { transition: transform .25s ease; }
.bcm.open .bcm-car { transform: rotate(225deg) translateY(-2px); }
.bcm-gt i { transition: transform .25s ease; }
@keyframes bcmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bcm.open > .bcm-panel .bcm-groups > li { animation: bcmIn .32s cubic-bezier(.2, .8, .2, 1) both; }
.bcm.open > .bcm-panel .bcm-groups > li:nth-child(2) { animation-delay: .03s; }
.bcm.open > .bcm-panel .bcm-groups > li:nth-child(3) { animation-delay: .06s; }
.bcm.open > .bcm-panel .bcm-groups > li:nth-child(4) { animation-delay: .09s; }
.bcm.open > .bcm-panel .bcm-groups > li:nth-child(5) { animation-delay: .12s; }
.bcm.open > .bcm-panel .bcm-groups > li:nth-child(6) { animation-delay: .15s; }
.bcm.open > .bcm-panel .bcm-groups > li:nth-child(n+7) { animation-delay: .18s; }
@media (hover: hover) and (min-width: 901px) {
  .bcm:hover > .bcm-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .bcm:hover .bcm-car { transform: rotate(225deg) translateY(-2px); }
  .bcm-g:hover > .bcm-sub { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
}
@media (max-width: 900px) {
  .bcm-btn { padding: 8px 16px; font-size: 15px; gap: 8px; line-height: 1.4; color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), #14b88f); box-shadow: 0 4px 12px rgba(10, 125, 99, .28); transition: transform .15s ease, box-shadow .2s ease; }
  .bcm-btn:hover, .bcm.open .bcm-btn { color: #fff; border-color: transparent; }
  .bcm-btn:active { transform: scale(.95); box-shadow: 0 2px 6px rgba(10, 125, 99, .25); }
  .bcm-btn svg { width: 18px; height: 18px; transition: transform .3s ease; }
  .bcm.open .bcm-btn svg { transform: rotate(90deg); }
  .bcm-car { display: inline-block; }
  .shop-bar { margin: 0 0 8px; }
  .bcm-panel { border-radius: 14px; }
  .bcm-all { padding: 12px 16px; font-size: 15px; }
  .bcm-gt { padding: 11px 16px; font-size: 15px; }
  .bcm-flat .bcm-item { padding: 10px 16px; font-size: 15px; }
  .bcm-sub { visibility: visible; opacity: 1; transform: none; pointer-events: auto; max-height: 0; overflow: hidden; padding: 0 0 0 14px; transition: max-height .32s ease; }
  .bcm-g.open > .bcm-sub { max-height: 480px; padding-bottom: 4px; }
  .bcm-sub a { padding: 10px 16px 10px 12px; font-size: 14.5px; }
  .bcm-g.open > .bcm-gt i { transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bcm-panel, .bcm-sub, .bcm-car, .bcm-btn, .bcm-btn svg, .bcm-gt i { transition: none !important; }
  .bcm.open > .bcm-panel .bcm-groups > li { animation: none !important; }
}

/* ---- shop on phones: one row = category button (shows the open category) + sort; the title block is kept only for search engines ---- */
.shop-bar .sort-form { display: none; }
.bcm-lbl { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-more { margin-top: 26px; }
.shop-more-title { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.shop-more-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 900px) {
  .shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .shop-bar .sort-form { display: block; margin: 0; }
  .shop-bar .sort-form select { padding: 8px 30px 8px 12px; font-size: 14px; border-radius: 999px; max-width: 46vw; }
  .shop-toolbar { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; white-space: nowrap; }
  .shop-toolbar .sort-form { display: none; }
}
.shop-more-title { justify-content: center; }
.shop-more-title::before { content: ''; flex: 1; height: 1px; background: var(--border); }
.bcm-ico-btn { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.bcm-ico-btn .category-initial, .bcm-ico-btn .category-icon-img { width: 24px; height: 24px; border-radius: 50%; font-size: 12px; }

/* ---- phone category button, nicer ---- */
@media (max-width: 900px) {
  .bcm-btn { position: relative; overflow: hidden; padding: 6px 8px 6px 8px; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: .1px; border-radius: 999px; background: linear-gradient(135deg, #0a7d63 0%, #12a07f 55%, #1cc59a 100%); box-shadow: 0 6px 16px rgba(10, 125, 99, .32), inset 0 1px 0 rgba(255, 255, 255, .28); }
  .bcm-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); animation: bcmShine 4.5s ease-in-out infinite; pointer-events: none; }
  @keyframes bcmShine { 0%, 62% { left: -60%; } 100% { left: 140%; } }
  .bcm-btn > svg { box-sizing: content-box; width: 17px; height: 17px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
  .bcm-ico-btn { width: 30px; height: 30px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
  .bcm-ico-btn .category-initial, .bcm-ico-btn .category-icon-img { width: 30px; height: 30px; font-size: 14px; }
  .bcm-lbl { padding-right: 2px; }
  .bcm-car { box-sizing: border-box; width: 24px; height: 24px; margin: 0 0 0 1px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); transform: none; position: relative; flex: none; }
  .bcm-car::before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -70%) rotate(45deg); transition: transform .25s ease; }
  .bcm.open .bcm-car { transform: none; }
  .bcm.open .bcm-car::before { transform: translate(-50%, -30%) rotate(225deg); }
  .bcm-btn:only-child, .bcm-btn { padding-right: 8px; }
  .shop-bar .sort-form select { height: 44px; padding: 0 32px 0 16px; font-weight: 600; border: 1px solid #cfe3dc; background-color: #fff; box-shadow: 0 4px 12px rgba(15, 42, 67, .08); }
}
@media (prefers-reduced-motion: reduce) { .bcm-btn::after { animation: none; } }

/* ---- blog category icons (picture or emoji) in the menu ---- */
.bci { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bci, var(--primary-soft)); font-size: 14px; line-height: 1; border-radius: inherit; }
.bci img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcm-sub .bcm-item { align-items: center; gap: 9px; }
.bcm-sub .bcm-name { flex: 1; min-width: 0; }
.bcm-ico-btn .bci { background: transparent; }
@media (max-width: 900px) { .bcm-ico-btn .bci { font-size: 16px; } }

/* PC: a fly-out hides at once when the mouse leaves its group, so two never show together */
@media (min-width: 901px) {
  .bcm-sub { transition: none; }
  .bcm-g.open > .bcm-sub, .bcm-g:hover > .bcm-sub { transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1); }
}

/* main category (group) row in the blog menu: icon + name */
.bcm-gt { gap: 9px; }
.bcm-gt .bcm-ico { width: 24px; height: 24px; }
.bcm-gt .bcm-name { flex: 1; min-width: 0; text-align: left; }

/* text from the visual editor (product details, pages) */
.rich-text h2 { font-size: 20px; margin: 26px 0 10px; padding-left: 12px; border-left: 4px solid var(--primary); }
.rich-text h4 { font-size: 16px; margin: 18px 0 8px; }
.rich-text ol { margin: 0 0 14px; padding-left: 22px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rich-text blockquote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; }
.rich-text table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 0 0 14px; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.rich-text th { background: var(--surface-2); }
.rich-text figure { margin: 14px 0; } .rich-text figcaption { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.rich-text hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* হোমপেজ: "বাকিগুলো দেখুন" */
.more-bar { text-align: center; margin-top: 18px; }
.more-count { margin: 0 0 8px; font-size: 14px; color: var(--text-muted, #4b5563); }
.more-count b { color: var(--primary-dark, #065f46); }
.more-prog { height: 6px; max-width: 260px; margin: 0 auto 12px; background: var(--primary-soft, #e2f5ef); border-radius: 999px; overflow: hidden; }
.more-prog i { display: block; height: 100%; background: var(--primary, #0a7d63); border-radius: 999px; transition: width .4s ease; }
.more-btn { min-width: 220px; font-weight: 800; }

/* "বাকিগুলো দেখুন" বাটন: সুন্দর পিল, সংখ্যার চিপ, নড়া তীর, লোডিং স্পিনার */
.more-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 12px 20px 12px 26px; border: 0; border-radius: 999px; font: inherit; font-size: 15.5px; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--primary, #0a7d63), var(--primary-dark, #065f46)); box-shadow: 0 6px 18px rgba(10, 125, 99, .32); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; -webkit-tap-highlight-color: transparent; }
.more-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 125, 99, .38); filter: brightness(1.05); }
.more-btn:active { transform: translateY(0) scale(.98); }
.more-btn:disabled { cursor: progress; opacity: .85; }
.more-btn .mb-chip { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; }
.more-btn .mb-arrow { flex: none; animation: mbBounce 1.6s ease-in-out infinite; }
.more-btn.is-loading .mb-arrow { animation: mbSpin .8s linear infinite; }
.more-btn.is-loading .mb-arrow path { d: path("M12 3a9 9 0 1 0 9 9"); }
@keyframes mbBounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
@keyframes mbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .more-btn .mb-arrow { animation: none; } }
@media (max-width: 520px) { .more-btn { width: 100%; max-width: 360px; padding: 13px 18px; } }

/* "বাকিগুলো দেখুন": আরও ছোট ও হালকা (সবার শেষে, আগেরটা ওভাররাইড) */
.more-btn { gap: 7px; padding: 7px 12px 7px 16px; font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--primary, #0a7d63); background: var(--surface, #fff); color: var(--primary-dark, #065f46); box-shadow: none; filter: none; }
.more-btn:hover { transform: translateY(-1px); background: var(--primary-soft, #e2f5ef); box-shadow: 0 4px 12px rgba(10, 125, 99, .18); filter: none; }
.more-btn .mb-chip { background: var(--primary, #0a7d63); color: #fff; padding: 0 8px; font-size: 11.5px; line-height: 1.7; }
.more-btn .mb-arrow { width: 14px; height: 14px; }
.more-bar { margin-top: 14px; }
.more-count { font-size: 12.5px; margin-bottom: 6px; }
.more-prog { height: 4px; max-width: 180px; margin-bottom: 9px; }
@media (max-width: 520px) { .more-btn { width: auto; max-width: none; padding: 7px 12px 7px 16px; } }

/* "বাকিগুলো দেখুন": সব এক লাইনে — লেখা + ছোট বাটন (প্রগ্রেস বার বাদ) */
.more-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.more-bar .more-count { margin: 0; font-size: 12.5px; }
.more-bar .more-prog { display: none; }
.more-btn { padding: 4px 10px 4px 13px; font-size: 12.5px; gap: 6px; border-width: 1px; }
.more-btn .mb-chip { font-size: 11px; padding: 0 7px; }
.more-btn .mb-arrow { width: 12px; height: 12px; }

/* "বাকিগুলো দেখুন": সংখ্যা নেই, শুধু বাড়তে থাকা বার + ছোট বাটন, এক লাইনে */
.more-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: nowrap; }
.more-bar .more-prog { display: block; flex: 0 1 150px; width: 150px; max-width: 40vw; height: 5px; margin: 0; }
.more-bar.is-done .more-prog { flex-basis: 150px; }

/* শপ: আরো-দেখুন থাকায় পেজ-নম্বর শুধু সার্চ ইঞ্জিনের জন্য (চোখে পড়ে না, লিংকগুলো থাকে) */
.pg-seo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop-main .more-bar { margin-top: 16px; }

/* প্রোডাক্ট কার্ড: "এখনই কিনুন" + পাশে ছোট কার্ট আইকন */
.card-actions { display: flex; gap: 8px; align-items: stretch; }
.card-actions .card-buy-form { flex: 1; min-width: 0; margin: 0; }
.card-actions .card-cart-form { flex: none; margin: 0; }
.card-cart-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 100%; min-height: 36px; padding: 0; border-radius: 10px; border: 1.5px solid var(--primary, #0a7d63); background: var(--surface, #fff); color: var(--primary, #0a7d63); cursor: pointer; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.card-cart-ico:hover { background: var(--primary-soft, #e2f5ef); transform: translateY(-1px); }
.card-cart-ico:disabled { opacity: .6; cursor: progress; }
.card-cart-ico.is-in-cart { background: var(--primary-soft, #e2f5ef); border-color: transparent; }
