/* ========================================
   KAWIN STUDS — STEP 12.1
   Premium Football Hero + Product Cards
   Layered on STEP 12 atmosphere (do not replace)
   ======================================== */

/* ----- Hero composition ----- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 168, 75, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.45;
  z-index: 0;
}

.hero-layout {
  gap: 1.25rem 2.5rem;
  padding-block: clamp(2rem, 7vw, 4.25rem);
}

.hero-copy {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 36rem;
}

.hero-brand-lockup {
  margin: 0;
}

.hero-brand {
  margin: 0;
  font-size: clamp(2.8rem, 13vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #ffffff 12%, #efc56a 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}

.hero-kicker {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 197, 106, 0.88);
  font-weight: 500;
}

.hero-title {
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 5.8vw, 2.45rem);
  max-width: 16ch;
  text-wrap: balance;
}

.hero-slogan {
  margin-top: 0.85rem;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 1.6rem;
}

.hero-actions .btn {
  min-width: 10.5rem;
}

.hero-visual {
  position: relative;
  min-height: 15.5rem;
  padding-bottom: 0.5rem;
}

.hero-stage {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: min(78%, 20rem);
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(212, 168, 75, 0.28), transparent 70%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 72%);
  filter: blur(1px);
  z-index: 1;
  pointer-events: none;
}

.hero-stud-marks {
  position: absolute;
  left: 50%;
  bottom: 8%;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.hero-stud-marks span {
  width: 0.42rem;
  height: 0.7rem;
  border-radius: 40% 40% 30% 30%;
  background: linear-gradient(180deg, rgba(239, 197, 106, 0.85), rgba(166, 127, 44, 0.35));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.hero-visual-ring {
  width: min(96%, 26rem);
  box-shadow:
    0 0 0 1px rgba(212, 168, 75, 0.18),
    0 0 60px rgba(212, 168, 75, 0.12);
}

.hero-showcase {
  width: min(92vw, 28rem);
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.5));
}

.hero-boot-img {
  transform: rotate(-8deg) scale(1.02);
  transition: transform 0.45s var(--ease, ease);
}

.hero-slide.is-active .hero-boot-img {
  transform: rotate(-6deg) scale(1.04);
}

.hero-brand-label {
  margin-top: 0.55rem;
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.45);
  font-size: 0.82rem;
}

.hero-brand-dots {
  margin-top: 0.7rem;
}

/* Mobile: Brand → Boot → Copy → CTA */
@media (max-width: 959px) {
  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    display: contents;
  }

  .hero-brand-lockup {
    order: 1;
    width: 100%;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    min-height: 14.5rem;
  }

  .hero-content {
    order: 3;
    max-width: 34rem;
    justify-items: center;
  }

  .hero-eyebrow {
    margin-inline: auto;
  }

  .hero-title,
  .hero-slogan {
    margin-inline: auto;
    max-width: 22rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-showcase {
    width: min(86vw, 22rem);
  }
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    min-height: min(84svh, 42rem);
  }

  .hero-copy {
    align-content: center;
  }

  .hero-content {
    max-width: 34rem;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .hero-showcase {
    width: min(40vw, 30rem);
  }
}

/* ----- Section identity ----- */

.section-head {
  position: relative;
  padding-bottom: 0.35rem;
}

.section-head::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 0.95rem;
  background: linear-gradient(90deg, var(--accent, #d4a84b), transparent);
}

.section-eyebrow {
  letter-spacing: 0.16em;
}

.section-new .product-grid .product-card {
  border-color: rgba(212, 168, 75, 0.22);
}

/* ----- Brand strip (real brands) ----- */

.brand-strip-track:empty::after {
  content: "กำลังโหลดแบรนด์จากสต็อก…";
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.brand-pill {
  min-width: 6.5rem;
  box-shadow: inset 0 0 0 1px rgba(212, 168, 75, 0.08);
}

.brand-strip-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.brand-pill[data-count]::after {
  content: attr(data-count);
  margin-left: 0.45rem;
  font-family: var(--font-body, Kanit, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(239, 197, 106, 0.8);
}

/* ----- Product cards ----- */

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 75, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 251, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s var(--ease, ease),
    box-shadow 0.22s var(--ease, ease),
    border-color 0.22s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.75), transparent);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 75, 0.42);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.28);
}

