/* VK Distro · premium extras: motion, brand strip, brand grid, badges, recently viewed, floating bar */

/* header compacts on scroll */
.site-header .col-full { transition: min-height .2s ease; }
.site-header { transition: box-shadow .2s ease, background .2s ease; }
.vk-scrolled .site-header { box-shadow: 0 6px 24px -14px rgba(15, 59, 41, .35); background: rgba(255, 255, 255, .97) !important; }
@media (min-width: 1024px) {
  .vk-scrolled .site-header .col-full { min-height: 58px; }
  .vk-scrolled .vk-navlist > li > a, .vk-scrolled .vk-mega-btn { padding-top: 19px !important; padding-bottom: 19px !important; }
  .vk-scrolled .vk-logo img { height: 42px !important; width: 105px !important; }
}
.vk-logo img, .vk-navlist > li > a, .vk-mega-btn { transition: all .2s ease; }

/* fade-up reveals (only when JS + motion allowed) */
.vk-motion .vk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.vk-motion .vk-reveal.is-in { opacity: 1; transform: none; }
.vk-motion .vk-h-hero-copy > * { animation: vk-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.vk-motion .vk-h-hero-copy > *:nth-child(2) { animation-delay: .06s; }
.vk-motion .vk-h-hero-copy > *:nth-child(3) { animation-delay: .12s; }
.vk-motion .vk-h-hero-copy > *:nth-child(4) { animation-delay: .18s; }
.vk-motion .vk-h-hero-copy > *:nth-child(5) { animation-delay: .24s; }
.vk-motion .vk-tile { animation: vk-pop .8s cubic-bezier(.2, .7, .2, 1) both; }
.vk-motion .vk-tile--2 { animation-delay: .1s; } .vk-motion .vk-tile--3 { animation-delay: .2s; } .vk-motion .vk-tile--4 { animation-delay: .3s; }
@keyframes vk-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vk-pop { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .vk-reveal, .vk-h-hero-copy > *, .vk-tile { animation: none !important; opacity: 1 !important; transform: none; transition: none !important; }
}

/* lazy images fade in */
ul.products li.product img, .vk-cat-img img, .vk-brand-img img { transition: opacity .3s ease, transform .3s ease; }

/* brand marquee */
.vk-marquee { overflow: hidden; border-top: 1px solid var(--vk-line); border-bottom: 1px solid var(--vk-line); margin: -24px 0 48px; padding: 16px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.vk-marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: vk-marquee 60s linear infinite; }
.vk-marquee:hover .vk-marquee-track { animation-play-state: paused; }
.vk-marquee a { font-family: var(--vk-serif); font-size: clamp(18px, 2.2vw, 24px); color: var(--vk-ink); text-decoration: none; white-space: nowrap; opacity: .75; transition: opacity .15s, color .15s; }
.vk-marquee a:hover { opacity: 1; color: var(--vk-gold); }
.vk-marquee span { color: var(--vk-gold); font-size: 12px; opacity: .6; }
@keyframes vk-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .vk-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* brand grid */
.vk-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .vk-brands { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .vk-brands { grid-template-columns: repeat(6, 1fr); } }
.vk-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #fff; border: 1px solid var(--vk-line);
  border-radius: var(--vk-radius); padding: 14px 10px 12px; text-decoration: none !important; color: var(--vk-ink); box-shadow: var(--vk-shadow); transition: transform .18s, box-shadow .18s; }
.vk-brand:hover { transform: translateY(-3px); box-shadow: var(--vk-shadow-lg); }
.vk-brand-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #f4f8f5; overflow: hidden; }
.vk-brand-img img { width: 100%; height: 100%; object-fit: contain; }
.vk-brand:hover .vk-brand-img img { transform: scale(1.05); }
.vk-brand b { font-family: var(--vk-serif); font-weight: 500; font-size: 15.5px; line-height: 1.2; }

/* card badges */
.vk-badges { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.vk-badges .vk-badge-img { position: static; }
.vk-badges--right { left: auto; right: 18px; align-items: flex-end; }
.vk-badge-img--new { background: var(--vk-gold); color: #fff; }
.vk-badge-img--low { background: #fdf1dc; color: #9a5b00; box-shadow: var(--vk-shadow); }

/* recently viewed */
.vk-recent { margin: 8px 0 56px; }
.vk-recent[hidden] { display: none !important; }
.single-product .vk-recent { margin-top: 32px; }
.vk-recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.vk-recent-row::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .vk-recent-row { grid-auto-columns: 22%; } }
@media (min-width: 1024px) { .vk-recent-row { grid-auto-columns: calc((100% - 84px) / 8); } }
.vk-recent-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--vk-line); border-radius: 12px;
  padding: 8px; text-decoration: none !important; color: var(--vk-ink); transition: transform .15s, box-shadow .15s; }
