/* ============================================================
   LitPrints — Main Stylesheet
   Clean, minimal, premium boutique feel
   ============================================================ */

/* ------------------------------------------------------------
   Google Fonts Import
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ------------------------------------------------------------
   CSS Custom Properties — Themes
   Applied via data-theme attribute on <html>
   ------------------------------------------------------------ */
:root,
[data-theme="default"] {
  --color-primary: #2c2c2c;
  --color-accent: #c9a96e;
  --color-accent-dark: #a8885a;
  --color-bg: #fafafa;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f4f4f4;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-text-muted: #9e9e9e;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  --color-success: #4caf50;
  --color-error: #e53935;
  --color-warning: #ff9800;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.13);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --header-height: 72px;
  --sidebar-width: 400px;
  --max-width: 1280px;
  --container-padding: 24px;
}

[data-theme="spring"] {
  --color-primary: #4a7c59;
  --color-accent: #f4a7b9;
  --color-accent-dark: #e8849c;
  --color-bg: #f9fdf9;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f0f7f2;
  --color-text: #2d4a35;
  --color-text-light: #6a8e73;
  --color-text-muted: #98b8a0;
  --color-border: #d8eadd;
  --color-border-light: #ecf5ee;
}

[data-theme="summer"] {
  --color-primary: #0077b6;
  --color-accent: #f9c74f;
  --color-accent-dark: #e6b02a;
  --color-bg: #f8fbff;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #eef6ff;
  --color-text: #023e5c;
  --color-text-light: #3a7ca5;
  --color-text-muted: #7ab3d4;
  --color-border: #c8e1f4;
  --color-border-light: #e8f3fb;
}

[data-theme="halloween"] {
  --color-primary: #1a1a2e;
  --color-accent: #ff6b35;
  --color-accent-dark: #e55520;
  --color-bg: #0f0f1a;
  --color-bg-card: #1a1a2e;
  --color-bg-subtle: #16213e;
  --color-text: #e8e8f0;
  --color-text-light: #9a9ab8;
  --color-text-muted: #6b6b88;
  --color-border: #2e2e4e;
  --color-border-light: #252540;
  --shadow-sm: 0 1px 3px rgba(255, 107, 53, 0.1);
  --shadow-md: 0 4px 16px rgba(255, 107, 53, 0.12);
  --shadow-card: 0 2px 12px rgba(255, 107, 53, 0.08);
}

[data-theme="christmas"] {
  --color-primary: #165016;
  --color-accent: #c41e3a;
  --color-accent-dark: #a01830;
  --color-bg: #f8fdf8;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #eef8ee;
  --color-text: #0d320d;
  --color-text-light: #4a7a4a;
  --color-text-muted: #88aa88;
  --color-border: #c8e0c8;
  --color-border-light: #e0f0e0;
}

[data-theme="valentine"] {
  --color-primary: #8b1a4a;
  --color-accent: #ff6b9d;
  --color-accent-dark: #e54f85;
  --color-bg: #fff8fb;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #ffeef5;
  --color-text: #5c1030;
  --color-text-light: #c06090;
  --color-text-muted: #d8a0b8;
  --color-border: #f0c8da;
  --color-border-light: #f8e4ee;
}

[data-theme="winter"] {
  --color-primary: #1e3a5f;
  --color-accent: #a8d8ea;
  --color-accent-dark: #7ec4db;
  --color-bg: #f5f9fc;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #e8f2f8;
  --color-text: #152840;
  --color-text-light: #4a6e8a;
  --color-text-muted: #90aec0;
  --color-border: #c8dce8;
  --color-border-light: #deeaf0;
}

[data-theme="easter"] {
  --color-primary: #5c6b4a;
  --color-accent: #e7b7c8;
  --color-accent-dark: #c98aa0;
  --color-bg: #fbfaf7;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f6f3ee;
  --color-text: #2f3828;
  --color-text-light: #6d7562;
  --color-text-muted: #a3aa98;
  --color-border: #e4ddd2;
  --color-border-light: #f1ece4;
}

