/* ========================================
   KAWIN STUDS — STEP 16 Visual Premium Final
   Frontend-only polish on existing storefront
   ======================================== */

:root {
  --s16-navy: #07111f;
  --s16-ink: #0b1f3a;
  --s16-gold: #d4a84b;
  --s16-gold-bright: #efc56a;
  --s16-soft: #e8eef6;
}

/* ----- Navbar ----- */
.site-header .header-inner {
  min-height: 3.75rem;
}

.nav-list {
  gap: 0.15rem 0.85rem;
}

.nav-list a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.nav-search-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-search-link::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ----- Hero premium ----- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 54rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 78% 42%, rgba(212, 168, 75, 0.16), transparent 62%),
    radial-gradient(ellipse 40% 50% at 12% 80%, rgba(40, 90, 150, 0.18), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(3, 7, 14, 0.55) 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45);
}

.hero-layout {
  position: relative;
  z-index: 2;
}

.hero-brand-wordmark {
  margin: 0;
  font-family: var(--font-display, "Oswald", "Kanit", sans-serif);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero-subbrand {
  margin: 0.55rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: var(--s16-gold-bright);
  letter-spacing: 0.04em;
}

.hero-title {
  margin-top: 1.1rem !important;
  max-width: min(28rem, 100%);
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.35;
}

.hero-slogan {
  max-width: 34ch;
  color: rgba(243, 246, 250, 0.82) !important;
}

.hero-visual {
  min-height: clamp(18rem, 52vw, 28rem);
}

.hero-boot-img {
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55));
  object-fit: contain;
}

.hero-slide[data-product-href] {
  cursor: pointer;
}

.hero-product-meta {
  margin: 0.35rem 0 0;
  color: rgba(243, 246, 250, 0.72);
  font-size: 0.88rem;
  text-align: center;
}

.hero-brand-label {
  font-family: var(--font-display, "Oswald", sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--s16-gold-bright) !important;
}

/* Soft particles (CSS only, low cost) */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.35;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(239, 197, 106, 0.7);
  animation: s16-float 9s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 12%; top: 28%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 28%; top: 62%; animation-delay: 1.4s; width: 2px; height: 2px; }
.hero-particles span:nth-child(3) { left: 68%; top: 22%; animation-delay: 2.2s; }
.hero-particles span:nth-child(4) { left: 82%; top: 58%; animation-delay: 0.8s; width: 2px; height: 2px; }
.hero-particles span:nth-child(5) { left: 54%; top: 74%; animation-delay: 3s; }

@keyframes s16-float {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-14px); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles span {
    animation: none;
  }
}

/* ----- Section rhythm ----- */
.section-brands {
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.section-sizes {
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
  padding-bottom: clamp(1rem, 2vw, 1.75rem);
}

.section-how {
  padding-top: clamp(1rem, 2vw, 1.75rem);
}

.section-brands .section-head,
.section-sizes .section-head {
  margin-bottom: 1rem;
}

.section-brands .section-head h2,
.section-sizes .section-head h2 {
  margin: 0;
}

.section-brands .section-head > p:last-of-type,
.section-sizes .section-head > p:last-of-type {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.section-brands .section-head::after,
.section-sizes .section-head::after {
  margin-top: 0.65rem;
}

.section-head .section-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.section-how .how-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #121a26;
  border: 1px solid rgba(212, 168, 75, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.how-step-num {
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--s16-gold);
  line-height: 1;
}

.how-step h3 {
  margin: 0 0 0.25rem;
  color: var(--s16-ink);
  font-size: 1.05rem;
}

.how-step p {
  margin: 0;
  color: #5a6778;
  font-size: 0.92rem;
}

@media (min-width: 760px) {
  .section-how .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .section-how .how-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Trust checked */
.trust-card h3,
.feature-item h3 {
  letter-spacing: 0.01em;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #121a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.check-list .check-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s16-gold), var(--s16-gold-bright));
  color: #07111f;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.check-list strong {
  display: block;
  color: var(--s16-ink);
  margin-bottom: 0.15rem;
}

.check-list span {
  color: #5a6778;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----- Premium product cards ----- */
.product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.product-media,
.product-visual {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 168, 75, 0.12), transparent 55%),
    linear-gradient(165deg, #101c2e, #0a1320 70%);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-brand {
  font-family: var(--font-display, "Oswald", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  color: #7a8798 !important;
  margin-bottom: 0.15rem !important;
}

.product-model,
.product-name {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0b1f3a !important;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.55rem;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #3d4a5c;
  font-size: 0.75rem;
  font-weight: 500;
}

.product-condition-stars {
  color: var(--s16-gold);
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin: 0.15rem 0 0.35rem;
}

.product-price {
  font-family: var(--font-display, "Oswald", sans-serif);
  font-size: 1.35rem !important;
  letter-spacing: 0.03em;
  color: var(--s16-ink) !important;
  font-weight: 700 !important;
}

.product-card-cta {
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--s16-gold), var(--s16-gold-bright));
  color: #07111f !important;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-card.is-sold {
  opacity: 0.92;
}

.product-card.is-sold .product-card-cta {
  background: #d8dee8;
  color: #5a6778 !important;
}

.product-card.is-sold .product-media::after {
  content: "SOLD";
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(180, 35, 24, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-media {
  position: relative;
}

/* Size chips: only available shown */
.size-chip {
  text-align: center;
}

.size-chip.is-empty {
  display: none;
}

/* Brand chips larger */
.brand-chip {
  min-height: 4.5rem;
}

.brand-chip strong {
  font-family: var(--font-display, "Oswald", sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer identity */
.footer-store {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(239, 197, 106, 0.85) !important;
}

.footer-contact {
  margin-top: 0.75rem;
  color: rgba(243, 246, 250, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact a {
  color: var(--s16-gold-bright);
}

/* Section reveal (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .section-head,
  .product-card,
  .how-step,
  .check-list li,
  .brand-chip,
  .size-chip {
    animation: s16-rise 0.55s ease both;
  }
}

@keyframes s16-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile overflow guard */
.hero,
.section,
.product-grid,
.brand-grid,
.size-grid {
  max-width: 100%;
}

.product-grid {
  overflow-x: clip;
}
