/* ===== StoryThread Global Styles ===== */

/* Colors */
:root {
  --bg: #FDFBF7;
  --text: #2D2D2D;
  --accent: #8B9E8B;
  --accent-dark: #6B7E6B;
  --white: #FFFFFF;
  --light-gray: #F5F3EF;
  --border: #E8E4DE;
  --text-light: #7A7A7A;
}

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

/* Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
img[src=""] { visibility: hidden; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, select { font-family: inherit; }

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Navigation ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--accent);
}

.navbar__icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navbar__icon {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}

.navbar__icon:hover { stroke: var(--accent); }

.navbar__cart-wrapper { position: relative; }
.cart-count {
  position: relative;
}

.cart-count::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
/* Navbar search */
.navbar__search {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.navbar__search.open { display: block; }
.navbar__search .container { display: flex; align-items: center; height: 52px; }
.navbar__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
}
.navbar__search input::placeholder { color: var(--text-light); }
.navbar__search button {
  font-size: 1.4rem;
  color: var(--text-light);
  padding: 0 8px;
}

/* Navbar dropdown (Shop All) */
.navbar__has-dropdown { position: relative; cursor: pointer; }
.navbar__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 160px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 50;
}
.navbar__has-dropdown:hover .navbar__dropdown { display: block; }
.navbar__dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s;
}
.navbar__dropdown a:hover { background: var(--light-gray); color: var(--accent); }

/* Navbar account icon */
.navbar__icon-btn { display: flex; align-items: center; }

/* Navbar language switcher */
.navbar__lang { position: relative; }
.navbar__lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 50;
}
.navbar__lang.open .navbar__lang-dropdown { display: block; }
.navbar__lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s;
}
.navbar__lang-dropdown button:hover { background: var(--light-gray); }

/* Cart preview */
.navbar__cart-preview {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  min-width: 340px;
  max-width: 380px;
  max-height: 480px;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 50;
}
.navbar__cart-preview.open { display: block; }
.navbar__cart-preview-empty { font-size: 0.9rem; color: var(--text-light); text-align: center; padding: 16px 20px; }

/* Cart preview items */
.cart-preview__items { padding: 12px 16px; }
.cart-preview__item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-preview__item:last-child { border-bottom: none; }
.cart-preview__item-img {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-preview__item-info { flex: 1; min-width: 0; }
.cart-preview__item-title {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-preview__item-sku {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}
.cart-preview__item-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.8rem;
}
.cart-preview__item-price { color: var(--accent); font-weight: 600; }
.cart-preview__item-qty { color: var(--text-light); }

/* Cart preview summary */
.cart-preview__summary {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
}
.cart-preview__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.cart-preview__row--total { font-weight: 700; font-size: 0.9rem; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.cart-preview__shipping-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}
.cart-preview__shipping-hint span { color: var(--accent); font-weight: 600; }
.cart-preview__action {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-preview__action:hover { background: var(--text-dark, #111); }

/* Mobile menu toggle */
.navbar__menu-btn {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.navbar__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ===== Announcement Bar ===== */
.announcement-bar {
  background: #2D2D2D;
  color: #fff;
  font-size: 0.82rem;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}
.announcement-bar__track {
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.announcement-bar__item {
  padding: 0 48px;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.announcement-bar__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.announcement-bar__close:hover { opacity: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.btn:active {
  transform: scale(0.97);
}

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

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--outline {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
}

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

.btn--dark {
  background: var(--text);
  color: var(--white);
}

.btn--dark:hover {
  background: #444;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.order-card__actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}
.order-card__actions .btn {
  cursor: pointer;
}

/* ===== Section ===== */
.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--light-gray);
}

.section--green {
  background: var(--accent);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.section__title {
  font-size: 2.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section__desc {
  margin-top: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  width: 100%;
  text-align: center;
  animation: heroFadeIn 1s ease-out;
}

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

.hero__title {
  font-size: 4.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.8), 0 0 80px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.8), 0 0 80px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero__dot:hover { background: rgba(255,255,255,0.7); }
.hero__dot.active { background: var(--white); transform: scale(1.2); }

/* ===== Category Cards ===== */
.category-grid__action { text-align: center; margin-top: 24px; }
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.category-grid .category-card {
  flex: 0 1 calc(25% - 15px);
  max-width: calc(25% - 15px);
  min-width: 200px;
}

.category-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  text-decoration: none;
  position: relative;
}

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

.category-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}

.category-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  pointer-events: none;
  z-index: 1;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.category-card__label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  z-index: 3;
}

/* Category cards grid (products page) */
.category-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.category-cards-grid .category-card {
  flex: 0 1 calc(25% - 1.5rem * 3 / 4);
  max-width: calc(25% - 1.5rem * 3 / 4);
  min-width: 200px;
}

@media (max-width: 768px) {
  .category-cards-grid .category-card {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    min-width: 140px;
  }
  .category-grid .category-card {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 140px;
  }
}


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

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.product-card__image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--light-gray);
  border-radius: 12px 12px 0 0;
}

.product-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
 display: flex;
  gap: 6px;
  z-index: 2;
}
.product-card__badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.product-card__badge--new {
  background: var(--text);
}
.product-card__badge--hot {
  background: #E07B39;
}
.product-card__badge--best {
  background: #C75050;
}

.product-card__pers-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  border-radius: 8px;
}

.product-card:hover .product-card__pers-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-card__rating {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 4px;
}
.product-card__add-cart {
  width: 100%;
  padding: 11px;
  margin-top: auto;
  background: var(--text);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.product-card__add-cart::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card__add-cart:hover { background: var(--accent); transform: scale(1.02); box-shadow: 0 4px 16px rgba(139,158,139,0.3); }
.product-card__add-cart:hover::after { opacity: 1; }
.product-card__add-cart:active { transform: scale(0.97); }
.product-card__add-cart.added {
  background: var(--accent);
  animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  60% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Cart icon bounce */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}
.navbar__cart-wrapper.bounce svg {
  animation: cartBounce 0.5s ease;
}
.product-card__info {
  padding: 16px 16px 20px;
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.product-card__price .market-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 8px;
}

/* ===== Steps / How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 32px 20px;
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-2px);
}
.step-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.step-card__num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: var(--border);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.step-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Testimonial Cards ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.testimonial-card__stars { font-size: 0.85rem; margin-bottom: 16px; }
.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-badge svg { stroke: var(--accent); }

/* ===== Testimonial (legacy) ===== */
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.testimonial__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--light-gray);
}

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