[data-theme="thanksgiving"] {
  --color-primary: #7a3e1d;
  --color-accent: #c4783a;
  --color-accent-dark: #a35e28;
  --color-bg: #fbf7f2;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f6efe6;
  --color-text: #3d2416;
  --color-text-light: #8a6248;
  --color-text-muted: #c4a48c;
  --color-border: #ead8c4;
  --color-border-light: #f4e8da;
}

[data-theme="diwali"] {
  --color-primary: #6b1d2a;
  --color-accent: #d4a017;
  --color-accent-dark: #a67c12;
  --color-bg: #fffaf3;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #fff3e0;
  --color-text: #3d1a14;
  --color-text-light: #8a5a3a;
  --color-text-muted: #c4a484;
  --color-border: #f0d9b5;
  --color-border-light: #f8ead6;
}

[data-theme="holi"] {
  --color-primary: #7b2d5b;
  --color-accent: #e36b8a;
  --color-accent-dark: #c44d6e;
  --color-bg: #fff7f4;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #ffeef2;
  --color-text: #4a2040;
  --color-text-light: #9a6080;
  --color-text-muted: #d0a8b8;
  --color-border: #f3d0dc;
  --color-border-light: #f9e6ec;
}

[data-theme="navratri"] {
  --color-primary: #7a1f3d;
  --color-accent: #c9a227;
  --color-accent-dark: #9a7a18;
  --color-bg: #fff9f4;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #fbf0e6;
  --color-text: #3c1524;
  --color-text-light: #8a4a58;
  --color-text-muted: #c498a4;
  --color-border: #f0d4c8;
  --color-border-light: #f7e8e0;
}

[data-theme="rakhi"] {
  --color-primary: #9b2335;
  --color-accent: #e0b56a;
  --color-accent-dark: #b8893e;
  --color-bg: #fffaf6;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #fdf0ea;
  --color-text: #3f1a20;
  --color-text-light: #8d5a5a;
  --color-text-muted: #c9a0a0;
  --color-border: #f0d4cc;
  --color-border-light: #f8e8e2;
}

[data-theme="eid"] {
  --color-primary: #0f3d32;
  --color-accent: #c6a15b;
  --color-accent-dark: #9a7a3e;
  --color-bg: #f7faf8;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #eef5f1;
  --color-text: #14332c;
  --color-text-light: #4d7568;
  --color-text-muted: #8aada2;
  --color-border: #d2e4dc;
  --color-border-light: #e6f0eb;
}

[data-theme="cny"] {
  --color-primary: #8b1e1e;
  --color-accent: #d4a017;
  --color-accent-dark: #a67c12;
  --color-bg: #fff8f4;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #fdeee8;
  --color-text: #3d1212;
  --color-text-light: #8a5048;
  --color-text-muted: #c49890;
  --color-border: #f0d0c4;
  --color-border-light: #f8e6de;
}

[data-theme="hanukkah"] {
  --color-primary: #1b3a6b;
  --color-accent: #c5a572;
  --color-accent-dark: #9a7d4e;
  --color-bg: #f6f8fc;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #eef2f8;
  --color-text: #152844;
  --color-text-light: #4a6488;
  --color-text-muted: #90a4c0;
  --color-border: #d0dced;
  --color-border-light: #e4ecf5;
}

[data-theme="nowruz"] {
  --color-primary: #1f6b4a;
  --color-accent: #d4a84b;
  --color-accent-dark: #a88432;
  --color-bg: #f7faf6;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #eef6ee;
  --color-text: #163528;
  --color-text-light: #4d7a62;
  --color-text-muted: #90b4a0;
  --color-border: #d2e6d6;
  --color-border-light: #e6f2e8;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: inherit;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--color-text-light);
  line-height: 1.75;
}

strong { font-weight: 600; color: var(--color-text); }

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-bg-subtle);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: transparent;
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-subtle);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-sm);
  line-height: 0;
}

/* ------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color var(--transition-base);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

.logo:hover .logo-name {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-bg-subtle);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.cart-btn:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-subtle);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.cart-count.hidden {
  display: none;
}

.cart-count.bump {
  animation: cartBump 300ms ease;
}

@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero {
  padding: 100px 0 80px;
  background-color: var(--color-bg);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 65%);
  opacity: 0.08;
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--color-accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.hero-badge-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Category Filters
   ------------------------------------------------------------ */
