/* Stocky Commerce v2 — Adewire brand marketplace */
:root {
  --cv2-radius: 14px;
  --cv2-radius-lg: 20px;
  --cv2-shadow: 0 8px 28px rgba(5, 44, 21, 0.08);
  --cv2-shadow-hover: 0 16px 40px rgba(5, 44, 21, 0.14);
  --cv2-gradient: linear-gradient(135deg, #0b3d2e 0%, #1f8f5f 100%);
  --cv2-surface: #ffffff;
  --cv2-muted: #eef5f0;
  --cv2-text: #0f1a14;
  --cv2-text-muted: #5a6b60;
  --cv2-sale: #cc0c39;
  --cv2-success: #1f8f5f;
  --cv2-gold: #d4b982;
  --cv2-ink: #052c15;
}

[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;
  container-type: inline-size;
  container-name: cv2card;
}
.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); }
/* Hover like / compare / share overlays removed for cleaner cards */
.cv2-product-card__actions {
  display: none !important;
}
.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; }

/* Product slider: 2-up grid on mobile, horizontal scroll on tablet+ */
.cv2-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  overflow: visible;
  padding-bottom: 0.5rem;
}
.cv2-slider > * {
  min-width: 0;
  max-width: none;
}
@media (min-width: 768px) {
  .cv2-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -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 168px; scroll-snap-align: start; 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,
.cv2-mobile-nav i::before {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
  color: inherit;
  opacity: 1 !important;
  visibility: visible !important;
}
.cv2-home-hero__trust-item i,
.cv2-home-hero__trust-item i::before,
.cv2-home-hero__badge i,
.cv2-home-hero__badge i::before,
.cv2-support-fab__toggle i,
.cv2-support-fab__toggle i::before,
.marketplace-mobile-header i,
.marketplace-mobile-header i::before {
  opacity: 1 !important;
  visibility: visible !important;
}
@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) — minimized by default */
.cv2-support-fab {
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  pointer-events: none;
}
.cv2-support-fab__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.cv2-support-fab.is-collapsed .cv2-support-fab__actions {
  display: none;
}
.cv2-support-fab__toggle {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #146b4a, #0b3d2e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cv2-support-fab__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.26);
}
.cv2-support-fab__toggle i {
  font-size: 1.25rem;
  line-height: 1;
}
.cv2-support-fab__icon-close { display: none; }
.cv2-support-fab.is-open .cv2-support-fab__icon-open { display: none; }
.cv2-support-fab.is-open .cv2-support-fab__icon-close { display: inline-block; }
.cv2-support-fab.is-open .cv2-support-fab__toggle {
  background: #334155;
}
.cv2-support-fab__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: cv2FabPop 0.22s ease both;
}
.cv2-support-fab__btn span {
  display: none;
}
.cv2-support-fab__btn i {
  font-size: 1.35rem;
  line-height: 1;
}
.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; }
@keyframes cv2FabPop {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (min-width: 576px) {
  .cv2-support-fab__btn {
    width: auto;
    height: auto;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
  }
  .cv2-support-fab__btn span { display: inline; }
  .cv2-support-fab__btn i { font-size: 1.15rem; }
}
@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__share {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  padding: 0.7rem 1rem;
}
.cv2-mini-cart__share:hover,
.cv2-mini-cart__share:focus {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.28);
}
.cv2-mini-cart__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.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, rgba(5, 44, 21, 0.04) 0%, rgba(238, 245, 240, 0.9) 100%),
    #f7fbf8;
  border-bottom: 1px solid rgba(20, 107, 74, 0.12);
}
.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: #052c15;
  background: linear-gradient(180deg, #e8d2a4 0%, #d4b982 55%, #c4a66d 100%);
  box-shadow: 0 6px 16px rgba(212, 185, 130, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cv2-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 185, 130, 0.45);
  color: #052c15;
}
.cv2-btn-orange {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #1f8f5f 0%, #146b4a 100%);
  box-shadow: 0 4px 12px rgba(20, 107, 74, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cv2-btn-orange:hover { color: #fff; 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; }

/* Shared qty stepper (product buy box + listing cards) */
.cv2-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}
.cv2-qty-stepper__btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cv2-qty-stepper__btn:hover {
  background: var(--brand, #00a651);
  color: #fff;
}
.cv2-qty-stepper__btn:active { transform: scale(0.96); }
.cv2-qty-stepper__input,
.cv2-qty-stepper__val {
  width: 52px;
  min-height: 40px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -moz-appearance: textfield;
}
.cv2-qty-stepper__input::-webkit-outer-spin-button,
.cv2-qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cv2-qty-stepper--buybox {
  width: 100%;
  max-width: 168px;
}
.cv2-qty-stepper--buybox .cv2-qty-stepper__input { flex: 1; width: auto; }
.cv2-qty-stepper--card {
  width: 100%;
  border-radius: 999px;
  border-color: #0f172a;
}
.cv2-qty-stepper--card .cv2-qty-stepper__btn {
  width: 38px;
  height: 36px;
  background: #fff;
  font-size: 1.05rem;
}
.cv2-qty-stepper--card .cv2-qty-stepper__btn:hover {
  background: var(--brand, #0071ce);
}
.cv2-qty-stepper--card .cv2-qty-stepper__val {
  flex: 1;
  width: auto;
  min-height: 36px;
  border-color: rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
}

.cv2-product-card__cart,
.cv2-related-card__cart {
  padding: 0 0.6rem 0.7rem;
  margin-top: auto;
  min-width: 0;
}
.cv2-related-card__cart { padding: 0.15rem 0 0; }
.cv2-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #146b4a;
  border-radius: 999px;
  background: #fff;
  color: #0a2f1a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cv2-card-add i { flex: 0 0 auto; }
.cv2-card-add__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@container cv2card (max-width: 180px) {
  .cv2-product-card__cart {
    padding: 0 0.35rem 0.5rem;
  }
  .cv2-card-add {
    font-size: 0.68rem;
    gap: 0.2rem;
    padding: 0.38rem 0.35rem;
  }
  .cv2-qty-stepper--card .cv2-qty-stepper__btn {
    width: 28px;
    height: 32px;
    font-size: 0.95rem;
  }
  .cv2-qty-stepper--card .cv2-qty-stepper__val {
    min-height: 32px;
    font-size: 0.8rem;
  }
}
@container cv2card (max-width: 130px) {
  .cv2-product-card__cart {
    padding: 0 0.25rem 0.45rem;
  }
  .cv2-card-add {
    font-size: 0.6rem;
    gap: 0.15rem;
    padding: 0.32rem 0.2rem;
    letter-spacing: -0.01em;
  }
}
.cv2-card-add:hover {
  background: #146b4a;
  border-color: #146b4a;
  color: #fff;
}
.cv2-card-add:disabled {
  opacity: 0.7;
  cursor: default;
}

.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-btn-share {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  font-weight: 700;
}
.cv2-btn-share:hover,
.cv2-btn-share:focus {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.28);
}
.store-share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 2000;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.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,
.cv2-related-card__share {
  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__share {
  top: 2.85rem;
}
.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, #eef5f0);
  --cv2-hero-h: clamp(160px, 26dvh, 300px);
  --cv2-cat-size: min(800px, max(140px, calc(100dvh - var(--cv2-hero-h) - 320px)));
}
.cv2-home-hero {
  position: relative;
  background: #d5d9d9;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cv2-home-hero--brand {
  --cv2-hero-h: auto;
  --hero-ink: #052c15;
  --hero-ink-2: #0a2f1a;
  --hero-line: rgba(61, 125, 90, 0.28);
  --hero-gold: #d4b982;
  --hero-muted: #a8b5a8;
  background: var(--hero-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cv2-home-hero__stage {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 34dvh, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.1rem, 5vw, 3rem);
  background:
    linear-gradient(180deg, rgba(5, 44, 21, 0.2) 0%, rgba(5, 44, 21, 0.55) 100%),
    var(--hero-ink-2);
}
.cv2-home-hero__circuit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px),
    radial-gradient(circle at 18% 30%, rgba(61, 125, 90, 0.22), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(61, 125, 90, 0.18), transparent 46%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}
.cv2-home-hero__circuit::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 22px,
      rgba(90, 160, 120, 0.14) 22px 23px,
      transparent 23px 46px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 22px,
      rgba(90, 160, 120, 0.12) 22px 23px,
      transparent 23px 46px
    );
  opacity: 0.7;
}
.cv2-home-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  width: 100%;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cv2-home-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 160, 120, 0.55);
  background: rgba(8, 40, 24, 0.72);
  color: #f4fff8;
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 100%;
}
.cv2-home-hero__badge i {
  color: #7dcea0;
  font-size: 0.9em;
  flex-shrink: 0;
}
.cv2-home-hero__brand {
  margin: 0 0 0.55rem;
  font-size: clamp(2.15rem, 7vw, 4.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  line-height: 1;
  color: #ffffff;
}
.cv2-home-hero__tagline {
  margin: 0 auto 0.75rem;
  font-size: clamp(1rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--hero-gold);
  max-width: min(34rem, 94vw);
}
.cv2-home-hero__desc {
  margin: 0 auto;
  max-width: min(38rem, 94vw);
  font-size: clamp(0.82rem, 2vw, 1rem);
  line-height: 1.55;
  color: var(--hero-muted);
  font-weight: 500;
}
.cv2-home-hero__trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 2vw, 1rem);
  width: 100%;
  margin: 0;
  padding: clamp(0.85rem, 2.2vw, 1.15rem) clamp(0.75rem, 4vw, 2rem);
  border-top: 1px solid rgba(90, 160, 120, 0.28);
  background: rgba(3, 28, 16, 0.88);
  backdrop-filter: blur(4px);
}
.cv2-home-hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  min-width: 0;
  color: #e8f5ec;
}
.cv2-home-hero__trust-item i {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  color: var(--hero-gold);
  line-height: 1;
}
.cv2-home-hero__trust-item span {
  font-size: clamp(0.68rem, 1.9vw, 0.88rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.cv2-drop-in {
  opacity: 0;
  transform: translateY(-2.75rem);
  animation: cv2DropIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--drop-delay, 0s);
}
@keyframes cv2DropIn {
  0% { opacity: 0; transform: translateY(-2.75rem); }
  60% { opacity: 1; transform: translateY(0.2rem); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
  .cv2-home-hero__stage {
    min-height: 0;
    padding: 1.35rem 1.15rem 1.1rem;
  }
  .cv2-home-hero__badge {
    letter-spacing: 0.04em;
    padding: 0.3rem 0.7rem;
  }
  .cv2-home-hero__trust {
    gap: 0.25rem;
    padding: 0.8rem 0.85rem;
  }
  .cv2-home-hero__trust-item span {
    max-width: 7.5rem;
  }
}
.cv2-home-hero__carousel {
  margin-bottom: 0;
  width: 100%;
  height: var(--cv2-hero-h);
  overflow: hidden;
}
.cv2-home-hero__carousel .carousel-inner,
.cv2-home-hero__carousel .carousel-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cv2-home-hero__carousel .carousel-item > a {
  display: block;
  width: 100%;
  height: 100%;
}
.cv2-home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  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 {
  --tiles-strip: #c5dbcd;
  --tiles-strip-2: #cde1d4;
  --tiles-strip-3: #c3d9cb;
  --tiles-circuit: rgba(20, 107, 74, 0.16);
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 1.15rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tiles-strip) 0%, var(--tiles-strip-2) 55%, var(--tiles-strip-3) 100%);
  border-bottom: 1px solid rgba(20, 107, 74, 0.2);
}
.cv2-home-tiles-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background-image:
    linear-gradient(var(--tiles-circuit) 1px, transparent 1px),
    linear-gradient(90deg, var(--tiles-circuit) 1px, transparent 1px),
    radial-gradient(circle at 18% 35%, rgba(20, 107, 74, 0.1), transparent 42%),
    radial-gradient(circle at 82% 65%, rgba(20, 107, 74, 0.08), transparent 46%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}