.testimonial__content {
  padding: 20px 0;
}

.testimonial__quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial__author {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===== Newsletter ===== */
.newsletter-section {
  text-align: center;
  padding: 60px 0;
}

.newsletter-section__title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.newsletter-section__desc {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.newsletter {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.newsletter input:focus {
  border-color: var(--accent);
}

.newsletter button {
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  transition: background 0.3s;
}

.newsletter button:hover {
  background: var(--accent-dark);
}

/* ===== Shop Page Hero ===== */
.shop-hero {
  text-align: center;
  padding: 48px 0 24px;
}
.shop-hero__subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.shop-hero__title {
  font-size: 2.4rem;
  color: var(--text);
}

/* ===== Products Page — Sidebar ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sidebar__clear {
  font-size: 0.75rem;
  color: var(--text-light);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar__clear:hover { color: var(--text); }

.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.sidebar__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.sidebar__group {
  margin-bottom: 24px;
}

.sidebar__group:last-child {
  margin-bottom: 0;
}

.sidebar__group-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.sidebar__list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.sidebar__list label:hover {
  color: var(--text);
}

.sidebar__list input[type="checkbox"] {
  accent-color: var(--accent);
}

.sidebar__colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar__color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.sidebar__color:hover,
.sidebar__color.active {
  border-color: var(--accent);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.shop-toolbar__count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.shop-toolbar__sort {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all 0.2s;
}

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

.pagination .active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.pagination .next {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ===== Product Card — Color Dots ===== */
.product-card__colors {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}
.product-card__color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid var(--border);
}

/* Sale badge */
/* Shop grid override — 3 columns on products page */
.product-grid--shop {
  grid-template-columns: repeat(3, 1fr);
}

/* Filter toggle button (mobile) */
#filter-toggle {
  display: none;
  margin-bottom: 24px;
  gap: 8px;
}
#filter-toggle svg { vertical-align: middle; }
#filter-toggle.filter-active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ===== Breadcrumb ===== */
.breadcrumb-bar {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 8px; color: var(--border); }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ===== Product Detail ===== */
.detail {
  padding: 40px 0 80px;
}

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

.detail__gallery-wrap {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.detail__main-image {
  flex: 1;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
  border-radius: 8px;
}

.detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 520px;
}

.detail__thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: var(--light-gray);
  border-radius: 6px;
}

.detail__thumb.active,
.detail__thumb:hover {
  border-color: var(--accent);
}

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

.detail__info {
  padding: 8px 0 0 0;
}

.detail__promo {
  margin-bottom: 12px;
}
.detail__promo-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
  border: 1px solid #fde2e2;
  border-radius: 8px;
}
.detail__promo-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d63031;
  background: rgba(214,48,49,0.08);
  padding: 4px 10px;
  border-radius: 4px;
}
.detail__promo-timer {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e67e22;
  background: rgba(230,126,34,0.08);
  padding: 4px 10px;
  border-radius: 4px;
}
.detail__promo-combo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a7a4c;
  background: rgba(26,122,76,0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.detail__title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.detail__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.detail__stars {
  color: #F5C542;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.detail__rating-score {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.detail__review-count {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.detail__review-count:hover { color: var(--accent); }

.detail__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail__sale-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.detail__price .market-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  font-size: 1.1rem;
}

.detail__discount-badge {
  background: #E8F5E8;
  color: #4A7C4A;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.detail__description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 4px;
}

.detail__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

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

.detail__option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.detail__option-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail__size-guide {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: underline;
  transition: color 0.2s;
}
.detail__size-guide:hover { color: var(--accent); }

.detail__selected-color {
  font-size: 0.85rem;
  color: var(--text-light);
}

.detail__colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail__color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail__color.active {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--accent);
}

