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

:root {
  --primary: #7D1C24;
  --primary-light: #9E2E38;
  --primary-dark: #541016;
  --accent: #D49B3E;
  --accent-light: #E8C382;
  --accent-dark: #A47225;
  --bg-cream: #FAF3E3;
  --bg-paper: #FCF9F2;
  --bg-white: #FFFFFF;
  --text-dark: #2C221E;
  --text-muted: #70625B;
  --text-light: #FAF3E3;
  
  --border-gold: rgba(212, 155, 62, 0.3);
  --border-gold-solid: rgba(212, 155, 62, 0.8);
  --border-crimson: rgba(125, 28, 36, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(44, 34, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(44, 34, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 34, 30, 0.15);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

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

button {
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Elegant Page Background Pattern */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  pointer-events: none;
  background-image: radial-gradient(var(--accent) 1px, transparent 0),
                    radial-gradient(var(--accent) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  z-index: 0;
}

/* Traditional Double Border Ornament */
.ornament-border {
  border: 1px solid var(--accent);
  position: relative;
  padding: 8px;
  margin: 8px;
}
.ornament-border::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid var(--accent);
  opacity: 0.4;
  pointer-events: none;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(250, 243, 227, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
  background-color: rgba(250, 243, 227, 0.95);
}

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

.brand-logo {
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  font-size: 0.8rem;
  letter-spacing: 6px;
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

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

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 6px 16px;
  width: 200px;
  transition: var(--transition-smooth);
}

.search-bar:focus-within {
  width: 280px;
  border-color: var(--primary);
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  width: 100%;
}

.search-bar svg {
  fill: var(--text-muted);
  width: 16px;
  height: 16px;
}

.btn-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  font-size: 1.2rem;
}

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

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--bg-cream);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title span {
  font-weight: 400;
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 15px rgba(125, 28, 36, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 28, 36, 0.3);
}

.btn-secondary {
  border: 1px solid var(--border-gold-solid);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--bg-white);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 1s forwards 0.4s;
}

.hero-image-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-paper), var(--accent-light));
  padding: 16px;
  border: 2px dashed var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotateBorder 40s linear infinite;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: rotateBorder 40s linear infinite reverse;
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: 10px;
  background-color: var(--bg-white);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: bounceSlow 4s infinite ease-in-out;
}

.hero-badge .icon {
  font-size: 1.8rem;
}

.hero-badge .text h4 {
  font-size: 1rem;
  color: var(--primary);
}

.hero-badge .text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category Filter Section */
.catalog-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.ornament-divider::before, .ornament-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background-color: var(--accent);
}

.ornament-divider span {
  color: var(--accent);
  font-size: 1.2rem;
}

