/* ==========================================================================
   WDEV theme for Tebex — mirrors fivem.wdev.stream
   Loaded after shared.css (structural base used by main.js: basket, popups,
   drawer navigation, gifting). Overrides tokens + restyles components.
   ========================================================================== */

:root {
  /* Brand */
  --wd-bg: #0b0a09;
  --wd-bg-deep: #050505;
  --wd-surface: #121110;
  --wd-surface-elev: #181614;
  --wd-surface-hover: #221f1b;
  --wd-input-bg: #0f0e0d;
  --wd-border: rgb(255 255 255 / 8%);
  --wd-border-mid: rgb(255 255 255 / 12%);
  --wd-border-strong: rgb(255 255 255 / 14%);
  --wd-text: #ebebeb;
  --wd-text-dim: #a3a09b;
  --wd-text-faint: #6f6b66;
  --wd-gold: #d9a441;
  --wd-gold-soft: #e6b65c;
  --wd-gold-tint: rgb(217 164 65 / 10%);
  --wd-gold-border: rgb(217 164 65 / 45%);
  --wd-red: #e62837;
  --wd-green: #4ade80;
  --wd-card-fill: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1.6%));
  --wd-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --wd-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --wd-container: 1120px;
  --wd-gutter: 24px;

  /* Map onto shared.css tokens */
  --color-text: var(--wd-text);
  --color-text-darker: #d6d4d0;
  --color-text-secondary: var(--wd-text-dim);
  --color-text-dark: var(--wd-bg-deep);
  --color-bg: var(--wd-bg);
  --color-brighter-bg: var(--wd-surface);
  --color-primary: var(--wd-gold);
  --color-primary-hover: var(--wd-gold-soft);
  --color-primary-text: var(--wd-bg-deep);
  --color-primary-text-hover: var(--wd-bg-deep);
  --color-secondary: var(--wd-surface-hover);
  --color-secondary-hover: #2c2823;
  --color-secondary-text: var(--wd-text);
  --color-secondary-text-hover: var(--wd-text);
  --color-tertiary-hover: rgb(255 255 255 / 6%);
  --color-removed: #ff6b6b;
  --btn-size: 42px;
  --content-inner-width: var(--wd-container);
  --tebex-legal-footer-background-color: var(--wd-bg-deep);
  --tebex-legal-footer-border-color: var(--wd-border);
  --tebex-legal-footer-text-color: var(--wd-text-faint);
}

@media (width <= 600px) {
  :root { --wd-gutter: 16px; }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scrollbar-color: #2c2823 var(--wd-bg); }
body.wd {
  background: var(--wd-bg);
  color: var(--wd-text);
  font-family: var(--wd-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body.wd::before { display: none; }
::selection { background: var(--wd-gold); color: var(--wd-bg-deep); }

.wd .site {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  font-size: 15px;
}
.wd .site > .site-footer { margin-top: auto; }

.wd .site-content {
  max-width: none;
  padding: 0;
}
/* Pages still using the stock containers (cms page, username, options, checkout, tiered) */
.wd .site-content:not(.wd-page) {
  width: 100%;
  max-width: calc(var(--wd-container) + var(--wd-gutter) * 2);
  margin: 0 auto;
  padding: 48px var(--wd-gutter) 96px;
}
.wd:not(.wd-has-sidebar) .site-content-widgets { display: block; }
.wd.wd-has-sidebar .site-content-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
@media (width <= 960px) { .wd.wd-has-sidebar .site-content-widgets { grid-template-columns: 1fr; } }
.wd .store-text { padding: 32px; }

.wd-container {
  width: 100%;
  max-width: calc(var(--wd-container) + var(--wd-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--wd-gutter);
}

/* Fixed decorative background (grid + glows) behind the hero */
.wd-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(217 164 65 / 16%), transparent 70%),
    radial-gradient(40% 50% at 95% 80%, rgb(230 40 55 / 12%), transparent 70%),
    linear-gradient(90deg, var(--wd-bg) 30%, transparent),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 2.5%) 0 1px, transparent 1px 48px);
  mask-image: linear-gradient(#000 60%, transparent);
}
body:not(.page-index) .wd-bg { height: 420px; opacity: .6; }

/* ---------- Typography helpers ---------- */
.wd-gradient-text {
  display: block;
  background: linear-gradient(to right, var(--wd-gold), var(--wd-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--wd-gold-border);
  border-radius: 999px;
  background: var(--wd-gold-tint);
  color: var(--wd-gold);
  font: 700 10px/1.2 var(--wd-display);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.wd-pill svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }

.wd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wd-text-dim);
  font: 700 10px/1 var(--wd-display);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.wd-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wd-gold);
}

