/* Whola theme for Active eCommerce — adapted with RED brand color */

:root {
  /* Colors — red brand (user chose to keep current red) */
  --whola-primary: #ff3f40;
  --whola-primary-hover: #e63334;
  --whola-primary-soft: #ffe7e8;
  --whola-primary-ink: #7a1516;

  --whola-accent: #ff8c42;
  --whola-accent-soft: #fff1e6;

  --whola-danger: #e02e3a;
  --whola-danger-soft: #ffeaec;

  --whola-ink: #1a1d22;
  --whola-ink-2: #4a4f57;
  --whola-ink-3: #777c85;
  --whola-ink-4: #c4c8ce;

  --whola-bg: #fcfcfc;
  --whola-bg-2: #f7f7f8;
  --whola-bg-3: #f1f1f3;
  --whola-line: #e8e9eb;
  --whola-line-2: #d9dadc;

  --whola-surface: #ffffff;

  --whola-shadow-sm: 0 1px 2px rgba(20, 25, 30, 0.04), 0 0 0 1px rgba(20, 25, 30, 0.04);
  --whola-shadow-md: 0 2px 8px rgba(20, 25, 30, 0.06), 0 0 0 1px rgba(20, 25, 30, 0.04);
  --whola-shadow-lg: 0 10px 32px rgba(20, 25, 30, 0.08), 0 0 0 1px rgba(20, 25, 30, 0.04);

  --whola-r-sm: 6px;
  --whola-r: 10px;
  --whola-r-md: 12px;
  --whola-r-lg: 16px;
  --whola-r-xl: 22px;

  --whola-font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --whola-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --whola-container: 1440px;
}

/* Whola-specific styles scoped to body.whola-theme */
body.whola-theme {
  font-family: var(--whola-font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--whola-ink);
  background: var(--whola-bg);
  -webkit-font-smoothing: antialiased;
}

/* ========== HERO BANNER ========== */
.whola-hero-section {
  padding: 32px 0 40px;
}

.whola-hero {
  background: linear-gradient(120deg, var(--whola-primary) 0%, #cc2a2b 55%, #9a1819 100%);
  color: white;
  border-radius: var(--whola-r-lg);
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.whola-hero-decor {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background:
    radial-gradient(circle at 88% 20%, white 0%, transparent 45%),
    radial-gradient(circle at 15% 90%, white 0%, transparent 40%);
}

.whola-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.whola-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.18);
  color: white;
  backdrop-filter: blur(4px);
}

.whola-hero-title {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
}

.whola-hero-subtitle {
  font-size: 16px;
  opacity: 0.92;
  max-width: 560px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.whola-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.whola-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--whola-r);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  transition: all 120ms;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.whola-btn-primary { background: white; color: var(--whola-ink); border-color: transparent; }
.whola-btn-primary:hover { background: #f5f5f5; color: var(--whola-ink); text-decoration: none; }

.whola-btn-ghost { background: transparent; color: white; }
.whola-btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }

.whola-stats {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.whola-stat {
  min-width: 120px;
}

.whola-stat-num {
  font-family: var(--whola-font-mono);
  font-size: 24px;
  font-weight: 700;
}

.whola-stat-label {
  font-size: 12px;
  opacity: 0.8;
}

/* ========== PRODUCTS GRID ========== */
.whola-products-section {
  max-width: var(--whola-container);
  margin: 48px auto 0;
  padding: 0 24px;
}

.whola-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.whola-section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--whola-ink);
}

.whola-section-subtitle {
  color: var(--whola-ink-3);
  font-size: 13px;
  margin-top: 4px;
}

.whola-section-subtitle .mono {
  color: var(--whola-ink);
  font-family: var(--whola-font-mono);
}

.whola-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--whola-ink-2);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--whola-r);
  transition: all 120ms;
}

.whola-link:hover {
  background: var(--whola-bg-3);
  color: var(--whola-ink);
  text-decoration: none;
}

.whola-products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) { .whola-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .whola-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .whola-products-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== PRODUCT CARD ========== */
.whola-card {
  background: var(--whola-surface);
  border: 1px solid var(--whola-line);
  border-radius: var(--whola-r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 120ms, box-shadow 120ms;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.whola-card:hover {
  box-shadow: var(--whola-shadow-md);
  border-color: var(--whola-line-2);
  text-decoration: none;
  color: inherit;
}

.whola-card-cover {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--whola-bg-2);
}

.whola-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.whola-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.whola-chip-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--whola-danger-soft);
  color: var(--whola-danger);
}

