/* SEVD storefront components (rendered by the SEVD Shopify Connect plugin).
   Tokens mirror the Breakdance global variables so both sides stay in step. */

:root {
  --sevd-ink: #07080a;
  --sevd-ink-2: #0d0f13;
  --sevd-surface: #14171c;
  --sevd-surface-2: #1b1f26;
  --sevd-line: rgba(238, 236, 230, 0.1);
  --sevd-line-2: rgba(238, 236, 230, 0.2);
  --sevd-steel: #8d939d;
  --sevd-bone: #eeece6;
  --sevd-red: #f11b25;
  --sevd-red-text: #ff5a61;
  --sevd-font: 'Archivo', system-ui, sans-serif;
  --sevd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sevd-header-h: 72px;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}

html.sevd-locked { overflow: hidden; }
.sevd-i { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.sevd-btn {
  --b-bg: transparent; --b-fg: var(--sevd-bone); --b-bd: var(--sevd-line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-family: var(--sevd-font); font-size: 15px; font-weight: 600; letter-spacing: 0.005em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.sevd-btn:hover, .sevd-btn:focus { color: var(--b-fg); }
.sevd-btn:active { transform: translateY(1px); }
.sevd-btn:focus-visible, .sevd-icon-btn:focus-visible, .sevd-search-trigger:focus-visible, .sevd-pill input:focus-visible + span, .sevd-input:focus-visible, .sevd-card a:focus-visible, .sevd-colls__item:focus-visible, .sevd-hit:focus-visible, .sevd-spot__slab:focus-visible {
  outline: 2px solid var(--sevd-red); outline-offset: 2px;
}
.sevd-btn--primary { --b-bg: var(--sevd-red); --b-fg: #fff; --b-bd: var(--sevd-red); }
.sevd-btn--primary:hover { --b-bg: #d4111b; --b-bd: #d4111b; }
.sevd-btn--light { --b-bg: var(--sevd-bone); --b-fg: var(--sevd-ink); --b-bd: var(--sevd-bone); }
.sevd-btn--light:hover { --b-bg: #fff; --b-bd: #fff; }
.sevd-btn--ghost:hover { --b-bd: var(--sevd-bone); }
.sevd-btn--compact { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.sevd-btn--compact:hover { --b-bg: var(--sevd-bone); --b-fg: var(--sevd-ink); --b-bd: var(--sevd-bone); }
.sevd-btn--block { width: 100%; }
.sevd-btn.is-busy { pointer-events: none; }
.sevd-btn.is-busy .sevd-btn__label { opacity: 0; }
.sevd-btn.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: sevd-spin .7s linear infinite;
}
.sevd-btn.is-added { --b-bg: var(--sevd-red); --b-fg: #fff; --b-bd: var(--sevd-red); }
.sevd-btn.is-disabled { opacity: .45; cursor: not-allowed; }
@keyframes sevd-spin { to { transform: rotate(360deg); } }

.sevd-icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 10px;
  background: transparent; color: var(--sevd-bone); border: 0; cursor: pointer; transition: background-color .18s ease;
}
.sevd-icon-btn:hover { background: rgba(238, 236, 230, 0.08); color: var(--sevd-bone); }
.sevd-icon-btn--line { border: 1px solid var(--sevd-line-2); border-radius: 999px; }
.sevd-icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }

.sevd-kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--sevd-line-2); color: var(--sevd-steel); font: 600 11px/1 var(--sevd-font); background: transparent; cursor: pointer;
}

/* ---------- Header actions ---------- */
.sevd-actions { display: flex; align-items: center; gap: 6px; }
.sevd-search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 14px; min-width: 230px;
  border-radius: 10px; border: 1px solid var(--sevd-line); background: rgba(238, 236, 230, 0.04);
  color: var(--sevd-steel); font: 500 14px/1 var(--sevd-font); cursor: pointer; transition: border-color .18s ease, color .18s ease;
}
.sevd-search-trigger:hover { border-color: var(--sevd-line-2); color: var(--sevd-bone); }
.sevd-search-trigger__text { flex: 1; text-align: left; }
.sevd-cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--sevd-red); color: #fff; font: 700 11px/18px var(--sevd-font); text-align: center;
}
.sevd-cart-count[hidden] { display: none; }
.sevd-menu-trigger { display: none; }
@media (max-width: 1119px) {
  .sevd-search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .sevd-search-trigger__text, .sevd-search-trigger .sevd-kbd { display: none; }
}
@media (max-width: 1023px) { .sevd-menu-trigger { display: inline-grid; } }

