@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --paper: #f5f4f8;
  --card: #ffffff;
  --border: #eaecf0;
  --purple: #6434c5;
  --purple-dark: #5327a7;
  --teal: #59d0de;
  --teal-strong: #35bfd0;
  --shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  --radius: 16px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #ffffff 0%, #f7f6fb 100%);
  color: var(--ink);
  min-height: 100vh;
}

body[data-require-auth="true"][data-auth-state="checking"] main,
body[data-require-auth="true"][data-auth-state="checking"] .site-footer {
  visibility: hidden;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font-family: var(--font);
}


input, select, textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(16, 24, 40, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  line-height: 1.1;
}

.logo span {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1;
}

.nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
}

.nav a.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.header-cta {
  background: var(--teal);
  color: #0b3c45;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-cta:hover {
  background: var(--teal-strong);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  position: relative;
}

.cart-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
}

.cart-link:hover .cart-icon {
  color: var(--purple);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--purple);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
}

/* Layout */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section {
  margin-top: 36px;
}

.section-title {
  margin: 0 0 20px;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* Hero banner */
.hero-banner {
  position: relative;
  background: var(--purple);
  color: #ffffff;
  padding: 36px 40px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-banner h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0.02em;
}

.hero-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.hero-banner .bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-banner .bubble.teal { background: rgba(89, 208, 222, 0.9); }
.hero-banner .bubble.lg { width: 140px; height: 140px; right: -40px; top: -30px; }
.hero-banner .bubble.md { width: 80px; height: 80px; left: 24px; bottom: -20px; }

.home {
  padding-top: 24px;
}

.hero-splash {
  position: relative;
  background: var(--purple);
  color: #ffffff;
  border-radius: 26px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-splash .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.hero-splash h1 {
  font-size: 34px;
  margin: 0 0 12px;
}

.hero-splash p {
  margin: 0 0 24px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  color: #ffffff;
}

.store-btn.ghost {
  background: #ffffff;
  color: var(--purple);
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-screen {
  width: 240px;
  height: 420px;
  border-radius: 28px;
  background: linear-gradient(135deg, #69d7e4, #5bb0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.3);
}

.hero-splash .bubble.white {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  left: -40px;
  top: 40px;
}

.home-strip {
  margin-top: 40px;
}

.strip-card {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.strip-card.reverse {
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
}

.strip-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(100, 52, 197, 0.12);
}

.strip-visual.alt {
  background: rgba(89, 208, 222, 0.3);
}

.strip-card h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.strip-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: '?';
  color: var(--teal-strong);
  margin-right: 8px;
}

.home-band {
  margin-top: 40px;
  background: var(--purple);
  color: #ffffff;
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.band-content {
  position: relative;
  z-index: 1;
}

.home-band h2 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
}

.band-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.band-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
}

@media (max-width: 960px) {
  .hero-splash {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .strip-card {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-title {
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.input-wrap {
  position: relative;
}

.icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--teal-strong);
  cursor: pointer;
  font-size: 14px;
}

.field-help {
  text-align: right;
  font-size: 12px;
  margin-top: 6px;
  color: var(--teal-strong);
}

.auth-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}


.auth-card {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card.large {
  max-width: 720px;
}

.account-card {
  margin-top: 18px;
}

.account-section-title {
  margin: 0 0 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.account-field-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.account-field-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.payment-options label,
.payment-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-acceptance-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 28px;
}

.card-logo-img {
  display: inline-block;
  height: 14px;
  width: auto;
  object-fit: contain;
}

/* Buttons */
.btn {
  border: none;
  background: var(--teal);
  color: #0b3c45;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.btn.block {
  width: 100%;
}

.btn:hover { background: var(--teal-strong); }

.btn.secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink);
  width: auto;
}

#cart-body .btn.remove {
  padding: 6px 12px;
  font-size: 8px;
}

.btn.inline { width: auto; }


.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

/* Product catalog */

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.limit-control,
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.limit-control select,
.sort-control select {
  width: auto;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  border-color: var(--teal);
  color: var(--teal);
}

.pagination-btn.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  cursor: default;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-arrow {
  font-size: 25px;
  line-height: 1;
}

.pagination-ellipsis {
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
  color: var(--muted);
}

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 18px;
}

.search-bar {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  max-width: 420px;
  min-width: 200px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 8px 0 18px;
  outline: none;
}

.search-bar:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 169, 163, 0.16);
}

.search-submit {
  width: 46px;
  height: 100%;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  flex: 0 0 46px;
}

.search-submit::before {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
  top: 13px;
  left: 13px;
}

.search-submit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transform: rotate(45deg);
  top: 27px;
  left: 27px;
}

.search-submit:hover::before {
  border-color: var(--teal);
}

.search-submit:hover::after {
  background: var(--teal);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}