.category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

/* ------------------------------------------------------------
   Section Header
   ------------------------------------------------------------ */
.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 560px;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Product Grid
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ------------------------------------------------------------
   Product Card
   ------------------------------------------------------------ */
.product-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-border);
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-subtle);
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

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

.product-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.product-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.product-card-body {
  padding: 20px;
}

.product-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.product-price-original {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card-add-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.product-card-add-btn svg {
  width: 18px;
  height: 18px;
}

.product-card-add-btn:hover {
  background-color: var(--color-accent-dark);
  transform: scale(1.1);
}

.product-card-add-btn:disabled {
  background-color: var(--color-border);
  cursor: not-allowed;
  transform: none;
}

/* Out of stock overlay */
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(250, 250, 250, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

[data-theme="halloween"] .out-of-stock-overlay {
  background-color: rgba(15, 15, 26, 0.75);
}

.out-of-stock-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 8px 16px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------
   Badges
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  line-height: 1;
  white-space: nowrap;
}

.badge-new {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.badge-limited {
  background-color: var(--color-error);
  color: #fff;
}

.badge-custom {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.badge-festival {
  background-color: var(--color-bg);
  color: var(--color-accent-dark);
  border: 1px solid var(--color-accent);
}

.product-card.is-festival {
  border-color: var(--color-accent);
}

.theme-note {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.filter-btn[hidden] {
  display: none;
}

.product-festival-note {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--color-accent-dark);
}

.badge-sale {
  background-color: var(--color-success);
  color: #fff;
}

.badge-out {
  background-color: var(--color-text-muted);
  color: #fff;
}

.badge-us {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   Empty State
   ------------------------------------------------------------ */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--color-border);
  margin-bottom: 24px;
}

.empty-state h3 {
  color: var(--color-text-light);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------
   Cart Sidebar / Drawer
   ------------------------------------------------------------ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  backdrop-filter: blur(2px);
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(var(--sidebar-width), 100vw);
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  border-left: 1px solid var(--color-border);
}

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

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

.cart-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-sidebar-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.cart-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cart-close-btn:hover {
  background-color: var(--color-bg-subtle);
  color: var(--color-primary);
}

.cart-close-btn svg {
  width: 20px;
  height: 20px;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.cart-items-list::-webkit-scrollbar {
  width: 4px;
}

.cart-items-list::-webkit-scrollbar-track {
  background: transparent;
}

.cart-items-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 0;
  gap: 16px;
}

.cart-empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--color-border);
}

.cart-empty-state h3 {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

.cart-empty-state p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cart-item-image-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image-placeholder svg {
  width: 28px;
  height: 28px;
  color: var(--color-text-muted);
}

.cart-item-details {
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.qty-btn:hover {
  background-color: var(--color-bg-subtle);
  color: var(--color-primary);
}

.qty-display {
  min-width: 32px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0 6px;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  line-height: 28px;
}

.cart-item-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.cart-item-remove:hover {
  background-color: #fee2e2;
  color: var(--color-error);
}

.cart-item-remove svg {
  width: 16px;
  height: 16px;
}

.cart-sidebar-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  background-color: var(--color-bg-card);
}

.cart-totals {
  margin-bottom: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.cart-total-row.grand-total {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--color-border);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cart-free-shipping-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.cart-free-shipping-note svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Toast Notifications
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 48px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  pointer-events: all;
  animation: toastIn 300ms ease forwards;
  max-width: 360px;
}

.toast.toast-success {
  background-color: #166534;
}

.toast.toast-error {
  background-color: #991b1b;
}

.toast.toast-warning {
  background-color: #92400e;
}

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.removing {
  animation: toastOut 250ms ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

/* ------------------------------------------------------------
   Loading Spinner
   ------------------------------------------------------------ */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
  grid-column: 1 / -1;
}

.loading-state p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

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

/* ------------------------------------------------------------
   About Section
   ------------------------------------------------------------ */
.about-section {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content .section-subtitle {
  max-width: 100%;
  margin-bottom: 24px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.about-list-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-visual-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  transition: box-shadow var(--transition-base);
}

.about-visual-card:hover {
  box-shadow: var(--shadow-md);
}

.about-visual-card:nth-child(even) {
  margin-top: 20px;
}

.about-visual-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.about-visual-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

[data-theme="halloween"] .site-footer {
  background-color: #0a0a14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-name {
  color: #fff;
}

.footer-brand .logo-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.65;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   Product Detail Page
   ------------------------------------------------------------ */
.product-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: var(--color-border);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.main-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-bg-subtle);
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity var(--transition-base);
}