.wd-section-title,
.wd-page-title,
.wd-hero-title,
.wd-cta-title {
  font-family: var(--wd-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wd-text);
}

/* ---------- Buttons ---------- */
.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 700 11px/1 var(--wd-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.wd-btn-lg {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 13px;
  letter-spacing: 2px;
}
.wd-btn-primary {
  background: var(--wd-gold);
  color: var(--wd-bg-deep);
  box-shadow: 0 10px 30px rgb(217 164 65 / 25%);
}
.wd-btn-primary:hover {
  transform: translateY(-1px);
  background: var(--wd-gold-soft);
  box-shadow: 0 14px 36px rgb(217 164 65 / 35%);
}
.wd-btn-ghost {
  border-color: var(--wd-border-strong);
  background: rgb(255 255 255 / 3%);
  color: var(--wd-text);
}
.wd-btn-ghost:hover {
  border-color: var(--wd-gold-border);
  background: var(--wd-gold-tint);
}
.wd-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wd-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wd-bg-deep);
  color: var(--wd-gold);
  font-size: 10px;
  letter-spacing: 0;
}

/* Tebex buttons (used by package actions, basket, popups) */
.wd .btn-primary,
.wd .btn-secondary,
.wd .btn-tertiary {
  border-radius: 8px;
  font-family: var(--wd-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.wd .btn-primary { box-shadow: 0 8px 24px rgb(217 164 65 / 22%); }
.wd .btn-primary:hover,
.wd .btn-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 12px 30px rgb(217 164 65 / 32%); }
.wd .btn-secondary { border: 1px solid var(--wd-border-mid); }
.wd .btn-secondary:hover { border-color: var(--wd-gold-border); }
.wd :focus-visible { outline: none; box-shadow: 0 0 0 2px rgb(217 164 65 / 60%); }

/* ---------- Header ---------- */
.wd .site-header.wd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--wd-border);
  background: rgb(11 10 9 / 82%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wd-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: calc(var(--wd-container) + var(--wd-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--wd-gutter);
}

.wd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.wd-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--wd-gold-border);
  border-radius: 9px;
  background: linear-gradient(135deg, rgb(217 164 65 / 22%), rgb(230 40 55 / 12%));
  color: var(--wd-gold);
  font: 700 17px/1 var(--wd-display);
}
.wd-brand-icon { position: relative; display: inline-flex; flex: none; }
.wd-brand-logo { height: 34px; width: auto; border-radius: 9px; }
.wd-brand-name {
  font: 700 16px/1 var(--wd-display);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--wd-text);
}

.wd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Language switcher (PT / EN) */
.wd-lang {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--wd-border);
  border-radius: 8px;
}
.wd-lang-opt {
  min-width: 28px;
  padding: 6px 7px;
  border-radius: 6px;
  color: var(--wd-text-dim);
  font: 700 10px/1 var(--wd-display);
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  transition: color .15s ease, background .15s ease;
}
.wd-lang-opt:hover { color: var(--wd-text); }
.wd-lang-opt.is-active { background: var(--wd-gold-tint); color: var(--wd-gold); }

/* user-name hover swap (name -> log out) */
.wd .user-name .text-inner { display: grid; overflow: hidden; }
.wd .user-name .text,
.wd .user-name .text-hover { grid-area: 1 / 1; margin: 0; transition: opacity .15s ease; }
.wd .user-name .text-hover { opacity: 0; color: var(--wd-gold); }
.wd .user-name:hover .text { opacity: 0; }
.wd .user-name:hover .text-hover { opacity: 1; visibility: visible; }

.wd-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--wd-border-strong);
  border-radius: 8px;
}
.wd-burger span { display: block; height: 2px; border-radius: 2px; background: var(--wd-text); }

