/*
Theme Name: Le Jardin Takeout
Theme URI: https://jardindessens.jp/
Author: Le Jardin des Sens
Description: ル・ジャルダン・デ・サンスのテイクアウト専用WordPressテーマ。商品・お知らせ・Stripe決済を管理画面から運用できます。
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: le-jardin-takeout
*/

    :root {
      --white: #fff;
      --paper: #f8f5f0;
      --ivory: #eee7dc;
      --line: #ded5c8;
      --text: #312d28;
      --muted: #7b736b;
      --black: #171512;
      --gold: #9d7a46;
      --gold-soft: #d8c29b;
      --serif-en: 'Cormorant Garamond', Georgia, serif;
      --serif-jp: 'Noto Serif JP', serif;
      --sans-jp: 'Noto Sans JP', sans-serif;
      --ease: 0.35s ease;
    }

/* WordPress dynamic additions */
.admin-bar .site-header { top: 32px; }
.product-name a { color: inherit; text-decoration: none; }
.product-card.is-unavailable { opacity: .68; }
.status-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #9b9284;
  color: #6f665a;
  font-size: 13px;
  letter-spacing: .08em;
}
.news-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid rgba(33, 29, 24, .18);
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(33, 29, 24, .18);
}
.news-date { color: #7a6e5d; font-size: 13px; }
.news-title { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.news-copy { margin: 0; color: #5f584f; line-height: 1.9; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 620px) {
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--white);
      color: var(--text);
      font-family: var(--sans-jp);
      font-weight: 300;
      line-height: 1.9;
      letter-spacing: 0.04em;
      -webkit-font-smoothing: antialiased;
    }
    img { display: block; max-width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }

    .site-header {
      position: fixed;
      z-index: 1000;
      top: 0;
      left: 0;
      width: 100%;
      background: rgba(255,255,255,0.96);
      border-bottom: 1px solid rgba(222,213,200,0.8);
      backdrop-filter: blur(10px);
    }
    .header-inner {
      max-width: 1180px;
      margin: 0 auto;
      height: 74px;
      padding: 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand {
      display: inline-flex;
      flex-direction: column;
      line-height: 1.25;
      min-width: 190px;
    }
    .brand-en {
      font-family: var(--serif-en);
      font-size: 1.02rem;
      letter-spacing: 0.12em;
      color: var(--black);
    }
    .brand-ja {
      margin-top: 3px;
      font-family: var(--serif-jp);
      font-size: 0.62rem;
      letter-spacing: 0.18em;
      color: var(--muted);
    }
    .nav-list {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0;
      margin: 0;
    }
    .nav-list a {
      display: block;
      padding: 8px 14px;
      font-family: var(--serif-en);
      font-size: 0.78rem;
      letter-spacing: 0.11em;
      color: var(--text);
      transition: color var(--ease), border-color var(--ease);
      white-space: nowrap;
    }
    .nav-list a:hover { color: var(--gold); }
    .nav-list .current a {
      color: var(--gold);
      border: 1px solid var(--gold-soft);
    }

    .hero {
      position: relative;
      min-height: 680px;
      height: 100vh;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: var(--black);
      text-align: center;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('assets/images/toyama-french-takeout-hero.png');
      background-size: cover;
      background-position: center;
      opacity: 0.72;
      transform: scale(1.045);
      animation: heroZoom 8s ease-out forwards;
    }
    .hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to bottom, rgba(10,8,6,0.34), rgba(10,8,6,0.68)),
        radial-gradient(circle at center, rgba(255,255,255,0.08), rgba(0,0,0,0.38));
    }
    @keyframes heroZoom { to { transform: scale(1); } }
    .hero-content {
      position: relative;
      z-index: 1;
      width: min(760px, calc(100% - 48px));
      margin-top: 42px;
      color: var(--white);
    }
    .eyebrow {
      display: block;
      margin-bottom: 24px;
      font-family: var(--serif-en);
      font-size: 0.76rem;
      letter-spacing: 0.38em;
      text-transform: uppercase;
      color: var(--gold-soft);
    }
    h1, h2, h3, p { margin-top: 0; }
    .hero h1 {
      margin-bottom: 24px;
      font-family: var(--serif-jp);
      font-size: clamp(1.72rem, 4vw, 3.2rem);
      font-weight: 300;
      line-height: 1.55;
      letter-spacing: 0.14em;
    }
    .divider {
      display: block;
      width: 44px;
      height: 1px;
      background: var(--gold-soft);
      margin: 0 auto 28px;
    }
    .hero-lead {
      margin: 0 auto 34px;
      max-width: 560px;
      font-family: var(--serif-jp);
      font-size: clamp(0.9rem, 1.55vw, 1.05rem);
      line-height: 2.35;
      letter-spacing: 0.09em;
      color: rgba(255,255,255,0.88);
    }
    .hero-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 12px 28px;
      border: 1px solid transparent;
      font-family: var(--serif-jp);
      font-size: 0.83rem;
      letter-spacing: 0.14em;
      cursor: pointer;
      transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
    }
    .btn-dark { background: var(--text); color: var(--white); border-color: var(--text); }
    .btn-dark:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
    .btn-light { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.42); }
    .btn-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
    .btn-outline { background: transparent; color: var(--text); border-color: var(--gold); }
    .btn-outline:hover { background: #eee0c9; }

    .section { padding: 92px 28px; }
    .section-inner { max-width: 1080px; margin: 0 auto; }
    .section-head { text-align: center; margin-bottom: 54px; }
    .label {
      display: block;
      margin-bottom: 10px;
      font-family: var(--serif-en);
      font-size: 0.72rem;
      letter-spacing: 0.36em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .section-title {
      margin-bottom: 18px;
      font-family: var(--serif-jp);
      font-size: clamp(1.35rem, 2.6vw, 2rem);
      font-weight: 300;
      line-height: 1.7;
      letter-spacing: 0.13em;
      color: var(--black);
    }
    .section-copy {
      max-width: 720px;
      margin: 0 auto;
      color: var(--muted);
      font-family: var(--serif-jp);
      line-height: 2.25;
      letter-spacing: 0.08em;
    }
    .intro { background: var(--paper); }
    .intro-panel {
      max-width: 780px;
      margin: 0 auto;
      padding: 44px 36px;
      background: rgba(255,255,255,0.72);
      border: 1px solid var(--line);
      text-align: center;
    }
    .intro-title {
      margin-bottom: 18px;
      font-family: var(--serif-jp);
      font-size: 1.12rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      color: var(--black);
    }

    .products { background: var(--white); }
    .product-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 28px;
    }
    .product-card {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      background: var(--white);
      border: 1px solid var(--line);
      transition: box-shadow var(--ease), transform var(--ease);
    }
    .product-card:hover {
      box-shadow: 0 16px 48px rgba(49,45,40,0.10);
      transform: translateY(-4px);
    }
    .product-image {
      position: relative;
      display: block;
      width: 100%;
      padding: 0;
      border: 0;
      overflow: hidden;
      aspect-ratio: 1.35 / 1;
      background: var(--ivory);
      cursor: zoom-in;
    }
    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.7s ease;
    }
    .product-card:hover .product-image img { transform: scale(1.04); }
    .product-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 28px 24px 26px;
    }
    .product-name {
      margin-bottom: 7px;
      font-family: var(--serif-jp);
      font-size: 1.05rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      color: var(--black);
    }
    .product-price {
      margin-bottom: 18px;
      font-family: var(--serif-en);
      font-size: 1.28rem;
      letter-spacing: 0.06em;
      color: var(--gold);
    }
    .product-desc {
      flex: 1;
      margin-bottom: 24px;
      font-size: 0.86rem;
      color: var(--muted);
      line-height: 2.05;
    }
    .actions { display: grid; gap: 10px; }
    .btn-phone, .btn-checkout, .btn-detail {
      width: 100%;
      min-height: 48px;
      padding: 12px 14px;
      border: 1px solid var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: var(--serif-jp);
      font-size: 0.82rem;
      letter-spacing: 0.13em;
      cursor: pointer;
      transition: background var(--ease), color var(--ease), border-color var(--ease);
    }
    .btn-phone { background: var(--text); color: var(--white); }
    .btn-phone:hover { background: var(--gold); border-color: var(--gold); }
    .btn-detail { background: var(--text); color: var(--white); }
    .btn-detail:hover { background: var(--gold); border-color: var(--gold); }
    .btn-checkout { background: transparent; color: var(--text); border-color: var(--gold); }
    .btn-checkout:hover:not(:disabled) { background: #eee0c9; }
    .btn-checkout:disabled { opacity: 0.6; cursor: not-allowed; }
    .btn-checkout svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }



    .gallery { background: linear-gradient(180deg, var(--white), var(--paper)); }
    .gallery.section { padding-top: 64px; padding-bottom: 64px; }
    .fade-slider {
      position: relative;
      margin: 0 auto;
      max-width: 980px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: var(--ivory);
      box-shadow: 0 18px 50px rgba(20, 16, 12, 0.06);
    }
    .fade-stage {
      position: relative;
      aspect-ratio: 16 / 9;
      min-height: 360px;
    }
    .fade-slide {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      opacity: 0;
      pointer-events: none;
      cursor: zoom-in;
      transition: opacity 1.15s ease;
    }
    .fade-slide.is-active {
      opacity: 1;
      pointer-events: auto;
    }
    .fade-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .fade-nav {
      position: absolute;
      top: 50%;
      z-index: 3;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255,255,255,0.72);
      background: rgba(255,255,255,0.58);
      color: var(--text);
      transform: translateY(-50%);
      cursor: pointer;
      backdrop-filter: blur(8px);
      transition: background var(--ease), color var(--ease), border-color var(--ease);
    }
    .fade-nav:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
    .fade-nav.prev { left: 18px; }
    .fade-nav.next { right: 18px; }
    .fade-dots {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 18px;
      z-index: 3;
      display: flex;
      justify-content: center;
      gap: 9px;
    }
    .fade-dot {
      width: 7px;
      height: 7px;
      padding: 0;
      border: 1px solid rgba(255,255,255,0.9);
      border-radius: 50%;
      background: rgba(255,255,255,0.55);
      cursor: pointer;
    }
    .fade-dot.is-active { background: var(--gold); border-color: var(--gold); }

    .delivery-list {
      list-style: none;
      margin: 18px 0 0;
      padding: 0;
      border-top: 1px solid var(--line);
    }
    .delivery-list li {
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
    }
    .delivery-list strong {
      color: var(--black);
      font-weight: 400;
    }

    .delivery {
      background: var(--paper);
    }
    .two-column {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
      align-items: stretch;
    }
    .info-box {
      padding: 34px;
      background: rgba(255,255,255,0.72);
      border: 1px solid var(--line);
    }
    .info-box h3 {
      margin-bottom: 14px;
      font-family: var(--serif-jp);
      font-size: 1.04rem;
      font-weight: 400;
      letter-spacing: 0.12em;
      color: var(--black);
    }
    .info-box p, .info-box li {
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 2.15;
    }
    .notes {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .notes li + li { margin-top: 8px; }

    .contact {
      background: var(--black);
      color: var(--white);
      text-align: center;
    }
    .contact .section-title { color: var(--white); }
    .phone-large {
      display: inline-block;
      margin: 8px 0 22px;
      font-family: var(--serif-en);
      font-size: clamp(2.1rem, 5vw, 3.4rem);
      letter-spacing: 0.1em;
      color: var(--white);
      transition: color var(--ease);
    }
    .phone-large:hover { color: var(--gold-soft); }
    .hours {
      margin-bottom: 32px;
      font-family: var(--serif-jp);
      color: rgba(255,255,255,0.68);
      line-height: 2.2;
    }
    .hours strong { color: var(--gold-soft); font-weight: 400; }

    .access { background: var(--paper); text-align: center; }
    .shop-name {
      margin-bottom: 16px;
      font-family: var(--serif-jp);
      font-size: 1.16rem;
      font-weight: 400;
      letter-spacing: 0.14em;
    }
    .address { color: var(--muted); line-height: 2.25; }
    .address a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

    .footer {
      padding: 26px 28px;
      background: var(--black);
      text-align: center;
      color: rgba(255,255,255,0.35);
      font-family: var(--serif-en);
      font-size: 0.72rem;
      letter-spacing: 0.16em;
    }

    .back-top {
      position: fixed;
      right: 20px;
      bottom: 22px;
      z-index: 900;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,0.18);
      background: var(--text);
      color: var(--white);
      opacity: 0;
      pointer-events: none;
      cursor: pointer;
      transition: opacity var(--ease), background var(--ease);
    }
    .back-top.visible { opacity: 1; pointer-events: auto; }
    .back-top:hover { background: var(--gold); }

    .lightbox {
      display: none;
      position: fixed;
      z-index: 2000;
      inset: 0;
      padding: 28px;
      background: rgba(8,7,6,0.92);
      align-items: center;
      justify-content: center;
    }
    .lightbox.open { display: flex; }
    .lightbox img {
      max-width: min(1000px, 92vw);
      max-height: 86vh;
      object-fit: contain;
      box-shadow: 0 24px 90px rgba(0,0,0,0.5);
    }
    .lightbox-close {
      position: absolute;
      top: 22px;
      right: 22px;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255,255,255,0.35);
      background: transparent;
      cursor: pointer;
    }
    .lightbox-close::before,
    .lightbox-close::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 1px;
      background: var(--white);
    }
    .lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
    .lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }


    .checkout-modal {
      display: none;
      position: fixed;
      z-index: 1800;
      inset: 0;
      padding: 24px;
      background: rgba(8,7,6,0.68);
      overflow-y: auto;
    }
    .checkout-modal.open { display: block; }
    .checkout-dialog {
      width: min(760px, 100%);
      margin: 40px auto;
      background: var(--white);
      border: 1px solid var(--line);
      box-shadow: 0 28px 90px rgba(0,0,0,0.24);
    }
    .checkout-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 18px;
      padding: 28px 30px 20px;
      border-bottom: 1px solid var(--line);
    }
    .checkout-head h2 {
      margin: 0;
      font-family: var(--serif-jp);
      font-size: 1.15rem;
      font-weight: 400;
      letter-spacing: 0.12em;
    }
    .checkout-head p { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
    .checkout-close {
      flex: 0 0 auto;
      width: 36px;
      height: 36px;
      border: 1px solid var(--line);
      background: var(--white);
      cursor: pointer;
      font-size: 1.3rem;
      line-height: 1;
      color: var(--text);
    }
    .checkout-form { padding: 26px 30px 30px; }
    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .form-field { display: grid; gap: 7px; }
    .form-field.full { grid-column: 1 / -1; }
    .form-field label {
      font-family: var(--serif-jp);
      font-size: 0.78rem;
      letter-spacing: 0.09em;
      color: var(--text);
    }
    .form-field input,
    .form-field select,
    .form-field textarea {
      width: 100%;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      background: var(--white);
      color: var(--text);
      font-family: var(--serif-jp);
      font-size: 0.9rem;
    }
    .form-field textarea { min-height: 86px; resize: vertical; }

    .postal-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
    }
    .postal-lookup {
      min-height: 44px;
      padding: 9px 14px;
      border: 1px solid var(--text);
      background: var(--white);
      color: var(--text);
      font-family: var(--serif-jp);
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      cursor: pointer;
      white-space: nowrap;
      transition: background var(--ease), color var(--ease), border-color var(--ease);
    }
    .postal-lookup:hover:not(:disabled) { background: var(--text); color: var(--white); }
    .postal-lookup:disabled { opacity: 0.55; cursor: wait; }
    .postal-status {
      min-height: 1.4em;
      margin: 0;
      color: var(--muted);
      font-size: 0.74rem;
      line-height: 1.6;
    }
    .checkout-summary {
      margin: 22px 0;
      padding: 18px 20px;
      border: 1px solid var(--line);
      background: var(--ivory);
      font-family: var(--serif-jp);
      color: var(--text);
      line-height: 1.9;
    }
    .checkout-summary strong { font-weight: 500; color: var(--black); }
    .checkout-note {
      margin: 0 0 20px;
      color: var(--muted);
      font-size: 0.78rem;
      line-height: 1.9;
    }
    .checkout-submit {
      width: 100%;
      min-height: 50px;
      border: 1px solid var(--text);
      background: var(--text);
      color: var(--white);
      font-family: var(--serif-jp);
      font-size: 0.86rem;
      letter-spacing: 0.13em;
      cursor: pointer;
      transition: background var(--ease), border-color var(--ease);
    }
    .checkout-submit:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
    .checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; }

    @keyframes spinner { to { transform: rotate(360deg); } }

    @media (max-width: 980px) {
      .header-inner { height: 64px; padding: 0 18px; }
      .nav-list { gap: 4px; }
      .nav-list a { padding: 6px 9px; font-size: 0.7rem; letter-spacing: 0.08em; }
      .product-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
      .two-column { grid-template-columns: 1fr; }
    }
    @media (max-width: 620px) {
      .site-header,
      .admin-bar .site-header {
        position: relative;
        top: auto;
      }
    }
    @media (max-width: 560px) {
      .brand-en { font-size: 0.86rem; }
      .brand-ja { font-size: 0.56rem; }
      .hero { min-height: 560px; height: 86vh; }
      .hero-content { width: min(100% - 34px, 640px); }
      .hero h1 { font-size: 1.45rem; letter-spacing: 0.09em; }
      .section { padding: 68px 18px; }
      .gallery.section { padding-top: 42px; padding-bottom: 42px; }
      .fade-stage { min-height: 0; aspect-ratio: 4 / 3; }
      .fade-nav { width: 36px; height: 36px; }
      .fade-nav.prev { left: 10px; }
      .fade-nav.next { right: 10px; }
      .intro-panel, .info-box { padding: 30px 22px; }
      .hero-actions { flex-direction: column; }
      .btn { width: 100%; }
      .checkout-modal { padding: 12px; }
      .checkout-dialog { margin: 16px auto; }
      .checkout-head, .checkout-form { padding-left: 20px; padding-right: 20px; }
      .form-grid { grid-template-columns: 1fr; }
    }