/* ---------- Chips / price ---------- */
.sevd-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px;
  background: var(--sevd-bone); color: var(--sevd-ink);
  font: 700 12px/1 var(--sevd-font); font-stretch: 87.5%; letter-spacing: 0.02em; white-space: nowrap;
}
.sevd-chip--lg { height: 28px; padding: 0 10px; font-size: 14px; }
.sevd-price { font-family: var(--sevd-font); font-weight: 700; font-stretch: 112.5%; color: var(--sevd-bone); }
.sevd-price-was { color: var(--sevd-steel); font-size: .85em; margin-left: 6px; }
.sevd-sold-tag {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px;
  color: var(--sevd-red-text); border: 1px solid rgba(241, 27, 37, .4); font: 600 13px/1 var(--sevd-font);
}

/* ==========================================================================
   The slab: signature element
   ========================================================================== */
.sevd-slab {
  --sevd-rx: 0deg; --sevd-ry: 0deg; --sevd-mx: 50%; --sevd-my: 30%;
  position: relative; display: block; aspect-ratio: 5 / 8.2; border-radius: 14px;
  transform: perspective(900px) rotateX(var(--sevd-rx)) rotateY(var(--sevd-ry));
  transition: transform .5s var(--sevd-ease), filter .3s ease;
  isolation: isolate;
}
.sevd-slab.is-active { transition: transform .08s linear, filter .3s ease; }

.sevd-slab__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 20%, hsl(var(--sevd-hue) 30% 16%), var(--sevd-ink-2) 70%);
}

.sevd-slab--synthetic {
  display: flex; flex-direction: column; gap: 6%; padding: 6.5% 7% 8%;
  background:
    linear-gradient(155deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.09) 100%),
    hsl(var(--sevd-hue) 12% 9%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 6px rgba(255,255,255,.025), 0 30px 60px -30px rgba(0,0,0,.9);
  container-type: inline-size;
}
.sevd-slab__label {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5cqi;
  padding: 3.6cqi 4.5cqi; border-radius: 3cqi; background: #f3f1ec; color: #101114;
  border: 1.2cqi solid var(--sevd-red); font-family: var(--sevd-font); line-height: 1.05;
}
.sevd-slab__grader { font-weight: 900; font-stretch: 125%; font-size: 7.5cqi; letter-spacing: -0.02em; }
.sevd-slab__desc { display: flex; flex-direction: column; gap: 1cqi; min-width: 0; font-weight: 700; font-stretch: 75%; font-size: 4.4cqi; letter-spacing: 0.02em; }
.sevd-slab__desc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sevd-slab__grade { display: flex; flex-direction: column; align-items: flex-end; font-stretch: 75%; }
.sevd-slab__grade span { font-size: 3.6cqi; font-weight: 700; }
.sevd-slab__grade strong { font-size: 10cqi; font-weight: 900; font-stretch: 100%; line-height: .95; }

