/* ============================================
   Perdue Shop — Design System
   Aesthetic: "Refined Antique × Elegant Surrealism"
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Color Palette - Night Sky × Golden Warmth */
  --color-bg: #0a0a12;
  --color-bg-secondary: #111122;
  --color-surface: #1a1a2e;
  --color-surface-hover: #252540;
  --color-border: rgba(212, 175, 105, 0.15);
  --color-border-hover: rgba(212, 175, 105, 0.35);

  /* Gold Accent */
  --color-gold: #d4af69;
  --color-gold-light: #e8d5a3;
  --color-gold-dim: rgba(212, 175, 105, 0.6);

  /* Blue Star */
  --color-star: #6b8cce;
  --color-star-glow: rgba(107, 140, 206, 0.3);

  /* Text */
  --color-text: #e8e4dc;
  --color-text-muted: #9a9490;
  --color-text-dim: #6a6460;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'kaisei-harunoumi', 'Georgia', serif;
  --font-body: 'kaisei-harunoumi', 'Noto Sans JP', -apple-system, sans-serif;
  --font-product: 'kaisei-harunoumi', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Pair with body's overflow-x:hidden so off-canvas elements (cart drawer,
     decorations) can't leak a tiny horizontal scroll on mobile. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: url('https://pub-b2d3bd8583c9461f89cdd849a084e707.r2.dev/products-bg.jpeg') center top / cover no-repeat fixed;
  background-color: #f0e8d8;
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-gold-light);
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
  color: var(--color-text);
}

/* --- Header --- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-normal) var(--ease-out);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'old-man-eloquent', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-gold) !important;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Hide text while Adobe Fonts are loading to prevent FOUT */
.wf-loading .logo,
.wf-loading .product-title,
.wf-loading .product-detail-title,
.wf-loading .nav-link,
.wf-loading .section-title,
.wf-loading .about-text,
.wf-loading .footer-links a,
.wf-loading .footer-copy {
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: 'charcuterie-serif', 'kaisei-harunoumi', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text-muted) !important;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-gold-light) !important;
}

.cart-btn {
  position: relative;
  padding: var(--space-xs);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.cart-btn:hover {
  color: var(--color-gold);
}

.cart-icon-img {
  display: none;
}

.cart-icon-video {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--color-gold);
  color: var(--color-bg);
  font-size: 0.65rem;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-link {
  display: flex;
  align-items: center;
  color: var(--color-text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.account-link:hover {
  color: var(--color-gold);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, var(--color-star-glow), transparent 60%),
              radial-gradient(ellipse at 50% 80%, rgba(212, 175, 105, 0.05), transparent 50%),
              var(--color-bg);
}

/* Hero Video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s var(--ease-smooth);
}

.hero-video.ready {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(107, 140, 206, 0.6), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 70% 85%, rgba(212, 175, 105, 0.4), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 45% 15%, rgba(107, 140, 206, 0.8), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
  transition: opacity 1.5s var(--ease-smooth);
}

/* 動画再生時は星エフェクトをフェードアウト */
.hero.video-playing::before {
  opacity: 0;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-star);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-shadow: 0 0 60px rgba(212, 175, 105, 0.2);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.6s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.9s forwards;
}

.hero-cta {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 0.8em 2.5em;
  border: 1px solid var(--color-gold-dim);
  color: var(--color-gold) !important;
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.2s forwards;
}

.hero-cta:hover {
  background: rgba(212, 175, 105, 0.1);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 175, 105, 0.1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Products Section --- */
.products-section {
  padding: var(--space-xl) var(--space-md);
  max-width: 100%;
}

.products-section .section-title {
  color: #3a2f25;
}

.products-section .products-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'charcuterie-serif', 'kaisei-harunoumi', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-md);
}

/* --- Product Card --- */
.product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image-container {
  position: relative;
  overflow: visible;
  background: transparent;
  padding: 12px 12px 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 4px 8px 8px;
  text-align: center;
}

