/* Bata showroom — premium retail, touch-first, responsive */

:root {
  --bata-red: #c41e3a;
  --bata-red-dark: #9e1830;
  --bata-red-soft: rgba(196, 30, 58, 0.12);
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  /* Horizontal inset for all page content (wide screens stay full-width inside this gutter). */
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --space: clamp(1rem, 2vw, 1.5rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --tap-min: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-2);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--bata-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--bata-red-dark);
}

:focus-visible {
  outline: 3px solid var(--bata-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--bata-red);
  color: #fff;
}

.skip-link:focus {
  left: var(--page-gutter);
  top: var(--page-gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: 100%;
  padding: 0.75rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap-min);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  min-height: var(--tap-min);
  padding: 0.35rem 0;
}

.site-logo__img {
  display: block;
  width: auto;
  height: clamp(28px, 5vw, 40px);
  max-width: min(200px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.site-nav__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav__link:active {
  transform: scale(0.98);
}

.site-nav__link--accent {
  background: var(--bata-red);
  color: #fff;
}

.site-nav__link--accent:hover {
  background: var(--bata-red-dark);
  color: #fff;
}

.site-main {
  outline: none;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem var(--page-gutter);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  width: 100%;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer__hint {
  margin: 0.35rem 0 0;
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-min);
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--large {
  min-height: 56px;
  padding: 0 1.6rem;
  font-size: 1.05rem;
}

.btn--primary {
  background: var(--bata-red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--bata-red-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--bata-red);
  color: var(--bata-red);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--page-gutter);
}

.hero--idle .hero__bg {
  animation: heroShift 18s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1.06) translate(-2%, 1%);
    opacity: 0.95;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--bata-red-soft), transparent 55%),
    linear-gradient(165deg, #fff 0%, #f0f0f2 100%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: fadeUp 0.7s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bata-red);
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Story CTA strip */
.story-cta {
  width: 100%;
  padding: 0 var(--page-gutter) 1.5rem;
}

.story-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.2s;
  min-height: 72px;
}

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

.story-cta__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bata-red);
}

.story-cta__title {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.story-cta__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bata-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

/* Sections */
.section-head {
  width: 100%;
  padding: 2rem var(--page-gutter) 1rem;
}

.section-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head__sub {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
}

.featured {
  padding-bottom: 0.5rem;
}

.catalog {
  padding-bottom: 3rem;
}

/* Toolbar */
.catalog__toolbar {
  width: 100%;
  padding: 0 var(--page-gutter) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog__search.input-large {
  width: 100%;
  max-width: 520px;
  min-height: 56px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.catalog__search:focus {
  border-color: var(--bata-red);
  outline: none;
  box-shadow: 0 0 0 3px var(--bata-red-soft);
}

/* Gender + occasion: stacked on small screens, one row on wide screens */
.catalog__filter-row--pair {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 720px) {
  .catalog__filter-row--pair {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 100px;
  }

  .catalog__filter-row--pair .catalog__filter-group {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
  }

  .catalog__filter-row--pair .catalog__filters {
    display: inline-flex;
    flex-wrap: wrap;
  }
}

.catalog__filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.catalog__filter-group--subcategory .catalog__select {
  max-width: min(100%, 520px);
}

.catalog__filter-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.catalog__select {
  width: 100%;
  max-width: 520px;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font: inherit;
  font-weight: 600;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.catalog__select:focus {
  border-color: var(--bata-red);
  outline: none;
  box-shadow: 0 0 0 3px var(--bata-red-soft);
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chip:not(.chip--active):hover {
  border-color: var(--bata-red);
  color: var(--bata-red);
}

.catalog__empty {
  width: 100%;
  padding: 1rem var(--page-gutter);
  color: var(--ink-muted);
  font-weight: 600;
}

/* Product grid */
.product-grid {
  width: 100%;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-grid--featured {
  padding-bottom: 0.5rem;
}

.product-card {
  animation: fadeUp 0.55s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }

.product-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
}

.product-card__link:hover,
.product-card__link:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(196, 30, 58, 0.25);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fafafa, #eee);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card__link:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bata-red);
  color: #fff;
}

.product-card__body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.product-card__category {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.product-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--bata-red);
}

.product-card__cta-icon {
  transition: transform 0.2s;
}

.product-card__link:hover .product-card__cta-icon {
  transform: translateX(4px);
}

/* PDP */
.pdp {
  width: 100%;
  padding: 1rem var(--page-gutter) 3rem;
}

.pdp__top {
  margin-bottom: 1rem;
}

/* Product copy + QR side by side on wide screens */
.pdp__meta-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 900px) {
  .pdp__meta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }
}

.pdp__info {
  margin: 0;
  padding-top: 0.25rem;
}

.pdp__qr {
  min-width: 0;
}

/* QR card in PDP column: stack copy + code, not a second horizontal split */
.pdp__qr .qr-section {
  margin: 0;
  height: fit-content;
}

.pdp__qr .qr-section .qr-section__inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.pdp__qr .qr-section__copy {
  width: 100%;
}

.pdp__qr .qr-section__text {
  max-width: none;
}

.pdp__qr .qr-section__url {
  text-align: left;
}

.pdp__category {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bata-red);
}

