﻿:root {
  --yellow: #f4c20d;
  --yellow2: #ffd24a;
  --brown: #2b1a12;
  --text: #0b1220;
  --muted: #4b5563;
  --line: rgba(17, 24, 39, 0.1);
  --shadowSoft: 0 12px 26px rgba(17, 24, 39, 0.08);
  --shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, rgba(244, 194, 13, 0.18), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(43, 26, 18, 0.1), transparent 40%),
    #fdfcf9;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(253, 252, 249, 0.9);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brown);
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--yellow2), var(--yellow));
  box-shadow: 0 0 0 6px rgba(244, 194, 13, 0.16);
}

.brand__name {
  letter-spacing: -0.02em;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(43, 26, 18, 0.85);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__link:hover {
  background: rgba(244, 194, 13, 0.14);
  transform: translateY(-1px);
}

.nav__link--active {
  background: var(--brown);
  color: #fff;
}

.cart-btn {
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  padding: 50px 20px 80px;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.hero__content {
  display: grid;
  gap: 20px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(43, 26, 18, 0.6);
  background: rgba(244, 194, 13, 0.18);
  border: 1px solid rgba(244, 194, 13, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  width: fit-content;
}

.hero__title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--brown);
  margin: 0;
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--yellow);
  color: var(--brown);
  box-shadow: var(--shadowSoft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  border: 1px solid rgba(43, 26, 18, 0.2);
  background: #fff;
  color: var(--brown);
}

.btn--ghost:hover {
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(43, 26, 18, 0.08);
  box-shadow: 0 10px 30px rgba(43, 26, 18, 0.08);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(244, 194, 13, 0.18), rgba(255, 255, 255, 0.3));
  opacity: 0.7;
  z-index: 0;
}

.stat__value {
  font-weight: 900;
  font-size: 18px;
  color: var(--brown);
  position: relative;
  z-index: 1;
}

.stat__label {
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.hero__media {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.parallax-stage {
  perspective: 900px;
}

.parallax-layer {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.parallax-inner {
  display: block;
}

.hero-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card--main {
  width: min(320px, 80vw);
}

.hero-card--main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f6f3ed;
}

.hero-card__caption {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 700;
}

.hero-card__price {
  color: var(--brown);
}

.hero-card--stack {
  position: absolute;
  right: 0;
  top: 0;
  width: min(220px, 50vw);
  transform: translate(20%, -10%);
  padding-bottom: 10px;
}

.hero-card--stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f6f3ed;
}

.hero-card--stack-alt {
  top: auto;
  bottom: 0;
  transform: translate(10%, 15%);
}

.hero-card__meta {
  padding: 10px 14px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.hero-card__meta strong {
  font-size: 14px;
  color: var(--brown);
}

.trustbar {
  padding: 20px 20px 40px;
}

.trustbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-item {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(253, 250, 244, 0.9));
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(43, 26, 18, 0.08);
  box-shadow: 0 14px 32px rgba(43, 26, 18, 0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(43, 26, 18, 0.12);
}

.trust-icon {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(244, 194, 13, 0.5), rgba(244, 194, 13, 0.12));
  display: grid;
  place-items: center;
  color: var(--brown);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--brown);
}

.trust-item strong {
  display: block;
  font-size: 14px;
  color: var(--brown);
}

.trust-item span {
  font-size: 12px;
  color: var(--muted);
}

.collection {
  padding: 40px 20px 80px;
}

.collection__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.collection__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.section-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(43, 26, 18, 0.6);
}

.section-title {
  margin: 8px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: var(--brown);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

.collection__meta {
  background: #fff;
  border: 1px solid rgba(43, 26, 18, 0.08);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--brown);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(43, 26, 18, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadowSoft);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid rgba(43, 26, 18, 0.18);
  background: #fff;
  color: var(--brown);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--brown);
  color: #fff;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.filter input,