.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.add-to-cart-btn {
  display: block;
  width: calc(100% - var(--space-md) * 2);
  margin: 0 var(--space-md) var(--space-md);
  padding: 10px 0;
  flex-shrink: 0;
  font-family: var(--font-product);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #6b4c2a;
  border: 1px solid rgba(107, 76, 42, 0.3);
  background: transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.add-to-cart-btn:hover {
  background: rgba(107, 76, 42, 0.08);
  border-color: rgba(107, 76, 42, 0.5);
}

.add-to-cart-btn:active {
  transform: scale(0.98);
}

.add-to-cart-btn.added {
  background: rgba(107, 76, 42, 0.12);
  border-color: #6b4c2a;
  color: #3a2f25;
}

/* Variant Selector (multi-variant products) */
.variant-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--space-md) var(--space-md);
  animation: fadeIn 0.2s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.variant-option-btn {
  padding: 8px 0;
  font-family: var(--font-product);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #6b4c2a;
  border: 1px solid rgba(107, 76, 42, 0.25);
  background: transparent;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.variant-option-btn:hover {
  background: rgba(107, 76, 42, 0.08);
  border-color: rgba(107, 76, 42, 0.5);
  color: #3a2f25;
}

.variant-option-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.variant-option-btn.added {
  background: rgba(107, 76, 42, 0.12);
  border-color: #6b4c2a;
  color: #3a2f25;
}

.product-title {
  font-family: 'old-man-eloquent', 'kaisei-harunoumi', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: #3a2f25;
  margin-bottom: var(--space-xs);
  word-break: keep-all;
  overflow-wrap: break-word;
}



.product-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: #6b4c2a;
  margin-bottom: var(--space-sm);
}

/* Loading */
.product-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-sm);
}

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

/* --- About --- */
.about-section {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: transparent;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 105, 0.03), transparent 60%),
              var(--color-bg);
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
}

.about-text {
  font-family: 'charcuterie-serif', 'kaisei-harunoumi', sans-serif;
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--color-text-muted);
}

/* --- Footer --- */
#site-footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-family: 'charcuterie-serif', 'kaisei-harunoumi', sans-serif;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--color-gold-dim);
}

.footer-copy {
  font-family: 'charcuterie-serif', sans-serif;
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* --- Cart Sidebar --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.cart-close {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.cart-close:hover {
  color: var(--color-text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
}

.cart-empty {
  text-align: center;
  color: var(--color-text-dim);
  padding: var(--space-lg) 0;
}

.cart-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-link {
  flex-shrink: 0;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--color-surface);
  display: block;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.cart-item-link:hover .cart-item-image {
  opacity: 0.8;
}

.cart-item-title-link {
  display: block;
  text-decoration: none;
}

.cart-item-title-link:hover .cart-item-title {
  color: var(--color-gold);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold-dim);
  margin-bottom: 6px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--color-gold);
  border-radius: 20px;
  overflow: hidden;
}

.cart-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.cart-qty-btn:hover {
  background: rgba(255,255,255,0.08);
}

.cart-qty-trash {
  color: var(--color-text-dim);
}

.cart-qty-trash:hover {
  color: #e57373;
}

.cart-qty-count {
  min-width: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-text);
  user-select: none;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: #4ea8e0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out);
}

.cart-item-remove:hover {
  color: #74bfef;
}

.cart-footer {
  padding: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.cart-discount-info {
  margin-bottom: 0.6rem;
}

.cart-discount-tag {
  font-family: var(--font-product);
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
}

.cart-discount-ok {
  background: rgba(100, 200, 120, 0.15);
  color: #7dcf8a;
  border: 1px solid rgba(100, 200, 120, 0.3);
}

.cart-discount-ng {
  background: rgba(220, 100, 80, 0.12);
  color: #e07a6a;
  border: 1px solid rgba(220, 100, 80, 0.25);
}

.cart-discount-note {
  font-size: 0.72rem;
  opacity: 0.8;
}

.cart-savings {
  margin-bottom: 0.5rem;
}

.cart-savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-product);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.cart-subtotal-struck {
  text-decoration: line-through;
  opacity: 0.7;
}

.cart-savings-discount {
  color: #7dcf8a;
  font-weight: 500;
}

