/* ── Veriskey · vk-card.css ──────────────────────────────────
   Product grid widget styles — scoped to .vk-section
   ──────────────────────────────────────────────────────────── */

/* CSS Variables */
:root {
  --bg:            oklch(0.985 0.006 60);
  --surface:       #ffffff;
  --surface-2:     oklch(0.975 0.009 55);
  --ink:           oklch(0.23 0.012 45);
  --ink-2:         oklch(0.52 0.018 45);
  --line:          oklch(0.91 0.012 50);
  --brand:         #f15a24;
  --primary:       oklch(0.62 0.2 38);
  --primary-ink:   #ffffff;
  --primary-soft:  oklch(0.955 0.035 55);
  --accent:        oklch(0.62 0.2 38);
  --accent-strong: oklch(0.55 0.2 37);
  --accent-ink:    #ffffff;
  --verify:        oklch(0.58 0.12 155);
  --verify-soft:   oklch(0.95 0.045 155);
  --radius:        14px;
  --radius-sm:     10px;
  --shadow-sm:     0 1px 2px oklch(0.4 0.03 260 / 0.06), 0 2px 8px oklch(0.4 0.03 260 / 0.05);
  --shadow-md:     0 4px 14px oklch(0.4 0.03 260 / 0.08), 0 10px 34px oklch(0.4 0.03 260 / 0.07);
  --maxw:          1200px;
  --font-display:  "Sora", system-ui, sans-serif;
  --font-body:     "Manrope", system-ui, sans-serif;
  --font-mono:     "Space Mono", ui-monospace, monospace;
}

/* Scoped base */
.vk-section * { box-sizing: border-box; }
.vk-section a { color: inherit; text-decoration: none; }
.vk-section img { display: block; max-width: 100%; }
.vk-section h1,
.vk-section h2,
.vk-section h3,
.vk-section h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Wrap */
.vk-section .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Eyebrow */
.vk-section .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

/* Section shell */
.vk-section section.block { padding: 78px 0; }

/* Section head */
.vk-section .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.vk-section .section-head h2 { font-size: clamp(27px, 3.4vw, 38px); }
.vk-section .section-head .eyebrow { margin-bottom: 12px; display: block; }

/* Buttons */
.vk-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.vk-section .btn:active { transform: translateY(1px); }

.vk-section .btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.vk-section .btn-accent:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-md);
}

.vk-section .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.vk-section .btn-ghost:hover {
  border-color: var(--ink-2);
  background: var(--surface);
}

.vk-section .btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }

/* Placeholder box */
.vk-section .box-ph {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-2), var(--surface-2) 11px,
      var(--surface)   11px, var(--surface)   22px
    );
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: var(--ink-2);
}
.vk-section .box-ph .ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vk-section .box-ph .ph-sub { font-size: 11px; color: var(--ink-2); opacity: 0.7; }

/* Stars */
.vk-section .stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }

/* Product grid */
.vk-section .prod-grid {
  display: grid;
  grid-template-columns: repeat(var(--vk-cols, 4), 1fr) !important;
  gap: 22px;
}
/* Product card */
.vk-section .product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .14s ease, box-shadow .15s ease;
}
.vk-section .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Shot */
.vk-section .product .shot { position: relative; aspect-ratio: 16/10; }
.vk-section .product .shot .box-ph {
  width: 100%; height: 100%;
  border: none; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid var(--line);
}

/* Badges */
.vk-section .badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--verify);
  color: #fff;
}
.vk-section .badge.save { left: auto; right: 12px; background: var(--accent); color: var(--accent-ink); }

/* Card body */
.vk-section .product .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* Category label */
.vk-section .product .pcat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Product title */
.vk-section .product h3 { font-size: 18px; line-height: 1.2; }

/* Rating row */
.vk-section .product .prow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}
.vk-section .product .prow .stars { font-size: 12px; }

