/* ============================================================================
   socksevr.online — Vitrine buy-box + cart drawer (matches everstride PDP)
   Accent = brand pink #dd2e63. Scoped under .vt-* to avoid theme conflicts.
   ========================================================================== */
:root {
  --vt-pink: #dd2e63;
  --vt-pink-dark: #b8214f;
  --vt-blue: #2f4a9e;
  --vt-ink: #1a1a1a;
  --vt-muted: #6b7280;
  --vt-line: #e3e6ea;
  --vt-red: #d43a3a;
  --vt-gold: #b8860b;
  --vt-radius: 10px;
}
.vt-buybox { margin: 16px 0 22px; font-family: inherit; color: var(--vt-ink); }

/* ---- sale badge ---- */
.vt-salebadge { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; }
.vt-salebadge-tag { background: var(--vt-blue); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .03em; padding: 5px 12px; border-radius: 6px; white-space: nowrap; }
.vt-salebadge-txt { font-size: 15px; font-weight: 700; }
.vt-salebadge-txt b { color: var(--vt-pink); }

/* ---- bundle heading ---- */
.vt-bundle-title { text-align: center; margin: 14px 0 14px; position: relative; }
.vt-bundle-title span { font-size: 15px; font-weight: 800; color: var(--vt-pink); background: #fff; padding: 0 14px; position: relative; z-index: 1; }
.vt-bundle-title::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--vt-line); }