/* Navigation — desktop (inline in header) */
@media (width > 960px) {
  .wd .wd-nav { flex: 1 1 auto; min-width: 0; }
  .wd .wd-nav .menu {
    justify-content: flex-start;
    gap: 22px;
    padding: 0;
    background: none;
    font: 700 12px/1 var(--wd-display);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wd-text-dim);
    flex-wrap: nowrap;
  }
  .wd .wd-nav .menu > li > a { padding: 8px 0; max-width: 22ch; }
  .wd .wd-nav a:hover,
  .wd .wd-nav a.link-active { color: var(--wd-text); }
  .wd .wd-nav .menu > li > a.link-active { color: var(--wd-gold); }
  .wd .wd-nav .has-children { gap: 2px; }
  .wd .wd-nav .has-children .toggle { --btn-size: 22px; --btn-icon-size: 16px; }
  .wd .wd-nav .has-children > ul {
    top: 100%;
    padding: 6px;
    border: 1px solid var(--wd-border-mid);
    border-radius: 10px;
    background: rgb(18 17 16 / 92%);
    box-shadow: 0 20px 60px rgb(0 0 0 / 55%);
    font: 500 13px/1.4 var(--wd-body);
    letter-spacing: 0;
    text-transform: none;
  }
  .wd .wd-nav li li a { border-radius: 6px; padding: 7px 10px; }
  .wd .wd-nav li li a:hover,
  .wd .wd-nav li li a.link-active { color: var(--wd-bg-deep) !important; background: var(--wd-gold) !important; }
}

/* Navigation — mobile drawer */
@media (width <= 960px) {
  .wd-burger { display: inline-flex; }
  .wd-hide-sm { display: none; }
  .wd-header-inner { gap: 16px; }
  .wd .site-navigation .menu {
    background: var(--wd-surface);
    border-right: 1px solid var(--wd-border);
    font: 700 14px/24px var(--wd-display);
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .wd .site-navigation { background: rgb(5 7 12 / 65%); }
  .wd .site-navigation a.link-active { color: var(--wd-gold); }
}

@media (width <= 600px) {
  .wd-brand-name { display: none; }
}

/* Sale banner */
.wd .site-sale-banner.wd-sale-banner {
  max-width: none;
  margin: 0;
  padding: 8px var(--wd-gutter);
  border-radius: 0;
  text-align: center;
  font: 700 11px/1.4 var(--wd-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, rgb(230 40 55 / 45%), rgb(217 164 65 / 45%), rgb(230 40 55 / 45%));
  background-size: 200% 100%;
  animation: wd-slide 6s linear infinite;
}
@keyframes wd-slide { to { background-position: 200% 0; } }

/* ---------- Hero ---------- */
.wd-hero { padding: 80px 0 72px; }
.wd-hero .wd-container { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.wd-hero-title {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: .95;
  letter-spacing: -0.05em;
  max-width: 20ch;
}
.wd-hero-sub {
  max-width: 560px;
  color: var(--wd-text-dim);
  font-size: 17px;
  line-height: 1.6;
}
.wd-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Sections ---------- */
.wd-section { padding: 48px 0; }
.wd-section-first { padding-top: 64px; }
.wd-section:last-of-type { padding-bottom: 96px; }
.wd-section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Cards */
.wd-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--wd-border);
  border-radius: 20px;
  background: var(--wd-card-fill);
  transition: border-color .15s ease, transform .15s ease;
}
a.wd-card:hover { border-color: var(--wd-gold-border); transform: translateY(-2px); }
.wd-card-title {
  margin: 18px 0 8px;
  font: 700 15px/1.2 var(--wd-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wd-icon-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wd-gold-border);
  border-radius: 10px;
  background: var(--wd-gold-tint);
  color: var(--wd-gold);
}
.wd-icon-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linejoin: round; }
.wd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wd-gold-soft);
  font-size: 13px;
  font-weight: 600;
}

.wd-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.wd-cat-card { display: flex; flex-direction: column; align-items: flex-start; }
.wd-cat-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--wd-border);
}

