/* ============================================================
   MATE's メイツ — Light Theme
   Palette: #f5f4f0 bg / #ffffff surface / #e8000d red / #0f0f0f text
   ============================================================ */

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

:root {
  --bg:         #f5f4f0;
  --surface:    #ffffff;
  --surface-2:  #fafaf8;
  --border:     #e0ddd6;
  --text:       #0f0f0f;
  --text-muted: #6b6b6b;
  --red:        #e8000d;
  --red-dim:    #b50009;
  --white:      #ffffff;
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;
  --font-jp:    'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dim);
  border-color: var(--red-dim);
}
.btn-ghost {
  background: rgba(255,255,255,0.55);
  color: var(--text);
  border-color: var(--text);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 13px;
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.btn-sm:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(245,244,240,0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
.logo-wordmark {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.logo-wordmark span {
  color: var(--red);
}
.logo-sub {
  display: flex;
  align-items: center;
  gap: 5px;
}
.logo-line {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--red);
  flex-shrink: 0;
}
.logo-kana {
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  line-height: 1;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(245,244,240,0.8);
}
.nav-links a:hover { color: var(--red); }
.nav.scrolled .nav-links a {
  color: var(--text);
  text-shadow: none;
}
.theme-switch {
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}
.theme-switch:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
}

/* ── CART NAV ICON ── */
.nav-cart { position: relative; }
.cart-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: var(--text);
  transition: color 0.2s;
}
.cart-link:hover { color: var(--red) !important; }
.cart-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cart-badge--empty {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/eg-background.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(245,244,240,0.50) 0%,
      rgba(245,244,240,0.68) 55%,
      rgba(245,244,240,0.97) 100%),
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(232,0,13,0.04) 0%, transparent 70%);
}
.hero-bg::after {
  content: 'メイツ';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--font-jp);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  line-height: 1;
}
/* Hero diagonal accent strip */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--red);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
}
.hero-kana {
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint span {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--text);
  overflow: hidden;
  padding: 10px 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 16px;
}
.marquee-track .sep {
  color: rgba(255,255,255,0.4);
  padding: 0 4px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-label {
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1;
  color: var(--text);
}
.section-intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .lead {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.about-text p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}
.pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.pillar-icon {
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  width: 40px;
}
.pillar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pillar-text strong {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.pillar-text span {
  font-size: 14px;
  color: var(--text-muted);
}
.about-visual { position: relative; }
.about-car-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
}
.about-tag {
  position: absolute;
  bottom: -16px;
  right: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 8px 20px;
  text-transform: uppercase;
}

/* ── SHOP ── */
.shop-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(232,0,13,0.04);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(232,0,13,0.08);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}
.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.placeholder-kana {
  font-family: var(--font-jp);
  font-size: 32px;
  color: var(--red);
}
.placeholder-content span:last-child {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.product-info { padding: 20px; }
.product-kana {
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.product-info h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--text);
}
.product-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

