/* =========================================================
   QOPSport Theme – Light (White+Gold) default, .dark = Black+Gold
   RTL-first with logical properties
   ========================================================= */

:root {
  --gold: #c9a961;
  --gold-light: #d9bd7d;
  --gold-dark: #a8893f;
  --danger: #ef4444;
  --success: #10b981;

  /* Light theme */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --subtle: #9a9a9a;
  --border: #e5e5e5;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  --gold-grad: linear-gradient(135deg, var(--gold-light), var(--gold-dark));

  color-scheme: light;
}

.dark {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #171717;
  --text: #ffffff;
  --muted: #a3a3a3;
  --subtle: #737373;
  --border: #262626;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Inter, system-ui, sans-serif;
  line-height: 1.75;
  font-size: 15px;
  transition: background-color .25s, color .25s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 .5em; }

.qs-container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 1024px) { .qs-container { padding-inline: 2rem; } }

.qs-gold-text { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.qs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 12px; border: 0; font-weight: 700; font-size: .9rem;
  transition: all .2s ease; white-space: nowrap;
}
.qs-btn--gold { background: var(--gold-grad); color: #0a0a0a; box-shadow: 0 4px 20px rgba(201,169,97,.3); }
.qs-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(201,169,97,.45); }
.qs-btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.qs-btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.qs-btn--block { width: 100%; }
.qs-btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }

.qs-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px; border: 0; background: transparent; color: var(--text);
  transition: background .2s, color .2s; position: relative;
}
.qs-icon-btn:hover { background: var(--surface-2); color: var(--gold); }

/* ---------- Header ---------- */
.qs-header { z-index: 60; }
.qs-header.is-sticky { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.qs-announcement { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); color: #0a0a0a; }
.qs-announcement__inner { text-align: center; padding-block: .35rem; font-size: .72rem; font-weight: 700; }

.qs-header__main { background: var(--bg); }
.qs-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }

.qs-logo { display: flex; align-items: center; gap: .6rem; }
.qs-logo img { max-height: 40px; width: auto; }
.qs-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.qs-logo__text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.qs-logo__text small { font-size: .55rem; letter-spacing: .22em; color: var(--gold); font-weight: 700; }

/* Nav */
.qs-nav { display: none; list-style: none; margin: 0; padding: 0; align-items: stretch; height: 72px; gap: .25rem; }
@media (min-width: 1100px) { .qs-nav { display: flex; } }
.qs-nav > li { display: flex; align-items: stretch; }
.qs-nav > li > a {
  display: flex; align-items: center; gap: .3rem; padding-inline: .9rem; font-size: .9rem; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.qs-nav > li > a:hover { color: var(--gold); }
.qs-caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-inline-start: .2rem; }