/* Home: collapsible product section per category */
.wd-cat-sections { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.wd-cat-section {
  border: 1px solid var(--wd-border);
  border-radius: 20px;
  background: var(--wd-card-fill);
}
.wd-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}
.wd-cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--wd-text);
  font: 700 16px/1.2 var(--wd-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.wd-cat-toggle:hover .wd-cat-name { color: var(--wd-gold-soft); }
.wd-chevron {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid var(--wd-gold-border);
  border-radius: 8px;
  background: var(--wd-gold-tint);
  fill: none;
  stroke: var(--wd-gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate .2s ease;
}
.wd-cat-section.is-collapsed .wd-chevron { rotate: -90deg; }
.wd-cat-count {
  padding: 3px 9px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 999px;
  color: var(--wd-text-dim);
  font: 700 11px/1.2 var(--wd-display);
  letter-spacing: 0;
}
.wd-cat-all { flex: none; }
.wd-cat-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .25s ease;
}
.wd-cat-section.is-collapsed .wd-cat-panel { grid-template-rows: 0fr; }
.wd-cat-body { min-height: 0; overflow: hidden; padding: 4px 24px 24px; }
.wd-cat-section.is-collapsed .wd-cat-body { padding-bottom: 0; }
.wd-skeleton {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--wd-surface) 0%, var(--wd-surface-hover) 50%, var(--wd-surface) 100%);
  background-size: 200% 100%;
  animation: wd-shimmer 1.2s linear infinite;
}
@keyframes wd-shimmer { to { background-position: -200% 0; } }
@media (width <= 600px) {
  .wd-cat-head { padding: 14px 16px; }
  .wd-cat-body { padding: 0 16px 16px; }
}

/* Contact CTA panel */
.wd-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 56px;
  border: 1px solid var(--wd-border);
  border-radius: 32px;
  background: radial-gradient(70% 90% at 100% 0%, rgb(217 164 65 / 14%), transparent 60%), var(--wd-surface);
}
.wd-cta-title { font-size: clamp(32px, 5vw, 56px); line-height: .95; letter-spacing: -0.04em; }
@media (width <= 600px) {
  .wd-hero { padding: 48px 0; }
  .wd-cta-card { padding: 28px; border-radius: 24px; }
}

/* Rich text from the panel */
.wd-prose { color: var(--wd-text-dim); line-height: 1.65; }
.wd-prose h1, .wd-prose h2, .wd-prose h3, .wd-prose h4 {
  color: var(--wd-text);
  font-family: var(--wd-display);
}
.wd-prose a { color: var(--wd-gold-soft); }
/* Image grids built in the panel editor: every image fills its cell, so captions line up */
.wd-prose td > img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto; }

/* ---------- Category page ---------- */
.wd .wd-page { padding: 48px 0 96px; }
.wd-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.wd-page-title { font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.wd-page-sub { margin-top: 10px; color: var(--wd-text-dim); font-size: 14px; }

.wd-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 24px 0 20px;
  padding: 3px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 8px;
  background: var(--wd-input-bg);
}
.wd-tab {
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--wd-text-dim);
  font-size: 13px;
  transition: color .15s ease, background .15s ease;
}
.wd-tab:hover { color: var(--wd-text); background: rgb(255 255 255 / 4%); }
.wd-tab.is-active { background: var(--wd-gold); color: var(--wd-bg-deep); font-weight: 600; }
.wd-tab-sub { font-size: 12px; }

.wd-layout { display: grid; gap: 24px; align-items: start; }
.wd-has-sidebar .wd-layout { grid-template-columns: minmax(0, 1fr) 280px; }
@media (width <= 960px) { .wd-has-sidebar .wd-layout { grid-template-columns: 1fr; } }
.wd-main { display: flex; flex-direction: column; gap: 20px; }
.wd .category-description { padding: 24px; border-radius: 20px; }
.wd .no-products { padding: 24px; color: var(--wd-text-dim); }

/* Product grid + card */
.wd .wd-grid,
.wd .wd-grid.store-products-list,
.wd .wd-grid.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.wd .store-product.wd-product {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--wd-border-mid);
  border-radius: 12px;
  background: var(--wd-surface-elev);
  text-align: left;
  transition: border-color .15s ease, transform .15s ease;
}
.wd .store-product.wd-product:hover { border-color: var(--wd-gold-soft); transform: translateY(-2px); }