.whola-chip-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--whola-surface);
  color: var(--whola-ink-2);
  box-shadow: var(--whola-shadow-sm);
}

.whola-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--whola-surface);
  border: 1px solid var(--whola-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--whola-ink-3);
  cursor: pointer;
  z-index: 2;
  transition: color 120ms;
}

.whola-fav-btn:hover { color: var(--whola-danger); }
.whola-fav-btn.active { color: var(--whola-danger); }

.whola-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.whola-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--whola-ink-3);
}

.whola-card-meta-certified {
  color: var(--whola-primary-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.whola-card-title {
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--whola-ink);
}

.whola-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.whola-price {
  font-family: var(--whola-font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--whola-ink);
}

.whola-price-old {
  font-family: var(--whola-font-mono);
  font-size: 12px;
  color: var(--whola-ink-3);
  text-decoration: line-through;
}

.whola-price-unit {
  color: var(--whola-ink-3);
  font-size: 11px;
}

.whola-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--whola-ink-3);
}

.whola-supplier {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--whola-line);
  font-size: 12px;
  color: var(--whola-ink-2);
  text-decoration: none;
}

.whola-supplier-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whola-supplier-city {
  color: var(--whola-ink-3);
}

.whola-add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  margin-top: 4px;
  background: var(--whola-surface);
  border: 1px solid var(--whola-line-2);
  color: var(--whola-ink);
  cursor: pointer;
  transition: all 120ms;
}

.whola-add-cart-btn:hover {
  border-color: var(--whola-ink-3);
}

/* ========== RESPONSIVE HERO ========== */
@media (max-width: 900px) {
  .whola-hero-section { padding: 12px 0 16px; }
  .whola-hero { padding: 16px 16px; min-height: auto; border-radius: 12px; }
  .whola-hero-decor { display: none; }
  .whola-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .whola-hero-chip { font-size: 10px; padding: 2px 8px; }
  .whola-hero-title { font-size: 18px; line-height: 1.15; margin: 6px 0 4px; }
  .whola-hero-subtitle { font-size: 12px; line-height: 1.35; margin-bottom: 8px; }
  .whola-hero-actions { gap: 6px; flex-wrap: wrap; }
  .whola-hero-actions .btn,
  .whola-hero-actions a { font-size: 12px; padding: 6px 12px; }
  .whola-hero-visual { display: none; }  /* картинка справа — лишняя на мобильном */
  .whola-stats { justify-content: flex-start; gap: 12px; margin-top: 8px; font-size: 11px; }
  .whola-stat-num { font-size: 16px; }
}

/* ========== ANIMATIONS ========== */
@keyframes whola-fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.whola-fade-up {
  animation: whola-fadeUp 240ms ease-out both;
}

/* ========== CATEGORY GRID (Ozon-style) ========== */
.whola-cat-grid-section {
  margin-top: 32px;
  margin-bottom: 32px;
}
.whola-cat-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.whola-cat-grid-all {
  font-size: 14px;
  white-space: nowrap;
}
.whola-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 576px) {
  .whola-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 992px) {
  .whola-cat-grid { grid-template-columns: repeat(7, 1fr); gap: 12px; }
}

.whola-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: var(--whola-ink, #1a1a1a);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 10px;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.whola-cat-tile:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: #d8d8d8;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--whola-ink, #1a1a1a);
}
.whola-cat-tile-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.whola-cat-tile-img .whola-cat-tile-fallback {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 180ms ease;
}
.whola-cat-tile:hover .whola-cat-tile-fallback {
  transform: scale(1.04);
}
.whola-cat-tile-img img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 180ms ease;
}
.whola-cat-tile:hover .whola-cat-tile-img img {
  transform: scale(1.04);
}
.whola-cat-tile-name {
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
@media (min-width: 992px) {
  .whola-cat-tile-name { font-size: 14px; }
}

/* ========== ORDER TRACKING TIMELINE ========== */
.whola-track-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  position: relative;
}
.whola-track-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}
.whola-track-step + .whola-track-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.whola-track-step.is-done + .whola-track-step::before,
.whola-track-step.is-active + .whola-track-step::before {
  background: #22C55E;
}
.whola-track-step.is-done + .whola-track-step.is-active::before {
  background: linear-gradient(to right, #22C55E 50%, #e5e7eb 50%);
}
.whola-track-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
  position: relative;
  z-index: 1;
  transition: all 200ms ease;
}
.whola-track-step.is-done .whola-track-dot {
  background: #22C55E;
  color: #fff;
  border-color: #22C55E;
}
.whola-track-step.is-active .whola-track-dot {
  background: #fff;
  color: #22C55E;
  border-color: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.whola-track-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.3;
  max-width: 100px;
}
.whola-track-step.is-done .whola-track-label,
.whola-track-step.is-active .whola-track-label {
  color: #1f2937;
  font-weight: 600;
}
@media (max-width: 575px) {
  .whola-track-label { font-size: 11px; max-width: 70px; }
  .whola-track-dot { width: 26px; height: 26px; font-size: 12px; }
  .whola-track-step + .whola-track-step::before { top: 12px; }
}