.cv2-home-tiles-wrap::after {
  content: "";
  position: absolute;
  inset: 6% 4%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 20px,
      rgba(20, 107, 74, 0.12) 20px 21px,
      transparent 21px 42px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 20px,
      rgba(20, 107, 74, 0.1) 20px 21px,
      transparent 21px 42px
    );
}
.cv2-home-tiles-wrap > * {
  position: relative;
  z-index: 1;
}
.cv2-home-categories {
  background: transparent;
}

.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(20, 107, 74, 0.1);
  box-shadow: 0 8px 24px rgba(5, 44, 21, 0.08);
  padding: 0.75rem 0 0.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cv2-home-tile--accent {
  background: linear-gradient(180deg, #fff 0%, #eef5f0 100%);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.cv2-home-tile__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0.9rem 0.55rem;
  color: var(--cv2-text);
}
.cv2-home-tile__mosaic {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0 0.35rem;
}
.cv2-home-tile__mosaic--1 {
  display: block;
  min-height: 0;
  padding: 0;
  width: 100%;
}
.cv2-home-tile__mosaic--2,
.cv2-home-tile__mosaic--3,
.cv2-home-tile__mosaic--4 {
  min-height: 168px;
}
.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;
  object-position: center;
  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);
}
/* One department photo: edge-to-edge inside the category card */
.cv2-home-tile__mosaic--1 .cv2-home-tile__item--solo {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 0;
}
.cv2-home-tile__mosaic--1 .cv2-home-tile__item--solo img,
.cv2-home-tile__mosaic--1 .cv2-home-tile__item--solo .cv2-home-tile__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  aspect-ratio: auto;
  border-radius: 0;
}
.cv2-home-tile__item--solo .cv2-home-tile__icon {
  min-height: 0;
}