.wd .wd-product-media { position: relative; display: block; width: 100%; background: var(--wd-surface); }
.wd .wd-product-media .image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.wd .image-default {
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(60% 60% at 70% 30%, rgb(217 164 65 / 14%), transparent 70%),
    var(--wd-surface);
}
.wd-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 10px/1.2 var(--wd-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wd-badge-sale { background: var(--wd-red); color: #fff; }

.wd-product-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px; }
.wd .store-product .product-title { font: 700 14px/1.3 var(--wd-display); }
.wd .store-product .product-title a:hover { color: var(--wd-gold-soft); }
.wd .store-product .countdown { color: #ff6b6b; font-size: 11px; }

.wd .store-product .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.wd .store-product .price {
  flex: 1 0 100%;
  color: var(--wd-text);
  font: 700 18px/1.2 var(--wd-display);
}
.wd .store-product .price .discount { margin-right: 6px; color: var(--wd-text-faint); font-size: 13px; font-weight: 400; }
.wd .store-product .actions .wide { flex: 1 1 100%; }
.wd .store-product .actions .half { flex: 1 1 calc(50% - 4px); }
.wd .store-product .actions .gift { flex: none; }

/* Quantity field */
.wd .quantity-field {
  border: 1px solid var(--wd-border-mid);
  border-radius: 8px;
  background: var(--wd-input-bg);
}
.wd .quantity-field input[type=number] { border: none; color: var(--wd-text); }
.wd .quantity-field .open-basket { color: var(--wd-gold-soft); font-weight: 600; }

/* Product page */
.wd .store-product-full.wd-product-full {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
  border: 1px solid var(--wd-border);
  border-radius: 20px;
  background: var(--wd-card-fill);
}
@media (width <= 960px) {
  .wd .store-product-full.wd-product-full { grid-template-columns: 1fr; padding: 16px; }
}
.wd-product-full-media .image,
.wd-product-full-media .image-default {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--wd-border);
  object-fit: cover;
}
.wd-product-full-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wd .store-product-full .product-title {
  font: 700 clamp(24px, 3vw, 36px)/1.05 var(--wd-display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.wd .store-product-full .actions {
  position: static !important;
  order: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 12px;
  background: var(--wd-surface-elev);
  backdrop-filter: none;
}
.wd .store-product-full .price { font: 700 24px/1.2 var(--wd-display); color: var(--wd-text); flex: 1 0 100%; }

/* Popup version of the product page (opened from grid) */
.wd .popup-content.store-product-full.wd-product-full { grid-template-columns: 1fr; }

/* Media slider */
.wd .media-slider .slider,
.wd .media-slider .thumb { border-radius: 12px; }
.wd .media-slider .thumb.active { box-shadow: 0 0 0 2px var(--wd-gold); }

/* ---------- Sidebar widgets (optional) ---------- */
.wd .widget {
  padding: 20px;
  border: 1px solid var(--wd-border);
  border-radius: 16px;
  background: var(--wd-card-fill);
}
.wd .widget-title {
  text-align: left;
  font: 700 12px/1.2 var(--wd-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wd-text);
}
.wd .widget-community-goal .progress,
.wd .widget-goal .progress { border-radius: 999px; background: var(--wd-input-bg); }
.wd .widget-community-goal .progress-bar,
.wd .widget-goal .progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--wd-gold), var(--wd-red)); }
.wd .widget-gift-card .gift-card-input { border-radius: 8px; background: var(--wd-input-bg); border: 1px solid var(--wd-border-mid); }

/* ---------- Forms / popups / basket / toasts ---------- */
.wd input[type=text],
.wd input[type=email],
.wd input[type=number],
.wd input[type=search],
.wd select,
.wd textarea {
  border-radius: 8px;
  background: var(--wd-input-bg);
  border: 1px solid var(--wd-border-mid);
  color: var(--wd-text);
}
.wd input:focus,
.wd select:focus,
.wd textarea:focus { border-color: var(--wd-gold-soft); }

.wd .popup { background: rgb(5 7 12 / 65%); backdrop-filter: blur(2px); }
.wd .popup-content {
  border: 1px solid var(--wd-border-mid);
  border-radius: 16px;
  background: var(--wd-surface-elev);
  box-shadow: 0 20px 60px rgb(0 0 0 / 55%);
}
.wd .popup-close { border-radius: 0 16px 0 10px; }
.wd .basket-popup-content,
.wd .basket-popup-content .popup-close { border-radius: 0; }
.wd .basket-popup-content { border-width: 0 0 0 1px; }