.filter select {
  border: 1px solid rgba(43, 26, 18, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.empty-state {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px dashed rgba(43, 26, 18, 0.2);
  text-align: center;
  color: var(--muted);
}

.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(43, 26, 18, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.product-media {
  position: relative;
  background: #f6f3ed;
  padding: 18px;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(244, 194, 13, 0.92);
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.product-info {
  padding: 18px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.product-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.product-price {
  font-weight: 800;
  color: var(--brown);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rating-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--yellow);
}

.rating-stars svg.star--empty {
  fill: #e5e7eb;
}

.product-action {
  margin-top: auto;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: var(--brown);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: #3b2419;
}

.size-guide {
  padding: 70px 20px;
  background: #fff;
  border-top: 1px solid rgba(43, 26, 18, 0.08);
  border-bottom: 1px solid rgba(43, 26, 18, 0.08);
}

.size-guide__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.size-guide__table table {
  width: 100%;
  border-collapse: collapse;
  background: #fdfaf4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 26, 18, 0.08);
}

.size-guide__table th,
.size-guide__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(43, 26, 18, 0.08);
  font-size: 14px;
}

.size-guide__table tr:last-child td {
  border-bottom: none;
}

.size-guide__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.payment {
  padding: 70px 20px;
}

.payment__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: center;
}

.payment__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.payment__badges span {
  padding: 8px 12px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(43, 26, 18, 0.12);
  font-weight: 700;
  font-size: 12px;
}

.payment__card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(43, 26, 18, 0.08);
  box-shadow: var(--shadowSoft);
}

.payment__card ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq {
  padding: 70px 20px 90px;
  background: #fdfaf4;
}

.faq__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 32px;
}

.faq__items details {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(43, 26, 18, 0.08);
  margin-bottom: 12px;
}

.faq__items summary {
  font-weight: 700;
  cursor: pointer;
}

.footer {
  background: #1d120d;
  color: #f8f5ef;
  padding: 40px 20px;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.footer__brand {
  font-weight: 900;
}

.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links a {
  color: #f8f5ef;
  opacity: 0.8;
}

.modal-overlay,
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 2000;
}

.modal-overlay.active,
.cart-overlay.active {
  display: flex;
}

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

.modal-content {
  background: #fff;
  margin: auto;
  width: min(1000px, 92vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.modal-image-col {
  background: #f6f3ed;
  display: grid;
  place-items: center;
  padding: 32px;
}

.modal-image {
  max-height: 480px;
  object-fit: contain;
}

.modal-details-col {
  padding: 32px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
}

.close-modal,
.close-cart {
  border: none;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--brown);
  box-shadow: var(--shadowSoft);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
}

.detail-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--brown);
}

.detail-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 194, 13, 0.18);
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
}

.control-group {
  display: grid;
  gap: 10px;
}

.control-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.colors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch.active {
  border-color: var(--brown);
  transform: scale(1.05);
}

.sizes-grid {
  display: flex;
  gap: 10px;
}

.size-opt {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(43, 26, 18, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
}

.size-opt.active {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

.qty-control {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(43, 26, 18, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  width: fit-content;
}

.qty-control button {
  border: none;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.cart-overlay {
  justify-content: flex-end;
}

.cart-drawer {
  width: min(450px, 100%);
  background: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  padding: 20px 24px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid rgba(43, 26, 18, 0.08);
  padding-bottom: 12px;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f6f3ed;
  border-radius: 12px;
}

.cart-item-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

.cart-item-qty {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(43, 26, 18, 0.2);
  background: #fff;
  cursor: pointer;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #e63946;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: #fdfaf4;
  display: grid;
  gap: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.cart-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.debug-pay {
  display: flex;
  justify-content: center;
  padding: 20px 16px 32px;
}

.debug-pay__btn {
  border: 1px dashed rgba(43, 26, 18, 0.5);
  background: #fff9e8;
  color: #2b1a12;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.debug-pay__btn:hover {
  background: #fff3cc;
}

#paypal-button-container {
  min-height: 300px;
}

@media (max-width: 980px) {
  .hero__inner,
  .size-guide__inner,
  .payment__inner,
  .faq__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: 360px;
  }

  .hero-card--stack {
    position: static;
    transform: none;
    width: min(260px, 70vw);
    margin-top: 16px;
  }

  .hero-card--stack-alt {
    margin-bottom: 16px;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    width: 100%;
  }

  .filter {
    width: 100%;
  }

  .filter input,
  .filter select {
    width: 100%;
  }

  .modal-content {
    grid-template-columns: 1fr;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-image {
    max-height: 280px;
  }

  .cart-drawer {
    width: 100%;
  }
}