.detail__color:hover:not(.active) {
  transform: scale(1.1);
}

.detail__sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail__size {
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.detail__size.active,
.detail__size:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}

/* POD Editor */
.detail__pod-editor {
  background: var(--light-gray);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}
.detail__pod-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.detail__pod-field {
  margin-bottom: 12px;
}
.detail__pod-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.detail__pod-field input:focus { border-color: var(--accent); }
.detail__pod-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.detail__upload-btn {
 display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail__upload-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.detail__preview-btn {
  width: 100%;
}

/* Quantity */
.detail__qty-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.detail__qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.detail__qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  transition: background 0.2s;
}
.detail__qty-btn:hover { background: var(--light-gray); }
.detail__qty-val {
  width: 48px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 40px;
}

/* Action buttons */
.detail__add-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 16px;
  font-size: 0.95rem;
}
.detail__buy-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.9rem;
}

/* Trust bar */
.detail__trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.detail__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.detail__trust-item svg {
  stroke: var(--accent);
  flex-shrink: 0;
}
.detail__trust-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}
.detail__trust-item span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Reviews */
.detail__reviews {
  margin-top: 60px;
}
.detail__reviews-header {
  margin-bottom: 20px;
}
.detail__reviews-header h2 {
  font-size: 1.8rem;
}
/* Occasion grid (Perfect For tab) */

.detail__review-list {
  display: grid;
  gap: 24px;
}
.detail__review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.detail__review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.detail__review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail__review-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.detail__review-author strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.detail__review-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}
.detail__review-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.detail__review-images {
  margin-top: 12px;
}
.detail__review-images img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.detail__review-images img:hover { opacity: 0.8; }