/* v1.2.0: conversion, cart, availability and legal pages */
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.header-cart {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  background: var(--black);
  color: var(--white);
  font-family: var(--serif-en);
  font-size: .76rem;
  letter-spacing: .09em;
  cursor: pointer;
}
.header-cart span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--sans-jp);
  font-size: .65rem;
}
.trust-strip { background: var(--black); color: var(--white); }
.trust-inner {
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trust-inner div {
  min-height: 92px;
  padding: 20px 26px;
  display: grid;
  place-content: center;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.13);
}
.trust-inner div:first-child { border-left: 1px solid rgba(255,255,255,.13); }
.trust-inner strong {
  color: var(--gold-soft);
  font-family: var(--serif-en);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.trust-inner span { margin-top: 4px; color: rgba(255,255,255,.68); font-size: .72rem; line-height: 1.6; }
.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(23,21,18,.92);
  color: var(--white);
  font-size: .68rem;
  letter-spacing: .08em;
}
.product-price small {
  margin-left: 5px;
  font-family: var(--serif-jp);
  color: var(--muted);
  font-size: .65rem;
}
.checkout-dialog { width: min(820px, 100%); }
.cart-view { padding: 24px 30px 30px; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.cart-item img { width: 112px; height: 92px; object-fit: cover; background: var(--ivory); }
.cart-item-copy h3 {
  margin: 0 0 4px;
  font-family: var(--serif-jp);
  font-size: .9rem;
  font-weight: 400;
}
.cart-item-copy p { margin: 0 0 8px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.cart-item-copy strong { color: var(--gold); font-weight: 500; }
.cart-quantity { display: flex; align-items: center; gap: 7px; }
.cart-quantity button {
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}
.cart-quantity span { min-width: 24px; text-align: center; font-size: .82rem; }
.cart-quantity .cart-remove { margin-left: 5px; width: auto; color: #8a4a3f; font-size: .7rem; }
.cart-empty {
  padding: 48px 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}
.cart-empty a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.cart-footer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-footer > p { margin: 0 0 16px; color: var(--muted); font-size: .74rem; }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 5px; font-family: var(--serif-jp); }
.cart-subtotal strong { color: var(--gold); font-size: 1.22rem; font-weight: 400; }
.cart-back {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: .78rem;
}
.checkout-step-title { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.checkout-step-title span {
  display: block;
  color: var(--gold);
  font-family: var(--serif-en);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.checkout-step-title h3 {
  margin: 3px 0 0;
  font-family: var(--serif-jp);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .08em;
}
.form-field.is-disabled { opacity: .45; }
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.summary-items { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); list-style: none; }
.summary-items li,
.checkout-summary > div { display: flex; justify-content: space-between; gap: 18px; }
.summary-items li + li,
.checkout-summary > div + div { margin-top: 5px; }
.summary-items strong, .checkout-summary > div span { white-space: nowrap; font-weight: 400; }
.summary-total { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--black); font-size: 1.05rem; }
.summary-total span { color: var(--gold); font-size: 1.18rem; }
.terms-check {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.8;
}
.terms-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold); }
.terms-check a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.cart-launcher {
  display: none;
  position: fixed;
  z-index: 950;
  right: 22px;
  bottom: 22px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  background: var(--black);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  cursor: pointer;
}
.cart-launcher.has-items { display: flex; align-items: center; gap: 9px; }
.cart-launcher span { font-family: var(--serif-en); letter-spacing: .14em; }
.cart-launcher strong {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--gold);
  font-size: .7rem;
}
.cart-launcher em { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.25); font-style: normal; font-size: .78rem; }
.footer { font-family: var(--sans-jp); letter-spacing: .04em; }
.footer p { margin: 14px 0 0; font-family: var(--serif-en); letter-spacing: .16em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { color: rgba(255,255,255,.64); font-size: .72rem; }
.footer-links a:hover { color: var(--gold-soft); }
.legal-page { min-height: 70vh; padding: 150px 28px 88px; background: var(--paper); }
.legal-inner { width: min(900px, 100%); margin: 0 auto; }
.legal-inner > .label,
.legal-inner > .section-title { text-align: center; }
.legal-table, .legal-copy { margin-top: 48px; background: var(--white); border: 1px solid var(--line); }
.legal-table dl {
  margin: 0;
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1px solid var(--line);
}
.legal-table dl:last-child { border-bottom: 0; }
.legal-table dt, .legal-table dd { margin: 0; padding: 20px 24px; }
.legal-table dt { background: var(--ivory); font-family: var(--serif-jp); font-size: .82rem; }
.legal-table dd { color: var(--muted); font-size: .84rem; }
.legal-table a, .legal-copy a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.legal-copy { padding: 42px; }
.legal-copy section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-copy h2 { margin: 0 0 12px; font-family: var(--serif-jp); font-size: 1rem; font-weight: 400; }
.legal-copy p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 2.1; }
.legal-nav { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.legal-nav a { padding: 10px 14px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .72rem; }

@media (max-width: 980px) {
  .product-grid { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 620px) {
  .nav-list li:not(.current):not(:last-child) { display: none; }
  .header-cart { padding: 5px 9px; }
  .trust-inner { width: 100%; grid-template-columns: 1fr; }
  .trust-inner div { min-height: auto; padding: 12px 18px; border: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .trust-inner div:first-child { border-left: 0; }
  .trust-inner span { font-size: .68rem; }
  .products.section { padding-left: 12px; padding-right: 12px; }
  .products .section-head { margin-bottom: 32px; padding: 0 8px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card:hover { transform: none; }
  .product-image { aspect-ratio: 1 / 1; }
  .product-badge { top: 7px; left: 7px; padding: 4px 7px; font-size: .58rem; }
  .product-body { padding: 14px 10px 12px; }
  .product-name { min-height: 2.9em; margin-bottom: 5px; font-size: .78rem; line-height: 1.45; letter-spacing: .04em; }
  .product-price { margin-bottom: 12px; font-size: 1rem; line-height: 1.45; }
  .product-price small { display: block; margin: 2px 0 0; font-size: .57rem; line-height: 1.35; }
  .product-desc { display: none; }
  .actions { gap: 6px; }
  .btn-detail, .btn-checkout { min-height: 39px; padding: 7px 5px; font-size: .66rem; letter-spacing: .02em; line-height: 1.35; text-align: center; }
  .cart-launcher.has-items {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }
  .back-top { bottom: 70px; }
  .cart-view { padding: 18px; }
  .cart-item { grid-template-columns: 76px 1fr; gap: 11px; padding: 10px; }
  .cart-item img { width: 76px; height: 76px; }
  .cart-item-copy h3 { font-size: .78rem; line-height: 1.45; }
  .cart-item-copy p { font-size: .7rem; }
  .checkout-head { padding-top: 20px; }
  .legal-page { padding: 54px 16px 64px; }
  .legal-table dl { grid-template-columns: 1fr; }
  .legal-table dt, .legal-table dd { padding: 14px 16px; }
  .legal-copy { padding: 26px 20px; }
  .footer-links { flex-direction: column; }
}
@media (max-width: 370px) {
  .products.section { padding-left: 8px; padding-right: 8px; }
  .product-grid { gap: 7px; }
  .product-body { padding-left: 8px; padding-right: 8px; }
  .btn-detail, .btn-checkout { font-size: .62rem; }
}
