/* ============================================
   Cozy Sweetery - Main Stylesheet
   Warm, artisanal aesthetic with modern polish
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors - warm palette inspired by existing site */
  --color-primary: #c4706e;       /* Dusty rose / salmon */
  --color-primary-dark: #a85856;
  --color-primary-light: #e8a5a3;
  --color-accent: #d4a574;        /* Warm gold */
  --color-accent-light: #f0dcc4;

  /* Neutrals */
  --color-cream: #fdf6f0;
  --color-cream-dark: #f5ebe3;
  --color-white: #ffffff;
  --color-text: #3d2c2e;
  --color-text-light: #6b5557;
  --color-text-muted: #9a8284;
  --color-border: #e8ddd5;

  /* Semantic */
  --color-success: #7a9e7e;
  --color-warning: #d4a574;
  --color-error: #c4706e;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout - Full Width Design */
  --max-width: 1600px;
  --max-width-narrow: 900px;
  --max-width-wide: 100%;
  --nav-height: 80px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61, 44, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(61, 44, 46, 0.1);
  --shadow-lg: 0 8px 30px rgba(61, 44, 46, 0.12);

  /* Transitions */
  --transition: 0.2s ease;
}

/* --- 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);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-full {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background-color: var(--color-white);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

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

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.announcement-bar a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Navigation --- */
.site-nav {
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo img,
.nav-logo-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

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

.nav-search-btn {
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}
.nav-search-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.nav-search-btn:hover {
  color: var(--color-primary);
}

.nav-cart {
  position: relative;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition);
}

/* Mobile nav open state */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-cream);
  z-index: 200;
  padding: var(--space-xl);
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.mobile-nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-sm);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--space-2xl);
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text);
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

/* Scale mobile nav for shorter screens */
@media (max-height: 700px) {
  .mobile-nav {
    padding: var(--space-md);
  }
  .mobile-nav-header {
    margin-bottom: var(--space-md);
  }
  .mobile-nav-logo {
    width: 40px;
    height: 40px;
  }
  .mobile-nav-links {
    gap: var(--space-xs);
  }
  .mobile-nav-links a {
    font-size: 1.1rem;
    padding: var(--space-xs) 0;
  }
}

@media (max-height: 550px) {
  .mobile-nav {
    padding: var(--space-sm);
  }
  .mobile-nav-header {
    margin-bottom: var(--space-sm);
  }
  .mobile-nav-logo {
    width: 32px;
    height: 32px;
  }
  .mobile-nav-close {
    font-size: 1.25rem;
    padding: var(--space-xs);
  }
  .mobile-nav-links {
    gap: 2px;
    padding-bottom: var(--space-sm);
  }
  .mobile-nav-links a {
    font-size: 0.95rem;
    padding: 6px 0;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

.btn-white:hover {
  background-color: var(--color-cream);
  border-color: var(--color-cream);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 700px;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-2xl);
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 300px;
  max-width: 300px;
  padding: 20px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
  box-sizing: border-box;
}

/* Primary: solid white - bold, unmissable */
.hero-actions .btn-primary,
.hero-actions .btn-lg.btn-primary {
  background: var(--color-white);
  color: var(--color-text);
  border: 2px solid var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-lg.btn-primary:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
  box-shadow: 0 8px 35px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

/* Secondary: frosted glass - visible but distinct */
.hero-actions .btn-white,
.hero-actions .btn-lg.btn-white {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-actions .btn-white:hover,
.hero-actions .btn-lg.btn-white:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: var(--space-md) auto;
  border-radius: 2px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* --- Product Card --- */
.product-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--color-cream-dark);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card-body {
  padding: var(--space-lg);
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.product-card-body .price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.product-card-body .category-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

/* --- Sale Badges & Pricing --- */
.sale-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card-img .sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.product-card-img {
  position: relative;
}
.price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.price-sale {
  color: #c0392b;
  font-weight: 700;
  font-size: 1.05rem;
}
.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* Sale banner on home page */
.sale-banner {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  color: #fff;
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-lg);
}
.sale-banner h3 {
  font-family: var(--font-family-serif);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}
.sale-banner p {
  opacity: 0.9;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}
.sale-banner .btn {
  background: #fff;
  color: #c0392b;
  border: none;
  font-weight: 600;
}
.sale-banner .btn:hover {
  background: #f8f8f8;
}

/* Sale cards on home page */
.sale-card {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sale-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.sale-card h3 {
  font-family: var(--font-family-serif);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}
.sale-card .sale-discount-label {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.sale-card p {
  opacity: 0.9;
  margin-bottom: var(--space-md);
}
.sale-card .btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.sale-card .btn:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Carousel --- */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-xs) 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 calc(50% - var(--space-md) / 2);
  min-width: 0;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--color-cream);
  box-shadow: var(--shadow-lg);
}

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

.carousel-btn-prev {
  left: 4px;
}

.carousel-btn-next {
  right: 4px;
}

@media (max-width: 767px) {
  .carousel-btn {
    display: none;
  }
}

/* --- Service Cards --- */
.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.service-card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Hero Cards (Full-width image cards) --- */
/* Hero Cards - Full Width Beautiful Layout */
.hero-cards-section {
  width: 100%;
  padding: var(--space-3xl) 0;
  margin: 0;
  max-width: 100%;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.hero-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 1/1;
  min-height: 450px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-card-bg {
  transform: scale(1.08);
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 50%;
}

/* Cards without images - gradient bg, lighter overlay */
.hero-card-overlay-solid {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.1) 40%,
    transparent 100%
  );
}

