:root {
  --ink: #16120e;
  --muted: #6e6358;
  --line: #e8e0d5;
  --paper: #fffaf3;
  --panel: #ffffff;
  --soft: #f6f0e7;
  --accent: #c07c28;
  --accent-dark: #7d4c14;
  --accent-soft: #f3e2c5;
  --success: #0f7a4f;
  --danger: #be2f2f;
  --shadow: 0 20px 50px rgba(36, 24, 11, 0.11);
  --shadow-sm: 0 6px 18px rgba(36, 24, 11, 0.07);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand-logo,
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 22px rgba(23, 20, 17, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.5rem);
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a svg {
  opacity: 0.65;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav a:hover svg {
  opacity: 1;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0 1.1rem 0 0.9rem;
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-icon {
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cart-button:hover .cart-icon {
  transform: scale(1.12) translateY(-1px);
  opacity: 1;
}

.cart-button strong {
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
}

.cart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(23, 20, 17, 0.2);
}

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.86) 0%, rgba(12, 10, 8, 0.66) 42%, rgba(12, 10, 8, 0.18) 100%),
    url("https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1800&q=84") center/cover;
  color: #fff;
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 2rem;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow--light,
.track-form .eyebrow {
  color: rgba(244, 201, 130, 0.9);
}

.eyebrow-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.hero .eyebrow {
  color: #f4c982;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 7.5rem);
  font-weight: 900;
  line-height: 0.9;
  max-width: 10ch;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: #f4c982;
}

.hero-text {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions,
.summary-actions,
.form-actions,
.payment-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.summary-actions,
.form-actions,
.payment-actions {
  margin-top: 1.25rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.hero-proof span {
  padding: 0.9rem 1rem;
  background: rgba(255, 250, 243, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.3;
}

.proof-icon {
  flex-shrink: 0;
  opacity: 0.75;
  color: #f4c982;
}

.hero-proof span i {
  font-style: normal;
  font-size: 1rem;
}

.primary-link,
.primary-button,
.secondary-button,
.add-button,
.pay-button {
  min-height: 2.9rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-link,
.primary-button,
.add-button,
.pay-button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.primary-link:hover,
.primary-button:hover,
.add-button:hover:not(:disabled),
.pay-button:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(123, 74, 22, 0.22);
}

.secondary-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Hero ghost secondary (white border on dark bg) */
.hero-secondary {
  min-height: 2.9rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Track form submit button */
.track-submit-btn {
  min-height: 2.9rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  align-self: end;
}

.track-submit-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(125, 76, 20, 0.3);
}

/* Arrow icon inside buttons */
.btn-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.primary-link:hover .btn-arrow,
.track-submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.shop-section,
.checkout-section,
.track-section,
.summary-section,
.payment-section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1240px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-heading.compact,
.summary-container .section-heading,
.checkout-container .section-heading,
.payment-container .section-heading {
  display: block;
}

.section-heading h1,
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-heading h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-copy {
  max-width: 520px;
  color: var(--muted);
  font-weight: 600;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.filter-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-right: 0.25rem;
  flex-shrink: 0;
}

.filter-select,
.form-grid input,
.track-form input,
select,
textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus,
.form-grid input:focus,
.track-form input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 120, 42, 0.13);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* ── Mobile 2-up grid override (added via media query below) ── */

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.product-media {
  position: relative;
  background: var(--soft);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-slider,
.detail-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
  text-decoration: none;
}

.product-slider-track img {
  flex: 0 0 100%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(23, 20, 17, 0.62);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-arrow.prev {
  left: 0.65rem;
}

.slider-arrow.next {
  right: 0.65rem;
}

.slider-arrow:hover {
  background: var(--accent);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  transform: translateX(-50%);
}

.slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.slider-dot.active {
  width: 1.25rem;
  background: var(--accent);
  border-color: var(--accent);
}

.product-media img,
.product-card>img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.product-body {
  padding: 0.75rem 0.9rem 0.8rem;
}

.product-brand {
  font-size: 0.72rem;
  color: var(--accent-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.product-title-row {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.product-title-row h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.product-title-row h3 a {
  text-decoration: none;
}

.product-title-row h3 a:hover {
  color: var(--accent-dark);
}

.price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.compare-price {
  margin-left: 0.4rem;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-body p,
.empty-message,
.empty-cart,
.form-message {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.6rem;
}

.product-meta span {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.add-button {
  width: 100%;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-card-actions .add-button,
.product-card-actions .secondary-button {
  min-height: 2.1rem;
  padding: 0.42rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 7px;
}

.add-button:disabled,
.pay-button:disabled,
.primary-button:disabled {
  background: #d7d0c6;
  border-color: #d7d0c6;
  color: #7c746b;
  cursor: not-allowed;
  box-shadow: none;
}

.track-section {
  max-width: 1240px;
}

.track-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  background: linear-gradient(135deg, #1a1410 0%, #231c14 100%);
  color: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(23, 16, 8, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.track-form .section-heading {
  margin: 0;
}

.track-form .section-heading h2,
.track-form .eyebrow {
  color: #fff;
}

.track-form label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 800;
}

.track-form span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
}

.track-result {
  grid-column: 1 / -1;
  color: #f7e4c4;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  grid-row: 1;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  grid-row: 2;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  grid-row: 3;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  grid-row: 1 / span 3;
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.footer-nav a svg {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-nav a:hover svg {
  opacity: 1;
}

.error-message {
  color: var(--danger);
  background: #fff1f1;
  border: 1px solid #ffd1d1;
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
  grid-column: 1 / -1;
}

.summary-section,
.payment-section {
  max-width: 980px;
}

.summary-container,
.checkout-container,
.payment-container,
.cart-panel,
.checkout-form,
.sidebar-card,
.success-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.summary-items {
  margin: 1.5rem 0;
}

.summary-item,
.cart-item,
.sidebar-item,
.payment-item,
.detail-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.summary-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.item-details h3,
.cart-item h3 {
  font-size: 1rem;
  color: var(--ink);
}

.item-brand,
.item-price {
  color: var(--muted);
  font-size: 0.9rem;
}

.item-actions,
.quantity-controls,
.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quantity-button,
.remove-button {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.remove-button {
  width: auto;
  padding: 0 0.7rem;
  color: var(--danger);
  border-color: #f3c0c0;
}

.item-total {
  min-width: 90px;
  text-align: right;
  font-weight: 800;
}

.summary-totals,
.sidebar-totals {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.total-row,
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  color: var(--muted);
}

.grand-total,
.summary-row.total-row {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.9rem;
}

.summary-actions .secondary-button,
.summary-actions .primary-button,
.form-actions .secondary-button,
.form-actions .primary-button,
.payment-actions .secondary-button,
.payment-actions .primary-button {
  flex: 1;
}

.checkout-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  padding: clamp(1rem, 4vw, 3rem);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.checkout-form-page,
.payment-card {
  margin-top: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2,
.payment-card h2,
.detail-group h3,
.sidebar-card h3 {
  font-size: 1.18rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid label.span-2 {
  grid-column: span 2;
}

.form-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-options {
  display: grid;
  gap: 0.8rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.payment-option.selected {
  border-color: var(--accent);
  background: #fff8ec;
}

.payment-option input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.payment-option-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-sidebar {
  position: sticky;
  top: 6rem;
}

.sidebar-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}

.sidebar-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

.payment-details,
.items-list {
  display: grid;
  gap: 1rem;
}

.detail-group {
  padding: 1rem;
  background: #fff;
}

.address-display p {
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
}

.item-info p,
.item-pricing span {
  color: var(--muted);
  font-size: 0.88rem;
}

.item-pricing {
  text-align: right;
}

.success-panel {
  text-align: center;
  max-width: 720px;
  margin: 3rem auto;
}

.success-panel h2 {
  margin-bottom: 0.8rem;
}

.success-panel .primary-button {
  margin-top: 1.25rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.85rem clamp(1rem, 4vw, 3rem) 0;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.breadcrumb span[aria-current] {
  color: var(--ink);
  font-weight: 700;
}

/* ── Product detail section ─────────────────────────────────────────────── */
.product-detail-section {
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 4rem);
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Related products section ───────────────────────────────────────────── */
.related-section {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.related-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.related-heading h2 em {
  font-style: italic;
  color: var(--accent);
}

.related-view-all {
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

@media (max-width: 560px) {
  .related-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.detail-gallery {
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.detail-gallery img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.product-detail-copy h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.detail-description {
  color: var(--muted);
  margin: 1rem 0;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.detail-actions .primary-button,
.detail-actions .secondary-button {
  flex: 1;
}

.share-message {
  margin-top: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.cart-panel {
  position: sticky;
  top: 6rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-proof,
  .filter-bar,
  .track-form,
  .checkout-page,
  .form-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .form-grid label.span-2 {
    grid-column: span 1;
  }

  .section-heading {
    display: block;
  }

  .section-copy {
    margin-top: 0.7rem;
  }

  .order-sidebar,
  .cart-panel {
    position: static;
  }

  .summary-item,
  .payment-item,
  .cart-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .item-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .cart-button span {
    display: none;
  }

  .hero-actions,
  .summary-actions,
  .form-actions,
  .payment-actions {
    flex-direction: column;
  }

  /* ── 2-column product grid on mobile ── */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  /* Compact card body for 2-up layout */
  .product-body {
    padding: 0.5rem 0.55rem 0.6rem;
  }

  .product-brand {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
  }

  .product-title-row {
    gap: 0.2rem;
    margin-bottom: 0.3rem;
  }

  .product-title-row h3 {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .price {
    font-size: 0.85rem;
  }

  .compare-price {
    font-size: 0.75rem;
  }

  .product-body p {
    font-size: 0.72rem;
    line-height: 1.35;
    /* Clamp description to 2 lines on mobile */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-meta {
    gap: 0.25rem;
    margin: 0.35rem 0 0.45rem;
  }

  .product-meta span {
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
  }

  /* Card actions: keep Add + View side-by-side */
  .product-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .product-card-actions .add-button,
  .product-card-actions .secondary-button {
    min-height: 1.85rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  /* Size buttons inside card — smaller on mobile */
  .product-card-actions .size-btn {
    min-width: 1.65rem;
    height: 1.65rem;
    font-size: 0.68rem;
    border-radius: 5px;
  }

  .size-btn-label {
    font-size: 0.62rem;
  }

  .product-badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.4rem;
    top: 0.5rem;
    left: 0.5rem;
  }

  /* Slider arrows smaller on 2-up cards */
  .product-slider .slider-arrow {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 1.1rem;
  }

  .product-slider .slider-arrow.prev {
    left: 0.3rem;
  }

  .product-slider .slider-arrow.next {
    right: 0.3rem;
  }

  /* detail-actions stay flex-wrap */
  .detail-actions {
    flex-direction: column;
  }

  .hero-proof {
    display: none;
  }

  /* Tighter section padding on mobile */
  .shop-section,
  .track-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Filter bar stacks on mobile */
  .filter-bar {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .filter-select {
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
  }

  /* Category card row more compact */
  .category-cards-row {
    gap: 0.65rem;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }
}

/* ── Very small phones ≤ 400px ── */
@media (max-width: 400px) {
  .product-grid {
    gap: 0.5rem;
  }

  .product-title-row h3 {
    font-size: 0.72rem;
  }

  .price {
    font-size: 0.8rem;
  }

  /* Stack actions vertically on tiny screens */
  .product-card-actions {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .product-card-actions .size-btn-group {
    grid-column: 1;
  }
}

/* ── Tracking Result Card ───────────────────────── */
.track-card {
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.track-status {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f7e4c4;
}

.track-order-num {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.track-shipping {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.4rem;
}

.track-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
  align-items: center;
}

.track-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.track-link {
  color: #f4c982;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.track-link:hover {
  color: #fde29a;
}

.track-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin-top: 0.25rem;
}

.track-error {
  color: #fca5a5;
  font-weight: 700;
}

/* ── Size Selector ──────────────────────────────── */
.size-selector {
  margin: 1rem 0 0.5rem;
}

.size-selector label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

/* Button group wrapper */
.size-btn-group {
  margin-bottom: 0.6rem;
}

/* Label above buttons in card (no .size-selector wrapper) */
.size-btn-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

/* Scrollable row of size buttons */
.size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

/* Individual size button */
.size-btn {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: var(--accent);
  background: #fff8ec;
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.size-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192, 124, 40, 0.28);
  transform: translateY(-1px);
}

/* Error state – shake the group outline */
.size-btn-group--error .size-btn-row {
  outline: 2px solid #ef4444;
  outline-offset: 3px;
  border-radius: 8px;
  animation: size-shake 0.35s ease;
}

@keyframes size-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }
}

/* Inside a product card – full-width spanning */
.product-card-actions .size-btn-group {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

/* Slightly smaller buttons inside cards */
.product-card-actions .size-btn {
  min-width: 1.9rem;
  height: 1.9rem;
  font-size: 0.75rem;
  border-radius: 6px;
}


/* Size badge shown next to item name in cart / summary / payment */
.size-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: #fff8ec;
  color: var(--accent-dark);
  border: 1px solid rgba(184, 120, 42, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* ─── Toast Notification ──────────────────────────────────────────────────── */
.shoes-art-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  min-width: 220px;
  max-width: min(90vw, 420px);
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
  box-shadow: 0 12px 32px rgba(23, 20, 17, 0.18);
}

.shoes-art-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shoes-art-toast--success {
  background: #14532d;
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.shoes-art-toast--error {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* ── Category Cards Row ────────────────────────────────────────────────────── */
.category-cards-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.15rem 1.25rem;
  margin-bottom: 1.6rem;
  scrollbar-width: none;
}

.category-cards-row::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem 0.8rem;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  min-width: 106px;
  max-width: 126px;
  text-align: center;
  font-family: var(--font-body);
  box-shadow: 0 2px 10px rgba(36, 24, 11, 0.05);
  position: relative;
  outline: none;
}

.category-card:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(36, 24, 11, 0.13);
  border-color: var(--accent-soft);
  background: #fffdf9;
}

.category-card.active {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff8ed 0%, #fff3e0 100%);
  box-shadow: 0 8px 26px rgba(192, 124, 40, 0.2);
}

.category-card.active .category-card-name {
  color: var(--accent-dark);
  font-weight: 800;
}

.category-card.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
}

.category-card-img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(232, 224, 213, 0.8);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(36, 24, 11, 0.06);
}

.category-card:hover .category-card-img {
  box-shadow: 0 6px 18px rgba(36, 24, 11, 0.12);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.category-card:hover .category-card-img img {
  transform: scale(1.09);
}

/* "All" card gradient icon container */
.category-card-all {
  background: linear-gradient(135deg, #f3e2c5 0%, #f8f0e3 100%);
  color: var(--accent);
  border-color: var(--accent-soft);
}

.category-card.active .category-card-all {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffe9c6 100%);
}

/* Fallback initial letter */
.category-card-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.category-card-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  max-width: 96px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease, font-weight 0.2s ease;
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 560px) {
  .category-card {
    min-width: 86px;
    max-width: 100px;
    padding: 0.65rem 0.7rem 0.6rem;
    border-radius: 12px;
  }

  .category-card-img {
    width: 54px;
    height: 54px;
    border-radius: 9px;
  }

  .category-card-name {
    font-size: 0.69rem;
  }
}

/* ── Inner page heading italic em ───────────────────────────────────────────── */
.section-heading h1 em {
  font-style: italic;
  color: var(--accent);
}

/* ── Checkout Progress Stepper ─────────────────────────────────────────────── */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem clamp(1rem, 4vw, 3rem) 0;
  max-width: 520px;
  margin: 0 auto;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--soft);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.checkout-step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 124, 40, 0.3);
}

.checkout-step.active .step-label {
  color: var(--accent-dark);
  font-weight: 800;
}

.checkout-step.done .step-num {
  background: #14532d;
  border-color: #14532d;
  color: #bbf7d0;
}

.checkout-step.done .step-label {
  color: var(--success);
}

.checkout-step-bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 0.4rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.checkout-step-bar.done {
  background: var(--success);
}

/* ── Form Section Icon ─────────────────────────────────────────────────────── */
.form-section h2,
.sidebar-card h3,
.detail-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-icon {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Success Panel Icon ────────────────────────────────────────────────────── */
.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: #dcfce7;
  border: 2px solid rgba(74, 222, 128, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  color: #15803d;
  box-shadow: 0 8px 28px rgba(21, 128, 61, 0.15);
}

/* ── Secondary button with back arrow ─────────────────────────────────────── */
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}