/* Rating breakdown bars */
.detail__reviews-summary {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.detail__reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.detail__reviews-avg {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.detail__reviews-score span:last-child {
  font-size: 0.85rem;
  color: var(--text-light);
}
.detail__reviews-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail__reviews-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.detail__reviews-bar > span:first-child {
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}
.detail__reviews-bar-track {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.detail__reviews-bar-fill {
  height: 100%;
  background: #f5a623;
  border-radius: 4px;
  transition: width 0.3s;
}
.detail__reviews-bar > span:last-child {
  width: 36px;
  text-align: left;
  flex-shrink: 0;
}
.detail__reviews-total {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Seller reply */
.detail__review-reply {
  margin-top: 10px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.detail__review-reply-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

/* Occasion grid (Perfect For tab) */
.detail__occasion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.detail__occasion {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.detail__occasion-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}
.detail__occasion strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.detail__occasion span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Contact cards (Questions tab) */
.detail__contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.detail__contact-card {
  background: var(--light-gray);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.detail__contact-card svg {
  stroke: var(--accent);
}
.detail__contact-card strong {
  font-size: 0.9rem;
}
.detail__contact-card span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Detail responsive */
@media (max-width: 768px) {
  .detail__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail__gallery-wrap {
    position: static;
  }
  .detail__trust-bar {
    grid-template-columns: 1fr 1fr;
  }
  .detail__occasion-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail__contact-cards {
    grid-template-columns: 1fr;
  }
  .detail__reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .detail__reviews-summary {
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .detail__trust-bar {
    grid-template-columns: 1fr;
  }
  .detail__occasion-grid {
    grid-template-columns: 1fr;
  }
  .detail__thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }
}

/* Product tabs */
.tabs {
  margin-top: 60px;
  border-bottom: 1px solid var(--border);
}

.tabs__list {
  display: flex;
  gap: 32px;
}

.tabs__tab {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.2s;
}

.tabs__tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.tabs__content {
  padding: 32px 0;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.tabs__content ul {
  list-style: disc;
  padding-left: 20px;
}

.tabs__content ul li { margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.faq-item__icon {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-item__answer { max-height: 300px; }
.faq-item__answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Features / Trust Badges ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.feature {
  padding: 32px 16px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.2;
}

.feature__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ===== Story Page ===== */
.story-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.story-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.story-hero .container {
  position: relative;
  z-index: 2;
}

.story-hero__title {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--white);
}

.story-hero__desc {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-content__text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.story-content__text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-content__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--light-gray);
}

.story-content__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section subtitle */
.section__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 12px;
  font-weight: 400;
}

/* Story content reverse */
.story-content--reverse { direction: rtl; }
.story-content--reverse > * { direction: ltr; }

/* Story content label */
.story-content__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Story craft cards */
.craft-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.craft-card {
  background: var(--accent);
  color: var(--white);
  padding: 40px 28px;
  text-align: center;
  border-radius: 8px;
}

.craft-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.2;
}

.craft-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.craft-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== Story Stats ===== */
.story-stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.story-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.story-stats__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.story-stats__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 500;
}

/* CTA actions */
.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s;
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

/* ===== Custom / Personalize Page ===== */
.customize-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.customize-product {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.customize-product__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
}

.customize-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customize-form {
  padding: 20px 0;
}

.customize-form__progress {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.customize-form__step {
  margin-bottom: 32px;
}

.customize-form__step-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

/* Style options */
.style-options {
  display: flex;
  gap: 12px;
}

.style-option {
  flex: 1;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.style-option.active {
  border-color: var(--accent);
  background: var(--light-gray);
}

/* Color picker */
.color-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Text input for name */
.customize-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.customize-input:focus {
  border-color: var(--accent);
}

/* Size selector */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.size-option:hover {
  border-color: var(--text);
}

.size-option.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #2D2D2D 0%, #3a3a3a 50%, #2D2D2D 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,158,139,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--white);
}

.cta-banner__desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-banner .btn--primary {
  background: var(--accent);
}

.cta-banner .btn--primary:hover {
  background: var(--accent-dark);
}

.cta-banner__newsletter {
  display: flex;
  max-width: 460px;
  margin: 0 auto 28px;
  border-radius: 50px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: border-color 0.3s;
}
.cta-banner__newsletter:focus-within {
  border-color: rgba(255,255,255,0.5);
}
.cta-banner__email {
  flex: 1;
  padding: 16px 24px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.cta-banner__email::placeholder { color: rgba(255,255,255,0.45); }
.cta-banner__subscribe {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  font-family: inherit;
}
.cta-banner__subscribe:hover { background: var(--accent-dark); }

.cta-banner__link {
  position: relative;
  z-index: 1;
}

/* ===== Footer ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}

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

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer__payments {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer__payments span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== Loading ===== */
.loading {
  display: flex;
  justify-content: center;
  padding: 60px;
}

.loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.hidden { display: none !important; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 200px 1fr; }
  .customize-layout { grid-template-columns: 1fr 1fr; }
  .craft-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .announcement-bar { font-size: 0.75rem; height: 36px; }
  .announcement-bar__item { padding: 0 32px; }
  .navbar__links { display: none; }
  .navbar__menu-btn { display: flex; }
  .navbar__has-dropdown:hover .navbar__dropdown { display: none; }
  .navbar__has-dropdown.open .navbar__dropdown { display: block; position: static; transform: none; box-shadow: none; border: none; padding-left: 0; }
  .navbar__dropdown a { padding: 8px 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-badges { flex-direction: column; align-items: center; gap: 16px; }
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .hero { min-height: 60vh; }
  .hero__title { font-size: 2.5rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonial { grid-template-columns: 1fr; gap: 32px; }
  .detail { padding: 20px 0 40px; }
  .detail__gallery { grid-template-columns: 1fr; }
  .detail__thumbs { flex-direction: row; order: 2; }
  .detail__thumb { width: 60px; height: 60px; }
  .detail__info { padding: 20px 0 0 0; }
  .story-content { grid-template-columns: 1fr; gap: 32px; }
  .story-content--reverse { direction: ltr; }
  .craft-cards { grid-template-columns: 1fr 1fr; }
  .story-stats__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .customize-layout { grid-template-columns: 1fr; }
  .customize-product { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .sidebar.open { display: block; }
  #filter-toggle { display: inline-flex; }
  .product-grid--shop { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-hero { padding: 32px 0 16px; }
  .shop-hero__title { font-size: 1.8rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-grid--shop { grid-template-columns: 1fr 1fr; }
  .product-card__info { padding: 10px; }
  .product-card__title { font-size: 0.85rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .color-picker { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   Cart Page
   ======================================== */

.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: #999;
}
.breadcrumb a {
  color: #2D2D2D;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 32px;
}

.cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

/* Cart checkbox */
.cart-select-all {
  padding: 12px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.cart-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  user-select: none;
}
.cart-item__check {
  flex-shrink: 0;
}
.cart-item__check input,
.cart-select-all input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2c3e2c;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  transition: background 0.2s;
}
.cart-item:last-child {
  border-bottom: none;
}

.cart-item__image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
  min-width: 0;
}
.cart-item__title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}
.cart-item__title a {
  color: #2D2D2D;
  text-decoration: none;
}
.cart-item__title a:hover {
  color: #8B9E8B;
}
.cart-item__variant {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px;
}
.cart-item__custom {
  font-size: 13px;
  color: #8B9E8B;
  font-style: italic;
  margin: 0;
}
.cart-item__custom-icon {
  margin-right: 4px;
}
.cart-item__custom-img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 4px;
  margin-top: 4px;
  object-fit: cover;
}
.cart-item__custom-preview {
  position: relative;
  margin-top: 8px;
}
.cart-item__custom-label {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-style: normal;
  z-index: 1;
}
.cart-item__preview-img {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item__qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #2D2D2D;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cart-item__qty-btn:hover {
  background: #f5f5f5;
}
.cart-item__qty-num {
  width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #2D2D2D;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  line-height: 36px;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 600;
  color: #2D2D2D;
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cart-item__edit,
.cart-item__remove {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-align: right;
}
.cart-item__edit {
  color: #888;
  text-decoration: underline;
}
.cart-item__edit:hover {
  color: #2D2D2D;
}
.cart-item__remove {
  color: #c44;
}
.cart-item__remove:hover {
  color: #a33;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty p {
  font-size: 18px;
  color: #888;
  margin-bottom: 20px;
}

/* Cart Summary Sidebar */
.cart-summary {
  width: 360px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.cart-shipping-bar {
  margin-bottom: 24px;
}
.cart-shipping-bar__text {
  font-size: 14px;
  color: #2D2D2D;
  margin-bottom: 8px;
}
.cart-shipping-bar__track {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.cart-shipping-bar__fill {
  height: 100%;
  background: #8B9E8B;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: #2D2D2D;
}
.cart-summary__row--total {
  border-top: 1px solid #eee;
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}
.cart-summary__free {
  color: #8B9E8B;
  font-weight: 600;
}

.cart-summary__delivery {
  font-size: 13px;
  color: #888;
  margin: 16px 0 24px;
}

.cart-summary__checkout {
  margin-bottom: 16px;
  text-align: center;
  display: block;
  font-size: 16px;
  padding: 16px 32px;
}

.cart-summary__continue {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #8B9E8B;
  text-decoration: underline;
  margin-bottom: 20px;
}
.cart-summary__continue:hover {
  color: #2D2D2D;
}

.cart-summary__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
}

/* Coupon */
.cart-coupon {
  margin-bottom: 20px;
}
.cart-coupon__input-wrap {
  display: flex;
  gap: 0;
}
.cart-coupon__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: #2D2D2D;
  background: #fff;
}
.cart-coupon__input:focus {
  border-color: #8B9E8B;
}
.cart-coupon__btn {
  padding: 10px 20px;
  background: #2D2D2D;
  color: #fff;
  border: 1px solid #2D2D2D;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.cart-coupon__btn:hover {
  background: #444;
}
.cart-coupon__msg {
  font-size: 13px;
  margin-top: 6px;
  min-height: 1.2em;
}

/* Responsive */
@media (max-width: 1024px) {
  .cart-layout {
    gap: 28px;
  }
  .cart-summary {
    width: 300px;
  }
}

@media (max-width: 900px) {
  .cart-layout {
    flex-direction: column;
  }
  .cart-summary {
    width: 100%;
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .cart-item__image {
    width: 70px;
    height: 70px;
  }
  .cart-item__price {
    min-width: auto;
  }
  .cart-item__actions {
    flex-direction: row;
    gap: 16px;
  }
}

/* ========================================
   Checkout Page
   ======================================== */

.checkout__header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 20px;
}
.checkout__header h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

.checkout {
  padding: 40px 0 64px;
}

.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: flex-start;
}

.checkout__section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.checkout__section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text);
}

.checkout__field {
  margin-bottom: 16px;
}
.checkout__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.checkout__optional {
  color: var(--text-light);
  font-weight: 400;
}
.checkout__field input,
.checkout__field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.checkout__field input:focus,
.checkout__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,158,139,0.15);
}

.checkout__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.checkout__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  margin-top: 4px;
}
.checkout__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Shipping Radio */
.checkout__radio-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checkout__radio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
}
.checkout__radio:last-child {
  border-bottom: none;
}
.checkout__radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.checkout__radio-info {
  flex: 1;
}
.checkout__radio-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}
.checkout__radio-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}
.checkout__radio-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Freight Insurance */
.checkout__insurance {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.checkout__checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.checkout__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
}
.checkout__checkbox-info {
  flex: 1;
}
.checkout__checkbox-label {
  font-weight: 500;
  color: var(--text);
}
.checkout__checkbox-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.checkout__checkbox-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Promo Code */
.checkout__promo {
  display: flex;
  gap: 10px;
}
.checkout__promo input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.checkout__promo input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,158,139,0.15);
}
.checkout__promo-btn {
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.checkout__promo-btn:hover {
  background: var(--light-gray);
}
.checkout__promo-msg {
  font-size: 0.8rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* Payment Tabs */
.checkout__payment-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.checkout__pay-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: var(--light-gray);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.checkout__pay-tab.active {
  background: var(--white);
  box-shadow: 0 -2px 0 var(--accent) inset;
}

.checkout__pay-panel {
  margin-bottom: 24px;
}
.checkout__card-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  opacity: 0.5;
}
.checkout__paypal-box {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.checkout__submit {
  width: 100%;
  padding: 16px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
}
.checkout__submit:hover {
  opacity: 0.9;
}
.checkout__submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.checkout__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Order Summary */
.checkout__summary {
  position: sticky;
  top: 100px;
}
.checkout__summary-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.checkout__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 16px;
}
.checkout__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout__item-img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-gray);
}
.checkout__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.checkout__item-info {
  flex: 1;
  min-width: 0;
}
.checkout__item-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 2px;
}
.checkout__item-variant {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0 0 2px;
}
.checkout__item-qty {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
}
.checkout__item-price {
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Free shipping progress */
.checkout__shipping-progress {
  margin-bottom: 16px;
}
.checkout__shipping-msg {
  font-size: 0.82rem;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.checkout__progress-bar {
  width: 100%;
  height: 4px;
  background: var(--light-gray);
  border-radius: 2px;
  overflow: hidden;
}
.checkout__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Totals */
.checkout__totals {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checkout__total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.checkout__total-row--final {
  border-top: 2px solid var(--text);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}
.checkout__discount-row {
  color: var(--accent-dark);
}

/* Delivery estimate */
.checkout__delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.82rem;
  color: var(--text-light);
}
.checkout__delivery strong {
  color: var(--text);
}

/* Checkout Responsive */
@media (max-width: 1024px) {
  .checkout__grid {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .checkout__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .checkout__summary {
    position: static;
    order: -1;
  }
  .checkout {
    padding: 24px 0 48px;
  }
  .checkout__row--3 {
    grid-template-columns: 1fr 1fr;
  }
  .checkout__row--3 .checkout__field:last-child {
    grid-column: 1 / -1;
  }
}

/* ===== Login / Register Page ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: stretch;
}

.auth-page__container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Left: Brand */
.auth-page__brand {
  flex: 1;
  background: linear-gradient(135deg, #8B9E8B 0%, #6b7f6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #fff;
}

.auth-page__brand-content {
  max-width: 380px;
}

.auth-page__brand-logo {
  width: 48px;
  height: 48px;
  color: #fff;
  margin-bottom: 32px;
}

.auth-page__brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
}

.auth-page__brand p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0 0 32px;
}

.auth-page__brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-page__brand-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.95;
}

.auth-page__brand-feature svg {
  flex-shrink: 0;
}

/* Right: Form */
.auth-page__form-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--bg);
}