.vk-recent-card:hover { transform: translateY(-2px); box-shadow: var(--vk-shadow); }
.vk-recent-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f4f8f5; border-radius: 8px; }
.vk-recent-card span { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* floating "add to request" bar (phones) */
.vk-float { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--vk-emerald-900); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: 0 16px 40px -12px rgba(15, 59, 41, .6);
  transform: translateY(140%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.vk-float.is-on { transform: none; }
.vk-float span { font-weight: 600; font-size: 14px; }
.vk-float .button { background: #fff !important; color: var(--vk-emerald-900) !important; }
@media (min-width: 900px) { .vk-float { display: none; } }

.vk-marquee a, .vk-brand, .vk-recent-card, .vk-cat, .vk-dcard, .vk-subcats a, .vk-more { text-decoration: none !important; }
@media (max-width: 699px) { .vk-brands .vk-brand:nth-child(n+7) { display: none; } }

/* flavor photo lightbox */
.vk-zoom { all: unset; cursor: zoom-in; display: inline-block; border-radius: 10px; }
.vk-zoom:focus-visible { outline: 2px solid var(--vk-gold); outline-offset: 2px; }
.vk-chip-btn { cursor: pointer; display: block; }
.vk-flavors li:has(.vk-chip-btn):hover { border-color: var(--vk-gold) !important; background: #fff !important; color: var(--vk-gold); }
.vk-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(10, 30, 21, .78);
  backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.vk-lightbox.is-open { opacity: 1; visibility: visible; }
.vk-lightbox figure { position: relative; margin: 0; background: #fff; border-radius: 20px; padding: 14px 14px 12px; width: min(560px, 100%); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .2s ease; }
.vk-lightbox.is-open figure { transform: none; }
.vk-lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #f4f8f5; border-radius: 12px; }
.vk-lightbox figcaption { text-align: center; font-weight: 600; padding: 10px 4px 2px; }
.vk-lb-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; padding: 0 !important; border-radius: 50% !important; font-size: 22px !important;
  background: #fff !important; color: var(--vk-ink) !important; box-shadow: var(--vk-shadow-lg) !important; }
@media (max-width: 599px) { .vk-lb-close { top: 8px; right: 8px; } }
.vk-noscroll { overflow: hidden; }
/* phones: keep a small flavor thumbnail in the grid so photos are one tap away */
@media (max-width: 599px) {
  .vk-grid .vk-col-img { display: table-cell !important; padding-right: 0 !important; }
  .vk-grid img { width: 32px !important; height: 32px !important; }
}

/* cards may shrink below the flavor table width (the table scrolls inside) */
.single-product div.product .summary, .vk-pd-card, .vk-grid-form, .vk-scroll { min-width: 0; max-width: 100%; }
/* photo buttons must not inherit the global pill button look */
button.vk-zoom, .vk-grid button.vk-zoom, .vk-flavors button.vk-chip-btn { background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 10px !important;
  width: auto !important; height: auto !important; min-height: 0 !important; transform: none !important; color: inherit !important; font: inherit !important; letter-spacing: normal !important; text-transform: none !important; }
.vk-flavors button.vk-chip-btn { font-size: 12.5px !important; font-weight: 500 !important; }

@media (max-width: 599px) {
  /* phones: each flavor becomes a two-line mini card instead of a cramped table row */
  .vk-grid, .vk-grid tbody { display: block; width: 100% !important; }
  .vk-grid thead { display: none; }
  .vk-grid tbody tr { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img stock qty";
    align-items: center; gap: 6px 10px; padding: 10px 12px; border-bottom: 1px solid var(--vk-line); }
  .vk-grid tbody tr[style*="display: none"] { display: none !important; }
  .vk-grid td { display: block !important; padding: 0 !important; border: 0 !important; width: auto !important; }
  .vk-grid td:nth-child(1) { grid-area: img; align-self: start; }
  .vk-grid td:nth-child(2) { grid-area: name; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
  .vk-grid td:nth-child(3) { display: none !important; }
  .vk-grid td:nth-child(4) { grid-area: stock; }
  .vk-grid td:nth-child(5) { grid-area: qty; justify-self: end; }
  .vk-grid button.vk-zoom img { width: 34px !important; height: 34px !important; display: block; }
  .vk-grid .vk-stepper .vk-step { width: 36px !important; height: 36px; }
  .vk-grid .vk-stepper .vk-qty { width: 40px !important; height: 36px; }
}
.vk-stock-pill { white-space: nowrap; }
@media (max-width: 599px) { .vk-grid tbody tr { padding: 10px 10px; } .vk-grid td:nth-child(4) { justify-self: start; } }
@media (max-width: 599px) {
  /* row 1: photo · flavor name · stock pill   row 2: stepper (right) */
  .vk-grid tbody tr { grid-template-areas: "img name stock" "img qty qty" !important; }
  .vk-grid td:nth-child(4) { justify-self: end !important; align-self: start; }
  .vk-grid td:nth-child(5) { justify-self: end !important; }
}
@media (max-width: 599px) {
  .vk-pd-card--order .vk-scroll { margin: 0 -16px; border-left: 0 !important; border-right: 0 !important; border-radius: 0; max-width: none; width: auto; }
  .vk-grid td:nth-child(2) { word-break: normal; overflow-wrap: break-word; hyphens: auto; }
  .vk-grid tbody tr { padding: 10px 16px; }
}