.sevd-slab__card {
  position: relative; flex: 1; border-radius: 3.5cqi; padding: 3.2cqi;
  background: linear-gradient(160deg, hsl(var(--sevd-hue) 55% 62%), hsl(calc(var(--sevd-hue) + 30) 50% 42%));
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2cqi 6cqi rgba(0,0,0,.35);
}
.sevd-slab__art {
  position: relative; height: 100%; border-radius: 2cqi; overflow: hidden;
  background:
    radial-gradient(90% 60% at 30% 20%, hsl(calc(var(--sevd-hue) + 40) 80% 70% / .9), transparent 60%),
    radial-gradient(80% 70% at 80% 90%, hsl(calc(var(--sevd-hue) - 40) 70% 30%), transparent 70%),
    linear-gradient(200deg, hsl(var(--sevd-hue) 40% 22%), hsl(var(--sevd-hue) 60% 12%));
}
.sevd-slab__initial {
  position: absolute; left: 7%; bottom: 2%; font-family: var(--sevd-font); font-weight: 900; font-stretch: 125%;
  font-size: 58cqi; line-height: .8; color: rgba(255,255,255,.9); letter-spacing: -0.06em; mix-blend-mode: overlay;
}
.sevd-slab__num { position: absolute; right: 6%; top: 5%; font: 700 5cqi/1 var(--sevd-font); font-stretch: 87.5%; color: rgba(255,255,255,.75); }
.sevd-slab.is-holo .sevd-slab__art::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .38;
  background: conic-gradient(from 0deg at var(--sevd-mx) var(--sevd-my), #ff6b8b, #ffd36b, #7dffb2, #6bc5ff, #b58bff, #ff6b8b);
  transition: opacity .3s ease;
}
.sevd-slab.is-holo.is-active .sevd-slab__art::after { opacity: .62; }

.sevd-slab__sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background:
    radial-gradient(60% 45% at var(--sevd-mx) var(--sevd-my), rgba(255,255,255,.22), transparent 70%),
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.1) 46%, transparent 54%);
  background-size: 100% 100%, 300% 100%; background-position: 0 0, 50% 0;
  opacity: .35; transition: opacity .3s ease; mix-blend-mode: screen;
}
.sevd-slab.is-active .sevd-slab__sheen { opacity: 1; }

.sevd-slab--hero { width: min(100%, 400px); margin-inline: auto; animation: sevd-unsleeve 1.1s var(--sevd-ease) .15s both; }
.sevd-slab--hero .sevd-slab__sheen { animation: sevd-glint 1.8s ease .7s both; }
.sevd-slab--detail { width: min(100%, 460px); margin-inline: auto; }
.sevd-slab--mini { border-radius: 8px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.9); }

@keyframes sevd-unsleeve {
  from { opacity: 0; transform: perspective(900px) translateY(18%) rotateX(18deg) rotateZ(-4deg); }
  to { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0) rotateZ(0); }
}
@keyframes sevd-glint {
  from { background-position: 0 0, 100% 0; opacity: 1; }
  to { background-position: 0 0, 0% 0; opacity: .35; }
}

/* ==========================================================================
   Card tile
   ========================================================================== */