/* ========== PRODUCT DETAIL PAGE — Wildberries/Ozon-style ========== */

/* 1. Top tag chips row (Хит продаж / В наличии / Артикул) */
.whola-pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
}
.whola-pd-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--whola-bg-2);
  color: var(--whola-ink-2);
  white-space: nowrap;
}
.whola-pd-tag.is-hit {
  background: var(--whola-primary-soft);
  color: var(--whola-primary);
}
.whola-pd-tag.is-stock {
  background: #e6f9ed;
  color: #117a3d;
}
.whola-pd-tag.is-sku {
  background: transparent;
  color: var(--whola-ink-3);
  padding-left: 0;
}

/* 2. Product title */
.whola-pd-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--whola-ink);
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
@media (max-width: 575px) { .whola-pd-title { font-size: 20px; } }

/* 3. Rating row: stars + reviews + sold count */
.whola-pd-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--whola-ink-2);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.whola-pd-stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.whola-pd-rating-num { font-weight: 600; color: var(--whola-ink); }
.whola-pd-rating-sep { color: var(--whola-ink-4); }

/* 4. Three-column desktop layout */
.whola-pd-layout {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) {
  .whola-pd-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 5. Thumbnail rail (desktop only — replaced by horizontal scroll on mobile) */
.whola-pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.whola-pd-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--whola-r);
  overflow: hidden;
  background: var(--whola-bg-2);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
  flex-shrink: 0;
}
.whola-pd-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.whola-pd-thumb.is-active {
  border-color: var(--whola-primary);
}
.whola-pd-thumb-more {
  width: 64px;
  height: 64px;
  border-radius: var(--whola-r);
  background: var(--whola-bg-3);
  color: var(--whola-ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
@media (max-width: 991px) {
  .whola-pd-thumbs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
}

/* 6. Main image area */
.whola-pd-main {
  background: var(--whola-bg-2);
  border-radius: var(--whola-r-lg);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  aspect-ratio: 1 / 1;
}
.whola-pd-main img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.whola-pd-pager {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--whola-ink-2);
}

/* 7. Right sticky buyer panel */
.whola-pd-side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 991px) {
  .whola-pd-side { position: static; }
}

.whola-pd-card {
  background: var(--whola-surface);
  border: 1px solid var(--whola-line);
  border-radius: var(--whola-r-lg);
  padding: 20px;
}

/* 8. Price block */
.whola-pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.whola-pd-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--whola-ink);
  letter-spacing: -0.5px;
}
.whola-pd-price-old {
  font-size: 16px;
  color: var(--whola-ink-3);
  text-decoration: line-through;
}
.whola-pd-discount-chip {
  background: var(--whola-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* 9. "Цена дня" promo banner */
.whola-pd-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #fff5f5, #ffe7e8);
  color: var(--whola-primary-ink);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.whola-pd-promo svg { color: var(--whola-primary); }

/* 10. Variation rows */
.whola-pd-var-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--whola-ink-2);
  margin-bottom: 8px;
}
.whola-pd-var-label-value { color: var(--whola-ink); font-weight: 500; }

