/* ============================================================
   VESTI11 — Design tokens
   Palette: near-black pitch (#08090a) + brushed gold (#c9a348),
   the colour of a trophy plate, with a jersey-number motif
   ("11") as the page's signature element.
   ============================================================ */

:root {
  --bg: #08090a;
  --bg-soft: #0b0c0c;
  --surface: #111312;
  --surface-2: #161815;
  --border: #26281f;
  --border-soft: #1a1c18;
  --border-strong: #3a3c2f;

  --text: #f5f4ee;
  --text-dim: #9a9a91;
  --text-faint: #5c5d55;

  --gold: #c9a348;
  --gold-bright: #e8c877;
  --gold-deep: #8a6f2f;
  --gold-wash: rgba(201, 163, 72, 0.1);

  --danger: #d9776f;
  --danger-wash: rgba(217, 119, 111, 0.12);
  --success: #7bc79a;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-full: 999px;

  --shadow-card: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 30px 80px -20px rgba(0, 0, 0, 0.65);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bebas Neue", "Anton", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

.coupon-client-box{padding:13px 0;border-bottom:1px solid var(--border);margin-bottom:10px}.coupon-client-box label{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:7px}.coupon-client-box>div{display:flex;gap:8px}.coupon-client-box input{min-width:0;flex:1;text-transform:uppercase}.coupon-client-box button{padding:10px 13px}.coupon-client-box small{display:block;min-height:17px;margin-top:6px;color:var(--muted)}.coupon-client-box small.success{color:#52d68a}.coupon-client-box small.error{color:#ff727c}.discount-total-line{color:#52d68a}.discount-total-line strong{color:#52d68a}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: #101010;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font-family: inherit;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--gold);
  color: #111;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  z-index: 200;
  transition: top 0.16s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  background: rgba(8, 9, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 40;
}

.brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
}

.brand span {
  color: var(--gold);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-btn,
.cart-btn,
.fav-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: var(--radius-s);
  padding: 9px 13px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn:hover,
.cart-btn:hover,
.fav-toggle:hover {
  border-color: var(--gold-deep);
  color: var(--text);
}

.fav-toggle.active {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.cart-btn span,
.fav-toggle span {
  background: var(--gold);
  color: #111;
  border-radius: var(--radius-full);
  padding: 2px 7px;
  margin-left: 2px;
  font-size: 11px;
  font-weight: 700;
  min-width: 17px;
  text-align: center;
}

.fav-toggle span {
  background: var(--surface-2);
  color: var(--gold-bright);
  border: 1px solid var(--border);
}

.fav-toggle.active span {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

/* ---------- Layout ---------- */

.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px 60px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 74px 0 10px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "11";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--font-display);
  font-size: clamp(220px, 34vw, 460px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 2.2px;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.94;
  letter-spacing: 0.5px;
  margin: 0;
}

.hero h1 span {
  color: var(--gold);
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin: 16px auto 30px;
  max-width: 480px;
  line-height: 1.6;
}

.search-wrap {
  max-width: 640px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius-full);
  padding: 0 18px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-wash);
}

.search-wrap span {
  color: var(--text-faint);
  font-size: 15px;
}

.search-wrap input {
  height: 48px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: var(--text-faint);
}

.filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 6px;
  padding-bottom: 4px;
}

.filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 8px 15px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.16s var(--ease);
  white-space: nowrap;
}

.filter:hover {
  border-color: var(--gold-deep);
  color: var(--text);
}

.filter.active {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
  font-weight: 700;
}

/* ---------- Section heading ---------- */

.catalog-section {
  margin-top: 46px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.section-heading h2,
.request-box h2,
.how-it-works h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.4px;
}

.heading-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.muted {
  color: var(--text-faint);
  font-size: 12px;
}

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-s);
  padding: 8px 10px;
  font-size: 11px;
  cursor: pointer;
}

.sort-select:focus-visible {
  color: var(--text);
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.product-image-wrap {
  height: 300px;
  background: var(--bg-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.055);
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: var(--gold);
  color: #101010;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 5px 8px;
  border-radius: 5px;
}

.fav-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 10, 0.55);
  backdrop-filter: blur(6px);
  color: #f0f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}

.fav-btn:hover {
  transform: scale(1.08);
}