.sevd-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; list-style: none; margin: 0; }
.sevd-card__media { display: block; border-radius: 14px; }
.sevd-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sevd-card__grade { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--sevd-steel); font: 500 13px/1 var(--sevd-font); }
.sevd-card__word { color: var(--sevd-steel); }
.sevd-card__title { margin: 2px 0 0; font: 600 15px/1.35 var(--sevd-font); color: var(--sevd-bone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sevd-card__title a { color: var(--sevd-bone); text-decoration: none; }
.sevd-card__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sevd-card__meta { margin: 0; color: var(--sevd-steel); font: 400 13px/1.4 var(--sevd-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sevd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.sevd-card__price { margin: 0; font-size: 18px; }
.sevd-card.is-sold .sevd-slab { filter: grayscale(.85) brightness(.6); }
.sevd-card.is-sold .sevd-card__price .sevd-price { color: var(--sevd-steel); }

/* ---------- Grid / rail ---------- */
.sevd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 44px 26px; margin: 0; padding: 0; list-style: none; transition: opacity .2s ease; }
.sevd-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sevd-grid > .sevd-empty { grid-column: 1 / -1; }

.sevd-rail { display: flex; flex-direction: column; gap: 22px; }
.sevd-rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 21vw, 262px); gap: 26px;
  margin: 0; padding: 4px 2px 12px; list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.sevd-rail__track::-webkit-scrollbar { display: none; }
.sevd-rail__track > * { scroll-snap-align: start; }
.sevd-rail__nav { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1023px) { .sevd-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .sevd-grid, .sevd-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .sevd-rail__track { grid-auto-columns: 62vw; gap: 16px; }
  .sevd-card__foot { flex-wrap: wrap; }
  .sevd-card__title { font-size: 14px; }
}

/* ==========================================================================
   Spotlight (homepage hero)
   ========================================================================== */
.sevd-spot { display: flex; flex-direction: column; gap: 26px; }
.sevd-spot__slab { display: block; border-radius: 14px; }
.sevd-spot__info { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--sevd-line); }
.sevd-spot__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sevd-spot__title { margin: 0; font: 600 16px/1.35 var(--sevd-font); max-width: 34ch; }
.sevd-spot__title a { color: var(--sevd-bone); text-decoration: none; }
.sevd-spot__title a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.sevd-spot__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.sevd-spot__price { margin: 0; font: 800 26px/1 var(--sevd-font); font-stretch: 112.5%; color: var(--sevd-bone); }
.sevd-spot .sevd-btn--light { height: 40px; padding: 0 16px; font-size: 14px; }

/* ==========================================================================
   Collections
   ========================================================================== */
.sevd-colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sevd-colls__item {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 340px;
  padding: 26px; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--sevd-bone);
  background: linear-gradient(180deg, var(--sevd-surface) 0%, var(--sevd-ink-2) 100%); border: 1px solid var(--sevd-line);
  transition: border-color .25s ease;
}
.sevd-colls__item:hover { border-color: var(--sevd-line-2); color: var(--sevd-bone); }
.sevd-colls__stack { position: absolute; top: 26px; right: 22px; width: 46%; height: 64%; }
.sevd-colls__slab { position: absolute; width: 62%; top: 0; transition: transform .45s var(--sevd-ease); }
.sevd-colls__slab--1 { right: 36%; transform: rotate(-9deg) translateY(10%); z-index: 1; }
.sevd-colls__slab--2 { right: 18%; transform: rotate(-2deg) translateY(2%); z-index: 2; }
.sevd-colls__slab--3 { right: 0; transform: rotate(6deg) translateY(12%); z-index: 3; }
.sevd-colls__item:hover .sevd-colls__slab--1 { transform: rotate(-14deg) translate(-10%, 8%); }
.sevd-colls__item:hover .sevd-colls__slab--3 { transform: rotate(11deg) translate(8%, 10%); }
.sevd-colls__text { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 4; }
.sevd-colls__name { font: 800 30px/1 var(--sevd-font); font-stretch: 125%; letter-spacing: -0.02em; }
.sevd-colls__count { color: var(--sevd-steel); font: 500 14px/1.3 var(--sevd-font); }
.sevd-colls__item > .sevd-i { position: absolute; right: 26px; bottom: 28px; width: 24px; height: 24px; transition: transform .25s ease; }
.sevd-colls__item:hover > .sevd-i { transform: translateX(4px); }
@media (max-width: 1023px) { .sevd-colls { grid-template-columns: minmax(0, 1fr); } .sevd-colls__item { min-height: 240px; } .sevd-colls__stack { width: 34%; height: 80%; top: 20px; } }
@media (max-width: 479px) { .sevd-colls__name { font-size: 24px; } .sevd-colls__stack { width: 44%; } }

/* ---------- Live count ---------- */
.sevd-live { display: inline-flex; align-items: center; gap: 10px; color: var(--sevd-steel); font: 500 14px/1.3 var(--sevd-font); }
.sevd-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sevd-red); animation: sevd-pulse 2.4s ease-out infinite; }
@keyframes sevd-pulse { 0% { box-shadow: 0 0 0 0 rgba(241,27,37,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(241,27,37,0); } }

/* ---------- Search field (hero) ---------- */
.sevd-searchfield {
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 14px; margin: 0;
  background: rgba(238, 236, 230, 0.05); border: 1px solid var(--sevd-line-2); color: var(--sevd-steel);
  max-width: 560px; transition: border-color .2s ease, background-color .2s ease;
}
.sevd-searchfield:focus-within { border-color: var(--sevd-bone); background: rgba(238, 236, 230, 0.08); }
.sevd-searchfield__input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--sevd-bone);
  font: 500 16px/1 var(--sevd-font); padding: 0;
}
.sevd-searchfield__input::placeholder { color: var(--sevd-steel); }
@media (max-width: 479px) { .sevd-searchfield .sevd-btn { padding: 0 14px; } .sevd-searchfield > .sevd-i { display: none; } .sevd-searchfield { padding-left: 14px; } }