.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: auto 0.9rem 0;
  padding-top: 0.55rem;
  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: 0.75rem;
  padding-bottom: 3rem;
}

.cv2-home-section {
  margin-bottom: 1.5rem;
}
.cv2-home-section__panel {
  background: #fff;
  border: 1px solid rgba(20, 107, 74, 0.1);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(5, 44, 21, 0.05);
  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(20, 107, 74, 0.1);
}
.cv2-home-section__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #146b4a;
  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: 991.98px) {
  .cv2-home-page {
    --cv2-hero-h: auto;
    --cv2-cat-size: min(800px, max(112px, calc(100dvh - 520px)));
  }
  /* Hide side prev/next on tablet/phone — swipe/scroll instead */
  .cv2-home-categories__nav,
  .cv2-related-carousel__nav {
    display: none !important;
  }
  .cv2-home-categories {
    gap: 0;
  }
  .cv2-home-categories__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cv2-home-categories__viewport::-webkit-scrollbar { display: none; }
  .cv2-home-categories__track {
    transform: none !important;
    width: max-content;
    gap: 0.65rem;
    padding-inline: 0;
  }
  .cv2-home-categories__card {
    scroll-snap-align: start;
    width: min(88vw, 340px);
  }
  .cv2-home-tile {
    padding: 0.55rem 0 0.45rem;
  }
  .cv2-home-tile--accent {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .cv2-home-tile__title {
    margin: 0 0.75rem 0.4rem;
  }
  .cv2-home-tile__link {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
  .cv2-home-tile__mosaic:not(.cv2-home-tile__mosaic--1) {
    padding: 0 0.25rem;
    gap: 0.25rem;
  }
  .cv2-home-tile__mosaic--1 .cv2-home-tile__item--solo,
  .cv2-home-tile__mosaic .cv2-home-tile__item {
    border-radius: 0;
  }
}

@media (max-width: 767px) {
  .cv2-home-hero__control { display: none !important; }
  .cv2-related-card__wish {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .cv2-home-categories {
    gap: 0;
  }
  .cv2-home-categories__card {
    width: calc(100vw - 2rem);
  }
}

/* ===== Adewire global store theme polish ===== */
.cv2-mobile-nav {
  border-top-color: rgba(20, 107, 74, 0.14);
  box-shadow: 0 -6px 20px rgba(5, 44, 21, 0.08);
}
.cv2-mobile-nav a.active,
.cv2-mobile-nav a:hover {
  color: #1f8f5f;
}

.cv2-product-card {
  border-color: rgba(20, 107, 74, 0.1);
  box-shadow: 0 2px 12px rgba(5, 44, 21, 0.06);
}
.cv2-product-card:hover {
  box-shadow: 0 10px 24px rgba(5, 44, 21, 0.12);
}
.cv2-product-card__price,
.cv2-related-card__price {
  color: #0a2f1a !important;
}
.cv2-home-section__link,
.cv2-home-services__link,
.cv2-section__link,
.cv2-related-section__link,
a.cv2-home-tile__link {
  color: #146b4a !important;
}
.cv2-home-tile__link {
  color: #146b4a;
  font-weight: 700;
  text-decoration: none;
}
.cv2-home-tile__link:hover {
  color: #0b3d2e;
  text-decoration: underline;
}

.cv2-checkout-breadcrumb a,
.cv2-product-page a:not(.btn):not(.cv2-card-add) {
  color: #146b4a;
}

.cv2-place-order,
.cv2-coupon-btn {
  background: linear-gradient(180deg, #1f8f5f 0%, #146b4a 100%) !important;
  border-color: #146b4a !important;
  color: #fff !important;
}

.cv2-trust-bar__item i {
  color: #146b4a !important;
}

.cv2-home-services {
  background: #eef5f0 !important;
  border-top-color: rgba(20, 107, 74, 0.12) !important;
}
.cv2-home-service-card {
  border: 1px solid rgba(20, 107, 74, 0.1);
  box-shadow: 0 4px 16px rgba(5, 44, 21, 0.05);
}

.store-page-px.py-4.border-top.bg-light,
section.store-page-px.py-4.border-top.bg-light {
  background: #e8f2eb !important;
  border-top-color: rgba(20, 107, 74, 0.12) !important;
}

.marketplace-mobile-header {
  background: #052c15 !important;
}

.marketplace-search-btn {
  background: #d4b982 !important;
  color: #052c15 !important;
}
.marketplace-search-btn:hover {
  background: #e2c896 !important;
}

.cv2-support-fab__toggle {
  background: linear-gradient(145deg, #1f8f5f, #0b3d2e) !important;
}

.nav-line-1 { color: #b7cfc0 !important; }
.marketplace-nav-item:hover { border-color: #d4b982 !important; }

.bg-gradient-subtle,
.shop-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef5f0 100%) !important;
}

.cv2-badge--new,
.cv2-badge--trending {
  background: #146b4a !important;
}

.cv2-stock-pill--is-ok {
  color: #146b4a;
}

/* Soft circuit watermark on dark chrome areas only */
.marketplace-header::after,
.marketplace-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(90, 160, 120, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 160, 120, 0.35) 1px, transparent 1px);
  background-size: 42px 42px;
}
.marketplace-header,
.marketplace-footer {
  position: relative;
}
.marketplace-footer {
  overflow: hidden;
}
.marketplace-header {
  overflow: visible;
  z-index: 1200;
}
.marketplace-header > *,
.marketplace-footer > * {
  position: relative;
  z-index: 1;
}
.marketplace-main-nav {
  overflow: visible;
  z-index: 1210;
}
.marketplace-search-wrap {
  z-index: 1220;
  overflow: visible !important;
}