.wd .basket-header,
.wd .basket-title { font-family: var(--wd-display); text-transform: uppercase; letter-spacing: 1px; }
.wd .basket-item {
  border: 1px solid var(--wd-border);
  border-radius: 12px;
  background: var(--wd-surface);
}
.wd .basket-item .title a:hover { color: var(--wd-gold-soft); }
.wd .basket-item .quantity { border-radius: 6px; }
.wd .basket-checkout h3 { font-family: var(--wd-display); }

.wd .toast {
  border: 1px solid var(--wd-border-mid);
  border-radius: 10px;
  background: var(--wd-surface-elev);
}
.wd .toast-close { border-radius: 6px; }

/* Tiered categories */
.wd .store-category-tiered { border: 1px solid var(--wd-border); border-radius: 20px; background: var(--wd-card-fill); }
.wd .store-product-tiered { border: 1px solid var(--wd-border-mid); border-radius: 12px; background: var(--wd-surface-elev); }

/* Checkout / basket page */
.wd .site-content > .basket { max-width: 760px; margin: 0 auto; }

/* CMS pages / username / options */
.wd .store-text,
.wd .store-form {
  border: 1px solid var(--wd-border);
  border-radius: 20px;
  background: var(--wd-card-fill);
}

/* ---------- Footer ---------- */
.wd .site-footer.wd-footer {
  margin-top: auto;
  border-top: 1px solid var(--wd-border);
  background: var(--wd-bg-deep);
  color: var(--wd-text-faint);
  font-size: 13px;
}
.wd-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.wd-footer-brand { display: flex; flex-direction: column; gap: 6px; }
.wd-footer-brand .wd-brand-name { display: block; font-size: 14px; }
.wd-footer-brand .copyright { color: var(--wd-text-faint); font-size: 12px; }
.wd-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.wd-footer-links a { transition: color .15s ease; }
.wd-footer-links a:hover { color: var(--wd-gold); }
.wd .we-accept { display: flex; gap: 8px; list-style: none; opacity: .7; }
.wd .we-accept img { height: 20px; width: auto; }

/* ==========================================================================
   Storefront: home header, search, chips, steps, card + buy box polish
   ========================================================================== */