.main-image.loading {
  opacity: 0.4;
}

.thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
  background-color: var(--color-bg-subtle);
}

.thumbnail:hover {
  border-color: var(--color-accent);
}

.thumbnail.active {
  border-color: var(--color-accent);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Product info */
.product-info-wrap {
  padding-top: 8px;
}

.product-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-price-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.product-price-main {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.stock-status.in-stock {
  background-color: #dcfce7;
  color: #166534;
}

.stock-status.low-stock {
  background-color: #fef3c7;
  color: #92400e;
}

.stock-status.out-of-stock {
  background-color: #fee2e2;
  color: #991b1b;
}

[data-theme="halloween"] .stock-status.in-stock {
  background-color: rgba(74, 222, 128, 0.15);
}

[data-theme="halloween"] .stock-status.low-stock {
  background-color: rgba(251, 191, 36, 0.15);
}

[data-theme="halloween"] .stock-status.out-of-stock {
  background-color: rgba(248, 113, 113, 0.15);
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.product-description {
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 0.9375rem;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.option-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-card);
  color: var(--color-text);
  font-size: 0.9375rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.option-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.option-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-radio-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-light);
  background: var(--color-bg-card);
}

.option-radio-btn.selected,
.option-radio-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-bg-subtle);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 24px;
}

.qty-control-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-subtle);
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--color-text-light);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.qty-control-btn:hover {
  background-color: var(--color-border);
  color: var(--color-primary);
}

.qty-control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0;
}

.qty-input:focus {
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.product-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Checkout Page
   ------------------------------------------------------------ */
.checkout-page {
  padding: 48px 0 80px;
}

.checkout-page h1 {
  margin-bottom: 40px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* Order Summary */
.order-summary-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.order-summary-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.summary-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
  pointer-events: none;
  -webkit-user-drag: none;
  background-color: var(--color-bg-subtle);
}

.summary-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.summary-item-qty {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.summary-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
}

.coupon-section {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.coupon-form {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-card);
  color: var(--color-text);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.coupon-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.coupon-input::placeholder {
  color: var(--color-text-muted);
}

.coupon-msg {
  margin-top: 8px;
  font-size: 0.8125rem;
  display: none;
}

.coupon-msg.success {
  color: var(--color-success);
  display: block;
}

.coupon-msg.error {
  color: var(--color-error);
  display: block;
}

.order-totals {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.order-total-row.discount {
  color: var(--color-success);
}

.order-total-row.grand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--color-border);
}

/* Checkout Form */
.checkout-form-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-section {
  margin-bottom: 36px;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row.cols-3 {
  grid-template-columns: 2fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-card);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-error {
  font-size: 0.75rem;
  color: var(--color-error);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Payment Element */
.payment-section {
  margin-bottom: 28px;
}

.payment-element-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background-color: var(--color-bg-card);
  min-height: 100px;
  transition: border-color var(--transition-fast);
}

.payment-element-wrap:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.security-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.security-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

/* ------------------------------------------------------------
   Success Page
   ------------------------------------------------------------ */
.success-page {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.success-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: successPop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

[data-theme="halloween"] .success-icon-wrap {
  background-color: rgba(74, 222, 128, 0.15);
}

.success-icon-wrap svg {
  width: 40px;
  height: 40px;
  color: #16a34a;
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-card h1 {
  margin-bottom: 12px;
  font-size: 1.875rem;
}

.success-card > p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.order-details-block {
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  text-align: left;
  border: 1px solid var(--color-border);
}

.order-details-block h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 14px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.order-detail-row strong {
  color: var(--color-text);
}

/* ------------------------------------------------------------
   Terms Page
   ------------------------------------------------------------ */
.terms-page {
  padding: 60px 0 80px;
}

.terms-container {
  max-width: 800px;
  margin: 0 auto;
}

.terms-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.terms-header h1 {
  margin-bottom: 12px;
}

.terms-updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.terms-section {
  margin-bottom: 40px;
}

.terms-section h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

.terms-section h3 {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 10px;
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.terms-section p {
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.terms-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.terms-section ul li {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.terms-toc {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 48px;
}

.terms-toc h3 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.terms-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.terms-toc ol li {
  font-size: 0.875rem;
}

.terms-toc ol li a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.terms-toc ol li a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Content Protection Overlay
   ------------------------------------------------------------ */
#watermark-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
}

.devtools-warning {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 40px;
  color: #fff;
}

.devtools-warning.visible {
  display: flex;
}

.devtools-warning h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.devtools-warning p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
}

.devtools-warning .btn {
  margin-top: 8px;
  background-color: #fff;
  color: #1a1a1a;
  border-color: #fff;
}

/* ------------------------------------------------------------
   Error / 404 States
   ------------------------------------------------------------ */
.page-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 16px;
}

.page-error h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text-light);
}

.page-error p {
  max-width: 400px;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   Catalog search and pagination
   ------------------------------------------------------------ */
#products,
#gallery,
#stories,
#custom,
#about {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.catalog-toolbar .category-filter {
  margin-bottom: 0;
  flex: 1;
}

.catalog-search {
  position: relative;
  min-width: 220px;
  flex: 0 1 280px;
}

.catalog-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.catalog-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.catalog-meta {
  min-height: 1.25rem;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.catalog-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.catalog-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.catalog-page-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.catalog-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.catalog-page-ellipsis {
  color: var(--color-text-muted);
  padding: 0 4px;
}

/* ------------------------------------------------------------
   Studio gallery and testimonials
   ------------------------------------------------------------ */
.studio-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.studio-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-subtle);
}

.studio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(26, 18, 12, 0.72));
  color: #fff;
  font-size: 0.875rem;
}