/* ── COMMUNITY ── */
.community-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.community-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: linear-gradient(to left, rgba(232,0,13,0.04), transparent);
  pointer-events: none;
}
.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.community-text .lead {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}
.community-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}
.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--red);
  padding: 10px 24px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.community-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-left: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.comm-card-type {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.comm-card-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.comm-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.comm-card-tags span {
  font-size: 11px;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.contact-item span:last-child {
  font-size: 15px;
  color: var(--text);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.contact-form .form-input,
.contact-form .form-row {
  width: 100%;
  align-self: stretch;
}
.contact-form .btn-primary {
  align-self: flex-start;
}
.contact-feedback {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  border-radius: 2px;
}
.contact-feedback--ok  { background: rgba(0,160,70,0.10); border: 1px solid rgba(0,160,70,0.35); color: #1a7a45; }
.contact-feedback--err { background: rgba(180,0,0,0.08);  border: 1px solid rgba(180,0,0,0.30);  color: #b00000; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ── FOOTER ── */
.footer {
  background: var(--text);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links strong,
.footer-social strong {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.footer-links a,
.footer-social a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-social a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-kana {
  font-family: var(--font-jp);
  color: var(--red) !important;
  letter-spacing: 0.1em;
}

.kana-tip {
  position: relative;
  cursor: default;
}
.kana-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.kana-tip:hover::after {
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .community-inner, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245,244,240,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; color: var(--text); }
  .nav-toggle { display: flex; z-index: 1001; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

.pd-breadcrumb {
  padding: 80px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.pd-breadcrumb .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pd-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--red); }
.pd-breadcrumb-sep { margin: 0 8px; opacity: .4; }
.pd-section { padding: 32px 0 80px; }
.pd-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pd-gallery { position: sticky; top: 80px; }
.pd-main-img-wrap { aspect-ratio: 1 / 1; background: var(--surface); border-radius: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.pd-main-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pd-main-img-wrap:hover .pd-main-img { transform: scale(1.03); }
.pd-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 68px; height: 68px; border: 2px solid var(--border); border-radius: 2px; overflow: hidden; padding: 0; background: var(--surface); cursor: pointer; transition: border-color .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover, .pd-thumb.active { border-color: var(--red); }
.pd-info { display: flex; flex-direction: column; gap: 20px; }
.pd-category-label { font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.pd-title { font-family: var(--font-cond); font-size: clamp(32px, 4vw, 52px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; color: var(--text); margin: 0; }
.pd-price { font-family: var(--font-cond); font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.pd-short-desc { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.pd-variants { display: flex; flex-direction: column; gap: 16px; }
.pd-variant-group { display: flex; flex-direction: column; gap: 8px; }
.pd-variant-label { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pd-variant-label span { color: var(--text); }
.pd-variant-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-variant-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border: 1.5px solid var(--border); background: transparent; color: var(--text); font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: border-color .15s, background .15s; }
.pd-variant-btn:hover { border-color: var(--text-muted); }
.pd-variant-btn.selected { border-color: var(--red); color: var(--red); }
.pd-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.15); display: inline-block; flex-shrink: 0; }
.pd-stock-msg { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pd-stock--in  { color: #2e7d32; }
.pd-stock--out { color: var(--red); }
.pd-qty-row { display: flex; align-items: center; gap: 16px; }
.pd-qty-label { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); width: 28px; }
.pd-qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 2px; overflow: hidden; }
.pd-qty-btn { width: 38px; height: 38px; background: var(--surface); border: none; color: var(--text); font-size: 18px; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.pd-qty-btn:hover { background: var(--surface-2); }
.pd-qty-input { width: 56px; height: 38px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; -moz-appearance: textfield; }
.pd-qty-input::-webkit-outer-spin-button, .pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-atc-btn { width: 100%; padding: 16px 24px; font-size: 16px; letter-spacing: .12em; }
.pd-atc-btn:disabled { opacity: .45; cursor: not-allowed; }
.pd-atc-toast { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border-radius: 2px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .25s, max-height .25s; }
.pd-atc-toast--show { opacity: 1; max-height: 60px; }
.pd-atc-toast--ok { background: rgba(46,125,50,.1); color: #2e7d32; border: 1px solid rgba(46,125,50,.3); }
.pd-atc-toast--err { background: rgba(232,0,13,.08); color: var(--red); border: 1px solid rgba(232,0,13,.25); }
.pd-full-desc { border-top: 1px solid var(--border); padding-top: 20px; }
.pd-details-toggle { font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); cursor: pointer; list-style: none; padding: 4px 0; }
.pd-details-toggle::-webkit-details-marker { display: none; }
.pd-details-toggle::before { content: '+ '; color: var(--red); }
details[open] .pd-details-toggle::before { content: '− '; }
.pd-details-body { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--text-muted); padding-top: 12px; }
.pd-continue-link { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; }
.pd-continue-link:hover { color: var(--red); }
.product-img-link { display: block; text-decoration: none; }
.product-info h3 a { color: var(--text); text-decoration: none; }
.product-info h3 a:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════ */

.cart-header { padding: 100px 0 24px; text-align: center; }
.cart-header .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cart-heading { font-family: var(--font-cond); font-size: clamp(40px, 6vw, 72px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: var(--text); margin: 8px 0 0; line-height: 1; }
.cart-empty { text-align: center; padding: 80px 0 120px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cart-empty-icon svg { width: 72px; height: 72px; color: var(--border); }
.cart-empty-title { font-family: var(--font-cond); font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--text); margin: 0; }
.cart-empty-sub { font-family: var(--font-body); font-size: 15px; color: var(--text-muted); max-width: 380px; line-height: 1.6; margin: 0; }
.cart-section { padding: 0 0 80px; }
.cart-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-items-header { display: grid; grid-template-columns: 1fr 100px 140px 100px 40px; gap: 16px; padding: 0 0 12px; border-bottom: 1px solid var(--border); font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); align-items: center; }
.ci-col-price, .ci-col-qty, .ci-col-total { text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr 100px 140px 100px 40px; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: center; }
.ci-product { display: flex; align-items: center; gap: 16px; }
.ci-img-wrap { width: 72px; height: 72px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.ci-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-img-placeholder { width: 100%; height: 100%; background: var(--surface-2); }
.ci-meta { flex: 1; min-width: 0; }
.ci-name { font-family: var(--font-cond); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text); line-height: 1.3; }
.ci-variant-label { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ci-price, .ci-total { font-family: var(--font-cond); font-size: 15px; font-weight: 700; color: var(--text); text-align: center; }
.ci-qty { text-align: center; }
.ci-qty-ctrl { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 2px; overflow: hidden; }
.ci-qty-btn { width: 28px; height: 32px; background: var(--surface); border: none; color: var(--text); font-size: 16px; cursor: pointer; transition: background .15s; }
.ci-qty-btn:hover { background: var(--surface-2); }
.ci-qty-input { width: 40px; height: 32px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 13px; -moz-appearance: textfield; }
.ci-qty-input::-webkit-outer-spin-button, .ci-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ci-remove { text-align: center; }
.ci-remove-btn { width: 28px; height: 28px; background: none; border: none; color: var(--text-muted); cursor: pointer; border-radius: 2px; padding: 4px; transition: color .15s; display: inline-flex; align-items: center; justify-content: center; }
.ci-remove-btn:hover { color: var(--red); }
.ci-remove-btn svg { width: 16px; height: 16px; }
.cart-clear-row { display: flex; justify-content: flex-start; padding: 16px 0 0; }
.cart-clear-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.cart-clear-btn:hover { color: var(--red); }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.cart-summary-title { font-family: var(--font-cond); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin: 0 0 4px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 14px; color: var(--text); }
.cart-summary-row--muted { color: var(--text-muted); font-size: 13px; }
.cart-summary-row--total { font-family: var(--font-cond); font-size: 20px; font-weight: 800; color: var(--text); }
.cart-summary-divider { height: 1px; background: var(--border); margin: 4px 0; }
.cart-checkout-btn { width: 100%; padding: 14px 24px; font-size: 15px; letter-spacing: .1em; margin-top: 4px; }
.cart-checkout-btn:disabled { opacity: .4; cursor: not-allowed; }
.cart-checkout-note { font-family: var(--font-body); font-size: 11px; color: var(--text-muted); text-align: center; }
.cart-continue-link { font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; text-align: center; }
.cart-continue-link:hover { color: var(--red); }
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-items-header { display: none; }
  .cart-item { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 12px; }
  .ci-product { grid-column: 1 / -1; }
  .ci-price::before, .ci-qty::before, .ci-total::before { content: attr(data-label) ': '; font-size: 11px; color: var(--text-muted); font-family: var(--font-cond); letter-spacing: .08em; text-transform: uppercase; display: block; }
  .ci-price, .ci-qty, .ci-total { text-align: left; }
  .ci-remove { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   MINI CART PANEL (light theme)
   ═══════════════════════════════════════════════════════════ */

.nav-cart { position: relative; }
.mini-cart { position: absolute; top: calc(100% + 12px); right: 0; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 16px 48px rgba(0,0,0,.15); display: flex; flex-direction: column; z-index: 1200; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mini-cart--open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mc-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.mc-title { font-family: var(--font-cond); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.mc-close-btn { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 2px 4px; line-height: 1; border-radius: 2px; transition: color .15s; }
.mc-close-btn:hover { color: var(--red); }
.mc-items { flex: 1; max-height: 320px; overflow-y: auto; padding: 8px 0; }
.mc-items::-webkit-scrollbar { width: 4px; }
.mc-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.mini-cart--loading .mc-loader { display: block; margin: 24px auto; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: mc-spin .7s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-loader { display: none; }
.mc-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.mc-item + .mc-item { border-top: 1px solid var(--border); }
.mc-img-wrap { width: 52px; height: 52px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.mc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-img-placeholder { width: 100%; height: 100%; background: var(--surface-2); }
.mc-meta { flex: 1; min-width: 0; }
.mc-name { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-qty-price { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 16px; color: var(--text-muted); font-family: var(--font-body); font-size: 13px; }
.mc-empty svg { width: 40px; height: 40px; color: var(--border); }
.mc-error { padding: 16px; font-family: var(--font-body); font-size: 12px; color: var(--red); text-align: center; }
.mc-more { font-family: var(--font-cond); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: center; padding: 6px 16px; border-top: 1px solid var(--border); }
.mc-footer { border-top: 1px solid var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mc-subtotal-row { display: flex; justify-content: space-between; font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--text); }
.mc-view-cart-btn { width: 100%; text-align: center; padding: 12px; font-size: 13px; letter-spacing: .1em; }
.mc-continue-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-align: center; padding: 0; transition: color .15s; }
.mc-continue-btn:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   MINI CART PANEL (light theme)
   ═══════════════════════════════════════════════════════════ */

.nav-cart { position: relative; }
.mini-cart { position: absolute; top: calc(100% + 12px); right: 0; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 16px 48px rgba(0,0,0,.15); display: flex; flex-direction: column; z-index: 1200; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mini-cart--open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mc-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.mc-title { font-family: var(--font-cond); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.mc-close-btn { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 2px 4px; line-height: 1; border-radius: 2px; transition: color .15s; }
.mc-close-btn:hover { color: var(--red); }
.mc-items { flex: 1; max-height: 320px; overflow-y: auto; padding: 8px 0; }
.mc-items::-webkit-scrollbar { width: 4px; }
.mc-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.mini-cart--loading .mc-loader { display: block; margin: 24px auto; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: mc-spin .7s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-loader { display: none; }
.mc-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.mc-item + .mc-item { border-top: 1px solid var(--border); }
.mc-img-wrap { width: 52px; height: 52px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.mc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-img-placeholder { width: 100%; height: 100%; background: var(--surface-2); }
.mc-meta { flex: 1; min-width: 0; }
.mc-name { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-qty-price { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 16px; color: var(--text-muted); font-family: var(--font-body); font-size: 13px; }
.mc-empty svg { width: 40px; height: 40px; color: var(--border); }
.mc-error { padding: 16px; font-family: var(--font-body); font-size: 12px; color: var(--red); text-align: center; }
.mc-more { font-family: var(--font-cond); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: center; padding: 6px 16px; border-top: 1px solid var(--border); }
.mc-footer { border-top: 1px solid var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mc-subtotal-row { display: flex; justify-content: space-between; font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--text); }
.mc-view-cart-btn { width: 100%; text-align: center; padding: 12px; font-size: 13px; letter-spacing: .1em; }
.mc-continue-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-align: center; padding: 0; transition: color .15s; }
.mc-continue-btn:hover { color: var(--red); }