.filter-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 14px;
}

.filter-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.filter-list {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.filter-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-count {
  display: none;
}

.filter-more {
  margin-top: 10px;
  border: none;
  background: none;
  color: var(--purple);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}



.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.product-media {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-badge,
.final-sale-badge,
.purchased-badge {
  position: absolute;
  color: #ffffff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
}

.stock-badge {
  top: 10px;
  left: 10px;
  background: #ef4444;
}

.final-sale-badge {
  top: 10px;
  right: 10px;
  background: #000000;
}

.purchased-badge {
  left: 10px;
  bottom: 10px;
  background: #677181;
  text-transform: none;
  letter-spacing: 0;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-old {
  color: #ef4444;
  text-decoration: line-through;
  font-size: 12px;
}

.price-new {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.product-media.no-image::after {
  content: "No image";
  font-size: 11px;
  color: var(--muted);
}

.product-title {
  font-weight: 600;
  font-size: 14px;
}

.product-meta {
  font-size: 11px;
  color: var(--muted);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.product-price .product-meta {
  font-size: 11px;
}

.price-label {
  margin-top: 2px;
}

.product-price strong {
  color: var(--ink);
  font-size: 16px;
}

.product-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.add-btn-compact {
  border: none;
  border-bottom-width: 3px;
  background: #d3f2f8;
  border-radius: 24px;
  padding: 2px 21px;
  font-size: 10px;
  min-height: 36px;
}

.add-btn-compact:hover {
  background: #bdecf4;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: #f8fafc;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 70%;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.qty-btn:active {
  transform: translateY(1px);
}

.qty-input {
  width: 50px;
  height: 28px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  appearance: textfield;
}

.qty-input:focus {
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.table th, .table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.table th {
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.table tfoot td { font-weight: 600; }

/* Cart */

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb.no-image::after {
  content: "No image";
  font-size: 9px;
  color: var(--muted);
}

.cart-qty-input {
  width: 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

.summary-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.summary-card h3 {
  margin: 0 0 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.summary-total {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* Orders */
.order-card { margin-bottom: 16px; }
.order-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.order-summary::-webkit-details-marker { display: none; }
.order-items { margin-top: 12px; }
.order-items-scroll { overflow-x: auto; }

/* Status */
.status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  display: none;
}

.status.show { display: block; }
.status.ok { background: #ecfdf3; color: #16a34a; border: 1px solid #bbf7d0; }
.status.err { background: #fef2f2; color: #dc2626; border: 1px solid #fecdd3; }

.hidden { display: none; }

.inline-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
  padding: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 24px;
}

.footer-title {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-list {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.footer-list a {
  color: inherit;
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-card-brands {
  display: block;
  max-width: 180px;
  height: auto;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.static-page {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px;
  color: var(--ink);
  line-height: 1.6;
}

.static-page h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.static-page h2 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.static-page p,
.static-page li {
  color: var(--muted);
  font-size: 14px;
}

.static-page ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.static-lead {
  margin-top: 0;
  font-size: 16px !important;
}

/* Responsive */
@media (max-width: 960px) {
  .catalog-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .form-grid.two-col,
  .form-grid.three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 12px 48px;
  }

  .footer-inner {
    padding: 24px 14px 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-title {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .footer-list {
    gap: 6px;
    font-size: 10px;
  }

  .footer-card-brands {
    width: 100%;
    max-width: 160px;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    font-size: 9px;
    line-height: 1.5;
  }

  .orders-page .section {
    margin-top: 12px;
  }

  .orders-page .auth-title {
    font-size: 22px;
  }

  .orders-page .auth-title + p {
    margin: 6px 0 16px;
    font-size: 11px;
  }

  .order-card {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
  }

  .order-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "number status"
      "date total";
    gap: 4px 12px;
    font-size: 11px;
  }

  .order-number {
    grid-area: number;
  }

  .order-date {
    grid-area: date;
    color: var(--muted);
    font-size: 9px;
  }

  .order-total {
    grid-area: total;
    font-weight: 600;
    text-align: right;
  }

  .order-status {
    grid-area: status;
    color: var(--purple);
    font-size: 9px;
    font-weight: 600;
    text-align: right;
    text-transform: uppercase;
  }

  .order-items {
    margin-top: 8px;
  }

  .order-items-table {
    display: block;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .order-items-table thead {
    display: none;
  }

  .order-items-table tbody {
    display: grid;
    gap: 6px;
  }

  .order-items-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
  }

  .order-items-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 6px;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .order-items-table td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-size: 6px;
    font-weight: 600;
    text-align: left;
  }

  .order-items-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 6px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .section {
    margin-top: 22px;
  }

  .header-inner {
    padding: 10px 14px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    font-size: 11px;
    line-height: 1;
  }

  .nav {
    justify-content: flex-start;
    gap: 4px;
  }

  .nav a {
    font-size: 10px;
    padding: 4px 6px;
    border-bottom-width: 1px;
  }

  .header-cta {
    padding: 5px 8px;
    border-radius: 6px;
  }

  .header-cta[data-mobile-label] {
    font-size: 0;
  }

  .header-cta[data-mobile-label]::after {
    content: attr(data-mobile-label);
    font-size: 10px;
  }

  .shop-subnav {
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .shop-subnav a {
    font-size: 10px;
    padding-bottom: 4px;
  }

  .catalog-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .catalog-actions {
    flex-wrap: nowrap;
    width: 100%;
  }

  .search-bar {
    flex-basis: auto;
    min-width: 0;
  }

  #cart-body .table th,
  #cart-body .table td {
    font-size: 11px;
  }

  .cart-layout .table th,
  .cart-layout .table td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .cart-layout .table th {
    font-size: 9px;
  }

  #cart-body .cart-item {
    gap: 6px;
  }

  #cart-body .cart-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    flex: 0 0 34px;
  }

  #cart-body .cart-item strong {
    font-size: 11px;
    line-height: 1.2;
  }

  #cart-body .cart-item div:last-child {
    font-size: 10px;
    line-height: 1.2;
  }

  #cart-body .cart-qty-input {
    width: 36px;
    padding: 5px 6px;
    font-size: 11px;
  }

  #cart-body .btn.remove {
    padding: 5px 7px;
    font-size: 10px;
  }

  .hero-banner {
    padding: 28px;
  }

  .hero-banner h1 {
    font-size: 22px;
  }
}
.modal.hidden {
  display: none;
}
.home-page {
  display: grid;
  gap: 32px;
}

.home-hero {
  position: relative;
  min-height: 320px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: #2b155f;
  box-shadow: var(--shadow);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(102, 51, 204, 0.72);
  z-index: 1;
}

.home-hero h1 {
  margin: 0;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  -webkit-text-stroke: 1px rgba(43, 21, 95, 0.8);
  paint-order: stroke fill;
  text-shadow: 0 1px 2px rgba(16, 24, 40, 0.35);
}

.home-hero h1 span {
  color: var(--teal);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 32px;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.hero-bubble.bubble-lg {
  width: 140px;
  height: 140px;
  left: -30px;
  top: 40px;
}

.hero-bubble.bubble-md {
  width: 72px;
  height: 72px;
  left: 40px;
  top: 190px;
  background: rgba(89, 208, 222, 0.9);
}

.hero-bubble.bubble-sm {
  width: 64px;
  height: 64px;
  right: -24px;
  top: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.home-products {
  display: grid;
  gap: 20px;
}

.home-search {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.home-search-bar {
  flex-basis: 760px;
  max-width: 760px;
  width: 100%;
}

.home-products h2 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.home-slogan {
  min-height: 1.5em;
}

.home-slogan::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 5px;
  vertical-align: -0.12em;
  background: var(--teal-strong);
  animation: home-slogan-caret 0.75s steps(1) infinite;
}

@keyframes home-slogan-caret {
  50% {
    opacity: 0;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.category-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.category-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
}

.category-card {
  overflow: hidden;
}

.category-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.category-arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(100, 52, 197, 0.35);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--purple);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
}

.feature-banner {
  position: relative;
  border-radius: 24px;
  background: var(--purple);
  color: #ffffff;
  padding: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 300px;
}

.feature-banner h3 {
  margin: 0;
  font-size: 28px;
}

.banner-media {
  display: flex;
  justify-content: flex-end;
}

.kinder-banner {
  background: #6434c5;
}

.kinder-banner .banner-media {
  justify-content: flex-end;
  padding-right: 12px;
}

.kinder-banner .banner-media img {
  width: 520px;
  max-width: none;
  max-height: none;
  transform: rotate(-8deg) translate(10px, -6px);
}

.kinder-banner::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  right: 48px;
  top: 12px;
}

.kinder-banner::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #e3512d;
  right: 12px;
  bottom: 10px;
}

.kinder-banner .banner-bubble.bubble-lg {
  background: rgba(255, 255, 255, 0.95);
  right: -18px;
  bottom: 24px;
}

.kinder-banner .banner-bubble.bubble-sm {
  background: rgba(255, 255, 255, 0.9);
  right: 88px;
  top: 20px;
}

.banner-media img {
  max-width: 320px;
  max-height: 240px;
  width: 100%;
  height: auto;
}

.kinder-banner .banner-media img {
  max-width: 320px;
}

.nicotine-banner .banner-media img {
  max-width: 320px;
}

.banner-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.banner-bubble {
  position: absolute;
  border-radius: 50%;
}

.banner-bubble.bubble-lg {
  width: 120px;
  height: 120px;
  right: 20px;
  bottom: -30px;
  background: rgba(255, 255, 255, 0.85);
}

.banner-bubble.bubble-sm {
  width: 48px;
  height: 48px;
  right: 120px;
  top: 30px;
  background: rgba(255, 255, 255, 0.4);
}

.nicotine-banner {
  background: #5f33c5;
}

@media (max-width: 900px) {
  .feature-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner-media {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home-page,
  .home-page > * {
    min-width: 0;
    max-width: 100%;
  }

  .home-products,
  .home-products > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .home-search {
    width: 100%;
  }

  .home-search-bar {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-hero {
    min-height: 160px;
  }

  .home-hero h1 {
    font-size: 12px;
  }

  .home-slogan {
    min-height: 1.5em;
    overflow-wrap: anywhere;
  }

  .home-slogan::after {
    display: none;
    animation: none;
  }

  .home-products h2 {
    font-size: 12px;
  }

  .feature-banner {
    padding: 24px 16px;
  }

  .kinder-banner .banner-media img,
  .nicotine-banner .banner-media img {
    width: 100%;
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slogan::after {
    display: none;
    animation: none;
  }
}



.shop-subnav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 14px 0 24px;
  padding-bottom: 8px;
}

.shop-subnav a {
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 8px;
}

.shop-subnav a.active {
  color: var(--purple);
}

.shop-subnav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--purple);
}


.nav-bold a {
  font-weight: 600;
}

.shop-subnav a {
  font-weight: 600;
}


.shop-subnav-floating {
  margin-top: 0;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .shop-subnav,
  .shop-subnav a {
    font-size: 8px;
    letter-spacing: 0.00em;
  }

  .catalog-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .catalog-actions .search-bar {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .sort-control,
  .limit-control {
    gap: 4px;
    font-size: 9px;
  }

  .sort-control select,
  .limit-control select {
    padding: 7px 6px;
    font-size: 10px;
  }
}


.quick-shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.quick-shop-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.quick-shop-header h2 {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
}

.quick-shop-header p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.quick-shop-table {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

#qs-rows {
  display: grid;
  gap: 6px;
}

.qs-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.9fr) 0.65fr 0.8fr 0.85fr 0.6fr;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}

.qs-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.qs-header .qs-cell:nth-child(3),
.qs-header .qs-cell:nth-child(4) {
  text-align: right;
}

.qs-row .qs-cell {
  min-width: 0;
}

.qs-row input[type="text"],
.qs-row input[type="number"] {
  width: 100%;
  height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink);
}

.qs-row input[type="text"]::placeholder,
.qs-row input[type="number"]::placeholder {
  color: #9ca3af;
}

.qs-price,
.qs-amount {
  font-weight: 400;
  font-size: 13px;
  text-align: right;
}

.qs-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.qs-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.qs-btn:hover {
  border-color: #94a3b8;
}

.quick-shop-sidebar {
  display: grid;
  gap: 14px;
}

.quick-shop-sidebar .summary-card,
.quick-shop-sidebar .upload-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: none;
}

.quick-shop-sidebar .summary-card h3,
.quick-shop-sidebar .upload-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.quick-shop-sidebar .summary-row {
  font-size: 14px;
}

.quick-shop-sidebar .summary-total {
  font-size: 28px;
}

.quick-shop-sidebar .btn.block {
  margin-top: 12px;
}

#qs-submit-status {
  margin-top: 10px;
}

.upload-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.upload-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0ea5e9;
  text-decoration: none;
}

@media (max-width: 1150px) {
  .qs-row {
    grid-template-columns: minmax(230px, 1.6fr) 0.7fr 0.9fr 0.9fr 0.6fr;
  }
}

@media (max-width: 960px) {
  .quick-shop-layout {
    grid-template-columns: 1fr;
  }

  .qs-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.9fr 0.7fr;
  }
}

@media (max-width: 700px) {
  .quick-shop-card {
    padding: 8px;
  }

  .quick-shop-header h2 {
    font-size: 13px;
  }

  .quick-shop-header p {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .quick-shop-table {
    gap: 4px;
    padding-top: 6px;
    overflow-x: auto;
  }

  .quick-shop-table > .qs-row,
  #qs-rows {
    min-width: 500px;
  }

  #qs-rows {
    gap: 3px;
  }

  .qs-row {
    grid-template-columns: minmax(190px, 1.7fr) 48px 62px 68px 56px;
    gap: 5px;
  }

  .qs-header {
    font-size: 9px;
    letter-spacing: 0;
  }

  .qs-row input[type="text"],
  .qs-row input[type="number"] {
    height: 30px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 11px;
  }

  .qs-price,
  .qs-amount {
    font-size: 11px;
  }

  .qs-actions {
    gap: 3px;
  }

  .qs-btn {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
}