.testimonial-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.testimonial-quote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.testimonial-quote::before {
  content: "“";
}

.testimonial-quote::after {
  content: "”";
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-subtle);
  color: var(--color-accent-dark);
  font-weight: 600;
}

.testimonial-name,
.testimonial-location {
  display: block;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   Custom design request
   ------------------------------------------------------------ */
.custom-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.custom-form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.custom-email {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.custom-email a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.custom-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.custom-success p {
  color: var(--color-text-light);
}

/* ------------------------------------------------------------
   Responsive — Tablet (max 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 20px;
    --sidebar-width: 380px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary-card {
    position: static;
    order: -1;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .studio-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .about-visual-card:nth-child(even) {
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .terms-toc ol {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Responsive — Mobile (max 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --header-height: 64px;
    --sidebar-width: 100vw;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--transition-base);
    z-index: 99;
  }

  .site-nav.mobile-open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .cart-btn {
    padding: 8px 10px;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero::before {
    display: none;
  }

  .hero-badges {
    flex-wrap: wrap;
    gap: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-card-body {
    padding: 14px;
  }

  .product-card-name {
    font-size: 0.9375rem;
  }

  .section {
    padding: 48px 0;
  }

  .catalog-search {
    flex: 1 1 100%;
  }

  .studio-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .custom-form-card {
    padding: 20px;
  }

  .checkout-form-card {
    padding: 24px 20px;
  }

  .form-row.cols-2,
  .form-row.cols-3 {
    grid-template-columns: 1fr;
  }

  .success-card {
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .about-visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-detail-grid {
    gap: 24px;
  }
}

/* ------------------------------------------------------------
   Responsive — Small Mobile (max 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .category-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.8125rem;
  }

  .cart-sidebar-header {
    padding: 20px 16px;
  }

  .cart-items-list {
    padding: 12px 16px;
  }

  .cart-sidebar-footer {
    padding: 16px 16px 24px;
  }

  .success-card {
    padding: 28px 16px;
  }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .cart-sidebar,
  .cart-overlay,
  #watermark-canvas {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