/* Mega menu */
.qs-mega-parent { position: static; }
.qs-mega {
  position: absolute; inset-inline: 0; top: 100%; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.qs-mega-parent:hover > .qs-mega,
.qs-mega-parent:focus-within > .qs-mega { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.qs-mega__inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.qs-mega__cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.qs-mega__col { padding: 1.5rem; border-inline-end: 1px solid var(--border); }
.qs-mega__col:last-child { border-inline-end: 0; }
.qs-mega__col h4 { font-size: .68rem; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-bottom: .9rem; }
.qs-mega__col ul { list-style: none; margin: 0; padding: 0; }
.qs-mega__col li a { display: block; padding: .45rem .5rem; border-radius: 8px; font-size: .85rem; color: var(--muted); transition: all .15s; }
.qs-mega__col li a:hover { color: var(--gold); background: var(--surface-2); }
.qs-mega__promo { padding: 1rem; }
.qs-mega-promo { position: relative; display: block; height: 100%; min-height: 200px; border-radius: 12px; overflow: hidden; }
.qs-mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qs-mega-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.qs-mega-promo__label { position: absolute; bottom: 1rem; inset-inline-start: 1rem; color: #fff; font-weight: 700; z-index: 2; }

/* Header actions */
.qs-header__actions { display: flex; align-items: center; gap: .35rem; }
.qs-cart-btn .qs-cart-count {
  font-size: .62rem; font-weight: 800; background: var(--gold); color: #000;
  min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  position: absolute; top: 0; inset-inline-end: 0; padding-inline: 4px;
}
.qs-icon-btn--mobile { display: inline-flex; }
@media (min-width: 1100px) { .qs-icon-btn--mobile { display: none; } }

/* Theme switcher */
.qs-theme-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.qs-theme-switch button { border: 0; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; transition: all .2s; }
.qs-theme-switch button.is-active { background: var(--gold); color: #000; }
.qs-header__actions .qs-theme-switch { display: none; }
@media (min-width: 1300px) { .qs-header__actions .qs-theme-switch { display: flex; } }

/* ---------- Auth modal (Login/Register popup) ---------- */
.qs-auth-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.qs-auth-modal[hidden] { display: none; }
.qs-auth-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.qs-auth-modal__card {
  position: relative; width: 100%; max-width: 430px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 24px; padding: 2rem 1.75rem 1.5rem;
  overflow: hidden; animation: szFadeUp .3s ease;
}
.qs-auth-modal__gold { position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); }
.qs-auth-modal__close { position: absolute; top: .9rem; inset-inline-end: .9rem; }
.qs-auth-modal__brand { text-align: center; margin-bottom: 1.25rem; }
.qs-auth-modal__brand strong { font-size: 1.4rem; letter-spacing: -.02em; }
.qs-auth-modal__brand small { display: block; font-size: .55rem; letter-spacing: .3em; color: var(--gold); font-weight: 700; }
.qs-auth-stage h2 { font-size: 1.25rem; text-align: center; margin-bottom: .25rem; }
.qs-auth-modal__hint { text-align: center; color: var(--muted); font-size: .82rem; margin: 0 0 1.25rem; }
.qs-field { display: block; margin-bottom: 1rem; }
.qs-field__label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .45rem; }
.qs-field input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 1rem; outline: none; transition: border .2s, box-shadow .2s;
}
.qs-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.15); }
.qs-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.qs-auth-error { color: var(--danger); font-size: .75rem; margin-bottom: .75rem; text-align: center; }
.qs-auth-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .7rem; margin-top: 1rem; }
.qs-auth-secure svg { color: var(--gold); }
.qs-auth-modal__terms { text-align: center; font-size: .65rem; color: var(--subtle); margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.qs-otp-inputs { display: flex; justify-content: center; gap: .5rem; margin: 1.25rem 0; }
.qs-otp-inputs input {
  width: 48px; height: 56px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 1.4rem; font-weight: 800; text-align: center; outline: none;
  transition: all .15s;
}
.qs-otp-inputs input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.15); }

.qs-auth-resend { text-align: center; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.qs-auth-resend__timer { color: var(--gold); font-weight: 700; }
.qs-auth-resend__btn { background: none; border: 0; color: var(--gold); font-weight: 700; font-size: .8rem; text-decoration: underline; }
.qs-auth-resend__btn[disabled] { display: none; }
.qs-auth-back { display: block; margin: .75rem auto 0; background: none; border: 0; color: var(--muted); font-size: .75rem; }
.qs-auth-back:hover { color: var(--gold); }

@keyframes szFadeUp { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Sale countdown (sporty) ---------- */
.qs-sale-countdown {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--gold); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.qs-sale-countdown::before {
  content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 14px, var(--gold) 14px 15px);
}
.qs-sale-countdown__label { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; position: relative; }
.qs-sale-countdown__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--gold); color: #0a0a0a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qs-sale-countdown__title strong { display: block; font-size: 1rem; }
.qs-sale-countdown__title small { font-size: .55rem; letter-spacing: .3em; color: var(--gold); font-weight: 800; }
.qs-sale-countdown__discount {
  margin-inline-start: auto; background: var(--danger); color: #fff; font-weight: 800; font-size: .85rem;
  padding: .3rem .8rem; border-radius: 999px; transform: rotate(-2deg);
}
.qs-sale-countdown__digits { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.1rem; position: relative; }
.qs-sale-u { display: flex; flex-direction: column; align-items: center; }
.qs-sale-v {
  background: #050505; color: var(--gold); font-family: 'Courier New', monospace; font-weight: 800;
  font-size: 2rem; line-height: 1; padding: .55rem .85rem; border-radius: 10px;
  border: 1px solid rgba(201,169,97,.45); box-shadow: inset 0 0 20px rgba(0,0,0,.6), 0 4px 14px rgba(0,0,0,.3);
  min-width: 72px; text-align: center; font-variant-numeric: tabular-nums;
}
.qs-sale-l { font-size: .62rem; font-weight: 700; color: var(--muted); margin-top: .35rem; }
.qs-sale-sep { font-size: 1.6rem; font-weight: 800; color: var(--gold); padding-bottom: 1.2rem; animation: szPulse 1s infinite; }
@keyframes szPulse { 50% { opacity: .3; } }
.qs-sale-countdown__foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: .9rem;
  border-top: 1px dashed rgba(201,169,97,.35); font-size: .72rem; color: var(--muted); position: relative;
}
.qs-sale-countdown__ticker { font-size: .55rem; letter-spacing: .22em; color: var(--gold); font-weight: 800; }

