/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:       #F5E0B0;
  --sand-light: #FDF6E3;
  --terracotta: #C4673A;
  --terra-dark: #9A4A26;
  --fox-cream:  #FAF0D7;
  --black:      #1A1008;
  --white:      #FFFFFF;
  --gray:       #6B5B4E;
  --gray-light: #E8DDD0;
  --font-jp:    'Noto Sans JP', sans-serif;
  --font-en:    'Playfair Display', serif;
  --font-body:  'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--fox-cream);
  color: var(--black);
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-en); }

/* ── Header ── */
header {
  background: var(--black);
  color: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-svg { width: 52px; height: 52px; flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand { font-family: var(--font-en); font-size: 1.4rem; letter-spacing: 0.06em; color: var(--sand); }
.logo-text .tagline { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-light); }

nav { display: flex; gap: 2rem; align-items: center; }
nav a { color: var(--gray-light); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color .2s; }
nav a:hover { color: var(--sand); }

.cart-btn {
  background: var(--terracotta);
  border: none;
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .15s;
  font-family: var(--font-body);
}
.cart-btn:hover { background: var(--terra-dark); transform: scale(1.04); }
.cart-count {
  background: var(--sand);
  color: var(--black);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #3A2010 60%, var(--terracotta) 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--sand);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.5rem; line-height: 1.15; }
.hero h1 span { color: var(--sand); }
.hero-jp { font-family: var(--font-jp); font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-cta {
  display: inline-block;
  background: var(--sand);
  color: var(--black);
  padding: 0.85rem 2.2rem;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background .2s, transform .15s;
}
.hero-cta:hover { background: var(--white); transform: translateY(-2px); }

/* ── Section ── */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; color: var(--black); margin-bottom: 0.4rem; }
.section-header .sub { font-family: var(--font-jp); color: var(--gray); font-size: 0.9rem; }
.section-divider { width: 48px; height: 3px; background: var(--terracotta); margin: 0.8rem auto 0; border-radius: 2px; }

/* ── Filters ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  color: var(--gray);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: all .2s;
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,16,8,0.08);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26,16,8,0.15); }

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.product-img-placeholder { background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%); }

.product-origin {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(26,16,8,0.7);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
}

.product-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: var(--font-en); font-size: 1.05rem; margin-bottom: 0.3rem; }
.product-name-jp { font-family: var(--font-jp); font-size: 0.75rem; color: var(--gray); margin-bottom: 0.6rem; }
.product-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.6; flex: 1; margin-bottom: 1rem; }

.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--terracotta); }
.product-price span { font-size: 0.7rem; color: var(--gray); font-weight: 400; display: block; }

.add-to-cart {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background .2s, transform .15s;
  font-family: var(--font-body);
}
.add-to-cart:hover { background: var(--terracotta); transform: scale(1.05); }

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  background: var(--black);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 { font-size: 1.1rem; }
.cart-header .jp { font-family: var(--font-jp); font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.close-cart {
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background .2s;
}
.close-cart:hover { background: rgba(255,255,255,0.1); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; color: var(--gray); margin-top: 3rem; }
.cart-empty .emoji { font-size: 3rem; display: block; margin-bottom: 0.8rem; }

.cart-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.cart-item-emoji { font-size: 2rem; flex-shrink: 0; width: 48px; text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-en); font-size: 0.9rem; margin-bottom: 2px; }
.cart-item-jp { font-family: var(--font-jp); font-size: 0.7rem; color: var(--gray); }
.cart-item-price { color: var(--terracotta); font-weight: 600; font-size: 0.88rem; margin-top: 4px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
}
.qty-btn {
  background: var(--gray-light); border: none;
  width: 22px; height: 22px;
  border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--sand); }
.qty-num { font-size: 0.85rem; min-width: 18px; text-align: center; }
.remove-item {
  background: none; border: none;
  color: var(--gray); cursor: pointer;
  font-size: 1.1rem; padding: 0.2rem;
  transition: color .15s;
  align-self: center;
}
.remove-item:hover { color: #c0392b; }

.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 2px solid var(--gray-light);
  background: var(--fox-cream);
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem; color: var(--gray);
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.2rem;
}
.cart-total-jp { font-family: var(--font-jp); font-size: 0.7rem; color: var(--gray); font-weight: 400; }
.checkout-btn {
  width: 100%;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 0.9rem;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.checkout-btn:hover { background: var(--terra-dark); transform: scale(1.02); }

/* ── About Strip ── */
.about-strip {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}
.about-strip-inner { max-width: 800px; margin: 0 auto; }
.about-strip h2 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--sand); }
.about-strip .jp { font-family: var(--font-jp); font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; }
.about-strip p { color: rgba(255,255,255,0.75); line-height: 1.8; font-size: 0.95rem; }

.country-tags { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.country-tag {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--sand);
}

/* ── Footer ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
footer a { color: var(--sand); text-decoration: none; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 24px;
  font-size: 0.85rem;
  z-index: 300;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { gap: 1rem; }
  nav a { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
}