.fav-btn.active {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body small {
  font-size: 9.5px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.product-body h3 {
  font-size: 15px;
  margin: 6px 0 8px;
  font-weight: 600;
  line-height: 1.3;
}

.product-body strong {
  font-size: 15px;
  letter-spacing: -0.2px;
}

.mini-sizes {
  display: flex;
  gap: 4px;
  margin: 11px 0;
  flex-wrap: wrap;
}

.mini-sizes span {
  font-size: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--text-dim);
}

.primary-btn {
  border: 0;
  background: var(--gold);
  color: #111;
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.1s var(--ease);
}

.primary-btn:hover {
  background: var(--gold-bright);
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-body .primary-btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- Skeleton loading ---------- */

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.skeleton-block {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-card .skeleton-block:first-child {
  height: 300px;
}

.skeleton-lines {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.skeleton-lines .skeleton-block {
  height: 10px;
  border-radius: 4px;
}

.skeleton-lines .skeleton-block:nth-child(1) {
  width: 40%;
}
.skeleton-lines .skeleton-block:nth-child(2) {
  width: 80%;
  height: 14px;
}
.skeleton-lines .skeleton-block:nth-child(3) {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- Request box ---------- */

.request-box {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  padding: 34px 36px;
  margin: 56px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #12140f 0%, #0a0b0a 60%);
  overflow: hidden;
}

.request-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--gold-wash), transparent 55%);
  pointer-events: none;
}

.request-box h2 {
  font-size: 26px;
}

.request-box p:not(.eyebrow) {
  color: var(--text-dim);
  font-size: 12.5px;
  margin: 8px 0 0;
  max-width: 420px;
}

.outline-btn {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-s);
  padding: 11px 17px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.16s var(--ease);
}

.outline-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ---------- How it works ---------- */

.how-it-works {
  border-top: 1px solid var(--border-soft);
  padding-top: 30px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.steps article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding-top: 6px;
}

.steps b {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 1px;
}

.steps strong {
  font-size: 12.5px;
  font-weight: 700;
}

.steps span {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 44px 20px 36px;
  color: var(--text-faint);
}

footer .brand {
  font-size: 24px;
}

footer p {
  font-size: 9.5px;
  color: var(--gold-deep);
  letter-spacing: 1.4px;
  margin: 12px 0 0;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 20px 0 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

footer small {
  font-size: 10px;
  color: var(--text-faint);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--text);
  color: #111;
  padding: 13px 18px;
  border-radius: var(--radius-s);
  font-size: 12.5px;
  font-weight: 700;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s var(--ease);
  z-index: 100;
  max-width: min(320px, calc(100vw - 40px));
  box-shadow: var(--shadow-pop);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* ---------- Drawer / Modal shared ---------- */

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.72);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  animation: fadeIn 0.18s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cart-drawer {
  margin-left: auto;
  width: min(440px, 100%);
  height: 100%;
  background: var(--bg-soft);
  border-left: 1px solid var(--border-strong);
  padding: 22px;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.28s var(--ease);
}

@keyframes slideIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.4px;
}

.close-btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.16s var(--ease);
  position: absolute;
  top: 3px;
  left: 3px;
}

.close-btn:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow: auto;
  margin: 20px 0;
}

.cart-item {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item img {
  width: 70px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-soft);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  flex: 1;
}

.cart-item-info span {
  color: var(--text-dim);
}

.quantity {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
}

.quantity button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.16s var(--ease);
}

.quantity button:hover {
  border-color: var(--gold-deep);
}

.quantity .remove {
  margin-left: auto;
  color: var(--danger);
  font-size: 10px;
  border: none;
  background: none;
  width: auto;
  height: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 13px;
}

.total-line strong {
  font-size: 20px;
  color: var(--gold-bright);
}

.text-btn {
  border: 0;
  background: none;
  color: var(--text-faint);
  display: block;
  margin: 12px auto 0;
  cursor: pointer;
  font-size: 12px;
  transition: color 0.16s var(--ease);
}

.text-btn:hover {
  color: var(--danger);
}

.empty-cart {
  text-align: center;
  color: var(--text-faint);
  margin-top: 90px;
}