/* ---------- Hero ---------- */
.qs-hero { position: relative; overflow: hidden; background: #0a0a0a; padding: 6.5rem 0; min-height: 480px; display: flex; align-items: center; }
.qs-hero__media { position: absolute; inset: 0; }
.qs-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.qs-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 75%, transparent 100%);
}
.qs-hero__content { position: relative; z-index: 2; max-width: 620px; color: #fff; }
.qs-hero .qs-hero__desc { color: rgba(255,255,255,.82); }
.qs-hero .qs-eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.qs-eyebrow { display: inline-block; font-size: .62rem; letter-spacing: .3em; color: var(--gold); font-weight: 800; margin-bottom: 1rem; }
.qs-hero__title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; }
.qs-hero__desc { color: var(--muted); font-size: 1.05rem; margin: 1.25rem 0 2rem; max-width: 480px; }

/* ---------- Sections ---------- */
.qs-section { padding: 3rem 0; }
.qs-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.qs-section__title { font-size: 1.6rem; margin: 0; }
.qs-section__sub { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.qs-view-all { color: var(--gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* Categories */
.qs-cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.qs-cat-card { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; display: block; background: var(--surface-2); }
.qs-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qs-cat-card:hover img { transform: scale(1.08); }
.qs-cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
.qs-cat-card__label { position: absolute; bottom: 1rem; inset-inline-start: 1rem; color: #fff; font-weight: 700; z-index: 2; }

/* Product grid + card */
.qs-grid--products, .woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(var(--qs-shop-cols, 4), 1fr); gap: 1.25rem;
  margin: 0 !important; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; list-style: none; }
@media (max-width: 1024px) { .qs-grid--products, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .qs-grid--products, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }

.qs-product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  position: relative; transition: all .3s ease;
}
.qs-product-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.qs-product-card__badges { position: absolute; top: .75rem; inset-inline-end: .75rem; display: flex; flex-direction: column; gap: .35rem; z-index: 3; }
.qs-badge { font-size: .62rem; font-weight: 800; padding: .22rem .55rem; border-radius: 999px; }
.qs-badge--sale { background: var(--danger); color: #fff; }
.qs-badge--gold { background: var(--gold); color: #000; }
.qs-product-card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.qs-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qs-product-card:hover .qs-product-card__media img { transform: scale(1.06); }
.qs-product-card__actions {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: .5rem; padding: .75rem;
  transform: translateY(100%); transition: transform .3s; background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}
.qs-product-card:hover .qs-product-card__actions { transform: none; }
.qs-card-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  border: 0; border-radius: 8px; font-size: .7rem; font-weight: 700; padding: .55rem .8rem;
  background: var(--gold); color: #0a0a0a; flex: 1;
}
.qs-card-btn--quick { flex: 0 0 auto; background: rgba(255,255,255,.92); }
.qs-product-card__body { padding: .9rem 1rem 1.1rem; }
.qs-product-card__brand { font-size: .62rem; letter-spacing: .12em; color: var(--gold); font-weight: 800; text-transform: uppercase; }
.qs-product-card__title { font-size: .88rem; margin: .35rem 0 .5rem; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qs-product-card__title a:hover { color: var(--gold); }
.qs-product-card__price { font-weight: 800; font-size: .95rem; }
.qs-product-card__price del { color: var(--subtle); font-size: .8rem; font-weight: 400; margin-inline-end: .4rem; }
.qs-product-card__price ins { text-decoration: none; color: var(--gold); }

/* WooCommerce shared chrome */
.woocommerce .woocommerce-breadcrumb { display: none; }
.qs-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .72rem; color: var(--subtle); padding: .85rem 0; margin: 0; }
.qs-breadcrumb li + li::before { content: '‹'; margin-inline-end: .5rem; color: var(--subtle); }
.qs-breadcrumb li:last-child { color: var(--text); font-weight: 600; }
.woocommerce div.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
@media (max-width: 768px) { .woocommerce div.product { padding: 1rem; } }

/* Brands strip */
.qs-brands-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; }
.qs-brand {
  display: flex; align-items: center; justify-content: center; height: 64px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; font-size: .95rem; color: var(--muted); transition: all .2s;
}
.qs-brand:hover { border-color: var(--gold); color: var(--gold); }

/* Promo banners */
.qs-promo-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .qs-promo-grid { grid-template-columns: 1fr 1fr; } }
.qs-promo {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  background: linear-gradient(120deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .75rem;
}
.qs-promo--img { background-size: cover; background-position: center; min-height: 300px; }
.qs-promo__overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to left, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
}
.qs-promo--img > *:not(.qs-promo__overlay) { position: relative; z-index: 2; color: #fff; }
.qs-promo__title { font-size: 1.7rem; margin: 0; }

/* Services */
.qs-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.qs-service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.qs-service h3 { font-size: .95rem; margin-bottom: .35rem; }
.qs-service p { font-size: .78rem; color: var(--muted); margin: 0; }

/* Blog */
.qs-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.qs-post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.qs-post-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.qs-post-card__thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.qs-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qs-post-card:hover .qs-post-card__thumb img { transform: scale(1.05); }
.qs-post-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.qs-post-card__meta { font-size: .68rem; color: var(--subtle); }
.qs-post-card__title { font-size: 1rem; margin: .5rem 0; }
.qs-post-card__title a:hover { color: var(--gold); }
.qs-post-card__excerpt { font-size: .82rem; color: var(--muted); margin: 0 0 .75rem; }
.qs-post-card__more { font-size: .78rem; color: var(--gold); font-weight: 700; }

/* Pages */
.qs-page { padding: 2rem 0 4rem; }
.qs-page-header { margin-bottom: 2rem; }
.qs-page-header > h1, .qs-page-header h1 { font-size: 2rem; margin-bottom: .35rem; }
.qs-page-content .qs-content, .qs-message { line-height: 2; }
.qs-content { color: var(--muted); font-size: .98rem; }
.qs-content a { color: var(--gold); }

/* Footer */
.qs-footer { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 4rem; }
.qs-footer-newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.qs-footer-newsletter__form { display: flex; gap: .5rem; width: 100%; max-width: 420px; }
.qs-footer-newsletter__form input { flex: 1; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); outline: none; }
.qs-footer-newsletter__form input:focus { border-color: var(--gold); }
.qs-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
@media (max-width: 768px) { .qs-footer__cols { grid-template-columns: 1fr; gap: 1.5rem; } }
.qs-footer__col p { color: var(--muted); font-size: .85rem; line-height: 2; }
.qs-footer-menu { list-style: none; margin: 0; padding: 0; }
.qs-footer-menu li a { display: inline-block; padding: .3rem 0; color: var(--muted); font-size: .85rem; }
.qs-footer-menu li a:hover { color: var(--gold); }
.qs-widget__title { font-size: .95rem; margin-bottom: 1rem; }
.qs-footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.qs-footer-social a { padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .72rem; color: var(--muted); }
.qs-footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.qs-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 0; border-top: 1px solid var(--border); font-size: .72rem; color: var(--subtle); }
.qs-footer__made { letter-spacing: .05em; }