.cart-coupon-code {
  font-size: 0.78em;
  letter-spacing: 0.05em;
  opacity: 0.75;
  font-weight: 400;
}

.cart-savings-badge {
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(100, 200, 120, 0.14);
  border: 1px solid rgba(100, 200, 120, 0.32);
  color: #7dcf8a;
  font-family: var(--font-product);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.cart-total-discounted #cart-total-price {
  color: #7dcf8a;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
  font-family: var(--font-product);
  font-size: 1.2rem;
  color: var(--color-text);
}

#cart-total-price {
  color: var(--color-gold);
}

.checkout-btn {
  width: 100%;
  padding: 1em;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.checkout-btn:hover {
  box-shadow: 0 4px 20px rgba(212, 175, 105, 0.3);
  transform: translateY(-1px);
}

.checkout-btn:active {
  transform: translateY(0);
}

/* --- Language Switch --- */
.lang-switch {
  display: flex;
  align-items: center;
  margin-right: var(--space-sm);
}

.lang-select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 5px 28px 5px 10px;
  color: var(--color-gold);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23d4af69' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
}

.lang-select:hover {
  border-color: var(--color-gold-dim);
}

.lang-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 8px rgba(212, 175, 105, 0.15);
}

.lang-select option {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  padding: 8px;
}

/* --- Stars (JS-driven) --- */
.stars-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  animation: starTwinkle 4s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0; transform: scale(0.8); }
  20% { opacity: 1; transform: scale(1.2); }
  50% { opacity: 0.4; transform: scale(1); }
  80% { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0.1; transform: scale(0.9); }
}

/* Shooting star */
.shooting-star {
  position: absolute;
  width: 100px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
  border-radius: 1px;
  transform: rotate(var(--shoot-angle, 30deg));
  animation: shoot 2.5s ease-out forwards;
}

.shooting-star::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
}

@keyframes shoot {
  0% {
    opacity: 1;
    transform: rotate(var(--shoot-angle, 30deg)) translateX(0);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--shoot-angle, 30deg)) translateX(300px);
  }
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .products-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* --- Hero: video fills width naturally on mobile --- */
  .hero {
    min-height: auto;
    display: block;
    overflow: hidden;
    padding-top: 56px;
    background: transparent;
    margin-bottom: 0;
  }

  .hero::before {
    display: none;
  }

  .hero-video-wrap {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .hero-video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .hero-title {
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  .products-section {
    padding: var(--space-md) var(--space-xs);
    overflow-x: hidden;
  }

  .products-section .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .product-image-container {
    padding: 8px 8px 0;
  }

  .product-info {
    padding: 8px;
  }

  .product-title {
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .product-price {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .add-to-cart-btn {
    width: calc(100% - 16px);
    margin: 0 8px 8px;
    padding: 6px 0;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  .variant-selector {
    padding: 0 8px 8px;
    gap: 4px;
  }

  .variant-option-btn {
    padding: 5px 0;
    font-size: 0.7rem;
  }

  /* --- Mobile Nav: [Lang] [Account] [Cart] on right --- */
  #site-header {
    padding: 10px var(--space-sm);
  }

  .nav-links {
    gap: 10px;
    align-items: center;
  }

  /* Hide text links (Products, About) */
  .nav-links .nav-link:not(.account-link) {
    display: none;
  }

  /* Reorder: lang first, then account, then cart */
  .lang-switch {
    order: 1;
    margin-right: 0;
  }

  .nav-links .account-link {
    order: 2;
    display: flex;
    padding: 6px;
  }

  .cart-btn {
    order: 3;
  }

  .nav-links .account-link svg {
    width: 22px;
    height: 22px;
  }

  /* Lang selector: compact */
  .lang-select {
    font-size: 0.7rem;
    padding: 4px 22px 4px 6px;
    border-radius: 4px;
    background-size: 8px;
    background-position: right 5px center;
  }

  /* Cart button */
  .cart-btn .cart-icon-img {
    width: 30px;
  }

  .footer-links {
    gap: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
  }

  .about-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* Nav avatar (logged in) */
.account-link .nav-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