/* ==========================================================================
   Shop browser
   ========================================================================== */
.sevd-shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.sevd-shop__filters-toggle { display: none; }
.sevd-filters {
  position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--sevd-header-h) + 24px);
  display: flex; flex-direction: column; gap: 26px; margin: 0; max-height: calc(100vh - var(--sevd-header-h) - 48px); overflow-y: auto; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: var(--sevd-line-2) transparent;
}
.sevd-filters__head { display: flex; align-items: baseline; justify-content: space-between; }
.sevd-filters__title { margin: 0; font: 700 18px/1 var(--sevd-font); font-stretch: 112.5%; color: var(--sevd-bone); }
.sevd-filters__clear { color: var(--sevd-steel); font: 500 13px/1 var(--sevd-font); text-decoration: underline; text-underline-offset: 3px; }
.sevd-filters__clear:hover { color: var(--sevd-bone); }
.sevd-filters__apply { display: none; }
.sevd-field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sevd-field__label { padding: 0; margin: 0 0 10px; color: var(--sevd-bone); font: 600 14px/1.2 var(--sevd-font); }
.sevd-field > .sevd-field__label { margin: 0; }
.sevd-input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--sevd-line-2);
  background: var(--sevd-ink-2); color: var(--sevd-bone); font: 500 14px/1 var(--sevd-font); outline: 0; appearance: none; -webkit-appearance: none;
}
select.sevd-input {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d939d' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sevd-input:focus { border-color: var(--sevd-bone); }
.sevd-input::placeholder { color: var(--sevd-steel); }
.sevd-input--inline { width: auto; height: 38px; }
.sevd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sevd-pill { position: relative; cursor: pointer; }
.sevd-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sevd-pill span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--sevd-line-2);
  color: var(--sevd-bone); font: 500 13px/1 var(--sevd-font); transition: all .15s ease;
}
.sevd-pill:hover span { border-color: var(--sevd-bone); }
.sevd-pill input:checked + span { background: var(--sevd-bone); color: var(--sevd-ink); border-color: var(--sevd-bone); }
.sevd-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.sevd-range__to { color: var(--sevd-steel); font: 500 13px/1 var(--sevd-font); }
.sevd-switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--sevd-bone); font: 500 14px/1.2 var(--sevd-font); }
.sevd-switch input { position: absolute; opacity: 0; }
.sevd-switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--sevd-surface-2); border: 1px solid var(--sevd-line-2); transition: background-color .2s ease; flex: none; }
.sevd-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--sevd-steel); transition: transform .2s var(--sevd-ease), background-color .2s ease; }
.sevd-switch input:checked + .sevd-switch__track { background: var(--sevd-red); border-color: var(--sevd-red); }
.sevd-switch input:checked + .sevd-switch__track::after { transform: translateX(16px); background: #fff; }
.sevd-switch input:focus-visible + .sevd-switch__track { outline: 2px solid var(--sevd-red); outline-offset: 2px; }

.sevd-shop__main { min-width: 0; }
.sevd-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--sevd-line); }
.sevd-shop__count { margin: 0; color: var(--sevd-steel); font: 500 14px/1 var(--sevd-font); }
.sevd-sort { display: inline-flex; align-items: center; gap: 10px; color: var(--sevd-steel); font: 500 14px/1 var(--sevd-font); }
.sevd-shop.is-loading .sevd-grid { opacity: .35; pointer-events: none; }

.sevd-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.sevd-pages__n { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--sevd-line-2); color: var(--sevd-bone); font: 600 14px/1 var(--sevd-font); text-decoration: none; }
.sevd-pages__n:hover { border-color: var(--sevd-bone); color: var(--sevd-bone); }
.sevd-pages__n.is-current { background: var(--sevd-bone); color: var(--sevd-ink); border-color: var(--sevd-bone); }
.sevd-pages__gap { align-self: center; color: var(--sevd-steel); }

