/* Stocky Commerce v2 — premium marketplace design system */
:root {
  --cv2-radius: 14px;
  --cv2-radius-lg: 20px;
  --cv2-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --cv2-shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.14);
  --cv2-gradient: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --cv2-surface: #ffffff;
  --cv2-muted: #f4f6fb;
  --cv2-text: #0f172a;
  --cv2-text-muted: #64748b;
  --cv2-sale: #ef4444;
  --cv2-success: #10b981;
}

[data-theme="dark"] {
  --cv2-surface: #1e293b;
  --cv2-muted: #0f172a;
  --cv2-text: #f1f5f9;
  --cv2-text-muted: #94a3b8;
  color-scheme: dark;
}
[data-theme="dark"] body { background: #0b1220 !important; }
[data-theme="dark"] .card,
[data-theme="dark"] .navbar,
[data-theme="dark"] .store-subnav { background: var(--cv2-surface) !important; color: var(--cv2-text); }

/* Skeleton loading */
.cv2-skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: cv2-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--cv2-radius);
}
@keyframes cv2-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Product card — compact marketplace size */
.cv2-product-card {
  background: var(--cv2-surface);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cv2-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.cv2-product-card__img-wrap {
  position: relative;
  /* Square tile + contain: see storefront-premium.css (.pcard-img-wrap shared rules) */
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.cv2-product-card__img {
  transition: transform 0.3s ease;
}
.cv2-product-card:hover .cv2-product-card__img { transform: scale(1.03); }
.cv2-product-card__actions {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.cv2-product-card:hover .cv2-product-card__actions,
.cv2-product-card:focus-within .cv2-product-card__actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
@media (hover: none) {
  .cv2-product-card__actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
.cv2-icon-btn {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,0.98);
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cv2-icon-btn:hover { background: var(--brand, #00a651); color: #fff; border-color: transparent; }
.cv2-icon-btn.is-active { background: var(--brand, #00a651); color: #fff; border-color: transparent; }

.cv2-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #fff;
}
.cv2-badge--sale { background: var(--cv2-sale); }
.cv2-badge--new { background: var(--cv2-success); }
.cv2-badge--low_stock { background: #f59e0b; }
.cv2-badge--trending { background: var(--brand); }

.cv2-product-card__body { padding: 0.5rem 0.6rem 0.65rem; flex: 1; display: flex; flex-direction: column; }
.cv2-product-card__title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cv2-text);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
}
.cv2-product-card__price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
  margin-top: auto;
}
.cv2-product-card__price-old {
  font-size: 0.8rem;
  color: var(--cv2-text-muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-weight: 500;
}

/* Section headers */
.cv2-section {
  margin: 2.5rem 0;
}
.cv2-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.cv2-section__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.cv2-section__link {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

/* Flash sale countdown */
.cv2-flash-bar {
  background: var(--cv2-gradient);
  color: #fff;
  border-radius: var(--cv2-radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cv2-countdown { display: flex; gap: 0.5rem; }
.cv2-countdown__unit {
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.cv2-countdown__unit small { display: block; font-size: 0.55rem; opacity: 0.85; font-weight: 500; }

/* Horizontal product slider */
.cv2-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.cv2-slider::-webkit-scrollbar { height: 6px; }
.cv2-slider::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.cv2-slider > * { flex: 0 0 148px; scroll-snap-align: start; max-width: 148px; }
@media (min-width: 768px) { .cv2-slider > * { flex: 0 0 168px; max-width: 168px; } }

/* Sticky mobile bottom nav */
.cv2-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--cv2-surface);
  border-top: 1px solid rgba(15,23,42,0.08);
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (min-width: 992px) { .cv2-mobile-nav { display: none; } }
.cv2-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: var(--cv2-text-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}
.cv2-mobile-nav a.active, .cv2-mobile-nav a:hover { color: var(--brand); }
.cv2-mobile-nav i { font-size: 1.25rem; margin-bottom: 0.15rem; }
@media (max-width: 991.98px) {
  body.has-cv2-mobile-nav { padding-bottom: 72px; }
}

.cv2-payment-details__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}
.cv2-payment-details__row span {
  color: var(--cv2-text-muted, #64748b);
  font-size: 0.88rem;
}
.cv2-payment-details__row strong {
  text-align: right;
  font-size: 0.92rem;
}
.cv2-payment-details__note {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
}

/* Support float (WhatsApp + Telegram) */
.cv2-support-fab {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cv2-support-fab__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cv2-support-fab__btn i { font-size: 1.15rem; }
.cv2-support-fab__btn:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}
.cv2-support-fab__btn--whatsapp { background: #25d366; }
.cv2-support-fab__btn--telegram { background: #229ed9; }
@media (min-width: 992px) {
  .cv2-support-fab { right: 1.5rem; bottom: 1.5rem; }
}

/* WhatsApp float (legacy) */
.cv2-whatsapp {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  z-index: 1035;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.cv2-whatsapp:hover { transform: scale(1.08); color: #fff; }
@media (min-width: 992px) { .cv2-whatsapp { bottom: 1.5rem; } }

/* Cart drawer enhancement */
#miniCart.offcanvas,
.cv2-mini-cart { max-width: 420px; width: min(420px, 100vw); }

.cv2-mini-cart {
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 42%, #f8fafc 100%);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  font-family: inherit;
}
.cv2-mini-cart__header {
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}
.cv2-mini-cart__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}
.cv2-mini-cart__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.cv2-mini-cart__close { opacity: 0.55; }
.cv2-mini-cart__body { padding: 0; }
.cv2-mini-cart__list {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cv2-mini-cart__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.cv2-mini-cart__thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.35rem;
}
.cv2-mini-cart__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv2-mini-cart__price {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.cv2-mini-cart__stock {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.cv2-mini-cart__stock--is-ok { background: #ecfdf5; color: #047857; }
.cv2-mini-cart__stock--is-low { background: #fff7ed; color: #c2410c; }
.cv2-mini-cart__stock--is-out { background: #fef2f2; color: #b91c1c; }
.cv2-mini-cart__qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}
.cv2-mini-cart__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
  color: #334155;
  line-height: 1;
}
.cv2-mini-cart__qty-input {
  width: 44px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.cv2-mini-cart__line {
  margin-left: auto;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
}
.cv2-mini-cart__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.15rem 0.35rem;
}
.cv2-mini-cart__remove:hover { color: #ef4444; }
.cv2-mini-cart__footer {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.cv2-mini-cart__totals-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.cv2-mini-cart__totals-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #9dcd5a;
}
.cv2-mini-cart__totals-note {
  font-size: 0.72rem;
  color: #94a3b8;
}
.cv2-mini-cart__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.cv2-mini-cart__clear {
  width: 48px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #ef4444;
  border-radius: 12px;
}
.cv2-mini-cart__checkout {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #111;
  background: linear-gradient(180deg, #ffe066 0%, #ffd814 100%);
  box-shadow: 0 8px 20px rgba(255, 216, 20, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.cv2-mini-cart__empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #94a3b8;
}
.cv2-mini-cart__cta {
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  background: #9dcd5a;
  color: #fff;
  text-decoration: none;
}

.cv2-stock-pill {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.cv2-stock-pill--is-ok { background: #ecfdf5; color: #047857; }
.cv2-stock-pill--is-low { background: #fff7ed; color: #c2410c; }
.cv2-stock-pill--is-out { background: #fef2f2; color: #b91c1c; }

/* Reassuring “you can still order” — informational teal (distinct from red=out, green=in, orange=low) */
.cv2-stock-still-order {
  margin: 0.35rem 0 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
  color: #0f766e;
  background: #ccfbf1;
  border-left: 3px solid #14b8a6;
  border-radius: 0 8px 8px 0;
}
.cv2-stock-still-order--compact {
  padding: 0.28rem 0.45rem;
  font-size: 0.66rem;
  margin-top: 0.25rem;
}
.cv2-product-card__stock-note {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 600;
  color: #0f766e;
  background: #ccfbf1;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  border-left: 2px solid #14b8a6;
}
.cv2-stock-status { margin-bottom: 0.25rem; }

.cv2-mini-cart__stock--is-out .cv2-stock-still-order {
  margin-top: 0.3rem;
}

[data-theme="dark"] .cv2-stock-still-order,
[data-theme="dark"] .cv2-product-card__stock-note {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.15);
  border-left-color: #2dd4bf;
}

.cv2-cart-pulse { animation: cv2-pulse 0.4s ease; }
@keyframes cv2-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* One-page checkout */
.cv2-checkout-page {
  font-family: inherit;
  color: var(--cv2-text);
}

.cv2-checkout-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--cv2-text-muted);
}
.cv2-checkout-breadcrumb a {
  color: var(--market-link, #007185);
  text-decoration: none;
}
.cv2-checkout-breadcrumb a:hover { text-decoration: underline; }
.cv2-checkout-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cv2-text-muted);
}
.cv2-checkout-hero__title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cv2-text);
}
.cv2-checkout-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--cv2-text-muted);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.cv2-checkout-hero__trust i { color: var(--cv2-success); }

.cv2-checkout-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 992px) {
  .cv2-checkout-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 1.75rem;
  }
}

.cv2-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv2-checkout-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.cv2-checkout-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.cv2-checkout-step {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--market-dark, #131921);
  color: var(--market-accent, #febd69);
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cv2-checkout-step--muted {
  background: #eef2f7;
  color: #64748b;
}
.cv2-checkout-panel__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--cv2-text);
}
.cv2-checkout-panel__sub {
  font-size: 0.82rem;
  color: var(--cv2-text-muted);
  margin: 0.15rem 0 0;
}
.cv2-checkout-panel__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.cv2-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.cv2-field-input {
  border: 1px solid #d5d9d9;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cv2-field-input:focus {
  border-color: var(--market-blue, #007185);
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.12);
}
.cv2-field-error {
  font-size: 0.78rem;
  color: #b91c1c;
  margin-top: 0.35rem;
}
.cv2-checkout-signin {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  color: var(--cv2-text-muted);
}
.cv2-checkout-signin a {
  color: var(--market-link, #007185);
  font-weight: 700;
  text-decoration: none;
}
.cv2-shipping-summary {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #334155;
}

.cv2-option-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cv2-pay-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1.5px solid #e3e6e6;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  margin: 0;
}
.cv2-pay-option:hover {
  border-color: #c4ced4;
  background: #fafafa;
}
.cv2-pay-option:has(input:checked) {
  border-color: var(--market-blue, #007185);
  background: rgba(0, 113, 133, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 113, 133, 0.08);
}
.cv2-pay-option input {
  margin-top: 0.2rem;
  accent-color: var(--market-blue, #007185);
}
.cv2-pay-option__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  flex: 1;
}
.cv2-pay-option__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.cv2-pay-option:has(input:checked) .cv2-pay-option__icon {
  background: rgba(0, 113, 133, 0.12);
  color: var(--market-blue, #007185);
}
.cv2-pay-option__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cv2-text);
}
.cv2-pay-option__hint {
  width: 100%;
  font-size: 0.78rem;
  color: var(--cv2-text-muted);
}
.cv2-pay-option__price {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--market-blue, #007185);
}

/* Order summary sidebar */
.cv2-summary-card {
  top: 6rem !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.cv2-summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.cv2-summary-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.cv2-summary-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
}

.cv2-summary-list {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(42vh, 420px);
  overflow-y: auto;
}

.co-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.co-item__thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.25rem;
}
.co-item__body { min-width: 0; }
.co-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.co-item__name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--cv2-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.co-item__total {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cv2-text);
  white-space: nowrap;
}
.co-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}
.co-item__unit {
  font-size: 0.76rem;
  color: var(--cv2-text-muted);
}
.co-item__urgency {
  margin: 0.35rem 0 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.co-item__urgency-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.35rem;
}
.co-item__urgency-select {
  border-color: #fcd34d;
  font-size: 0.82rem;
  border-radius: 8px;
}
.co-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.co-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5d9d9;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.co-item__qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
  line-height: 1;
}
.co-item__qty-input {
  width: 42px;
  height: 30px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}
.co-item__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
}
.co-item__remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

.cv2-summary-coupon {
  padding: 0 1.25rem 1rem;
}
.cv2-coupon-btn {
  border-radius: 0 10px 10px 0;
  border: 1px solid #d5d9d9;
  border-left: none;
  background: #f1f5f9;
  font-weight: 700;
  font-size: 0.82rem;
  color: #334155;
  padding-inline: 1rem;
}
.cv2-coupon-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cv2-summary-totals {
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.45rem;
}
.cv2-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--cv2-text-muted);
}
.cv2-summary-row strong {
  color: var(--cv2-text);
  font-weight: 700;
}
.cv2-summary-row--grand {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  font-size: 1rem;
  color: var(--cv2-text);
}
.cv2-summary-row--grand strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--market-dark, #131921);
}

.cv2-place-order {
  margin: 0 1.25rem;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  background: linear-gradient(180deg, #ffe066 0%, #ffd814 55%, #f7ca00 100%);
  box-shadow: 0 8px 20px rgba(255, 216, 20, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cv2-place-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 216, 20, 0.45);
  color: #111;
}
.cv2-summary-note {
  padding: 0.75rem 1.25rem 1.1rem;
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  color: #94a3b8;
}

.cv2-summary-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--cv2-text-muted);
}
.cv2-summary-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.cv2-summary-empty__btn {
  margin-top: 0.75rem;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  background: var(--market-blue, #007185);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 991px) {
  .cv2-summary-card { position: static !important; }
  .co-item { grid-template-columns: 64px minmax(0, 1fr); }
  .co-item__thumb { width: 64px; height: 64px; }
}

/* Dark mode toggle */
.cv2-theme-toggle {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

/* Quick view modal */
.cv2-quickview .modal-dialog { max-width: 900px; }
.cv2-quickview img { max-height: 360px; object-fit: contain; width: 100%; }

/* Shop horizontal scroll + legacy product-card slabs */
.shop-product-slab {
  width: 168px;
  max-width: 168px;
}
.store-compact-media,
.shop-product-slab .product-media.store-product-thumb {
  aspect-ratio: 1;
  height: auto;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-product-slab .product-media .store-product-thumb__img,
.store-compact-media .store-product-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
}
.shop-product-slab .card-body {
  padding: 0.4rem 0.5rem !important;
}
.shop-product-slab .product-title {
  font-size: 0.72rem !important;
}

/* Shop infinite scroll sentinel */
#shop-infinite-sentinel { height: 1px; }

/* PWA install hint */
.cv2-pwa-banner {
  background: var(--cv2-gradient);
  color: #fff;
  border-radius: var(--cv2-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: none;
}
.cv2-pwa-banner.is-visible { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Shared marketplace buttons */
.cv2-btn-gold {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: #111;
  background: linear-gradient(180deg, #ffe066 0%, #ffd814 55%, #f7ca00 100%);
  box-shadow: 0 6px 16px rgba(255, 216, 20, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cv2-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 216, 20, 0.4);
  color: #111;
}
.cv2-btn-orange {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: #111;
  background: linear-gradient(180deg, #ffc46b 0%, #ffa41c 100%);
  box-shadow: 0 4px 12px rgba(255, 164, 28, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cv2-btn-orange:hover { color: #111; transform: translateY(-1px); }

/* ===== Product detail page ===== */
.cv2-product-page { color: var(--cv2-text); }
.cv2-product-hero { padding-bottom: 0; }

.cv2-product-gallery {
  top: 6rem !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}
.cv2-product-gallery__main {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv2-product-gallery__img {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}
.cv2-product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}
.cv2-product-gallery__thumb {
  width: 56px;
  height: 56px;
  padding: 0.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}
.cv2-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cv2-product-gallery__thumb.active,
.cv2-product-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--market-blue, #007185);
}
.cv2-product-docs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-product-docs__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cv2-text-muted);
  margin-bottom: 0.5rem;
}
.cv2-product-docs__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cv2-text);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.cv2-product-docs__link i { color: #dc2626; }

.cv2-product-detail__category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--market-blue, #007185);
  margin-bottom: 0.5rem;
}
.cv2-product-detail__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--cv2-text);
}
.cv2-product-detail__rating {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cv2-product-detail__stars { color: #f59e0b; font-size: 0.9rem; }
.cv2-product-detail__reviews {
  font-size: 0.82rem;
  color: var(--market-link, #007185);
}

.cv2-product-price-block {
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-product-price-block__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.cv2-product-price-block__current {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cv2-text);
  letter-spacing: -0.02em;
}
.cv2-product-price-block__was {
  font-size: 0.9rem;
  color: var(--cv2-text-muted);
  text-decoration: line-through;
}
.cv2-product-price-block__save {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.cv2-product-price-block__note {
  font-size: 0.78rem;
  color: var(--cv2-text-muted);
  margin: 0.5rem 0 0;
}

.cv2-product-about__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cv2-product-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.cv2-product-about__list li {
  font-size: 0.88rem;
  color: #334155;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.cv2-product-about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--market-blue, #007185);
}

.cv2-product-buybox {
  top: 6rem !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
}
.cv2-product-buybox__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cv2-text);
  letter-spacing: -0.02em;
}
.cv2-product-buybox__delivery {
  font-size: 0.82rem;
  color: var(--cv2-text-muted);
  margin: 0.35rem 0 1rem;
}
.cv2-product-buybox__delivery i { color: var(--market-blue, #007185); }
.cv2-product-buybox__stock { margin-bottom: 1rem; }
.cv2-product-buybox__stock-note {
  font-size: 0.78rem;
  margin: 0.5rem 0 0;
}
.cv2-product-buybox__stock-note.cv2-stock-still-order {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  padding: 0.5rem 0.65rem;
}
.cv2-product-buybox__stock-note--warn { color: #c2410c; font-weight: 600; background: #fff7ed; padding: 0.35rem 0.5rem; border-radius: 6px; border-left: 3px solid #c2410c; }
.cv2-product-buybox__seller {
  font-size: 0.78rem;
  color: var(--cv2-text-muted);
  margin: 0.65rem 0 0;
}
.cv2-product-buybox__field { margin-bottom: 0.85rem; }
.cv2-product-buybox__qty { max-width: 120px; }

.cv2-product-urgency {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.cv2-product-urgency__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.25rem;
}
.cv2-product-urgency__hint {
  font-size: 0.72rem;
  color: #a16207;
  margin-bottom: 0.5rem;
}
.cv2-product-urgency__select {
  border-color: #fcd34d;
  border-radius: 8px;
  font-size: 0.82rem;
}

.cv2-product-buybox__actions {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.cv2-product-buybox__secure {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  color: var(--cv2-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cv2-product-buybox__secure i { color: var(--cv2-success); }

/* Related products — Walmart-style horizontal carousel */
.cv2-related-section {
  margin: 2rem 0 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.cv2-related-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cv2-related-section__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  color: var(--cv2-text);
}
.cv2-related-section__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cv2-text-muted);
}
.cv2-related-section__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand, var(--cv2-accent));
  text-decoration: none;
  white-space: nowrap;
}
.cv2-related-section__link:hover { text-decoration: underline; }

.cv2-related-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.cv2-related-carousel__viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.cv2-related-carousel__track {
  display: grid;
  grid-auto-flow: column;
  gap: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.cv2-related-carousel__slide {
  min-width: 0;
}
.cv2-related-carousel__nav {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-self: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.cv2-related-carousel__nav:hover:not(:disabled) {
  transform: scale(1.04);
  border-color: var(--brand, #0071ce);
  color: var(--brand, #0071ce);
}
.cv2-related-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.cv2-related-carousel__nav[hidden] { display: none; }

.cv2-related-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.cv2-related-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.cv2-related-card__media {
  position: relative;
  padding: 0.75rem 0.75rem 0;
}
.cv2-related-card__deal {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: #e40046;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.cv2-related-card__wish {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
}
.cv2-related-card__wish:hover,
.cv2-related-card__wish.is-active {
  color: #e40046;
}
.cv2-related-card__img-link {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 0.65rem;
  background: #fff;
}
.cv2-related-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cv2-related-card__img-link.store-product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv2-related-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  color: #94a3b8;
  font-size: 2rem;
  background: #f8fafc;
}
.cv2-related-card__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  border: 1px solid #0f172a;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cv2-related-card__add:hover {
  background: var(--brand, #0071ce);
  border-color: var(--brand, #0071ce);
  color: #fff;
}
.cv2-related-card__body {
  padding: 0.65rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.cv2-related-card__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.cv2-related-card__now {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1d8102;
}
.cv2-related-card__was {
  font-size: 0.8125rem;
  color: #64748b;
  text-decoration: line-through;
}
.cv2-related-card__save {
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d8102;
}
.cv2-related-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cv2-text);
}
.cv2-related-card__title {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cv2-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv2-related-card__title:hover {
  color: var(--brand, var(--cv2-accent));
  text-decoration: underline;
}
.cv2-related-card__rating {
  font-size: 0.7rem;
  color: #f59e0b;
  margin-top: auto;
}

@media (max-width: 767.98px) {
  .cv2-related-carousel__nav {
    display: none;
  }
  .cv2-related-carousel__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .cv2-related-carousel__viewport::-webkit-scrollbar {
    display: none;
  }
  .cv2-related-carousel__track {
    transform: none !important;
    grid-auto-columns: 168px;
  }
}

.cv2-product-desc__body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #475569;
}

@media (max-width: 991px) {
  .cv2-product-gallery,
  .cv2-product-buybox { position: static !important; }
}

/* ===== Home page ===== */
.cv2-home-page { background: var(--market-bg, #eaeded); }
.cv2-home-hero {
  position: relative;
  background: #d5d9d9;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cv2-home-hero__carousel {
  margin-bottom: 0;
  width: 100%;
  /* Fit remaining window height below site header/nav */
  height: calc(100vh - var(--cv2-chrome-h, 0px));
  height: calc(100dvh - var(--cv2-chrome-h, 0px));
  max-height: calc(100vh - var(--cv2-chrome-h, 0px));
  max-height: calc(100dvh - var(--cv2-chrome-h, 0px));
  overflow: hidden;
}
.cv2-home-hero__carousel .carousel-inner,
.cv2-home-hero__carousel .carousel-item {
  height: 100%;
  overflow: hidden;
}
.cv2-home-hero__carousel .carousel-item > a {
  display: block;
  height: 100%;
}
.cv2-home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
}
.cv2-home-hero__control {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.cv2-home-hero__control i {
  font-size: 1.25rem;
  color: #0f172a;
}

.cv2-home-tiles-wrap {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
}

.cv2-home-services {
  position: relative;
  z-index: 1;
  background: var(--market-bg, #eaeded);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cv2-home-services__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cv2-home-services__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0;
  color: var(--cv2-text, #0f172a);
}

.cv2-home-services__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand, var(--cv2-accent));
  text-decoration: none;
  white-space: nowrap;
}

.cv2-home-services__link:hover {
  text-decoration: underline;
}

.cv2-home-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cv2-home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--cv2-radius, 8px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.cv2-home-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.cv2-home-service-card__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.625rem;
}

.cv2-home-service-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.cv2-home-service-card__desc {
  font-size: 0.8125rem;
  color: var(--cv2-muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .cv2-home-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .cv2-home-services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .cv2-home-services__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.cv2-home-categories {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.cv2-home-categories__viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.cv2-home-categories__track {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.cv2-home-categories__card {
  min-width: 0;
}
.cv2-home-categories__nav {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 3;
}
.cv2-home-categories__nav:hover:not(:disabled) {
  transform: scale(1.05);
}
.cv2-home-categories__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.cv2-home-categories__nav[hidden] {
  display: none;
}
.cv2-home-categories__nav i {
  font-size: 1.25rem;
}

/* Walmart-style quick category strip (hidden by default; re-enable via display) */
.cv2-quick-cats-wrap {
  display: none !important;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.cv2-quick-cats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cv2-quick-cats-head__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0;
  color: var(--cv2-text);
}
.cv2-quick-cats-head__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand, var(--cv2-accent));
  text-decoration: none;
}
.cv2-quick-cats-head__link:hover {
  text-decoration: underline;
}
.cv2-quick-cats-scroll {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cv2-quick-cats-scroll::-webkit-scrollbar {
  display: none;
}
.cv2-quick-cat {
  flex: 0 0 88px;
  text-align: center;
  text-decoration: none;
  color: var(--cv2-text);
}
.cv2-quick-cat:hover {
  color: var(--brand, var(--cv2-accent));
}
.cv2-quick-cat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.cv2-quick-cat__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv2-quick-cat__icon i {
  font-size: 1.75rem;
  color: var(--brand, var(--cv2-accent));
}
.cv2-quick-cat__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}
.cv2-quick-cat--services .cv2-quick-cat__icon {
  background: linear-gradient(135deg, rgba(var(--brand-rgb, 108, 92, 231), 0.08), #fff);
}

.cv2-home-tile {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cv2-home-tile--accent {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.cv2-home-tile__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--cv2-text);
}
.cv2-home-tile__mosaic {
  display: grid;
  gap: 0.5rem;
  flex: 1;
  min-height: 168px;
}
.cv2-home-tile__mosaic--1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.cv2-home-tile__mosaic--2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.cv2-home-tile__mosaic--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.15fr 1fr;
  grid-template-areas:
    "hero hero"
    "sm1 sm2";
}
.cv2-home-tile__mosaic--3 .cv2-home-tile__item:nth-child(1) { grid-area: hero; }
.cv2-home-tile__mosaic--3 .cv2-home-tile__item:nth-child(2) { grid-area: sm1; }
.cv2-home-tile__mosaic--3 .cv2-home-tile__item:nth-child(3) { grid-area: sm2; }
.cv2-home-tile__mosaic--4 {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr 0.88fr;
  grid-template-areas:
    "hero sm1"
    "hero sm2"
    "wide wide";
}
.cv2-home-tile__mosaic--4 .cv2-home-tile__item:nth-child(1) { grid-area: hero; }
.cv2-home-tile__mosaic--4 .cv2-home-tile__item:nth-child(2) { grid-area: sm1; }
.cv2-home-tile__mosaic--4 .cv2-home-tile__item:nth-child(3) { grid-area: sm2; }
.cv2-home-tile__mosaic--4 .cv2-home-tile__item:nth-child(4) { grid-area: wide; }

.cv2-home-tile__mosaic .cv2-home-tile__item {
  position: relative;
  display: block;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}
.cv2-home-tile__mosaic .cv2-home-tile__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.cv2-home-tile__mosaic .cv2-home-tile__item:hover::after {
  opacity: 1;
}
.cv2-home-tile__mosaic .cv2-home-tile__item img,
.cv2-home-tile__mosaic .cv2-home-tile__item .cv2-home-tile__icon {
  width: 100%;
  height: 100%;
  min-height: 72px;
  object-fit: cover;
  aspect-ratio: unset;
  margin: 0;
  border: 0;
  border-radius: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cv2-home-tile__mosaic .cv2-home-tile__item:hover img {
  transform: scale(1.06);
}
.cv2-home-tile__mosaic--1 .cv2-home-tile__item img,
.cv2-home-tile__mosaic--1 .cv2-home-tile__item .cv2-home-tile__icon {
  min-height: 140px;
}
.cv2-home-tile__item--solo .cv2-home-tile__icon {
  min-height: 140px;
}

.cv2-home-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-home-tile__item {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
}
.cv2-home-tile__mosaic .cv2-home-tile__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.cv2-home-tile__item:hover { transform: translateY(-2px); }
.cv2-home-tile__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-home-tile__mosaic .cv2-home-tile__item img {
  margin-bottom: 0;
  border-radius: 0;
}
.cv2-home-tile__item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}
.cv2-home-tile__feature-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-home-tile__text {
  font-size: 0.85rem;
  color: var(--cv2-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}
.cv2-home-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--market-link, #007185);
  text-decoration: none;
}
.cv2-home-tile__link:hover { text-decoration: underline; }
.cv2-home-tile__footer {
  font-size: 0.78rem;
  color: var(--cv2-text-muted);
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  padding-top: 0.75rem;
}
.cv2-home-tile__footer a {
  color: var(--market-link, #007185);
  font-weight: 700;
  text-decoration: none;
}

.cv2-home-body {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.cv2-home-section {
  margin-bottom: 1.5rem;
}
.cv2-home-section__panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  padding: 1.25rem 1.35rem 1.35rem;
}
.cv2-home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-home-section__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cv2-text-muted);
  margin-bottom: 0.2rem;
}
.cv2-home-section__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cv2-text);
}
.cv2-home-section__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--market-link, #007185);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}
.cv2-home-section__link:hover { text-decoration: underline; }

.cv2-home-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-home-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #94a3b8;
}
.cv2-home-empty h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cv2-home-empty p {
  color: var(--cv2-text-muted);
  margin-bottom: 1.25rem;
}

/* Align commerce sections on home with home panels */
.cv2-home-body .cv2-section {
  margin: 0 0 1.5rem;
}
.cv2-home-body .cv2-section__head {
  padding: 1rem 1.25rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.cv2-home-body .cv2-section__title { font-size: 1.2rem; }
.cv2-home-body .cv2-section__link { color: var(--market-link, #007185); }

/* Product card polish */
.cv2-product-card {
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.cv2-product-card__title {
  font-size: 0.78rem;
  font-weight: 700;
}
.cv2-product-card__price {
  color: var(--market-dark, #0f1111);
  font-size: 0.88rem;
}
.cv2-section__link { color: var(--market-link, #007185); }

.cv2-trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}
.cv2-trust-bar__item i {
  font-size: 1.75rem;
  color: var(--market-blue, #007185);
}
.cv2-trust-bar__item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

@media (max-width: 767px) {
  .cv2-home-hero__control { top: 50%; }
  .cv2-home-categories__nav {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 575px) {
  .cv2-home-categories {
    gap: 0.35rem;
  }
}