/* Price */
.vk-section .product .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: -24px !important;
}
.vk-section .product .price .now {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.vk-section .product .price .was {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: line-through;
}
.vk-section .product .pct {
  display: inline-block;
  background-color: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

/* CTA row */
.vk-section .product .pcta { display: flex; gap: 9px; margin-top: auto; padding-top: 6px; }
.vk-section .product .pcta .btn-accent { flex: 1; }
@media (max-width: 700px) {
  .vk-section .product .pcta {
    flex-wrap: wrap;
  }
  .vk-section .product .pcta .btn-accent {
    width: 100%;
  }
}

/* Section head responsive */
@media (max-width: 560px) {
  .vk-section .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Carousel (show_arrows=yes) ─────────────────────────────── */
.vk-carousel-wrap { position: relative; }
.vk-carousel-wrap .prod-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.vk-carousel-wrap .prod-grid::-webkit-scrollbar { display: none; }
.vk-carousel-wrap .product {
  scroll-snap-align: start;
  flex: 0 0 calc(100% / var(--vk-cols, 4) - 14px);
}
.vk-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid oklch(0.91 0.012 50);
  box-shadow: 0 2px 8px oklch(0.4 0.03 260 / 0.1);
  cursor: pointer; font-size: 18px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: oklch(0.23 0.012 45);
  transition: background .12s, box-shadow .12s;
}
.vk-arrow:hover { background: oklch(0.975 0.009 55); box-shadow: 0 4px 14px oklch(0.4 0.03 260 / 0.18); }
.vk-arrow-prev { left: -20px; }
.vk-arrow-next { right: -20px; }

@media (max-width: 960px) {
  .vk-section .section-head a {
    display: none !important;
  }
  .vk-section .prod-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 6px;
  }
  .vk-section .prod-grid::-webkit-scrollbar {
    display: none;
  }
  .vk-section .product {
    flex: 0 0 49% !important;
    min-width: 0 !important;
    max-width: 49% !important;
    scroll-snap-align: start;
  }
}
@media (max-width: 600px) {
  .vk-section .product {
    flex: 0 0 50vw !important;
    min-width: 0 !important;
    max-width: 50vw !important;
  }
}

/* ── Carousel nav (mobile only) ── */
.vk-snav { display: none !important; }
.vk-sbar { display: none !important; }

@media (max-width: 960px) {
  .vk-scroll-wrap { position: relative; }

  .vk-snav {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .vk-snav button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid oklch(0.91 0.01 60);
    background: #ffffff;
    box-shadow: 0 4px 20px oklch(0.5 0.02 60 / 0.10), 0 1px 4px oklch(0.5 0.02 60 / 0.06);
    color: oklch(0.18 0.01 45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.18s ease, transform 0.15s ease, background 0.15s;
    flex-shrink: 0;
  }
  .vk-snav button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }
  .vk-snav button:hover {
    box-shadow: 0 8px 28px oklch(0.5 0.02 60 / 0.18), 0 2px 6px oklch(0.5 0.02 60 / 0.08);
    transform: scale(1.06);
    background: #fff;
  }
  .vk-snav button:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px oklch(0.5 0.02 60 / 0.06);
  }
  .vk-snav button.vk-disabled {
    opacity: 0.28;
    pointer-events: none;
    box-shadow: none;
  }

  /* Header left-align + spacing on mobile */
  .vk-section .section-head {
    margin-bottom: 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .vk-section .section-head .eyebrow,
  .vk-section .section-head h2,
  .vk-section .section-head .section-title {
    text-align: left !important;
  }
  .vk-section {
    margin-top: 20px !important;
  }

  .vk-sbar {
    display: block !important;
    height: 3px;
    background: oklch(0.91 0.012 50);
    border-radius: 2px;
    margin-top: 14px;
    overflow: hidden;
  }
  .vk-sthumb {
    display: block;
    height: 100%;
    background: oklch(0.62 0.2 38);
    border-radius: 2px;
    width: 30%;
    transition: width 0.1s, transform 0.1s;
  }
}

.vk-section .vk-details-btn {
  display: none !important;
}
.vk-section .prod-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.vk-section .vk-atc-add {
  flex: 1 1 100% !important;
  width: 100% !important;
}