.product-media,
.product-visual {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 168, 75, 0.22), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(30, 70, 120, 0.35), transparent 45%),
    linear-gradient(160deg, #163152 0%, #0a1628 52%, #1a3a5c 100%);
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 8%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.product-image {
  object-fit: contain;
  padding: 9%;
  transform: scale(1);
  transition: transform 0.35s var(--ease, ease);
}

.product-card:hover .product-image,
.product-card:focus-within .product-image {
  transform: scale(1.035);
}

.product-body {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 1rem 1.05rem 1.15rem;
  min-height: 11.5rem;
}

.product-brand {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a67f2c;
}

.product-name,
.product-model {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.28;
  color: #0a1628;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.product-meta span {
  min-height: 1.5rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: #eef2f7;
  color: #445264;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-meta .meta-stud {
  background: #0a1628;
  border-color: #0a1628;
  color: #efc56a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-price {
  margin: 0.45rem 0 0;
  font-family: var(--font-display, Oswald, sans-serif);
  font-size: clamp(1.45rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0a1628;
  line-height: 1;
}

.product-status-badge {
  margin-top: 0.25rem;
}

.product-card-cta {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #a67f2c;
}

.product-card:hover .product-card-cta,
.product-card:focus-within .product-card-cta {
  color: #0a1628;
}

/* Buttons polish */

.btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  box-shadow: 0 12px 28px rgba(212, 168, 75, 0.34);
}

.btn-navy {
  background: linear-gradient(135deg, #0a1628, #163152);
  border: 1px solid rgba(212, 168, 75, 0.28);
}

/* ----- Product detail (readable + theme blend) ----- */

.detail-info {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(212, 168, 75, 0.22);
  background:
    linear-gradient(160deg, rgba(18, 35, 58, 0.94), rgba(8, 16, 30, 0.96));
  color: #f3f6fa;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.detail-header {
  gap: 0.75rem;
}

.detail-id {
  color: rgba(243, 246, 250, 0.58);
}

.detail-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.detail-brand-text {
  display: grid;
  gap: 0.2rem;
}

.detail-info .product-brand {
  color: #efc56a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-model {
  color: rgba(243, 246, 250, 0.78);
  font-size: 1rem;
}

.detail-title {
  color: #ffffff;
  margin-top: 0.15rem;
}

.detail-price {
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  color: #efc56a;
}

.detail-specs,
.detail-block,
.detail-meta,
.detail-defects {
  margin-top: 1.65rem;
}

.detail-specs h2,
.detail-block h2,
.detail-meta h2,
.detail-defects h2 {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.detail-specs dl {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-specs dl > div {
  grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  padding: 1rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-specs dt {
  color: rgba(243, 246, 250, 0.58);
  font-size: 0.92rem;
}

.detail-specs dd {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.detail-block p,
.detail-meta dd,
.detail-defects p {
  color: rgba(243, 246, 250, 0.86);
  line-height: 1.65;
}

.detail-meta dt {
  color: rgba(243, 246, 250, 0.58);
}

.detail-meta dl > div {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-defects {
  padding: 1.1rem 1.15rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04) !important;
}

.detail-defects.no-defects {
  border-left: 3px solid rgba(31, 138, 76, 0.85) !important;
  background: rgba(31, 138, 76, 0.1) !important;
}

.detail-defects.has-defects {
  border-left: 3px solid rgba(212, 168, 75, 0.9) !important;
  background: rgba(212, 168, 75, 0.1) !important;
}

.detail-defects h2 {
  color: #ffffff !important;
}

.detail-defects p {
  color: rgba(243, 246, 250, 0.88) !important;
}

.detail-brand-text {
  display: grid;
  gap: 0.25rem;
}

.detail-brand-text .product-brand,
.detail-brand-text .detail-model {
  margin: 0;
}

.detail-info .detail-block,
.detail-info .detail-meta {
  color: #f3f6fa;
}

.detail-info .detail-block h2,
.detail-info .detail-meta h2 {
  color: #fff;
}

.catalog-state {
  background:
    linear-gradient(160deg, rgba(18, 35, 58, 0.94), rgba(8, 16, 30, 0.96)) !important;
  border: 1px solid rgba(212, 168, 75, 0.2) !important;
  color: #f3f6fa !important;
}

.catalog-state h2 {
  color: #fff !important;
}

.detail-info .product-status-badge {
  margin-top: 0.35rem;
}

.gallery-main,
.gallery-media {
  border: 1px solid rgba(212, 168, 75, 0.2);
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 168, 75, 0.16), transparent 42%),
    linear-gradient(160deg, #163152, #0a1628 55%, #1a3a5c);
  border-radius: 1.1rem;
}

.brand-logo {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 7.5rem;
  height: 2.55rem;
  padding: 0.4rem 0.65rem;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brand-logo-detail {
  height: 2.85rem;
  max-width: 9rem;
  padding: 0.45rem 0.75rem;
}

.brand-logo-card {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  height: 1.85rem;
  max-width: 5.25rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0.45rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.brand-logo-strip {
  height: 1.55rem;
  max-width: 4.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  box-shadow: none;
}

.brand-pill.has-logo {
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
}

.brand-pill.has-logo .brand-pill-name {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.brand-chip.has-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.brand-chip.has-logo .brand-chip-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.product-media .product-placeholder-brand {
  opacity: 0.35;
}

@media (min-width: 640px) {
  .detail-info {
    padding: 1.7rem 1.6rem 1.85rem;
  }

  .detail-specs dl > div {
    padding: 1.1rem 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-boot-img,
  .hero-slide.is-active .hero-boot-img,
  .product-card,
  .product-image,
  .btn {
    transition: none !important;
    animation: none !important;
  }

  .product-card:hover,
  .product-card:focus-within {
    transform: none;
  }

  .product-card:hover .product-image,
  .product-card:focus-within .product-image {
    transform: none;
  }
}