.auth-page__form-inner {
  width: 100%;
  max-width: 400px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e5e5e5;
}

.auth-tabs__btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tabs__btn.active {
  color: #2D2D2D;
  border-bottom-color: #8B9E8B;
}

.auth-tabs__btn:hover {
  color: #2D2D2D;
}

/* Forms */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form__group {
  margin-bottom: 20px;
}

.auth-form__group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 6px;
}

.auth-form__group input[type="email"],
.auth-form__group input[type="password"],
.auth-form__group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #2D2D2D;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-form__group input:focus {
  outline: none;
  border-color: #8B9E8B;
  box-shadow: 0 0 0 3px rgba(139,158,139,0.15);
}

.auth-form__group input::placeholder {
  color: #bbb;
}

.auth-form__group-row {
  display: flex;
  gap: 14px;
}

.auth-form__group-row .auth-form__group {
  flex: 1;
}

.auth-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  margin-bottom: 20px;
}

.auth-form__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8B9E8B;
}

.auth-form__checkbox a {
  color: #8B9E8B;
  text-decoration: none;
}

.auth-form__checkbox a:hover {
  text-decoration: underline;
}

.auth-form__link {
  font-size: 13px;
  color: #8B9E8B;
  text-decoration: none;
}

.auth-form__link:hover {
  text-decoration: underline;
}

