/* LuckyCart - design tokens & global styles */
:root {
  /* Brand color theme - default Blue (#2A5BD7 from reference) */
  --brand: #2A5BD7;
  --brand-600: #2451c2;
  --brand-700: #1d44a8;
  --brand-50: #EAF2FF;
  --brand-100: #d5e3ff;
  --brand-200: #b8cefb;

  /* Neutrals */
  --ink: #1a1d24;
  --ink-2: #333333;
  --ink-3: #555a66;
  --ink-4: #8a8f9c;
  --ink-5: #b8bcc5;
  --line: #E5E7EB;
  --line-2: #EEF0F4;
  --bg: #FFFFFF;
  --bg-tint: #F7F7F7;
  --bg-tint-2: #FBFBFC;
  --bg-blue-tint: #F4F8FF;

  /* Accents */
  --line-green: #06C755; /* LINE brand */
  --warn: #E8842A;
  --sale: #DC3545;

  /* Type */
  --ff: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --ff-en: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --ff-num: "Inter", "Noto Sans JP", system-ui, sans-serif;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 1px 2px rgba(42,91,215,0.2);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,91,215,0.25); }
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-100);
}
.btn-ghost:hover { background: var(--brand-50); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--bg-tint); color: var(--ink-3);
  font-size: 12px; font-weight: 500;
}
.chip.brand { background: var(--brand-50); color: var(--brand); }

/* Section */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-title .en {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Card */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.muted { color: var(--ink-3); }
.dim  { color: var(--ink-4); }
.tag-tax {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-4);
  margin-left: 4px;
  font-weight: 500;
}

/* Placeholder image style for missing imagery (striped) */
.ph {
  background:
    repeating-linear-gradient(135deg, #f1f3f7 0 8px, #e7ebf1 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--ink-4);
}

/* Prevent layout shift in loading images */
img.fit { width: 100%; height: 100%; object-fit: cover; }

/* Smooth scrolling for nav links */
html { scroll-behavior: smooth; }

/* Marquee strip */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(40px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