.wd-shop-hero { padding: 48px 0 8px; }
.wd-shop-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
}
.wd-shop-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.wd-shop-title {
  margin: 0;
  font: 700 clamp(28px, 4.2vw, 48px)/1 var(--wd-display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 22ch;
}
.wd-shop-sub { max-width: 560px; color: var(--wd-text-dim); font-size: 15px; line-height: 1.6; }

.wd-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
}
.wd-search svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--wd-text-faint);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.wd .wd-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 10px;
  background: var(--wd-input-bg);
  color: var(--wd-text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wd .wd-search input:focus { border-color: var(--wd-gold-border); box-shadow: 0 0 0 3px var(--wd-gold-tint); }
.wd-search:focus-within svg { stroke: var(--wd-gold); }

.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-chip {
  padding: 7px 12px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 999px;
  background: rgb(255 255 255 / 3%);
  color: var(--wd-text-dim);
  font: 700 11px/1 var(--wd-display);
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.wd-chip:hover { color: var(--wd-gold); border-color: var(--wd-gold-border); background: var(--wd-gold-tint); }

.wd-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 16px;
  background: var(--wd-card-fill), var(--wd-surface);
}
.wd-steps-title {
  margin: 0;
  color: var(--wd-text-dim);
  font: 700 11px/1 var(--wd-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.wd-steps ol { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.wd-steps li { display: flex; align-items: center; gap: 14px; }
.wd-step-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wd-gold-border);
  border-radius: 10px;
  background: var(--wd-gold-tint);
  color: var(--wd-gold);
}
.wd-step-icon svg,
.wd-buy-trust svg,
.wd-cart-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wd-steps li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wd-steps strong { font: 700 13px/1.3 var(--wd-display); color: var(--wd-text); }
.wd-steps li div span { color: var(--wd-text-faint); font-size: 12px; }

@media (width <= 960px) {
  .wd-shop-hero-inner { grid-template-columns: 1fr; }
  .wd-steps ol { flex-direction: row; flex-wrap: wrap; }
  .wd-steps li { flex: 1 1 200px; }
}
@media (width <= 600px) {
  .wd-shop-hero { padding-top: 28px; }
  .wd-steps { padding: 16px; }
}

/* Products section header */
.wd-section-products { padding-top: 40px; }
.wd-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.wd-total {
  color: var(--wd-text-faint);
  font: 700 11px/1 var(--wd-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wd-empty {
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed var(--wd-border-mid);
  border-radius: 14px;
  color: var(--wd-text-dim);
  text-align: center;
}
.wd-cat-section { scroll-margin-top: 90px; }
.wd .store-product[hidden],
.wd-cat-section[hidden] { display: none !important; }

/* Product card polish */
.wd .store-product.wd-product:hover { box-shadow: 0 14px 32px rgb(0 0 0 / 45%); }
.wd .wd-product-media { overflow: hidden; }
.wd .wd-product-media .image { transition: transform .35s ease; }
.wd .store-product.wd-product:hover .wd-product-media .image { transform: scale(1.04); }
.wd-badge-sale { box-shadow: 0 4px 14px rgb(230 40 55 / 40%); font-size: 11px; }
.wd .store-product.wd-product .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.wd .store-product.wd-product .price { font-size: 20px; letter-spacing: -0.02em; }
.wd .store-product .price strong { font: inherit; }
.wd .store-product .actions .add.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wd .store-product .actions .add.btn-primary::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Header basket button */
.wd .open-basket.wd-btn { gap: 8px; }

/* Card media: whole image visible (contain) over a blurred copy of itself */
.wd .wd-product-media { isolation: isolate; background: var(--wd-bg-deep); }
.wd .wd-product-media::before,
.wd .wd-media-frame::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  background: var(--wd-img, none) center / cover no-repeat;
  filter: blur(22px) brightness(.45) saturate(1.2);
}
.wd .wd-product-media .image {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.wd .wd-product-media .image-default { aspect-ratio: 4 / 3; }
.wd .wd-product-media .wd-badge { z-index: 2; }

/* Product page + popup: media | buy box on top, description full width below */
.wd .store-product-popup-content { max-width: 1120px; }
@media (width > 760px) {
  .wd .store-product-popup-content:has(> .wd-product-full-media),
  .wd .store-product-full.wd-product-full {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    gap: 28px;
    align-items: start;
  }
}
.wd .wd-product-full-descr {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--wd-border);
}
.wd .wd-media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--wd-border);
  border-radius: 12px;
  background: var(--wd-bg-deep);
}
.wd .wd-product-full-media .wd-media-frame .image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
.wd .wd-product-full-media .image-default { aspect-ratio: 16 / 9; }
.wd .store-product-full .price { font-size: 30px; letter-spacing: -0.03em; }
.wd .store-product-full .price .discount { font-size: 15px; font-weight: 400; color: var(--wd-text-faint); margin-right: 8px; }
.wd .store-product-full .actions .wide { flex: 1 1 100%; }
.wd .store-product-full .actions .half { flex: 1 1 calc(50% - 5px); }
.wd-pill-sale { border-color: rgb(230 40 55 / 45%); background: rgb(230 40 55 / 12%); color: #ff6b74; align-self: flex-start; }

.wd-buy-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--wd-text-dim);
  font-size: 12px;
}
.wd-buy-trust li { display: inline-flex; align-items: center; gap: 6px; }
.wd-buy-trust svg { width: 15px; height: 15px; color: var(--wd-gold); }
.wd-buy-trust a:hover { color: var(--wd-gold-soft); }

/* ---------- Cookie / analytics consent ---------- */
.wd .wd-consent {
  position: fixed;
  z-index: 1000;
  left: 20px;
  bottom: 20px;
  width: min(400px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--wd-border-mid);
  border-radius: 14px;
  background: var(--wd-surface-elev);
  box-shadow: 0 20px 50px rgb(0 0 0 / 55%);
  color: var(--color-text, #f2efe9);
  font-size: 13px;
  line-height: 1.5;
  animation: wd-consent-in .35s ease-out both;
}
.wd .wd-consent-icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(217 164 65 / 14%);
  color: var(--wd-gold, #d9a441);
}
.wd .wd-consent-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wd .wd-consent-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.wd .wd-consent-text { margin: 0; opacity: .75; }
.wd .wd-consent-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.wd .wd-consent-actions button {
  flex: 1;
  height: 38px;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
@keyframes wd-consent-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 600px) {
  .wd .wd-consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .wd .wd-consent { animation: none; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wd *, .wd *::before, .wd *::after { animation: none !important; transition: none !important; }
}