.categories-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-tab {
  padding: 10px 24px;
  border-radius: 20px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.category-tab.active, .category-tab:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(125, 28, 36, 0.15);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.product-img-container {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: rgba(212, 155, 62, 0.05);
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.star {
  color: var(--accent);
  font-size: 0.95rem;
}

.star-empty {
  color: #DDD2BF;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.product-title {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

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

.btn-add-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  border: 1px solid var(--accent);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-add-cart:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  transform: rotate(90deg);
}

/* Custom Gift Box Builder Section */
.builder-section {
  background-color: var(--bg-paper);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 100px 24px;
  position: relative;
}

.builder-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.builder-settings h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.builder-settings .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.box-size-selectors {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.size-option {
  flex: 1;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.size-option.active {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.size-option h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.size-option p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.builder-sweets-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.builder-sweet-item {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.builder-sweet-item:hover {
  border-color: var(--accent);
  background-color: var(--bg-white);
}

.builder-sweet-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
}

.builder-sweet-item h5 {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.builder-sweet-item p {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.builder-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-packaging-visual {
  width: 100%;
  max-width: 420px;
  background: var(--bg-cream);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.box-title {
  text-align: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 8px;
}

.box-grid {
  display: grid;
  gap: 16px;
  aspect-ratio: 1;
  background-color: rgba(125, 28, 36, 0.03);
  padding: 12px;
  border-radius: 12px;
}

.box-grid.grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.box-grid.grid-9 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.box-compartment {
  border: 2px dashed var(--accent-light);
  border-radius: 12px;
  background-color: var(--bg-paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.box-compartment.filled {
  border: 1px solid var(--border-gold);
  background-color: var(--bg-white);
}

.box-compartment .compartment-empty {
  font-size: 2rem;
  color: var(--accent-light);
}

.box-compartment img {
  width: 80%;
  height: 60%;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 4px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.box-compartment .item-name {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-dark);
}

.box-compartment .remove-item {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.box-compartment:hover .remove-item {
  opacity: 1;
}

.box-summary {
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
  text-align: center;
}

.box-price-total {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Detailed Product View (Matches Screenshot Page Design) */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-modal.active {
  opacity: 1;
  pointer-events: all;
}

.detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 34, 30, 0.6);
  backdrop-filter: blur(8px);
}

.detail-container {
  width: 92%;
  max-width: 1100px;
  height: 85vh;
  background-color: var(--bg-cream);
  border: 1px solid var(--accent);
  border-radius: 24px;
  z-index: 10;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.detail-modal.active .detail-container {
  transform: translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  font-size: 1.2rem;
  color: var(--text-dark);
}

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

.detail-scroll-wrapper {
  overflow-y: auto;
  flex-grow: 1;
  padding: 40px;
}

/* Page Book/Spread Layout matching screenshot */
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.detail-left-pane {
  display: flex;
  flex-direction: column;
}

.detail-breadcrumbs {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 24px;
}

.detail-title {
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.detail-pricing-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-rating-summary .stars {
  color: var(--accent);
}

.detail-rating-summary .text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-desc-box {
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 30px 0;
  margin-bottom: 40px;
  position: relative;
}

.detail-desc-box h4 {
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.detail-desc-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: justify;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
}

/* Related Products Horizontal Scroll - from screenshot */
.related-section {
  margin-top: 20px;
}

.related-header {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 8px;
}

.related-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.related-card {
  min-width: 140px;
  flex: 0 0 140px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: var(--transition-fast);
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.related-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
}

.related-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.detail-right-pane {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-image-showcase {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1.1;
  overflow: hidden;
  position: relative;
}

.detail-image-showcase img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.detail-buy-box {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  background-color: var(--bg-cream);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
}

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

.qty-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

/* Reviews and Ratings Detail Part */
.detail-reviews {
  border-top: 1px solid var(--border-gold);
  padding-top: 24px;
}

.detail-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.detail-reviews-header h4 {
  font-size: 1.25rem;
  color: var(--primary);
}

.reviews-list-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.review-item-compact {
  background-color: var(--bg-cream);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-crimson);
}

.review-item-compact .header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.review-item-compact .name {
  font-weight: 600;
}

.review-item-compact .body {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reviews Submission Section */
.customer-reviews-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 24px;
}

.reviews-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.reviews-aggregate {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.reviews-aggregate h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.rating-huge {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.rating-huge-stars {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.rating-total-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.reviews-write-box {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 40px;
}

.reviews-write-box h4 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.reviews-write-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
}

.star-input {
  display: flex;
  gap: 8px;
  font-size: 1.6rem;
  color: #DDD2BF;
  cursor: pointer;
  margin-bottom: 24px;
}

.star-input span:hover, .star-input span.active {
  color: var(--accent);
}

/* Cart Drawer Section */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100%;
  background-color: var(--bg-cream);
  border-left: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 34, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

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

.cart-header h3 {
  font-size: 1.6rem;
  color: var(--primary);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-message {
  text-align: center;
  margin-top: 100px;
  color: var(--text-muted);
}

.cart-empty-message svg {
  width: 60px;
  height: 60px;
  fill: var(--border-gold-solid);
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  background-color: var(--bg-cream);
  width: fit-content;
  overflow: hidden;
}

.cart-item-qty-btn {
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.cart-item-qty-val {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-remove-cart-item {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn-remove-cart-item:hover {
  color: var(--primary);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-gold);
  background-color: var(--bg-paper);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.cart-summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--primary);
  color: var(--bg-white);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 24px;
  box-shadow: var(--shadow-md);
  font-weight: 500;
  animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Checkout Success Overlay */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(125, 28, 36, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.checkout-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.checkout-success-box {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

.checkout-success-box h2 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.checkout-success-box p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Footer Section */
footer {
  background-color: var(--primary-dark);
  color: var(--bg-cream);
  border-top: 2px solid var(--accent);
  padding: 80px 24px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.footer-col p {
  color: rgba(250, 243, 227, 0.75);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(250, 243, 227, 0.75);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--bg-cream);
  flex-grow: 1;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(250, 243, 227, 0.4);
}

.newsletter-form button {
  background-color: var(--accent);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 600;
}

.newsletter-form button:hover {
  background-color: var(--accent-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(250, 243, 227, 0.15);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(250, 243, 227, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Menu & Overlay elements hidden by default on desktop */
#mobile-menu-trigger {
  display: none;
}
.btn-close-menu {
  display: none;
}
.nav-links-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 34, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-links-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-search-item {
  display: none;
  width: 100%;
}
.mobile-only-search {
  width: 100% !important;
  margin-bottom: 20px;
}
.desktop-only-search {
  display: flex;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  /* Header Mobile Menu adjustments */
  #mobile-menu-trigger {
    display: flex;
    order: -1;
  }
  .btn-close-menu {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    background: var(--bg-paper);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
  }
  .mobile-search-item {
    display: block;
  }
  .desktop-only-search {
    display: none !important;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-cream);
    border-right: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px;
    gap: 20px;
    transform: translateX(-100%);
    transition: var(--transition-smooth);
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.15rem;
    width: 100%;
    border-bottom: 1px solid var(--border-crimson);
    padding-bottom: 12px;
  }
  .nav-links a::after {
    display: none;
  }

  /* Hero adjustments */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-image-wrapper {
    width: 380px;
    height: 380px;
  }

  /* Builder and detail modal elements */
  .builder-container {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .reviews-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  /* Brand visual logo header */
  .brand-logo {
    font-size: 1.6rem;
  }
  .brand-logo span {
    font-size: 0.65rem;
    letter-spacing: 4px;
  }

  /* Hero text content */
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }
  .hero-badge {
    bottom: 10px;
    left: -10px;
    padding: 10px;
  }

  /* 2-Column Responsive E-Commerce Grid on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .product-card {
    border-radius: 12px;
  }
  .product-img-container {
    height: 150px;
  }
  .product-body {
    padding: 12px;
  }
  .product-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
    line-height: 1.2;
  }
  .product-desc {
    display: none; /* Hide product summaries in catalog for vertical space */
  }
  .product-price {
    font-size: 1.05rem;
  }
  .btn-add-cart {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* Gift Box Customizer elements stack and sizing */
  .builder-sweets-list {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }
  .builder-sweet-item {
    padding: 8px;
    border-radius: 8px;
  }
  .builder-sweet-item img {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
  }
  .builder-sweet-item h5 {
    font-size: 0.78rem;
  }
  .builder-sweet-item p {
    font-size: 0.72rem;
  }
  .box-packaging-visual {
    padding: 16px;
    border-radius: 12px;
  }
  .box-grid {
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
  }
  .box-compartment .item-name {
    font-size: 0.65rem;
    line-height: 1.1;
  }
  .box-compartment img {
    width: 70%;
    height: 50%;
  }

  /* Detailed Drawer Modal - Fullscreen slide up with bottom-sticky action box */
  .detail-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
    transform: translateY(100%);
  }
  .detail-modal.active .detail-container {
    transform: translateY(0);
  }
  .btn-close-modal {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background-color: var(--bg-white);
  }
  .detail-scroll-wrapper {
    padding: 24px 16px 100px; /* Padding bottom allows clean scrolling above sticky drawer */
  }
  .detail-title {
    font-size: 2.2rem;
  }
  .detail-desc-box {
    padding: 20px 0;
  }
  .detail-image-showcase {
    aspect-ratio: 1.2;
    padding: 12px;
    border-radius: 12px;
  }
  .detail-image-showcase img {
    width: 80%;
    height: 80%;
  }
  
  /* Sticky buy box fixed at the bottom viewport on mobile */
  .detail-buy-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 1px solid var(--accent);
    box-shadow: 0 -8px 24px rgba(44, 34, 30, 0.12);
    z-index: 50;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-paper);
  }
  .qty-selector {
    margin-bottom: 0;
    gap: 8px;
  }
  #detail-add-to-cart-btn {
    width: auto !important;
    flex-grow: 1;
    margin-left: 16px;
    padding: 12px 20px;
  }

  /* Footer stack and layout centers */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .newsletter-form {
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
  }
  .newsletter-form input {
    border-radius: 20px;
    margin-bottom: 12px;
    text-align: center;
  }
  .newsletter-form button {
    border-radius: 20px;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .cart-drawer {
    width: 100%;
  }
}