@media (max-width: 1023px) {
  .sevd-shop { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sevd-shop__filters-toggle { display: inline-flex; justify-self: start; }
  .sevd-filters { display: none; position: static; max-height: none; padding: 22px; border-radius: 16px; background: var(--sevd-ink-2); border: 1px solid var(--sevd-line); }
  .sevd-filters.is-open { display: flex; }
  .sevd-filters__apply { display: inline-flex; }
  .sevd-shop__bar { margin-bottom: 24px; }
}
@media (max-width: 479px) { .sevd-shop__bar { flex-direction: column; align-items: flex-start; } }

/* ---------- Empty state ---------- */
.sevd-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px; border-radius: 16px; border: 1px dashed var(--sevd-line-2); color: var(--sevd-steel); font: 500 15px/1.5 var(--sevd-font); }
.sevd-empty p { margin: 0; max-width: 52ch; }

/* ==========================================================================
   Card detail
   ========================================================================== */
.sevd-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.sevd-detail__media { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--sevd-header-h) + 28px); display: flex; flex-direction: column; gap: 18px; }
.sevd-detail__stage {
  padding: 48px 32px; border-radius: 22px; border: 1px solid var(--sevd-line);
  background: radial-gradient(70% 60% at 50% 35%, rgba(238,236,230,.07), transparent 70%), var(--sevd-ink-2);
}
.sevd-detail__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.sevd-thumb { width: 64px; height: 84px; padding: 0; border-radius: 8px; border: 1px solid var(--sevd-line-2); background: var(--sevd-ink-2); overflow: hidden; cursor: pointer; opacity: .6; transition: opacity .2s ease, border-color .2s ease; }
.sevd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sevd-thumb.is-active, .sevd-thumb:hover { opacity: 1; border-color: var(--sevd-bone); }

.sevd-detail__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sevd-crumbs { display: flex; gap: 8px; color: var(--sevd-steel); font: 500 13px/1 var(--sevd-font); }
.sevd-crumbs a { color: var(--sevd-steel); text-decoration: none; }
.sevd-crumbs a:hover { color: var(--sevd-bone); }
.sevd-detail__grade { margin-top: 10px; }
.sevd-detail__title { margin: 0; color: var(--sevd-bone); font: 800 clamp(1.7rem, 2.6vw, 2.5rem)/1.06 var(--sevd-font); font-stretch: 112.5%; letter-spacing: -0.02em; text-wrap: balance; }
.sevd-detail__sub { margin: 0; color: var(--sevd-steel); font: 500 16px/1.4 var(--sevd-font); }

.sevd-buy { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding: 26px 0; border-top: 1px solid var(--sevd-line); border-bottom: 1px solid var(--sevd-line); }
.sevd-buy__price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.sevd-buy__price .sevd-price { font-size: 38px; font-weight: 800; line-height: 1; }
.sevd-buy__currency { color: var(--sevd-steel); font: 600 13px/1 var(--sevd-font); }
.sevd-stock { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--sevd-bone); font: 500 14px/1.4 var(--sevd-font); }
.sevd-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; }
.sevd-stock.is-sold { color: var(--sevd-red-text); }
.sevd-stock.is-sold .sevd-stock__dot { background: var(--sevd-red); }
.sevd-buy__actions { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.sevd-buy__actions > :only-child { grid-column: 1 / -1; }
.sevd-buy__actions .sevd-btn { height: 52px; width: 100%; font-size: 16px; }
.sevd-buy__assure { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--sevd-steel); font: 500 13px/1.4 var(--sevd-font); }
.sevd-buy__assure .sevd-i { width: 16px; height: 16px; }