.auth-form__submit {
  width: 100%;
  padding: 14px;
  background: #8B9E8B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-form__submit:hover {
  background: #7a8d7a;
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: 28px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e5e5;
}

.auth-divider span {
  background: var(--bg);
  padding: 0 16px;
  position: relative;
  font-size: 13px;
  color: #999;
}

/* Social */
.auth-social {
  display: flex;
  gap: 12px;
}

.auth-social__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2D2D2D;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.auth-social__btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Auth Footer */
.auth-footer {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-page__brand {
    display: none;
  }

  .auth-page__container {
    margin: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

  .auth-page__form-wrapper {
    padding: 32px 24px;
  }

  .auth-form__group-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ===== FAQ Page Styles ===== */

.faq-hero {
  text-align: center;
  padding: 80px 0 48px;
  background: var(--bg);
}

.faq-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 12px;
}

.faq-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}

.faq-hero__desc {
  font-size: 1.1rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-page {
  padding: 0 0 80px;
}

.faq-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-category__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e4de;
}

.faq-category__icon {
  width: 24px;
  height: 24px;
  color: var(--sage);
  flex-shrink: 0;
}

.faq-category__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dark);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-details {
  border-bottom: 1px solid #ece8e2;
}

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

.faq-details__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
  line-height: 1.5;
}

.faq-details__summary::-webkit-details-marker {
  display: none;
}

.faq-details__summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--sage);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.faq-details[open] > .faq-details__summary::after {
  content: '−';
}