.hero-card-tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-card-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0;
  max-width: 90%;
}

.hero-card-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.hero-card:hover .hero-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hero-card-arrow svg {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.hero-card:hover .hero-card-arrow svg {
  transform: translateX(5px);
}

@media (max-width: 1100px) {
  .hero-card {
    min-height: 380px;
  }

  .hero-card-title {
    font-size: 1.7rem;
  }

  .hero-card-overlay {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 900px) {
  .hero-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-lg);
  }

  .hero-card {
    min-height: 280px;
    aspect-ratio: 3/4;
  }

  .hero-card-title {
    font-size: 1.3rem;
  }

  .hero-card-desc {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-card-overlay {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 600px) {
  .hero-cards-section {
    padding: var(--space-xl) 0;
  }

  .hero-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
  }

  .hero-card {
    min-height: unset;
    aspect-ratio: 3/4;
    border-radius: var(--border-radius);
  }

  .hero-card-bg {
    border-radius: var(--border-radius);
  }

  .hero-card-overlay {
    padding: var(--space-md) var(--space-sm);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }

  .hero-card-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .hero-card-desc {
    display: none;
  }

  .hero-card-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .hero-card-arrow {
    font-size: 0.75rem;
    margin-top: var(--space-xs);
  }

  .hero-card-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  counter-reset: step-counter;
}

.step {
  text-align: center;
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
}

/* Connecting line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--color-border);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-xl);
  box-shadow: 0 4px 15px rgba(196, 112, 110, 0.3);
}

.step h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.step p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0 var(--space-sm);
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 0;
  }

  .step:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(50%);
    width: 1px;
    height: 20px;
  }

  .step {
    padding: var(--space-lg) var(--space-md);
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
  }

  .step h3 {
    font-size: 1.1rem;
  }

  .step p {
    font-size: 0.85rem;
    padding: 0;
  }
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Home page gallery carousel cards */
.home-gallery-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-gallery-card:hover img {
  transform: scale(1.06);
}

.home-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}

.home-gallery-caption-text {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Gallery section titles */
.gallery-section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

/* Gallery video grid */
.gallery-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .gallery-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .gallery-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-video-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.gallery-video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Gallery source badges (icon-only) */
.gallery-source-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}

.gallery-source-badge svg {
  display: block;
}

.gallery-source-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.gallery-source-youtube {
  background: #ff0000;
}

/* Gallery play overlay for video posters */
.gallery-video-poster {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.gallery-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gallery-video-poster:hover .gallery-play-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-video-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr 1fr;
  }
}

.about-preview-img {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview-text h2 {
  margin-bottom: var(--space-md);
}

.about-preview-text p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.credential {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}

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

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: var(--space-xs);
}