/* Empty / 404 */
.qs-empty, .qs-404__inner { text-align: center; padding: 4rem 1rem; }
.qs-404__code { font-size: clamp(4rem, 15vw, 8rem); font-weight: 900; line-height: 1; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.qs-404__inner h1 { font-size: 1.5rem; }
.qs-404__inner p { color: var(--muted); max-width: 420px; margin: 1rem auto; }
.qs-404__actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.qs-empty p { color: var(--muted); }

/* Toast */
.qs-toast-wrap { position: fixed; bottom: 1.25rem; inset-inline-start: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.qs-toast { background: var(--surface); border: 1px solid var(--gold); color: var(--text); border-radius: 12px; padding: .85rem 1.25rem; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); animation: szFadeUp .25s ease; max-width: 320px; }
.qs-toast--error { border-color: var(--danger); }

/* Quickview */
.qs-quickview { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.qs-quickview[hidden] { display: none; }
.qs-quickview__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.qs-quickview__card { position: relative; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); max-width: 760px; width: 100%; max-height: 85vh; overflow: auto; }
.qs-quickview__close { position: absolute; top: .75rem; inset-inline-end: .75rem; z-index: 2; background: var(--surface-2); }
.qs-quickview__content { padding: 1.75rem; }
.qs-quickview__skeleton { height: 300px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: szSkel 1.4s infinite; }
@keyframes szSkel { to { background-position: -200% 0; } }

/* Accessibility */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: .5rem; inset-inline-start: .5rem; background: var(--gold); color: #000; z-index: 999; padding: .5rem 1rem; border-radius: 8px; width: auto; height: auto; clip: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* WooCommerce element polish */
.woocommerce .quantity input.qty { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.woocommerce button.button, .woocommerce a.button { background: var(--gold-grad); color: #0a0a0a; border: 0; border-radius: 12px; font-weight: 700; }
.woocommerce button.button:hover, .woocommerce a.button:hover { filter: brightness(1.08); }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.woocommerce table.shop_table { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 12px;
}
.woocommerce-info::before, .woocommerce-message::before { color: var(--gold); }

/* ======================================================
 * Product page (single-product override — modern demo layout)
 * ===================================================== */
.qs-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
}
@media (min-width: 900px) {
  .qs-product { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0; }
}

/* Gallery */
.qs-product__main-image {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--surface-2);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
}
.qs-product__main-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.qs-product__main-image:hover img { transform: scale(1.06); }
.qs-product__badges { position: absolute; top: 1rem; inset-inline-end: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 2; }
.qs-product__thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: .6rem; margin-top: .9rem; }
.qs-thumb {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 0; overflow: hidden; background: var(--surface-2); cursor: pointer;
  aspect-ratio: 1/1; transition: border-color .2s, transform .2s;
}
.qs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qs-thumb:hover { border-color: var(--gold, #c9a961); }
.qs-thumb.is-active { border-color: var(--gold, #c9a961); transform: scale(.98); }

/* Info */
.qs-product__info { display: flex; flex-direction: column; gap: 1rem; }
.qs-product__brand-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .8rem; }
.qs-sku { color: var(--subtle); font-family: monospace; }
.qs-stars { color: var(--gold, #c9a961); margin-inline-start: auto; }
.qs-product__title { font-size: 1.6rem; line-height: 1.3; margin: 0; }
.qs-product__excerpt { color: var(--muted); font-size: .95rem; line-height: 1.8; margin: 0; }
.qs-product__price .price { font-size: 2rem; font-weight: 800; color: var(--gold, #c9a961); }
.qs-product__price .price del { color: var(--subtle); font-size: 1rem; font-weight: 500; margin-inline-end: .5rem; }
.qs-product__price .price ins { text-decoration: none; }
.qs-stock { font-size: .8rem; font-weight: 700; margin-top: .35rem; }
.qs-stock--in { color: var(--success, #10b981); }
.qs-stock--out { color: var(--danger, #ef4444); }

/* Quantity + Add to cart form tweaks */
.qs-product .cart { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.qs-product .quantity { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.qs-product .quantity .qty {
  width: 52px; text-align: center; background: var(--surface-2); color: var(--text);
  border: 0; padding: .7rem .2rem; font-weight: 700;
}
.qs-product .cart .button { background: var(--gold-grad, linear-gradient(135deg,#d9bd7d,#a8893f)); color: #0a0a0a; padding: .9rem 1.6rem; border-radius: 12px; font-weight: 800; border: 0; font-size: .95rem; }
.qs-product .single_add_to_cart_button { min-width: 200px; }

.qs-product__trust {
  margin-top: .25rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
  padding-top: 1rem; border-top: 1px dashed var(--border); font-size: .78rem; color: var(--muted);
}
.qs-product__trust > div { display: flex; align-items: center; gap: .4rem; }
.qs-product__trust svg { color: var(--gold, #c9a961); flex: none; }

/* Tabs */
.qs-product__tabs {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
  margin-top: 2rem;
}
.woocommerce div.product,
.qs-product__tabs .woocommerce-tabs.wc-tabs-wrapper { background: transparent; padding: 0; border: 0; }
.qs-product__tabs ul.tabs { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; border: 0; margin-bottom: 1rem; }
.qs-product__tabs ul.tabs li a {
  display: inline-block; padding: .6rem 1.2rem; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font-weight: 700; font-size: .85rem; text-decoration: none;
}
.qs-product__tabs ul.tabs li.active a { background: var(--gold-grad); color: #0a0a0a; }
.qs-product__tabs .panel h2 { font-size: 1.1rem; margin-top: 0; }