.whola-pd-var-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.whola-pd-color {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--whola-line-2);
  cursor: pointer;
  transition: outline 0.15s ease, transform 0.15s ease;
}
.whola-pd-color:hover { transform: scale(1.05); }
.whola-pd-color.is-active {
  outline: 2px solid var(--whola-primary);
  outline-offset: 2px;
}
.whola-pd-size {
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--whola-r);
  border: 1px solid var(--whola-line-2);
  background: var(--whola-surface);
  color: var(--whola-ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.whola-pd-size:hover { border-color: var(--whola-ink-3); }
.whola-pd-size.is-active {
  background: var(--whola-ink);
  color: #fff;
  border-color: var(--whola-ink);
}

/* 11. Quantity stepper */
.whola-pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--whola-line-2);
  border-radius: var(--whola-r);
  overflow: hidden;
  width: max-content;
}
.whola-pd-qty button {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--whola-ink-2);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.whola-pd-qty button:hover { background: var(--whola-bg-2); }
.whola-pd-qty input {
  width: 48px; height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  -moz-appearance: textfield;
}
.whola-pd-qty input::-webkit-outer-spin-button,
.whola-pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 12. CTA buttons */
.whola-pd-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: var(--whola-primary);
  color: #fff;
  border: none;
  border-radius: var(--whola-r);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 8px;
}
.whola-pd-cta-primary:hover { background: var(--whola-primary-hover); color: #fff; }
.whola-pd-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: transparent;
  color: var(--whola-ink);
  border: 1px solid var(--whola-line-2);
  border-radius: var(--whola-r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.whola-pd-cta-secondary:hover { border-color: var(--whola-ink); color: var(--whola-ink); }

/* 13. Delivery/payment icon rows */
.whola-pd-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--whola-line);
}
.whola-pd-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.whola-pd-perk-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--whola-ink-2);
  margin-top: 2px;
}
.whola-pd-perk-text { font-size: 13px; line-height: 1.4; }
.whola-pd-perk-title { color: var(--whola-ink); font-weight: 500; }
.whola-pd-perk-sub { color: var(--whola-ink-3); font-size: 12px; }

/* 14. Seller card */
.whola-pd-seller-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.whola-pd-seller-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--whola-ink-3);
}
.whola-pd-seller-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e6f9ed;
  color: #117a3d;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 12px;
}
.whola-pd-seller-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.whola-pd-seller-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--whola-bg-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: var(--whola-ink-2);
  overflow: hidden;
  flex-shrink: 0;
}
.whola-pd-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.whola-pd-seller-name { font-size: 14px; font-weight: 600; color: var(--whola-ink); }
.whola-pd-seller-sub { font-size: 12px; color: var(--whola-ink-3); }

.whola-pd-seller-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
}
.whola-pd-seller-stat-label { color: var(--whola-ink-3); }
.whola-pd-seller-stat-value { color: var(--whola-ink); font-weight: 600; font-size: 13px; }

.whola-pd-seller-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.whola-pd-seller-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: var(--whola-r);
  border: 1px solid var(--whola-line-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--whola-ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.whola-pd-seller-actions a:hover { border-color: var(--whola-ink); color: var(--whola-ink); }

/* 15. Legacy compatibility — hide duplicates in details.blade.php that the
   new wrapper already renders above the gallery, and the "Sold by / Message
   Seller" footer block (now replaced by our richer seller card). */
.whola-pd-page .right-side-cws,                       /* compare/wishlist/share row */
.whola-pd-page .whola-pd-side h1.fs-20,               /* legacy h1 inside details */
.whola-pd-page .whola-pd-side > .col-lg-6 > .d-flex.flex-wrap.flex-column,
.whola-pd-page .whola-pd-side .py-20px.d-flex.flex-wrap.flex-xl-nowrap {
  display: none !important;
}

/* The details partial wraps itself in `<div class="col-sm-12 col-lg-6">` —
   strip that Bootstrap col so it spans the full width of our side card. */
.whola-pd-page .whola-pd-side > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
  width: 100%;
}

/* Hide the "Pricing" section header — price is shown inline. */
.whola-pd-page #option-choice-form > h5.fs-16 { display: none; }

/* Tighten the legacy form's outer padding so it fits the side card. */
.whola-pd-page #option-choice-form > .bg-light {
  background: transparent !important;
  padding: 0 !important;
}

/* Wrap the form in a card-like container by default. */
.whola-pd-page .whola-pd-side > [class*="col-"] {
  background: var(--whola-surface);
  border: 1px solid var(--whola-line);
  border-radius: var(--whola-r-lg);
  padding: 20px !important;
  margin-bottom: 12px;
}