.pdp__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pdp__colorway {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.pdp__variants {
  margin: 0 0 1.25rem;
}

.pdp__variants-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.pdp__variants-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp__variants-item {
  margin: 0;
}

.pdp__variant {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pdp__variant:hover {
  border-color: var(--bata-red);
  color: var(--bata-red);
}

.pdp__variant--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.pdp__variant--active:hover {
  color: #fff;
  border-color: var(--ink);
}

.pdp__article {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.pdp__article-code {
  font-weight: 700;
  color: var(--ink);
}

.pdp__description {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.pdp__attrs {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.pdp__attr {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .pdp__attr {
    grid-template-columns: 1fr;
  }
}

.pdp__attr-key {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--ink-muted);
}

.pdp__attr-val {
  margin: 0;
  font-weight: 600;
}

/* Iframe block — dominant 3D area */
.iframe-block {
  margin: 0 0 2rem;
}

.iframe-block__head {
  margin-bottom: 0.75rem;
}

.iframe-block__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.iframe-block__hint {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.iframe-block__frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f0f10;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  min-height: min(55vh, 560px);
}

.iframe-block__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.iframe-block__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #e0e0e0;
  font-size: 1.05rem;
}

.iframe-block__fallback-sub {
  margin-top: 0.5rem;
  opacity: 0.75;
  font-size: 0.9rem;
}

.iframe-block__fallback code {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* QR */
.qr-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.qr-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 720px) {
  .qr-section__inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.qr-section__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.qr-section__text {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.qr-section__url {
  margin: 0;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--ink-muted);
  font-family: ui-monospace, monospace;
}

.qr-section__visual {
  display: flex;
  justify-content: center;
}

.qr-section__canvas {
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 220px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-section__canvas img {
  display: block;
}

.qr-section__error {
  margin: 0;
  color: var(--bata-red);
  font-weight: 600;
  text-align: center;
}

.qr-section__noscript {
  font-size: 0.95rem;
}

/* Story page */
.story-page {
  width: 100%;
  padding: 1rem var(--page-gutter) 3rem;
}

.story-page__top {
  margin-bottom: 1rem;
}

.story-page__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.story-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story-page__intro {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.story-page__video {
  margin-bottom: 2rem;
}

.video-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  min-height: min(50vh, 520px);
}

.video-frame__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--surface);
  color: var(--ink-muted);
  text-align: center;
}

.video-frame--empty code {
  font-size: 0.9em;
}

.story-page__footer {
  text-align: center;
}

/* Not found */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
}

.not-found__inner {
  max-width: 480px;
  text-align: center;
}

.not-found__title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.not-found__text {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .qr-section,
  .story-cta,
  .catalog__toolbar {
    display: none;
  }
}