.empty-cart div {
  font-size: 34px;
  margin-bottom: 8px;
}

/* ---------- Product modal ---------- */

.modal-backdrop {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-pop);
  animation: popIn 0.24s var(--ease);
  margin: 250px;
  height: 500px;
}

@keyframes popIn {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

body.modal-open {
  overflow: hidden;
  height: 100vh;
}

.product-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 30px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h2 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.3px;
  line-height: 1.05;
}

.modal-info .muted {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.modal-price {
  font-size: 24px;
  margin: 18px 0;
  color: var(--gold-bright);
  letter-spacing: -0.3px;
}

.size-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.size-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.16s var(--ease);
}

.size-btn:hover {
  border-color: var(--gold-deep);
  color: var(--text);
}

.size-btn.active {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal-actions .fav-btn-inline {
  position: static;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  flex-shrink: 0;
}

.modal-actions .fav-btn-inline.active {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.modal-actions .primary-btn {
  flex: 1;
}

/* ---------- Loading / empty states ---------- */

.loading,
.empty-state {
  grid-column: 1/-1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: var(--radius-m);
  font-size: 13px;
}

.empty-state strong {
  display: block;
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---------- Gallery ---------- */

.gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.product-modal .gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  border-radius: 0;
  transition: opacity 0.18s ease;
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.16s var(--ease);
}

.gallery-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.form-help {
  display: block;
  color: var(--text-faint);
  font-size: 9px;
  margin-top: -8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 16px 45px;
  }

  .topbar {
    padding: 0 16px;
  }

  .hero {
    padding: 50px 0 6px;
  }

  .hero::before {
    font-size: 200px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .product-image-wrap {
    height: 220px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .request-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .product-modal {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    aspect-ratio: 4/3;
  }

  .product-body {
    padding: 10px;
  }

  .product-body h3 {
    font-size: 13px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .modal {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-pop);
  animation: popIn 0.24s var(--ease);
  margin: 10%;
}
}

/* ---------- Checkout / customer data ---------- */
.checkout-modal {
  width: min(640px, 100%);
  height: auto;
  max-height: min(90vh, 760px);
  margin: 0;
  padding: 30px;
  overflow-y: auto;
}

.checkout-modal h2 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
}

.checkout-intro {
  line-height: 1.55;
  margin-bottom: 22px;
}

.checkout-modal form {
  display: grid;
  gap: 15px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-modal label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}

.checkout-modal input,
.checkout-modal textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-s);
  padding: 12px;
  outline: none;
  font: inherit;
  resize: vertical;
}

.checkout-modal input:focus,
.checkout-modal textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.optional {
  color: var(--text-faint);
  font-weight: 500;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-s);
}

.checkout-summary span {
  color: var(--text-faint);
  font-size: 11px;
}

.checkout-summary strong {
  font-size: 21px;
  color: var(--gold-bright);
}

.checkout-actions {
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-modal { padding: 24px 18px; }
}