/* Make the gallery container look like a clean image card. */
.whola-pd-page .product-slider-wrapper {
  background: var(--whola-bg-2);
  border-radius: var(--whola-r-lg);
  overflow: hidden;
  padding: 16px;
}

/* 16. Buy buttons — Wildberries-style priority swap.
   Legacy markup is "Buy Now" (black, .buy-now) + "Add to Cart" (soft-blue,
   .add-to-cart), in that DOM order. We want the cart button to dominate
   (red primary, full-width) with Buy Now subordinate (outlined). Use flex
   `order` to swap visual order without touching the legacy blade. */
.whola-pd-page .add-to-cart {
  order: 1;
  background: var(--whola-primary) !important;
  color: #fff !important;
  border: none !important;
  margin-right: 0 !important;
  margin-bottom: 8px !important;
}
.whola-pd-page .add-to-cart:hover {
  background: var(--whola-primary-hover) !important;
  color: #fff !important;
  opacity: 1 !important;
}
.whola-pd-page .buy-now {
  order: 2;
  background: transparent !important;
  color: var(--whola-ink) !important;
  border: 1px solid var(--whola-line-2) !important;
  font-weight: 600 !important;
}
.whola-pd-page .buy-now:hover {
  border-color: var(--whola-ink) !important;
  background: transparent !important;
  opacity: 1 !important;
}
/* Stack the two buttons vertically (Wildberries style) instead of side-by-side.
   `:has()` was added to all evergreen browsers in 2023 — this is the cleanest
   way to target the legacy parent without touching the blade template. */
.whola-pd-page #option-choice-form .d-flex.flex-wrap.flex-md-nowrap:has(.buy-now) {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}
/* Older-browser fallback: every direct .d-flex child of the form that contains
   a button gets vertical stacking. Slightly broader than `:has()` but harmless
   given there's only one such row in the legacy markup. */
.whola-pd-page #option-choice-form > div > .d-flex.flex-wrap.flex-md-nowrap {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

/* 17. Hide the first "Pricing" block that just shows price + del-old-price
   without any variation context. The same price is repeated in the second
   stocks block (with qty-stepper and buy buttons) right below. */
.whola-pd-page #option-choice-form > .bg-light:first-of-type {
  display: none !important;
}

/* 18. Hide the legacy "Cash on Delivery / Free Shipping / Refund" perks
   block that lives in <div class="warranty-section"> at the bottom of
   details.blade.php. We render the same info via the new Lucide-icon
   .whola-pd-perks block (see perks_whola.blade.php) further down the
   sticky right panel. */
.whola-pd-page .warranty-section {
  display: none !important;
}

/* 19. "Other items from seller" image grid — Ozon-style 7+1 thumbnails
   that let the buyer hop between products of the same seller. The
   current product is the first, active tile (red border). */
.whola-pd-variants-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.whola-pd-variants-label {
  font-size: 13px;
  color: var(--whola-ink-2);
  font-weight: 500;
}
.whola-pd-variants-count {
  font-size: 12px;
  color: var(--whola-ink-3);
  background: var(--whola-bg-2);
  padding: 2px 8px;
  border-radius: 10px;
}
.whola-pd-variants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.whola-pd-variant {
  aspect-ratio: 1 / 1;
  border-radius: var(--whola-r-sm);
  overflow: hidden;
  background: var(--whola-bg-2);
  border: 2px solid transparent;
  display: block;
  position: relative;
  transition: border-color 0.15s ease;
}
.whola-pd-variant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.whola-pd-variant:hover {
  border-color: var(--whola-line-2);
}
.whola-pd-variant.is-active {
  border-color: var(--whola-primary);
}

/* 20. Perks card sits inside the sticky right panel as its own card so it
   doesn't visually merge with the buyer panel above. */
.whola-pd-perks-card {
  padding: 16px 20px;
}
.whola-pd-perks-card .whola-pd-perks {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* 22. Hide legacy stock-counter ("107 доступный") and min-order-qty hint
   ("Минимальное количество заказа 1") in the right panel. The product
   form keeps the qty input + stepper but the buyer doesn't need to see
   raw inventory or min-qty as a separate text row in the Whola redesign. */
.whola-pd-page #option-choice-form .d-flex.flex-column > p.fs-14 {
  display: none !important;
}