.faq-details__summary:hover {
  color: var(--sage);
}

.faq-details__content {
  padding: 0 0 18px;
  font-size: 0.925rem;
  line-height: 1.7;
  color: #555;
}

.faq-details__content p {
  margin: 0;
}

.faq-details__content strong {
  color: var(--dark);
  font-weight: 600;
}

/* FAQ CTA */
.faq-cta {
  text-align: center;
  padding: 80px 0;
  background: var(--dark);
  color: #fff;
}

.faq-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.faq-cta__desc {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.faq-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-cta__icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
}

.faq-cta .btn--primary {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.faq-cta .btn--primary:hover {
  background: #7a8e7a;
  border-color: #7a8e7a;
}

.faq-cta .btn--outline {
  border-color: #666;
  color: #fff;
}

.faq-cta .btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-hero {
    padding: 48px 0 32px;
  }

  .faq-hero__title {
    font-size: 2rem;
  }

  .faq-hero__desc {
    font-size: 1rem;
  }

  .faq-page__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-cta {
    padding: 56px 0;
  }

  .faq-cta__title {
    font-size: 1.5rem;
  }

  .faq-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .faq-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { margin: 0 8px; }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ===== Customize Page Hero ===== */
.customize-hero {
  text-align: center;
  padding: 56px 24px 40px;
}
.customize-hero__subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.customize-hero__title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.customize-hero__desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Wizard Progress ===== */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  padding: 0 24px;
}
.wizard-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: pointer;
}
.wizard-progress__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.wizard-progress__step.active .wizard-progress__num,
.wizard-progress__step.completed .wizard-progress__num {
  background: var(--accent);
  color: var(--white);
}
.wizard-progress__label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}
.wizard-progress__step.active .wizard-progress__label { color: var(--text); font-weight: 600; }
.wizard-progress__line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 22px;
}
.wizard-progress__line.active { background: var(--accent); }

/* ===== Wizard Layout ===== */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== Wizard Preview (Left) ===== */
.wizard-preview {
  position: sticky;
  top: 120px;
}
.wizard-preview__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-gray);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wizard-preview__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.92);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(4px);
}
.wizard-preview__info {
  text-align: center;
  margin-top: 16px;
}
.wizard-preview__note {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Wizard Form (Right) ===== */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wizard-step__header { margin-bottom: 28px; }
.wizard-step__num {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.wizard-step__title {
  font-size: 1.4rem;
  margin: 6px 0 8px;
}
.wizard-step__desc {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Step 1: Product Options ===== */
.wizard-product-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.wizard-product-option { cursor: pointer; }
.wizard-product-option input { display: none; }
.wizard-product-option__card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s;
  background: var(--white);
}
.wizard-product-option.active .wizard-product-option__card {
  border-color: var(--accent);
  background: rgba(139,158,139,0.06);
}
.wizard-product-option__icon { width: 40px; height: 40px; margin: 0 auto 12px; }
.wizard-product-option__name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.wizard-product-option__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.wizard-product-option__price {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ===== Step 2: Upload & Templates ===== */
.wizard-upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--white);
}
.wizard-upload-box:hover { border-color: var(--accent); background: rgba(139,158,139,0.04); }
.wizard-upload-box__icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--text-light); }
.wizard-upload-box__text { font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.wizard-upload-box__hint { font-size: 0.8rem; color: var(--text-light); margin-bottom: 16px; }

.wizard-upload-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-height: 200px;
}
.wizard-upload-preview img { width: 100%; height: 200px; object-fit: cover; }
.wizard-upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-or {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 24px 0 16px;
}

.wizard-templates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.wizard-template {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.25s;
  background: var(--white);
  cursor: pointer;
}
.wizard-template:hover { border-color: var(--accent); }
.wizard-template.active { border-color: var(--accent); background: rgba(139,158,139,0.06); }
.wizard-template__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.wizard-template__name { font-size: 0.75rem; font-weight: 500; color: var(--text); }

/* ===== Step 3: Fields ===== */
.wizard-fields { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.wizard-field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.wizard-field__input,
.wizard-field__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.wizard-field__input:focus,
.wizard-field__textarea:focus { border-color: var(--accent); }
.wizard-field__textarea { resize: vertical; min-height: 80px; }
.wizard-field__count { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

.wizard-font-options {
  display: flex;
  gap: 8px;
}
.wizard-font-option {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}
.wizard-font-option:hover { border-color: var(--accent); }
.wizard-font-option.active { border-color: var(--accent); background: rgba(139,158,139,0.1); font-weight: 600; }

.wizard-text-colors { display: flex; gap: 10px; }
.wizard-text-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.wizard-text-color.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--text); }