/* Checkout / pagamento */
.checkout-modal, .payment-modal { max-width: 720px; }
#siteFields, #whatsappFields { display: grid; gap: 14px; }
.settings-divider { display: grid; gap: 3px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.settings-divider strong { font-size: 14px; }
.settings-divider span { color: var(--text-dim); font-size: 12px; }
.payment-total { display:flex; justify-content:space-between; align-items:center; padding:14px 0; margin:10px 0 18px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.payment-countdown{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:11px 13px;border:1px solid var(--primary);border-radius:10px;background:rgba(102,140,72,.1)}
.payment-countdown span{font-size:12px;color:var(--text-dim)}.payment-countdown strong{font-variant-numeric:tabular-nums;font-size:20px;color:var(--primary)}
.payment-countdown.expired{border-color:#ef4444;background:rgba(239,68,68,.1)}.payment-countdown.expired strong{color:#ef4444}
.pix-box { display:grid; grid-template-columns: 220px 1fr; gap:18px; align-items:center; }
.pix-box img { width:220px; height:220px; border-radius:14px; background:#fff; padding:8px; object-fit:contain; }
.pix-info { display:grid; gap:10px; min-width:0; }
.pix-info strong { word-break:break-all; }
#pixPayload { width:100%; resize:vertical; }
.payment-note { margin:14px 0; }
@media (max-width: 680px) { .pix-box { grid-template-columns:1fr; } .pix-box img { justify-self:center; } }

.payment-status-ok{color:#16803c;font-weight:700}.payment-status-wait{color:#7a5a00;font-weight:600}.payment-status-error{color:#b42318;font-weight:600}

.size-btn:disabled,.size-btn.out-of-stock{opacity:.35;cursor:not-allowed;text-decoration:line-through}
.mini-sizes span.out-of-stock{opacity:.38;text-decoration:line-through}
.stock-note{font-size:12px;color:#aaa;margin-top:6px}


/* ============================================================
   VESTI11 — preços promocionais + responsividade ampla
   ============================================================ */
.price-group{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.price-group.compact{gap:5px}
.price-old{font-size:.72em;color:var(--text-faint);text-decoration:line-through;font-weight:500}
.price-current{color:var(--gold-bright);font-weight:800}
.discount-chip,.discount-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#1e7a43;color:#f4fff8;font-size:10px;font-weight:900;letter-spacing:.2px;line-height:1;padding:5px 7px}
.discount-badge{position:absolute;left:12px;top:43px;z-index:3;box-shadow:0 5px 14px rgba(0,0,0,.28)}
.product-price{display:block;min-height:24px}
.modal-price .price-group{font-size:1em}

html,body{max-width:100%;overflow-x:hidden}
button,input,select,textarea{max-width:100%}
.container{width:min(100%,1280px);margin-inline:auto}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))}
.product-card{min-width:0}
.product-body{min-width:0}
.product-body h3{overflow-wrap:anywhere}
.modal{max-height:min(92dvh,920px);overflow:auto}
.cart-drawer{max-width:100vw}

@media (min-width:1600px){
  .container{width:min(1440px,calc(100% - 80px))}
  .product-grid{grid-template-columns:repeat(4,1fr);gap:24px}
  .product-image-wrap{height:390px}
}

@media (max-width:1024px){
  .topbar{padding-inline:22px}
  .container{padding-inline:22px}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .product-image-wrap{height:auto;aspect-ratio:3/4}
  .product-modal{width:min(94vw,900px)}
}

@media (max-width:760px){
  .topbar{height:auto;min-height:62px;padding:10px 14px;gap:10px;flex-wrap:wrap}
  .topbar .brand{font-size:23px}
  .topbar-actions{gap:5px;margin-left:auto}
  .icon-btn{width:38px;height:38px}
  .container{padding:0 14px 38px}
  .hero{padding:34px 0 8px}
  .hero h1{font-size:clamp(38px,12vw,64px);line-height:.9}
  .hero-subtitle{font-size:12px;max-width:92%}
  .catalog-toolbar,.section-heading{gap:12px;align-items:stretch;flex-direction:column}
  .search-wrap{width:100%}
  .sort-wrap select{width:100%}
  .category-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px;scrollbar-width:none}
  .category-filters::-webkit-scrollbar{display:none}
  .filter{flex:0 0 auto}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-image-wrap{height:auto;aspect-ratio:3/4}
  .product-body{padding:11px}
  .product-body h3{font-size:13px;line-height:1.25;margin-block:4px 7px}
  .product-body small{font-size:9px}
  .product-price{font-size:13px}
  .price-group.compact{display:grid;grid-template-columns:auto auto;justify-content:start;gap:3px 5px}
  .price-group.compact .price-current{grid-column:1}
  .price-group.compact .discount-chip{grid-column:2;grid-row:2}
  .mini-sizes{gap:4px}
  .mini-sizes span{min-width:25px;padding:4px 5px;font-size:9px}
  .primary-btn{min-height:42px}
  .product-body .primary-btn{font-size:10.5px;padding-inline:8px}
  .badge{left:8px;top:8px;font-size:8px}
  .discount-badge{left:8px;top:36px;font-size:8px}
  .fav-btn{right:8px;top:8px}
  .steps{grid-template-columns:1fr 1fr;gap:12px}
  .request-box{padding:20px}
  .product-modal{display:block;width:100%;max-width:none;min-height:100dvh;max-height:100dvh;border-radius:0;margin:0;overflow:auto}
  .modal-backdrop{align-items:flex-start;padding:0}
  .gallery-stage{aspect-ratio:1/1;max-height:52dvh}
  .modal-info{padding:18px 15px 28px}
  .modal-info h2{font-size:28px}
  .modal-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(8,9,10,.75),var(--bg) 28%);padding-top:18px;padding-bottom:max(8px,env(safe-area-inset-bottom));z-index:4}
  .cart-drawer{width:100%;padding:18px 14px max(14px,env(safe-area-inset-bottom))}
  .cart-item{gap:10px}
  .cart-item img{width:58px;height:72px}
  .checkout-modal,.payment-modal{width:100%;max-width:none;max-height:100dvh;min-height:100dvh;border-radius:0;padding:22px 15px calc(22px + env(safe-area-inset-bottom))}
  .checkout-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .checkout-actions>*{width:100%}
  .toast{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:none;text-align:center}
}

@media (max-width:390px){
  .container{padding-inline:10px}
  .product-grid{gap:7px}
  .product-body{padding:9px 8px}
  .product-body h3{font-size:12px}
  .product-body .primary-btn{font-size:9.5px;min-height:38px}
  .steps{grid-template-columns:1fr}
  .topbar{padding-inline:10px}
}


/* Clique para avançar fotos do produto */
#modalImage[role="button"] { cursor: pointer; user-select: none; -webkit-user-drag: none; }
#modalImage[role="button"]:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -4px; }
.gallery-stage:has(#modalImage[role="button"])::after { content: "Clique na foto para passar"; position:absolute; right:12px; top:12px; padding:7px 10px; border-radius:999px; background:rgba(0,0,0,.58); color:#fff; font-size:10px; pointer-events:none; backdrop-filter:blur(5px); }
@media (max-width:700px){ .gallery-stage:has(#modalImage[role="button"])::after{font-size:9px;right:8px;top:8px;padding:6px 8px;} }


/* Aviso de disputa / baixo estoque no checkout */
.checkout-stock-alert {
  border: 1px solid rgba(255, 174, 0, .55);
  background: linear-gradient(135deg, rgba(255, 174, 0, .13), rgba(255, 70, 70, .08));
  border-radius: var(--radius-s);
  padding: 13px 14px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.checkout-stock-alert strong { color: #ffd36a; }
.checkout-stock-alert-divider { height: 1px; background: rgba(255,255,255,.1); margin: 10px 0; }

/* ============================================================
   Categorias mobile + carrinho flutuante em todas as telas
   ============================================================ */
.floating-cart{
  display:flex;
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  width:58px;
  height:58px;
  border-radius:50%;
  border:1px solid var(--gold-deep);
  background:var(--gold);
  color:#111;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(0,0,0,.42),0 0 0 5px var(--gold-wash);
  z-index:38;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(18px) scale(.92);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.floating-cart svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.floating-cart span{
  position:absolute;
  right:-2px;
  top:-3px;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:999px;
  background:#fff;
  color:#111;
  border:2px solid var(--bg);
  font-size:10px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

.floating-cart.visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
body.modal-open .floating-cart,
body.cart-open .floating-cart{opacity:0;visibility:hidden;pointer-events:none}

@media (max-width:760px){
  .topbar{flex-wrap:nowrap}
  .header-actions{margin-left:auto;gap:6px;flex:0 0 auto}
  .cart-btn{white-space:nowrap}

  /* A lista fica em uma única linha e pode ser arrastada com o dedo. */
  #categoryFilters.filters{
    width:calc(100vw - 28px);
    max-width:100%;
    margin:18px 0 6px;
    padding:2px 1px 8px;
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x;
  }
  #categoryFilters.filters::-webkit-scrollbar{display:none}
  #categoryFilters .filter{flex:0 0 auto;white-space:nowrap}

}

@media (max-width:390px){
  .floating-cart{right:13px;bottom:calc(13px + env(safe-area-inset-bottom));width:54px;height:54px}
  .floating-cart svg{width:25px;height:25px}
}

/* Ajuste de destaque do hero */
.hero h1 {
  font-size: clamp(40px, 6.6vw, 82px);
}

.hero-subtitle {
  color: var(--gold);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .15px;
  max-width: 560px;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(34px, 10.5vw, 54px);
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
    max-width: 94%;
  }
}
