/* Buyamto product video. Uses the site's warm-ink / pill look. */
:root { --byv-ink: #1A1815; --byv-warm: #FAF7F0; --byv-orange: #C94F0A; --byv-teal: #0E7C86; }

/* ---- shop and category cards ---- */
.by-cv { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; overflow: hidden; }
.by-cv__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; background: transparent; }
.by-cv.is-on .by-cv__el { opacity: 1; }
.by-cbadge { position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: rgba(26, 24, 21, .72); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .01em; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.by-cbadge svg { width: 12px; height: 12px; }
.by-cbadge--bottom-left { left: 8px; bottom: 8px; }
.by-cbadge--bottom-right { right: 8px; bottom: 8px; }
.by-cbadge--top-left { left: 8px; top: 8px; }
.by-cbadge--top-right { right: 8px; top: 8px; }

/* ---- product page gallery ---- */
.by-vslide { background: #000; }
.by-v { position: relative; width: 100%; overflow: hidden; background: #000; cursor: pointer; }
.by-v__poster, .by-v__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.by-v__el { opacity: 0; transition: opacity .3s ease; }
.by-vslide.is-playing .by-v__el { opacity: 1; }
.by-v__sound, .by-v__prompt, .by-v__big { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 0; line-height: 1; border: 0; border-radius: 999px; cursor: pointer; font: 700 13px/1 'Hanken Grotesk', system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: #fff; background: rgba(26, 24, 21, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; }
.by-v__sound { top: 12px; left: 12px; padding: 9px 12px; }
.by-v__sound[hidden] { display: none; }
.by-v__prompt { left: 12px; bottom: 54px; padding: 10px 14px; background: var(--byv-orange); }
.by-v__prompt svg { width: 14px; height: 14px; }
.by-v__big { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; justify-content: center; padding: 0; font-size: 28px; }
.by-v__sound:focus-visible, .by-v__prompt:focus-visible, .by-v__big:focus-visible, .by-vtab:focus-visible, .by-viewer__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--byv-teal); }

.by-vtabs { position: absolute; z-index: 4; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(26, 24, 21, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.by-vtab { margin: 0; padding: 7px 14px; min-height: 0; line-height: 1; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .85); font: 700 13px/1 'Hanken Grotesk', system-ui, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.by-vtab.is-on { background: #fff; color: var(--byv-ink); }
.by-vcount { position: absolute; z-index: 4; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(26, 24, 21, .72); color: #fff; font: 700 12px/1 'Hanken Grotesk', system-ui, sans-serif; pointer-events: none; }

/* desktop thumbnail with a ▶ */
.by-vthumb a { position: relative; display: block; }
.by-vthumb__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(26, 24, 21, .75); color: #fff; font-size: 14px; pointer-events: none; }
.by-vthumb__play svg { width: 14px; height: 14px; }

/* ---- full-video viewer ---- */
.by-noscroll { overflow: hidden; }
.by-viewer { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: #000; }
.by-viewer__stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.by-viewer video, .by-viewer iframe { max-width: 100%; max-height: 100%; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.by-viewer__x { position: absolute; z-index: 2; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 42px; height: 42px; padding: 0; margin: 0; min-height: 0; line-height: 1; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--byv-ink); font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (min-width: 850px) {
	.by-viewer.is-modal { background: rgba(26, 24, 21, .78); }
	.by-viewer.is-modal .by-viewer__stage { width: min(900px, 90vw); height: min(80vh, 760px); border-radius: 24px; overflow: hidden; background: #000; }
	.by-viewer.is-modal .by-viewer__x { top: 24px; right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .by-cv__el, .by-v__el { transition: none; } }