/* ---- tiers ---- */
.vt-tiers { display: flex; flex-direction: column; gap: 12px; }
.vt-tier { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; background: #fff; border: 2px solid var(--vt-line); border-radius: 0; font-family: inherit; transition: border-color .15s, background .15s; }
.vt-tier-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; }
.vt-tier:hover { border-color: #c7cdd4; }
.vt-tier--active { border-color: var(--vt-pink); background: #fdf2f6; }
.vt-tier-rows { padding: 2px 16px 14px 44px; }
.vt-tier-radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3c9d0; position: relative; }
.vt-tier--active .vt-tier-radio { border-color: var(--vt-pink); }
.vt-tier--active .vt-tier-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--vt-pink); }
.vt-tier-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.vt-tier-label { font-size: 16px; font-weight: 800; }
.vt-tier-sub { font-size: 12px; color: var(--vt-pink); font-weight: 600; }
.vt-tier-price { flex: 0 0 auto; text-align: right; line-height: 1.15; }
.vt-tier-total { font-size: 18px; font-weight: 800; }
.vt-tier-strike { display: block; font-size: 13px; color: var(--vt-muted); text-decoration: line-through; }
.vt-badge { position: absolute; top: -11px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .03em; padding: 3px 9px; border-radius: 0; color: #fff; background: var(--vt-pink); }
.vt-badge--seller { background: var(--vt-pink); }
.vt-badge--value { background: var(--vt-pink); }

/* ---- mix & match rows ---- */
.vt-rows { margin: 12px 0 4px; }
.vt-rows-head { font-size: 12px; color: var(--vt-muted); font-weight: 700; margin: 6px 2px 8px; text-transform: none; }
.vt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vt-row-n { flex: 0 0 auto; width: 26px; font-weight: 800; color: var(--vt-muted); font-size: 13px; }
.vt-row--oos { outline: 1px dashed var(--vt-red); border-radius: 8px; }

/* ---- custom dropdown ---- */
.vt-dd { position: relative; flex: 0 0 auto; }
.vt-dd--size { flex: 0 0 88px; }
.vt-dd--color { flex: 0 0 190px; }
.vt-dd-btn { width: 100%; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--vt-line); border-radius: 0; padding: 9px 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--vt-ink); }
.vt-dd-btn:hover { border-color: #c7cdd4; }
.vt-dd-lbl { flex: 1 1 auto; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-dd-car { color: var(--vt-muted); font-size: 11px; }
.vt-dd-dot { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid rgba(0,0,0,.15); }
.vt-dd-list { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--vt-line); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 240px; overflow: auto; display: none; }
.vt-dd-list.open { display: block; }
.vt-dd-opt { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #fff; border: 0; cursor: pointer; font-size: 14px; text-align: left; font-family: inherit; }
.vt-dd-opt:hover { background: #f6f7f9; }

/* ---- ADD TO CART ---- (theme's generic button styles override bg → force it) */
.vt-atc { display: block; width: 100%; margin-top: 14px; background: var(--vt-pink) !important; background-color: var(--vt-pink) !important; color: #fff !important; border: 0 !important; border-radius: 0; padding: 17px; font-size: 16px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: background .15s; font-family: inherit; opacity: 1 !important; text-align: center !important; }
.vt-atc:hover { background: var(--vt-pink-dark) !important; background-color: var(--vt-pink-dark) !important; }
.vt-note { font-size: 13px; margin-top: 10px; min-height: 1em; }
.vt-note--err { color: var(--vt-red); font-weight: 600; }

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.vt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 9998; }
.vt-overlay--on { opacity: 1; visibility: visible; }
.vt-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: #fff; z-index: 9999; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.15); font-family: inherit; color: var(--vt-ink); }
.vt-drawer--open { transform: translateX(0); }
.vt-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--vt-line); font-size: 17px; font-weight: 800; }
.vt-drawer-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--vt-ink); }
.vt-drawer-ship { background: #fdf2f6; color: var(--vt-pink-dark); text-align: center; font-size: 13px; padding: 9px; font-weight: 600; }
.vt-drawer-items { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px; }
.vt-drawer-empty { text-align: center; color: var(--vt-muted); padding: 40px 0; }
.vt-di { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.vt-di-imgwrap { position: relative; flex: 0 0 auto; }
.vt-di-img { width: 62px; height: 62px; object-fit: cover; border-radius: 0; background: #f3f4f6; display: block; }
.vt-di-qty { position: absolute; top: -8px; left: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 50%; background: #1a1a1a; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.vt-di-body { flex: 1 1 auto; min-width: 0; }
.vt-di-title { font-weight: 700; font-size: 14px; line-height: 1.25; }
.vt-di-variant2 { font-size: 12px; color: var(--vt-muted); margin: 3px 0; }
.vt-di-sub { font-size: 11px; color: var(--vt-pink); font-weight: 600; }
.vt-di-price { flex: 0 0 auto; font-weight: 800; text-align: right; font-size: 14px; }
.vt-di-strike { display: block; font-size: 12px; color: var(--vt-muted); text-decoration: line-through; font-weight: 500; }
.vt-di-removerow { padding: 2px 0 12px; border-bottom: 1px solid var(--vt-line); margin-bottom: 4px; }
.vt-di-remove { background: none; border: 0; color: var(--vt-muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.vt-drawer-foot { border-top: 1px solid var(--vt-line); padding: 16px 20px 20px; }
.vt-drawer-saved { text-align: center; color: var(--vt-pink); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.vt-drawer-subtotal { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.vt-drawer-checkout { width: 100%; background: var(--vt-pink) !important; background-color: var(--vt-pink) !important; color: #fff !important; border: 0 !important; border-radius: 0; padding: 16px; text-align: center !important; font-size: 16px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.vt-drawer-checkout:hover { background: var(--vt-pink-dark) !important; background-color: var(--vt-pink-dark) !important; }
.vt-drawer-guarantee { text-align: center; font-size: 11px; color: var(--vt-muted); margin-top: 10px; }
body.vt-drawer-open { overflow: hidden; }

/* header cart count bubble (our own) — pink circle top-right of the cart icon */
.vt-cart-count { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 50%; background: var(--vt-pink) !important; color: #fff !important; font-size: 11px; font-weight: 800; line-height: 1; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; z-index: 3; pointer-events: none; }

/* ---- mobile ---- */
@media (max-width: 749px) {
  .vt-tier { padding: 13px 14px; }
  .vt-tier-label { font-size: 15px; }
  .vt-tier-total { font-size: 16px; }
  .vt-drawer { width: 100%; }
  .vt-salebadge-txt { font-size: 14px; }
}
