:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #161616;
  --panel-2: #1f1f1f;
  --text: #f4f4f4;
  --muted: #aaaaaa;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d4af37;
  --accent-2: #f5d97d;
  --danger: #ff6b6b;
  --success: #7fd08c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.16), transparent 28%),
    linear-gradient(180deg, #070707 0%, #111 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 620px;
  color: var(--muted);
  margin: 0 0 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-2);
  background: rgba(212, 175, 55, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  touch-action: manipulation;
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn {
  background: linear-gradient(135deg, var(--accent) 0%, #b68600 100%);
  color: #111;
  font-weight: 700;
}

.btn-secondary {
  background: #fff;
  color: #111;
  font-weight: 700;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.shop-cart-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a,
.nav-actions a,
.nav-actions button {
  color: var(--muted);
}

.nav-links a:hover,
.nav-actions a:hover,
.nav-actions button:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.nav-icon {
  position: relative;
}

.cart-count,
.wishlist-count {
  position: absolute;
  top: -0.6rem;
  right: -0.65rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 0.3rem;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid,
.split-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hero-card,
.surface,
.promo-banner,
.newsletter,
.summary-card,
.checkout-form,
.cart-panel,
.filter-panel,
.detail-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-content h1 {
  margin: 1rem 0;
  font-size: clamp(2.25rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.hero-visual {
  padding: 1.1rem;
}

.hero-visual img,
.product-card img,
.product-gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}

.floating-note {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.category-grid,
.product-grid,
.feature-grid,
.footer-grid,
.detail-grid,
.checkout-grid,
.cart-layout,
.shop-layout {
  display: grid;
  gap: 1.5rem;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid--single {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
}

.category-card,
.feature-card,
.product-card,
.cart-item,
.thumb-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.category-card,
.feature-card {
  padding: 1.5rem;
}

.category-card h3,
.feature-card h3 {
  margin-top: 0;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid > *,
.shop-layout > *,
.feature-grid > *,
.category-grid > * {
  min-width: 0;
}

.product-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.35);
}

.product-card-body {
  padding: 1.2rem;
}

.product-meta,
.row,
.inline-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.product-price,
.accent {
  color: var(--accent-2);
}

.muted {
  color: var(--muted);
}

.payment-details {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

.promo-banner,
.newsletter,
.summary-card,
.checkout-form,
.cart-panel,
.filter-panel,
.detail-panel {
  padding: 1.5rem;
}

.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.newsletter-form,
.search-bar,
.checkout-form-fields {
  display: grid;
  gap: 1rem;
}

.newsletter-form.inline {
  grid-template-columns: 1.4fr auto;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.shop-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.filter-group {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.filter-chip-row,
.sizes,
.detail-actions,
.thumb-grid,
.order-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip,
.size-option,
.thumb-button {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.chip.active,
.size-option.active,
.thumb-button.active {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.14);
}

.thumb-grid {
  margin-top: 1rem;
}

.thumb-button {
  padding: 0;
  overflow: hidden;
  width: 84px;
  height: 104px;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.price-xl {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 800;
  margin: 1rem 0;
}

.cart-layout,
.checkout-grid {
  grid-template-columns: minmax(0, 1.4fr) 360px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.cart-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr));
}

.footer-column {
  display: grid;
  gap: 0.85rem;
}

.footer-column h4 {
  margin: 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert.success {
  color: var(--success);
  border-color: rgba(127, 208, 140, 0.3);
  background: rgba(127, 208, 140, 0.08);
}

.alert.error {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.08);
}

.fade-in {
  animation: fadeIn 0.7s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) and (min-width: 961px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .detail-grid,
  .checkout-grid,
  .cart-layout,
  .shop-layout,
  .footer-grid,
  .category-grid,
  .product-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .category-grid--single {
    grid-template-columns: 1fr;
    justify-content: stretch;
    max-width: none;
  }

  .nav-links,
  .nav-actions .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-shell.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    z-index: 30;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .newsletter-form.inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 3.25rem;
    padding-bottom: 3rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .product-meta,
  .row,
  .cart-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .promo-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-banner .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .filter-panel {
    position: relative;
  }

  .chip,
  .size-option {
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions .btn,
  .detail-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .section {
    padding: 2.75rem 0;
  }

  .brand {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }

  .nav-actions {
    gap: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    animation: none;
  }

  .btn:hover,
  .btn-secondary:hover,
  .btn-ghost:hover,
  .product-card:hover {
    transform: none;
  }
}