/* 23. Cookie banner — relocate to bottom-right and shrink so it doesn't sit
   on top of the product gallery on desktop. The legacy `bottom-left` class
   places it at x≈20px, which on 1440px viewports overlaps the gallery's
   left thumbnails. Mobile (<768px) keeps the original full-width sheet. */
@media (min-width: 768px) {
  #aiz-custom-sale-alert.bottom-left {
    left: auto !important;
    right: 20px !important;
    max-width: 320px;
  }
  #aiz-custom-sale-alert .aiz-cookie-alert {
    font-size: 13px;
  }
  #aiz-custom-sale-alert .aiz-cookie-alert .text-dark.mb-3 {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* 2026-05-10 mobile fix: price wraps in narrow product cards (158px wide).
   Numbers like 2,900.00 ₽ + «/ шт» exceed 128px content area at 17px font.
   Below 480px: shrink price + allow row to wrap if it must, with the unit
   detaching to its own line; align both flush-left so it reads cleanly. */
@media (max-width: 480px) {
    .whola-card-price-row {
        flex-wrap: wrap;
        gap: 4px;
        row-gap: 0;
    }
    .whola-price {
        font-size: 15px;
        line-height: 1.2;
    }
    .whola-price-old {
        font-size: 11px;
    }
    .whola-price-unit {
        flex-basis: 100%;
        font-size: 10px;
    }
}


/* 2026-05-10 mobile fix: price wraps in narrow product cards (158px wide).
   Numbers like 2,900.00 ₽ + «/ шт» exceed 128px content area at 17px font.
   Below 480px: shrink price + allow row to wrap if it must, with the unit
   detaching to its own line; align both flush-left so it reads cleanly. */
@media (max-width: 480px) {
    .whola-card-price-row {
        flex-wrap: wrap;
        gap: 4px;
        row-gap: 0;
    }
    .whola-price {
        font-size: 15px;
        line-height: 1.2;
    }
    .whola-price-old {
        font-size: 11px;
    }
    .whola-price-unit {
        flex-basis: 100%;
        font-size: 10px;
    }
}


/* 2026-05-10 fix: shop_meta_chips badges (business-type / years / response-rate)
   were rendered as flex items inside a flex-wrap container, and Bootstrap-soft
   .badge variants inherit display:flex from the icon-aware variant. With a
   font-icon that doesn't load (no width), the badge collapsed to ~18px and
   text spilled out, painting over the seller-card avatar and name. */
.whola-pd-seller .badge,
.whola-pd-seller-row .badge,
.whola-pd-seller-stats .badge,
.shop-meta-chip,
.whola-shop-hero .badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    min-width: fit-content;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: visible;
}

/* Badge text + icon spacing */
.whola-pd-seller .badge i,
.whola-pd-seller-row .badge i,
.shop-meta-chip i {
    flex-shrink: 0;
}

/* 2026-05-10 broaden chip fix to also cover the shop hero (seller_shop.blade.php).
   shop_meta_chips renders into a generic d-flex flex-wrap without our class
   prefix, so be more generous: any .badge whose direct parent is
   d-flex flex-wrap (typical chip-row pattern) gets the same inline-flex sizing. */
.d-flex.flex-wrap > .badge {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    min-width: fit-content;
    flex: 0 0 auto;
    white-space: nowrap;
}
.d-flex.flex-wrap > .badge i {
    flex-shrink: 0;
}

/* ===== UX-A 2026-05-13 — skeleton + scroll-to-top ===================== */

/* Skeleton placeholder cards while a batch is loading. Same outer geometry
   as .whola-card so the grid layout doesn't shift. */
.whola-card.whola-skeleton {
    pointer-events: none;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}
.whola-skel-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: whola-shimmer 1.4s linear infinite;
}
.whola-skel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.whola-skel-line {
    height: 12px;
    background: #f3f4f6;
    border-radius: 4px;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: whola-shimmer 1.4s linear infinite;
}
.whola-skel-line:nth-child(2) { width: 70%; }
.whola-skel-line:nth-child(3) { width: 50%; }

@keyframes whola-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .whola-skel-cover, .whola-skel-line { animation: none; }
}

/* Floating scroll-to-top button: hover shadow + active press */
#whola-scroll-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
#whola-scroll-top-btn:active {
    transform: translateY(0);
}
@media (max-width: 600px) {
    /* Keep clear of the mobile bottom-nav */
    #whola-scroll-top-btn { bottom: 76px; right: 14px; }
}