.sevd-specs { margin: 8px 0 0; display: flex; flex-direction: column; }
.sevd-specs__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--sevd-line); font: 500 14px/1.4 var(--sevd-font); }
.sevd-specs dt { color: var(--sevd-steel); }
.sevd-specs dd { margin: 0; color: var(--sevd-bone); }
.sevd-specs a { color: var(--sevd-bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sevd-line-2); }
.sevd-specs a:hover { color: #fff; text-decoration-color: var(--sevd-bone); }
.sevd-ext { color: var(--sevd-steel); margin-left: 6px; font-size: 13px; }
.sevd-detail__desc { color: #c9c8c3; font: 400 15px/1.7 var(--sevd-font); max-width: 62ch; }
.sevd-detail__desc p { margin: 0 0 12px; }

@media (max-width: 1023px) {
  .sevd-detail { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sevd-detail__media { position: static; }
  .sevd-detail__stage { padding: 32px 20px; }
  .sevd-slab--detail { width: min(100%, 340px); }
}
@media (max-width: 479px) {
  .sevd-buy__actions { grid-template-columns: minmax(0, 1fr); }
  .sevd-specs__row { grid-template-columns: 130px minmax(0, 1fr); }
  .sevd-buy__price .sevd-price { font-size: 32px; }
}

/* ==========================================================================
   Dialogs: cart drawer, search, mobile menu
   ========================================================================== */
.sevd-cart, .sevd-search, .sevd-menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--sevd-bone); overflow: hidden;
}
.sevd-cart::backdrop, .sevd-search::backdrop, .sevd-menu::backdrop { background: rgba(3, 4, 6, 0.62); backdrop-filter: blur(6px); }

.sevd-cart__panel, .sevd-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--sevd-ink-2); border-left: 1px solid var(--sevd-line); transform: translateX(100%); transition: transform .26s var(--sevd-ease);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sevd-cart.is-open .sevd-cart__panel, .sevd-menu.is-open .sevd-menu__panel { transform: none; }
.sevd-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 18px 24px; border-bottom: 1px solid var(--sevd-line); }
.sevd-cart__title { margin: 0; color: var(--sevd-bone); font: 800 20px/1 var(--sevd-font); font-stretch: 112.5%; }
.sevd-cart__lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.sevd-cart__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 0; color: var(--sevd-steel); font: 500 15px/1.5 var(--sevd-font); }
.sevd-cart__empty p { margin: 0; }
.sevd-line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--sevd-line); align-items: start; }
.sevd-line__img { display: block; width: 58px; aspect-ratio: 5 / 8.2; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--sevd-hue) 45% 45%), hsl(var(--sevd-hue) 45% 20%)); border: 1px solid var(--sevd-line-2); }
.sevd-line__img img { width: 100%; height: 100%; object-fit: cover; }
.sevd-line__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sevd-line__title { color: var(--sevd-bone); font: 600 14px/1.35 var(--sevd-font); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sevd-line__title:hover { color: #fff; }
.sevd-line__sub { color: var(--sevd-steel); font: 500 12px/1.3 var(--sevd-font); }
.sevd-line__warn { color: var(--sevd-red-text); font: 600 12px/1.3 var(--sevd-font); }
.sevd-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sevd-line__price { color: var(--sevd-bone); font: 700 15px/1 var(--sevd-font); }
.sevd-line__remove { padding: 0; border: 0; background: none; color: var(--sevd-steel); font: 500 12px/1 var(--sevd-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sevd-line__remove:hover { color: var(--sevd-bone); }
.sevd-line.is-sold .sevd-line__img { filter: grayscale(1); opacity: .5; }
.sevd-cart__foot { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--sevd-line); background: var(--sevd-ink-2); }
.sevd-cart__foot[hidden] { display: none; }
.sevd-cart__row { display: flex; justify-content: space-between; align-items: baseline; color: var(--sevd-bone); font: 600 16px/1 var(--sevd-font); }
.sevd-cart__row strong { font-size: 20px; font-stretch: 112.5%; }
.sevd-cart__note, .sevd-cart__secure { margin: 0; color: var(--sevd-steel); font: 500 13px/1.4 var(--sevd-font); }
.sevd-cart__secure { display: flex; align-items: center; gap: 6px; justify-content: center; }
.sevd-cart__secure .sevd-i { width: 14px; height: 14px; }
.sevd-cart__foot .sevd-btn { height: 52px; font-size: 16px; }

.sevd-search__panel {
  position: absolute; left: 50%; top: max(8vh, 40px); width: min(680px, calc(100vw - 24px)); max-height: min(640px, 80vh);
  display: flex; flex-direction: column; transform: translate(-50%, -8px); opacity: 0;
  background: var(--sevd-ink-2); border: 1px solid var(--sevd-line-2); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transition: transform .22s var(--sevd-ease), opacity .22s ease;
}
.sevd-search.is-open .sevd-search__panel { transform: translate(-50%, 0); opacity: 1; }
.sevd-search__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--sevd-line); color: var(--sevd-steel); }
.sevd-search__input { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--sevd-bone); font: 500 18px/1 var(--sevd-font); }
.sevd-search__input::placeholder { color: var(--sevd-steel); }
.sevd-search__input::-webkit-search-cancel-button { display: none; }
.sevd-search__results { overflow-y: auto; padding: 8px; transition: opacity .15s ease; }
.sevd-search__results.is-loading { opacity: .5; }
.sevd-search__hint { margin: 0; padding: 18px 12px; color: var(--sevd-steel); font: 500 14px/1.5 var(--sevd-font); }
.sevd-hit { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--sevd-bone); }
.sevd-hit:hover, .sevd-hit.is-active { background: var(--sevd-surface-2); color: var(--sevd-bone); }
.sevd-hit__img { width: 40px; aspect-ratio: 5 / 8.2; border-radius: 5px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--sevd-hue) 45% 45%), hsl(var(--sevd-hue) 45% 20%)); }
.sevd-hit__img img { width: 100%; height: 100%; object-fit: cover; }
.sevd-hit__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sevd-hit__title { font: 600 14px/1.3 var(--sevd-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sevd-hit__meta { color: var(--sevd-steel); font: 500 12px/1.3 var(--sevd-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sevd-hit__price { font: 700 14px/1 var(--sevd-font); }
.sevd-hit.is-sold .sevd-hit__price { color: var(--sevd-red-text); }
.sevd-hit.is-sold .sevd-hit__img { filter: grayscale(1); opacity: .5; }
.sevd-search__all { display: block; margin: 6px 4px 4px; padding: 12px; border-radius: 10px; text-align: center; color: var(--sevd-bone); font: 600 14px/1 var(--sevd-font); border: 1px solid var(--sevd-line-2); text-decoration: none; }
.sevd-search__all:hover { border-color: var(--sevd-bone); color: var(--sevd-bone); }

.sevd-menu__panel { padding: 72px 28px 28px; }
.sevd-menu__close { position: absolute; top: 16px; right: 16px; }
.sevd-menu__nav { display: flex; flex-direction: column; }
.sevd-menu__link { padding: 16px 0; border-bottom: 1px solid var(--sevd-line); color: var(--sevd-bone); font: 800 26px/1.1 var(--sevd-font); font-stretch: 125%; letter-spacing: -0.02em; text-decoration: none; }
.sevd-menu__link:hover { color: #fff; }

/* ---------- Toast ---------- */
.sevd-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 2147483000; max-width: min(460px, calc(100vw - 32px));
  padding: 14px 18px; border-radius: 12px; background: var(--sevd-bone); color: var(--sevd-ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  font: 600 14px/1.4 var(--sevd-font); transform: translate(-50%, 140%); opacity: 0; transition: transform .3s var(--sevd-ease), opacity .3s ease; pointer-events: none;
}
.sevd-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sevd-toast[data-tone="error"] { background: var(--sevd-red); color: #fff; }
.sevd-toast a { color: inherit; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .sevd-slab, .sevd-slab--hero, .sevd-slab--hero .sevd-slab__sheen, .sevd-live__dot, .sevd-colls__slab { animation: none !important; transition: none !important; }
  .sevd-cart__panel, .sevd-menu__panel, .sevd-search__panel, .sevd-toast { transition: none !important; }
}

/* 1.0.1 QA adjustments */
@media (max-width: 767px) {
  .sevd-detail__stage { padding: 22px 16px; }
  .sevd-slab--detail { width: min(100%, 250px); }
  .sevd-slab--hero { width: min(100%, 300px); }
}
@media (min-width: 1024px) {
  .sevd-slab--hero { width: min(100%, 360px); }
}