/* --- Newsletter --- */
.newsletter {
  background: linear-gradient(135deg, var(--color-text) 0%, #2a1e1f 100%);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(196,112,110,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter h2 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  position: relative;
  letter-spacing: -0.01em;
}

.newsletter p {
  opacity: 0.85;
  margin-bottom: var(--space-2xl);
  font-size: 1.1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 18px 28px;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
}

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

.newsletter-form button {
  white-space: nowrap;
  padding: 18px 36px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 600px) {
  .newsletter {
    padding: var(--space-3xl) var(--space-lg);
  }

  .newsletter h2 {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: var(--border-radius-lg);
  }

  .newsletter-form input {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    text-align: center;
  }

  .newsletter-form button {
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 16px 28px;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* --- Page Header --- */
.page-header {
  background: var(--color-cream-dark);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

/* --- Category Filter --- */
.category-filter {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.category-filter a,
.category-filter button {
  padding: var(--space-sm) var(--space-lg);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
}

.category-filter a:hover,
.category-filter button:hover,
.category-filter a.active,
.category-filter button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Product Detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery {
  display: grid;
  gap: var(--space-md);
}

.product-gallery-main {
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-cream-dark);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
}

.product-gallery-thumbs img {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
  border-color: var(--color-primary);
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.product-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.product-live-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
  border-top: 1px solid var(--color-border);
}

/* Rich text product description */
.product-description-rich {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.product-description-rich h2,
.product-description-rich h3 {
  color: var(--color-text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.product-description-rich ul,
.product-description-rich ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.product-description-rich a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Product Video Embeds --- */
.product-video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.product-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.product-video-instagram {
  aspect-ratio: 4/5;
  max-width: 100%;
}

.product-video-local video {
  width: 100%;
  border-radius: var(--border-radius-lg);
}

/* --- Product Option Styles --- */
.option-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.option-radio {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
}

.option-radio:hover {
  border-color: var(--color-primary-light);
  background: var(--color-cream);
}

.option-radio input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.option-radio input[type="radio"]:checked + span {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.option-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  user-select: none;
}

.option-btn:hover {
  border-color: var(--color-primary-light);
  background: var(--color-cream);
}

.option-btn-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-btn-input:checked + span {
  color: var(--color-white);
}

.option-btn:has(.option-btn-input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Fallback for browsers without :has() */
.option-btn-input:checked ~ span {
  color: inherit;
}

/* Option help text */
.option-help-text {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-xs);
  padding-left: 0;
}

/* Image Option Group (product page) */
.option-img-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.option-img-card {
  position: relative;
  display: block;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-white);
}

.option-img-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-img-card:has(.option-btn-input:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.option-img-card .option-btn-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-img-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.option-img-card-label {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.85rem;
  text-align: center;
  background: var(--color-white);
}

.option-img-name {
  display: block;
  font-weight: 500;
  color: var(--color-text);
}

.option-img-price {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .option-img-group {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
  }
  .option-img-card-label {
    font-size: 0.78rem;
    padding: 4px;
  }
}

/* --- Quill Editor Admin Overrides --- */
.ql-toolbar.ql-snow {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  border-color: var(--color-border);
}

.ql-container.ql-snow {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  border-color: var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* --- Quote Form --- */
.quote-form {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.quote-form h2 {
  margin-bottom: var(--space-sm);
}

.quote-form .form-subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.file-upload {
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-cream);
}

.file-upload:hover,
.file-upload.drag-over {
  border-color: var(--color-primary);
  background: var(--color-cream-dark);
}

.file-upload.drag-over {
  box-shadow: 0 0 0 3px rgba(196, 112, 110, 0.15);
}

.file-upload-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

.file-upload p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.faq-category {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.faq-cat-icon {
  font-size: 1.5rem;
}

.faq-cat-title {
  font-size: 1.15rem;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
  background: var(--color-cream);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-primary);
  font-weight: 700;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
}

.faq-answer {
  display: none;
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-cta {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.faq-cta h3 {
  margin-bottom: var(--space-sm);
}

.faq-cta p {
  color: var(--color-text-light);
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.reviews-grid-page {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 1200px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-card-header {
  margin-bottom: var(--space-md);
}

.review-stars {
  color: #d4a574;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  flex: 1;
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.review-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.review-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.review-source-badge.google {
  background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.review-source-badge.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbf 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(24, 119, 242, 0.3);
}

.review-source-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.review-author {
  font-size: 0.9rem;
  flex: 1;
}

.reviews-summary {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --- Admin --- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
}

@media (max-width: 767px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
  padding: var(--space-xl);
}

.admin-sidebar-nav {
  list-style: none;
}

.admin-sidebar-nav li {
  margin-bottom: var(--space-xs);
}

.admin-sidebar-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  background: var(--color-cream);
  color: var(--color-primary);
}

.admin-logout-btn {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-logout-btn:hover {
  background: var(--color-cream);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.admin-login-form {
  max-width: 100%;
}

.admin-login-form .form-group {
  margin-bottom: var(--space-lg);
}

.admin-login-form input {
  width: 100%;
}

/* Push Notification Prompt */
#push-notification-prompt {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

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

.push-prompt-content {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  border: 1px solid var(--color-border);
}

.push-prompt-content h3 {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.1rem;
}

.push-prompt-content p {
  margin: 0 0 var(--space-lg) 0;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.push-prompt-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.admin-content {
  padding: var(--space-xl);
}

.admin-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: var(--space-md);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}

.data-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.data-table tr:hover td {
  background: var(--color-cream);
}

/* --- Status Badge --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-pending {
  background: var(--color-accent-light);
  color: #8b6914;
}

.badge-confirmed {
  background: #dff0d8;
  color: #3c763d;
}

.badge-production {
  background: #d9edf7;
  color: #31708f;
}

.badge-complete {
  background: #dff0d8;
  color: #3c763d;
}

/* --- Calendar --- */
.calendar {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.calendar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.cal-nav-btn:hover {
  background: var(--color-cream);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-sm);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.calendar-day:hover {
  background: var(--color-cream);
}

.calendar-day.today {
  font-weight: 700;
  color: var(--color-primary);
}

.calendar-day.available {
  background: #dff0d8;
  color: #3c763d;
}

.calendar-day.booked {
  background: var(--color-cream-dark);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.calendar-day.other-month {
  color: var(--color-text-muted);
  opacity: 0.4;
  cursor: default;
}

.calendar-day.selected {
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.calendar-day.available:hover {
  background: #c8e6c9;
  transform: scale(1.05);
}

.calendar-day.booked:hover {
  background: var(--color-cream-dark);
}

/* Admin calendar */
.admin-calendar-day {
  min-height: 70px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px 6px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}

.admin-calendar-day:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.admin-calendar-day .day-number {
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-calendar-day .day-count {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
  margin-top: 1px;
}

.admin-calendar-day .day-count.orders {
  background: #fce4ec;
  color: #c62828;
}

.admin-calendar-day .day-count.quotes {
  background: #e3f2fd;
  color: #1565c0;
}

.admin-calendar-day.blocked {
  background: #ffcdd2;
  border-color: #ef9a9a;
}

.admin-calendar-day.custom-capacity {
  border: 2px dashed var(--color-primary);
}

.admin-calendar-day.today .day-number {
  color: var(--color-primary);
}

/* Day management panel */
.day-panel {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-xl);
  border: 1px solid var(--color-border);
}

.day-panel h3 {
  margin-bottom: var(--space-lg);
}

/* --- Form Template Editor --- */
/* --- Form Template Editor --- */

/* Template list grid */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.tpl-card {
  padding: var(--space-xl);
}

.tpl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.tpl-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.tpl-card-badges {
  display: flex;
  gap: var(--space-xs);
}

.tpl-card-desc {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.tpl-card-meta {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-bottom: var(--space-lg);
}

.tpl-card-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Section cards in template editor */
.tpl-section-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

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

.tpl-section-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tpl-section-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.tpl-section-count {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.tpl-section-actions {
  display: flex;
  gap: var(--space-xs);
}

.tpl-section-desc {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

/* Field rows */
.tpl-field-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tpl-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-cream);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.tpl-field-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.tpl-field-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.tpl-field-actions {
  display: flex;
  gap: var(--space-xs);
}

/* Field badges */
.tpl-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tpl-badge-type {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.tpl-badge-required {
  background: #fee2e2;
  color: #dc2626;
}

/* Inline field editor */
.tpl-field-editor {
  background: var(--color-cream);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-md);
}

.tpl-field-editor h3 {
  margin: 0 0 var(--space-lg) 0;
  font-size: 1rem;
  color: var(--color-primary);
}

/* Option rows in field editor */
.tpl-option-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-sm);
}

.tpl-option-row .form-input {
  padding: var(--space-sm);
  font-size: 0.9rem;
}

.tpl-empty-msg {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-lg);
  font-style: italic;
}

.tpl-add-field {
  text-align: center;
}

/* Modal styles (used by CMS section editor) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-content-lg {
  max-width: 650px;
}

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

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

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

.modal form {
  padding: var(--space-lg);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* Button sizes */
.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Admin form utilities */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.admin-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.help-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* --- CMS Admin Styles --- */
.cms-sections-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.section-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow 0.2s;
}

.section-card:hover {
  box-shadow: var(--shadow-sm);
}

.section-card-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
}

.section-card .drag-handle {
  cursor: grab;
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

.section-card-title {
  font-weight: 500;
}

.section-card-preview {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.section-card-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.section-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg);
}

.section-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.2s;
}

.section-type-btn:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.section-type-btn strong {
  color: var(--color-text);
}

.section-type-btn p {
  margin: 0;
  font-size: 0.85rem;
}

/* Modal body (for CMS section editor) */
.modal-body {
  padding: var(--space-lg);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-img {
  border-radius: var(--radius-md);
  max-width: 200px;
}

/* --- Custom Order Form --- */
.co-form {
  max-width: 960px;
  margin: 0 auto;
}

.step-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.step-card .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin: 0;
  box-shadow: none;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.step-body {
  padding: var(--space-xl);
}

/* 2-col split: left form fields, right calendar */
.co-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Equal 2-col split */
.co-split-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* Checkbox grid: 3 columns */
.co-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.co-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-cream);
}

.co-checkbox:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
}

.co-checkbox:has(input:checked) {
  border-color: var(--color-primary);
  background: #fdf0ef;
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Contact info: 2x2 grid */
.co-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Date selection info */
.date-selection-info {
  animation: fadeIn 0.2s ease-in;
}

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

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-info-text p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- Loading & Transitions --- */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* --- Alert/Toast --- */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.alert-success {
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.alert-error {
  background: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.alert-info {
  background: #d9edf7;
  color: #31708f;
  border: 1px solid #bce8f1;
}

/* --- Mobile Polish --- */
@media (max-width: 767px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .page-header {
    padding: var(--space-2xl) 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
  }

  .hero-actions .btn {
    flex: none;
    width: 280px;
    max-width: 90vw;
    padding: 16px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  /* Stack form grids on mobile */
  .quote-form [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .quote-form {
    padding: var(--space-lg);
  }

  /* Custom order mobile */
  .step-card {
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius);
  }

  .co-split,
  .co-split-equal,
  .co-contact-grid {
    grid-template-columns: 1fr;
  }

  .co-checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .co-checkbox {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }

  .step-body {
    padding: var(--space-md);
  }

  .step-header {
    padding: var(--space-md);
  }

  .step-label {
    font-size: 1.1rem;
  }

  .step-card .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .product-detail {
    gap: var(--space-lg);
  }

  .about-preview {
    gap: var(--space-lg);
  }

  /* Card grids mobile */
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-lg);
  }

  .service-card-icon {
    font-size: 2.2rem;
  }

  /* FAQ mobile */
  .faq-category-header {
    padding: var(--space-md) var(--space-lg);
  }

  .faq-question {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
  }

  .faq-cta {
    padding: var(--space-xl);
  }

  /* Reviews mobile - 2 cols for homepage (4 reviews), 1 col for full page */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .reviews-grid-page {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: var(--space-md);
  }

  .review-text {
    font-size: 0.85rem;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .review-stars {
    font-size: 0.85rem;
  }

  .review-card-footer {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .review-source-badge {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .review-source-badge svg {
    width: 10px;
    height: 10px;
  }

  .reviews-summary {
    padding: var(--space-lg);
  }

  .footer-grid {
    gap: var(--space-xl);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
  }

  .admin-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .admin-content {
    padding: var(--space-md);
  }

  .admin-card {
    padding: var(--space-md);
  }

  /* Collapse all inline grids inside admin on mobile */
  .admin-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

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

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: var(--space-sm);
  }

  /* Admin data tables: card layout on mobile */
  .admin-content .data-table thead {
    display: none;
  }

  .admin-content .data-table,
  .admin-content .data-table tbody {
    display: block;
  }

  .admin-content .data-table tr {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
  }

  .admin-content .data-table tr:hover td {
    background: transparent;
  }

  .admin-content .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-cream-dark);
    text-align: right;
  }

  .admin-content .data-table td:last-child {
    border-bottom: none;
  }

  .admin-content .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
    margin-right: var(--space-md);
    flex-shrink: 0;
  }

  /* Admin filter buttons (orders/quotes) */
  .admin-card .category-filter {
    gap: var(--space-xs);
  }

  .admin-card .category-filter button {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
  }

  /* Admin order/quote detail flex rows */
  .admin-content [style*="display:flex"][style*="gap"] {
    flex-wrap: wrap;
  }

  /* Variant and option rows stack on mobile */
  .variant-row,
  .option-row {
    flex-wrap: wrap !important;
  }

  .variant-row input,
  .variant-row select,
  .option-row input,
  .option-row select {
    min-width: 0;
    flex-basis: 45% !important;
  }

  /* Line item rows in quote detail */
  .line-item-row {
    flex-wrap: wrap !important;
  }

  /* Status controls wrap */
  #order-status-controls,
  #quote-status-controls {
    flex-wrap: wrap;
  }

  #order-status-controls .btn,
  #quote-status-controls .btn {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }

  /* Option button group mobile */
  .option-btn-group {
    gap: var(--space-xs);
  }

  .option-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
  }

  /* Calendar widget mobile */
  .calendar {
    padding: var(--space-md);
  }

  .calendar-header {
    margin-bottom: var(--space-md);
  }

  .calendar-header h3 {
    font-size: 0.95rem;
  }

  .calendar-day {
    font-size: 0.8rem;
  }

  .calendar-day-header {
    font-size: 0.65rem;
    padding: var(--space-xs);
  }

  .cal-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  /* Admin calendar day cells */
  .admin-calendar-day {
    min-height: 50px;
    padding: 2px 4px;
    font-size: 0.75rem;
  }
}

/* --- Cart Page Layout --- */
.cart-page-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Items + checkout bottom row */
.cart-bottom-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .cart-bottom-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* --- Cart Items Panel --- */
.cart-items-panel {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.cart-items-count {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.cart-continue-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

.cart-continue-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Cart item row */
.cart-item-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.cart-item-row:last-of-type {
  border-bottom: none;
}

.cart-item-row:hover {
  background: var(--color-cream);
}

.cart-item-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-cream-dark);
  flex-shrink: 0;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--color-text);
}

.cart-item-details {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.cart-item-notes {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 2px;
}

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

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}

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

/* Cart subtotal */
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-cream);
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.cart-subtotal-amount {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

/* --- Cart Calendar Panel --- */
.cart-calendar-panel {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.cart-col-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.cart-col-subtitle {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.cart-calendar-panel .calendar {
  box-shadow: none;
  padding: 0;
}

/* --- Cart Checkout Panel --- */
.cart-checkout-panel {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-primary);
}

/* checkout panel stretches to match calendar height via align-items: stretch */

.cart-checkout-panel .form-group {
  margin-bottom: var(--space-md);
}

/* --- Cart: Empty State --- */
.cart-empty-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --- Cart: Mobile Sticky Bottom Bar --- */
.cart-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767px) {
  .cart-sticky-bar {
    display: flex;
  }

  #cart-page-content {
    padding-bottom: 80px;
  }

  .cart-item-row {
    grid-template-columns: 56px 1fr auto auto;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
  }

  .cart-item-img-wrap {
    width: 56px;
    height: 56px;
  }

  .cart-items-header {
    padding: var(--space-md) var(--space-lg);
  }

  .cart-subtotal {
    padding: var(--space-md) var(--space-lg);
  }
}

/* --- Auth Form Card --- */
.auth-form-card {
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-form-card .form-group {
  margin-bottom: var(--space-lg);
}

/* --- Alert Styles --- */
.alert-error {
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6cb;
}

.alert-success {
  color: #27ae60;
  background: #eafaf1;
  border: 1px solid #a9dfbf;
}

/* --- Badge Styles --- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 12px;
}

.badge-pending {
  background: #fdebd0;
  color: #b7791f;
}

.badge-confirmed {
  background: #d5f5e3;
  color: #1e8449;
}

.badge-production {
  background: #d6eaf8;
  color: #2471a3;
}

.badge-complete {
  background: #e8daef;
  color: #6c3483;
}

/* --- Nav Account Link --- */
.nav-account-link {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
}

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

@media (min-width: 768px) {
  .nav-account-link {
    display: inline-block;
  }
}

/* --- Order Success Page --- */
.order-success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

/* --- Admin Image Manager --- */
.image-manager {
  margin-bottom: var(--space-xl);
}

.image-thumbs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.image-thumb-wrapper {
  position: relative;
  display: inline-block;
}

.image-thumb-wrapper img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.btn-remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  border: 2px solid #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.btn-remove-image:hover {
  background: #962d22;
}

.variant-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* --- Dynamic Row Remove Button --- */
.btn-remove-row {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: transparent;
  color: #c0392b;
  border: 1px solid #c0392b;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-remove-row:hover {
  background: #c0392b;
  color: #fff;
}

/* --- Danger Button --- */
.btn-danger {
  background-color: #c0392b;
  color: #fff;
  border: 1px solid #c0392b;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.btn-danger:hover {
  background-color: #962d22;
  border-color: #962d22;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-white, #fff);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-bottom: var(--space-md);
  color: #c0392b;
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Small screens (< 480px) --- */
@media (max-width: 479px) {
  .co-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .co-contact-grid {
    gap: var(--space-md);
  }

  .step-body {
    padding: var(--space-sm) var(--space-md);
  }

  .file-upload {
    font-size: 0.85rem;
  }

  .faq-question {
    padding: var(--space-md);
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 var(--space-md) var(--space-md);
  }

  .faq-category-header {
    padding: var(--space-md);
  }

  .review-card {
    padding: var(--space-md);
  }

  .reviews-summary {
    padding: var(--space-md);
  }

  .calendar {
    padding: var(--space-sm);
  }

  .calendar-grid {
    gap: 1px;
  }

  .calendar-day {
    font-size: 0.75rem;
  }

  .calendar-day-header {
    font-size: 0.6rem;
    padding: 2px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Chat Widget
   ============================================ */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

.chat-bubble-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.chat-bubble-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  height: 600px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.25s ease-out;
}

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

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-primary);
  color: #fff;
}

.chat-panel-title {
  font-weight: 600;
  font-size: 1rem;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-intro-form {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-intro-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 4px;
  line-height: 1.4;
}

.chat-start-btn {
  margin-top: 4px;
}

.chat-messages-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.chat-msg {
  display: flex;
}

.chat-msg-new {
  animation: chatMsgSlideIn 0.3s ease-out;
}

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

.chat-bubble-pulse {
  animation: chatBubblePulse 0.6s ease-in-out;
}

@keyframes chatBubblePulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.chat-msg-visitor {
  justify-content: flex-end;
}

.chat-msg-admin {
  justify-content: flex-start;
}

.chat-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-msg-visitor .chat-msg-bubble {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-admin .chat-msg-bubble {
  background: var(--color-cream, #f5f0eb);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.chat-input-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border, #eee);
  background: #fff;
}

.chat-input-form .form-input {
  flex: 1;
  margin: 0;
}

.chat-send-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-send-btn:hover {
  background: var(--color-primary-dark, #333);
}

/* ============================================
   Admin Messages Page
   ============================================ */

.admin-messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-lg);
  min-height: 500px;
}

.admin-conv-sidebar {
  border-right: 1px solid var(--color-border, #eee);
  overflow-y: auto;
  max-height: 700px;
}

.admin-conv-sidebar h2 {
  padding: 0 var(--space-md) var(--space-sm);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--color-border, #eee);
  margin: 0 0 var(--space-sm);
  padding-top: var(--space-sm);
}

.admin-conv-list {
  display: flex;
  flex-direction: column;
}

.conv-item {
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--color-border, #eee);
  color: var(--color-text);
  transition: background 0.15s;
  position: relative;
}
.conv-item-link {
  flex: 1;
  padding: 12px var(--space-md);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.conv-item:hover {
  background: var(--color-cream, #f9f6f2);
}

.conv-delete-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px;
  margin-right: 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.conv-item:hover .conv-delete-btn {
  opacity: 1;
}
.conv-delete-btn:hover {
  color: var(--color-error, #e53e3e);
  background: rgba(229, 62, 62, 0.08);
}

.conv-item-unread {
  background: #fef9f0;
}

.conv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.conv-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.conv-email {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

.conv-unread-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.online-dot, .offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.online-dot {
  background: #27ae60;
}

.offline-dot {
  background: #bbb;
}

.sidebar-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: 6px;
}

/* Admin chat thread panel */
.admin-chat-panel {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  height: calc(100vh - 200px);
  max-height: 700px;
}

.admin-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.admin-chat-msg-visitor {
  justify-content: flex-start;
}

.admin-chat-msg-admin {
  justify-content: flex-end;
}

.admin-chat-msg-text {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.admin-chat-msg-visitor .admin-chat-msg-text {
  background: var(--color-cream, #f5f0eb);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.admin-chat-msg-admin .admin-chat-msg-text {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.admin-chat-msg-time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.admin-chat-reply-form {
  display: flex;
  gap: 8px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border, #eee);
}

.admin-chat-reply-form .form-input {
  flex: 1;
  margin: 0;
}

.admin-chat-reply-form .btn {
  flex-shrink: 0;
}

/* ============================================
   Chat Mobile Responsive
   ============================================ */

@media (max-width: 767px) {
  .admin-messages-layout {
    grid-template-columns: 1fr;
  }

  .admin-conv-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border, #eee);
    max-height: 200px;
    overflow-y: auto;
  }

  .admin-chat-panel {
    height: calc(100vh - 320px);
    min-height: 300px;
    max-height: none;
  }

  .admin-chat-thread {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-chat-reply-form {
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: var(--color-white);
    padding-bottom: var(--space-md);
  }

  .admin-chat-reply-form .form-input {
    font-size: 16px;
    padding: 12px 14px;
    min-height: 48px;
    width: 100%;
    flex: 1 1 auto;
  }

  .admin-chat-reply-form .btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .chat-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    right: 8px;
    bottom: 8px;
    border-radius: 12px;
  }

  .chat-widget {
    bottom: 12px;
    right: 12px;
  }

  .chat-bubble-btn {
    width: 52px;
    height: 52px;
  }

  .chat-input-form {
    padding: 10px 12px;
    gap: 6px;
  }

  .chat-input-form .form-input {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 44px;
  }

  .chat-intro-form .form-input {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 44px;
  }

  .chat-send-btn {
    width: 44px;
    height: 44px;
  }

  .chat-msg-bubble {
    font-size: 0.95rem;
  }
}

/* Option Templates Admin */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.template-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.template-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.template-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option-set-card {
  background: var(--color-cream);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
}

.option-value-item {
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.option-value-item:hover {
  background: var(--color-cream);
}

.badge-secondary {
  background: var(--color-cream-dark);
  color: var(--color-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

/* Categories Admin */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.category-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.category-card-content {
  flex: 1;
}

@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* Pages Admin */
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.page-card {
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.page-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-card-content {
  flex: 1;
}

@media (max-width: 1000px) {
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
}

/* CMS Page Editor Layout */
.cms-edit-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .cms-edit-layout {
    grid-template-columns: 1fr;
  }
}

/* Section Type Buttons */
.section-type-btn:hover {
  background: var(--color-cream);
  border-color: var(--color-primary);
}

/* ============================================
   Admin: Order Item Image Thumbnails
   ============================================ */
.order-item-thumb-wrap {
  position: relative;
  display: inline-block;
  margin: 4px;
}

.order-item-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid var(--color-border);
}

.order-item-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.order-item-thumb-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 0.7rem;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.order-item-thumb-wrap:hover .order-item-thumb-delete {
  opacity: 1;
}

/* Image Viewer / Lightbox Overlay */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}

.image-viewer-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.image-viewer-close:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   Site Search
   ============================================ */

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  animation: fadeIn 0.15s ease;
}

.search-overlay-inner {
  max-width: 640px;
  margin: 120px auto 0;
  padding: 0 var(--space-lg);
  position: relative;
}

.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-white);
  border-radius: 100px;
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.search-overlay-bar svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.search-overlay-bar input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: var(--space-sm) 0;
  background: transparent;
}

.search-overlay-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.search-overlay-close:hover {
  color: var(--color-text);
}

/* Search Dropdown (live results) */
.search-dropdown {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  margin-top: var(--space-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition);
}
.search-dropdown-item:hover {
  background: var(--color-cream);
}

.search-dropdown-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.search-dropdown-name {
  font-weight: 500;
  display: block;
}

.search-dropdown-price {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: block;
}

.search-dropdown-all {
  display: block;
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  border-top: 1px solid var(--color-border);
  font-weight: 500;
}
.search-dropdown-all:hover {
  background: var(--color-cream);
}

.search-dropdown-empty {
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

/* Search Results Page */
.search-page-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.search-page-input {
  flex: 1;
  font-size: 1.05rem;
}

.search-results-count {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.search-results-grid {
  display: grid;
  gap: var(--space-md);
}

.search-result-link {
  text-decoration: none;
  color: inherit;
}

.search-result-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}
.search-result-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.search-result-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 var(--space-xs) 0;
}

.search-result-cat {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-result-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: var(--space-xs) 0;
  line-height: 1.4;
}

.search-result-price {
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .search-overlay-inner {
    margin-top: 60px;
    padding: 0 var(--space-md);
  }
  .search-result-card {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .search-result-img {
    width: 100%;
    height: 160px;
  }
  .search-page-bar {
    flex-direction: column;
  }
}