/* ===== Step 4: Review ===== */
.wizard-review {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  background: var(--white);
}
.wizard-review__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}
.wizard-review__row:last-child { border-bottom: none; }
.wizard-review__label { color: var(--text-light); }
.wizard-review__value { font-weight: 500; }
.wizard-review__row--total { border-top: 2px solid var(--border); margin-top: 4px; padding-top: 14px; }
.wizard-review__row--total .wizard-review__label { font-weight: 600; color: var(--text); }
.wizard-review__row--total .wizard-review__value { font-weight: 700; font-size: 1.1rem; color: var(--accent-dark); }

/* ===== Wizard Actions ===== */
.wizard-form__actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

/* ===== Customize CTA ===== */
.customize-cta {
  text-align: center;
  padding: 72px 24px;
  background: var(--light-gray);
}
.customize-cta__text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.customize-cta__title {
  font-size: 2rem;
  margin-bottom: 12px;
}
.customize-cta__desc {
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  .wizard-layout { gap: 32px; }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .wizard-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wizard-preview {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
  .wizard-templates {
    grid-template-columns: repeat(2, 1fr);
  }
  .customize-hero__title { font-size: 1.8rem; }
  .wizard-progress__line { width: 32px; }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .customize-hero { padding: 36px 16px 28px; }
  .customize-hero__title { font-size: 1.5rem; }
  .wizard-progress { gap: 0; }
  .wizard-progress__line { width: 20px; }
  .wizard-progress__label { font-size: 0.7rem; }
  .wizard-progress__num { width: 30px; height: 30px; font-size: 0.78rem; }
  .wizard-product-options { grid-template-columns: 1fr; }
  .wizard-templates { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wizard-form__actions { flex-direction: column-reverse; }
  .wizard-form__actions .btn { width: 100%; text-align: center; }
  .customize-cta__title { font-size: 1.5rem; }
}

/* ===== Progressive Auth Steps ===== */
.auth-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.auth-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.auth-step__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.auth-step__subtitle {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 24px;
}
.auth-step__back {
  background: none;
  border: none;
  color: #666;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0 0 12px;
  transition: color 200ms;
}
.auth-step__back:hover {
  color: var(--text);
}
.auth-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 600ms linear infinite;
  vertical-align: middle;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
/* Hide old tabs */
.auth-tabs { display: none; }
.auth-form { display: none; }

/* ===== Homepage Overhaul ===== */

/* 3-column product grid for Best Sellers */
.product-grid--featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .product-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid--featured {
    grid-template-columns: 1fr;
  }
}

/* Brand Story section */
.section--brand-story {
  background: #f0f4f0;
}
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.brand-story__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.brand-story__content .section__title {
  margin-bottom: 20px;
}
.brand-story__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .brand-story {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 3-column steps grid */
.steps-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .steps-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* 2x2 Features grid */
.features--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.features--grid .feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.features--grid .feature__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #8B9E8B;
}
.features--grid .feature__title {
  margin: 0 0 4px;
  font-size: 1rem;
}
.features--grid .feature__desc {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .features--grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Homepage Layout Rhythm ===== */

/* Base: all sections on homepage */
body.home .section {
  padding: 80px 0;
}

/* Gray sections get more breathing room */
body.home .section--gray {
  padding: 96px 0;
}

/* Brand story and testimonials get even more */
body.home .section--brand-story {
  padding: 100px 0;
}
body.home .section--testimonials {
  padding: 100px 0;
}

/* Features section slightly less */
body.home .section--features {
  padding: 80px 0;
}

/* Categories section: tighter than gray sections */
body.home .section--categories {
  padding: 80px 0;
}

/* ===== Best Sellers: larger card gap ===== */
body.home .product-grid--featured {
  gap: 28px;
}

/* ===== Brand Story Enhancements ===== */
.brand-story__tagline {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.brand-story__image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.brand-story__content {
  position: relative;
}

.brand-story__content::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: -10px;
  line-height: 1;
}

/* ===== Testimonials: left-aligned title ===== */
.section--testimonials .section__header {
  text-align: left;
  max-width: 480px;
}

/* ===== CTA Banner with Newsletter ===== */
.cta-banner {
  padding: 80px 0;
}

.cta-banner__newsletter {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto 24px;
}

.cta-banner__email {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}
.cta-banner__email::placeholder {
  color: rgba(255,255,255,0.5);
}
.cta-banner__email:focus {
  border-color: var(--accent);
}

.cta-banner__subscribe {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 6px 6px 0;
  transition: background 0.2s;
}
.cta-banner__subscribe:hover {
  background: var(--accent-dark);
}

.cta-banner__link {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.cta-banner__link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  body.home .section,
  body.home .section--brand-story,
  body.home .section--testimonials,
  body.home .section--features,
  body.home .section--categories {
    padding: 48px 0;
  }
  body.home .section--gray {
    padding: 56px 0;
  }
  .cta-banner__newsletter {
    flex-direction: column;
    gap: 8px;
  }
  .cta-banner__email {
    border-right: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
  }
  .cta-banner__subscribe {
    border-radius: 6px;
  }
  .section--testimonials .section__header {
    text-align: center;
    max-width: 100%;
  }
}
