/* ═══════════════════════════════════════════════════════
   CRAFTIX 3D — Customer Portal Stylesheet
   Palette: Cream #FDFAF5 | Charcoal #1C1C1E | 
            Gold #FFB800 | Forest #1B4332
═══════════════════════════════════════════════════════ */

:root {
  --cream: #FDFAF5;
  --cream-dark: #F0EAD8;
  --cream-border: #E8E0CC;
  --charcoal: #1C1C1E;
  --charcoal-light: #3A3A3C;
  --gold: #FFB800;
  --gold-dark: #E6A500;
  --gold-light: #FFF0B3;
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --teal: #1A9B77;
  --teal-light: #E0F5EE;
  --red: #D9534F;
  --text-muted: #6B6B6B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── NAVBAR ──────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,250,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.navbar-brand .accent { color: var(--gold); }

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.navbar-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-light);
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.navbar-nav a:hover, .navbar-nav a.active {
  background: var(--cream-dark);
  color: var(--charcoal);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.review-badge {
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}

.btn-cart:hover { background: var(--gold-dark); transform: translateY(-1px); }

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-outline {
  padding: 8px 16px;
  border: 1.5px solid var(--cream-border);
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal-light);
  transition: all var(--transition);
}

.btn-outline:hover { border-color: var(--charcoal); color: var(--charcoal); background: var(--cream-dark); }

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

/* ── Profile Dropdown ──────────────────────────────────────────────────── */
.profile-menu-wrap { position: relative; }

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.profile-trigger:hover { border-color: var(--teal); background: #fff; }

.profile-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--forest) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
  flex-shrink: 0;
}
.profile-avatar-lg { width: 42px; height: 42px; font-size: 1.05rem; }

.profile-chevron { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.profile-dropdown.open ~ .profile-trigger .profile-chevron,
.profile-trigger[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--cream-border);
  box-shadow: 0 16px 44px rgba(0,0,0,0.16);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
}
.profile-dropdown-name { font-weight: 700; font-size: 0.92rem; color: var(--charcoal); }
.profile-dropdown-email { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; word-break: break-all; }

.profile-dropdown-divider { height: 1px; background: var(--cream-border); margin: 4px 6px; }

.profile-dropdown-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: background 0.15s;
}
.profile-dropdown-link svg { flex-shrink: 0; color: var(--text-muted); }
.profile-dropdown-link:hover { background: var(--cream); }
.profile-dropdown-link-danger { color: var(--red); }
.profile-dropdown-link-danger svg { color: var(--red); }
.profile-dropdown-link-danger:hover { background: #fdecea; }

@media (max-width: 768px) {
  .profile-dropdown { right: -8px; width: 230px; }
  .profile-trigger .greeting-text { display: none; }
  .profile-trigger { padding: 5px; }
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; padding: 8px; }

/* ─── HERO / BANNER ───────────────────────────────────── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: #1A1A1A;
  overflow: hidden;
}

.hero-content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2016 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.hero-heading .accent { color: var(--gold); }

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.7;
}

.hero-promo-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.hero-promo-code { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,184,0,0.35); }

.btn-secondary {
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-secondary:hover { background: rgba(255,255,255,0.18); }

.hero-image-side {
  background: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Stacked crossfade layers — used when a banner has 1–4 images */
.hero-image-side .hero-img-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease-in-out;
}
.hero-image-side .hero-img-layer.active { opacity: 1; z-index: 2; }

/* Single fallback image (no banner images uploaded) keeps the floating icon look */
.hero-image-side > img.hero-img-placeholder {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: float 4s ease-in-out infinite;
  opacity: 0.5;
}

/* Subtle dot indicator for multi-image banners (bottom-left of image side) */
.hero-img-dots {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 5px;
  z-index: 2;
}
.hero-img-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s, width 0.3s;
}
.hero-img-dot.active { background: #fff; width: 16px; border-radius: 3px; }

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

/* Banner carousel dots */
.banner-dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.banner-arrow:hover { background: rgba(255,255,255,0.2); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

/* ─── SECTION COMMON ──────────────────────────────────── */
.section { padding: 64px 24px; }
.section-sm { padding: 40px 24px; }

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

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

/* Reviews section header: title + "All Reviews" side by side on desktop,
   stacked on mobile so the button doesn't get crushed into a tiny circle. */
.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-header-btn { margin-bottom: 8px; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-header-btn { margin-bottom: 0; align-self: flex-start; }
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
}
.section-sub { color: var(--text-muted); margin-top: 8px; }

/* ─── CATEGORY CAROUSEL ───────────────────────────────── */
.category-section { background: #fff; }

.category-track-wrapper { overflow: hidden; position: relative; }

.category-track {
  display: flex;
  gap: 20px;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

.category-track:hover { animation-play-state: paused; }

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.category-card {
  flex-shrink: 0;
  width: 180px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}

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

.category-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1.5px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.category-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
}

.category-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ─── PRODUCT GRID ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--cream-border);
  transition: all var(--transition);
  position: relative;
}

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

.product-img-wrap {
  background: var(--cream);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s;
}

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

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.product-body { padding: 16px; }

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); }
.price-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }

.product-discount-badge {
  background: #E8F5E9;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.btn-add-cart:hover { background: var(--forest); }

/* ── Out of stock / Coming Soon ─────────────────────────────────────────── */
.product-card-oos .product-img-wrap img {
  filter: grayscale(45%) brightness(0.94);
  opacity: 0.75;
}
.product-card-oos:hover { transform: none; box-shadow: none; }
.product-card-oos:hover .product-img-wrap img { transform: none; }
.product-card-oos .product-name { color: var(--text-muted); }

.oos-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 30, 0.08);
  backdrop-filter: blur(0.5px);
}
.oos-badge {
  background: rgba(28, 28, 30, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.btn-coming-soon {
  background: var(--charcoal) !important;
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* Product moving carousel */
.products-marquee {
  overflow: hidden;
  position: relative;
}

.products-marquee-track {
  display: flex;
  gap: 20px;
  animation: scrollLeft 40s linear infinite;
  width: max-content;
}

.products-marquee-track:hover { animation-play-state: paused; }

/* ─── PRODUCT DETAIL ──────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
}

/* ═══ PRODUCT GALLERY ═══════════════════════════════════════════════════ */
.product-gallery-wrap { position: relative; user-select: none; }

.product-gallery-main {
  aspect-ratio: 1;
  background: #f8f9fa;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1.5px solid #eee;
  cursor: zoom-in;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: opacity 0.18s ease;
}

/* Nav arrow buttons – appear on hover */
.pgal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.94);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.2s, background 0.15s;
  z-index: 3;
  color: #333;
}
.pgal-arrow:hover { background: #fff; }
.pgal-arrow.prev  { left: 10px; }
.pgal-arrow.next  { right: 10px; }
.product-gallery-main:hover .pgal-arrow { opacity: 1; }

/* Counter chip */
.pgal-counter {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.48);
  color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  pointer-events: none; z-index: 3;
  letter-spacing: 0.03em;
}

/* Zoom hint – shows briefly on first hover */
.pgal-zoom-hint {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 0.7rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s; white-space: nowrap;
  z-index: 3;
}
.product-gallery-main:hover .pgal-zoom-hint { opacity: 1; }

/* ── Thumbnail strip ─────────────────────────────────────────────────────── */
.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.product-thumbs::-webkit-scrollbar { display: none; }

.product-thumb {
  flex-shrink: 0;
  width: 74px; height: 74px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e4e4e4;
  cursor: pointer;
  background: #f8f9fa;
  transition: border-color 0.18s, transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.product-thumb:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,155,119,0.18);
}
.product-thumb.active {
  border-color: var(--teal);
  border-width: 2.5px;
  box-shadow: 0 0 0 3px rgba(26,155,119,0.12);
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* "+N more" tile */
.pgal-more-tile {
  flex-shrink: 0;
  width: 74px; height: 74px;
  border-radius: 8px;
  border: 2px solid #e4e4e4;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  transition: border-color 0.18s, transform 0.15s;
}
.pgal-more-tile:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.pgal-more-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.pgal-more-tile .pgal-more-label {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Full-gallery lightbox ───────────────────────────────────────────────── */
.pgal-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.93);
  flex-direction: column;
  align-items: center; justify-content: center;
}
.pgal-lightbox.open { display: flex; }
.pgal-lightbox-main {
  max-width: min(90vw, 700px);
  max-height: 74vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.15s;
}
.pgal-lightbox-strip {
  display: flex; gap: 8px;
  margin-top: 14px;
  overflow-x: auto; max-width: 90vw;
  padding: 4px;
  scrollbar-width: none;
}
.pgal-lightbox-strip::-webkit-scrollbar { display: none; }
.pgal-lightbox-thumb {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 6px;
  border: 2.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  object-fit: cover;
  transition: border-color 0.15s, transform 0.15s;
}
.pgal-lightbox-thumb:hover,
.pgal-lightbox-thumb.active { border-color: #fff; transform: scale(1.06); }
.pgal-lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none;
  color: #fff; font-size: 1.8rem;
  cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
  line-height: 1;
}
.pgal-lightbox-close:hover { opacity: 1; }
.pgal-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 1.8rem;
  width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.pgal-lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.pgal-lightbox-nav.prev { left: 18px; }
.pgal-lightbox-nav.next { right: 18px; }

.product-info { display: flex; flex-direction: column; gap: 20px; }

.product-detail-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars { color: var(--gold); font-size: 1rem; }

.product-price-large {
  font-size: 2rem;
  font-weight: 800;
  color: var(--charcoal);
}

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

.customization-section {
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 20px;
}

.custom-label { font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }

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

.size-pill {
  padding: 7px 16px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.size-pill.active, .size-pill:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}

.contact-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 60px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.contact-card {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.contact-card-wide { grid-column: 1 / -1; }
.contact-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.contact-card-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-card a, .contact-card span { font-size: 0.95rem; font-weight: 600; color: var(--charcoal); word-break: break-word; }
.contact-card a:hover { color: var(--teal); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--cream-border); }

@media (max-width: 640px) {
  .contact-page { padding: 28px 18px 48px; }
  .contact-cards { grid-template-columns: 1fr; }
}

.policy-hero {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 56px 20px 48px;
}
.policy-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.policy-hero p { color: rgba(255,255,255,0.8); font-size: 0.95rem; max-width: 480px; margin: 0 auto; }

.policy-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.policy-toc {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 18px;
}
.policy-toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.policy-toc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.policy-toc a {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}
.policy-toc a:hover { color: var(--forest); font-weight: 600; }

.policy-content { min-width: 0; }
.policy-section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--cream-border); scroll-margin-top: 90px; }
.policy-section:last-child { border-bottom: none; margin-bottom: 0; }
.policy-section h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; color: var(--charcoal); }
.policy-body { color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; white-space: pre-line; }
.policy-empty { padding: 48px; text-align: center; color: var(--text-muted); background: #fff; border: 1.5px solid var(--cream-border); border-radius: var(--radius); }

@media (max-width: 800px) {
  .policy-page { grid-template-columns: 1fr; padding: 28px 18px 48px; }
  .policy-toc { position: static; }
  .policy-hero { padding: 40px 18px 36px; }
  .policy-hero h1 { font-size: 1.8rem; }
}

.reviews-sort-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
}
.reviews-sort-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.reviews-sort-group {
  display: flex;
  gap: 6px;
  background: var(--cream);
  padding: 4px;
  border-radius: var(--radius-pill);
}
.sort-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.sort-pill:hover { color: var(--forest); }
.sort-pill.active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 2px 6px rgba(26,102,65,0.25);
}
.reviews-sort-count { margin-left: auto; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
@media (max-width: 640px) {
  .reviews-sort-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .reviews-sort-group { width: 100%; overflow-x: auto; }
  .reviews-sort-count { margin-left: 0; }
}

.qty-selector { display: flex; align-items: center; gap: 12px; }

.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-border);
  background: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn:hover { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.qty-num { font-weight: 700; font-size: 1.1rem; min-width: 24px; text-align: center; }

.btn-add-to-cart-large {
  padding: 16px 32px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.btn-add-to-cart-large:hover { background: var(--forest); transform: translateY(-2px); }

/* Soft-locked Add to Cart: stays clickable (so a click can reveal what's
   missing) but visually communicates it isn't ready yet. */
.btn-add-to-cart-large.btn-locked {
  opacity: 0.55;
  background: var(--charcoal);
}
.btn-add-to-cart-large.btn-locked:hover { transform: none; background: var(--charcoal); }

/* ── Customization field validation ──────────────────────────────────────── */
.field-err {
  display: none;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 6px;
}
.field-err.show { display: flex; animation: fieldErrIn 0.22s ease; }

@keyframes fieldErrIn {
  0%   { opacity: 0; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Invalid state — applies to text inputs, selects, and the photo upload
   label/zone (so file inputs get a visible highlight even though the
   underlying <input type="file"> itself is hidden). */
input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: var(--red) !important;
  background: #fff7f6;
}
label.field-invalid {
  border-color: var(--red) !important;
  background: #fff7f6 !important;
}

/* Accordion */
.accordion-item { border-bottom: 1px solid var(--cream-border); }
.accordion-header {
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.accordion-icon { transition: transform 0.3s; font-size: 0.8rem; color: var(--text-muted); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-content { padding-bottom: 14px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── REVIEWS PAGE ────────────────────────────────────── */
.reviews-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.reviews-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 800;
}

.reviews-summary-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  margin: -32px 0 40px;
}

.big-rating {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--charcoal);
}

.rating-stars-large { color: var(--gold); font-size: 1.3rem; margin-bottom: 4px; }

.rating-bars { display: flex; flex-direction: column; gap: 6px; }

.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.rating-bar-row span:first-child { width: 20px; text-align: right; color: var(--text-muted); }

.rating-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--cream-border);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill { height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.8s; }
.rating-bar-count { width: 24px; color: var(--text-muted); font-size: 0.8rem; }

.btn-write-review {
  padding: 14px 28px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-write-review:hover { background: var(--forest); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--cream-border);
  transition: all var(--transition);
}

.review-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.review-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.review-name { font-weight: 700; font-size: 0.95rem; }
.review-product-tag { font-size: 0.78rem; color: var(--text-muted); }
.review-date { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.review-stars { color: var(--gold); font-size: 0.9rem; }
.review-title { font-weight: 600; font-size: 0.9rem; margin: 8px 0 4px; }
.review-body { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.review-photo { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 12px; }
.review-reply { margin-top: 14px; padding: 12px 14px; background: var(--teal-light); border-radius: var(--radius-sm); border-left: 3px solid var(--teal); font-size: 0.85rem; }
.review-reply-label { font-weight: 700; font-size: 0.78rem; color: var(--teal); margin-bottom: 4px; }

/* ─── ABOUT PAGE ──────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2016 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.about-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-hero .accent { color: var(--gold); }

.about-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.story-section { background: #fff; }

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

.story-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

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

.mission-box {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
  position: relative;
}

.mission-box::before {
  content: '🖨️';
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.mission-box p { color: rgba(255,255,255,0.85); font-style: italic; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.value-icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.value-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

.team-section { background: var(--charcoal); color: #fff; }

.team-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.team-quote-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

/* ─── HELP PAGE ───────────────────────────────────────── */
.help-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.help-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--cream-border);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus { border-color: var(--gold); background: #fff; }

.form-input.error { border-color: var(--red); }

/* allauth's fallback forms render plain <input>/<select> without our
   classes — style them the same way so they don't look broken/unthemed.
   Scoped to :not(.form-input) so it never overrides the icon-field padding
   on the main login/register forms (which use .form-input inside .input-icon-wrap). */
.auth-card form input[type="text"]:not(.form-input),
.auth-card form input[type="email"]:not(.form-input),
.auth-card form input[type="password"]:not(.form-input),
.auth-card form select:not(.form-input) {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}
.auth-card form input:not(.form-input):focus, .auth-card form select:not(.form-input):focus { border-color: var(--gold); background: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.file-upload-area {
  border: 2px dashed var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--cream);
}

.file-upload-area:hover { border-color: var(--gold); }
.file-upload-area input { display: none; }
.file-upload-icon { font-size: 1.5rem; margin-bottom: 6px; }
.file-upload-text { font-size: 0.85rem; color: var(--text-muted); }

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--cream-border); }
.faq-question {
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
}

.faq-arrow { transition: transform 0.3s; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-content { padding-bottom: 18px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── CART PAGE ───────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}

.cart-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item-num {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--charcoal);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img {
  width: 90px;
  height: 90px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { font-size: 1.05rem; font-weight: 700; }

.qty-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.qty-ctrl-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-border);
  background: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.qty-ctrl-btn:hover { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.cart-remove { color: var(--text-muted); font-size: 0.8rem; cursor: pointer; border: none; background: none; transition: color 0.2s; }
.cart-remove:hover { color: var(--red); text-decoration: underline; }

.notes-link { color: var(--forest); font-size: 0.85rem; text-decoration: underline; cursor: pointer; }

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--cream-border);
}

.empty-cart-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-cart h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

/* Order Summary */
.order-summary-card {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.summary-header { padding: 20px 24px; border-bottom: 1px solid var(--cream-border); font-weight: 700; font-size: 1.05rem; }

.coupon-row {
  padding: 16px 24px;
  background: var(--teal-light);
  border-bottom: 1px solid var(--cream-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-icon { color: var(--teal); font-size: 1.1rem; }
.coupon-label { font-weight: 600; font-size: 0.9rem; color: var(--teal); flex: 1; }
.coupon-arrow { color: var(--teal); }

.coupon-input-row { display: flex; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--cream-border); }
.coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.coupon-input:focus { border-color: var(--teal); }
.btn-apply-coupon {
  padding: 8px 16px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ── Coupon: remove button + applied celebration pop ──────────────────────── */
.coupon-remove-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1.5px solid #f3b8b3;
  color: #e74c3c;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.coupon-remove-btn:hover { background: #fdecea; border-color: #e74c3c; }

@keyframes couponPop {
  0%   { transform: scale(0.92); opacity: 0; }
  55%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.coupon-applied-pop { animation: couponPop 0.4s cubic-bezier(.34,1.56,.64,1); }

.gift-wrap-row {
  padding: 14px 24px;
  border-bottom: 1px solid var(--cream-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gift-wrap-check {
  width: 18px; height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}

.gift-wrap-label { flex: 1; font-size: 0.9rem; }
.gift-wrap-price { font-weight: 600; font-size: 0.9rem; }

.summary-lines { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; }

.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); }
.summary-line.total { font-weight: 800; font-size: 1.1rem; color: var(--charcoal); border-top: 1px solid var(--cream-border); padding-top: 10px; margin-top: 4px; }

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-checkout:hover { background: var(--forest); }
.secure-badge { text-align: center; font-size: 0.78rem; color: var(--text-muted); padding: 8px; }

/* Cart slide panel */
.cart-panel {
  position: fixed;
  right: 0; top: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}

.cart-panel.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.show { opacity: 1; pointer-events: all; }
.cart-panel-header { padding: 20px 24px; border-bottom: 1px solid var(--cream-border); display: flex; align-items: center; justify-content: space-between; }
.cart-panel-title { font-weight: 700; font-size: 1rem; }
.cart-close-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); }
.cart-panel-body { flex: 1; overflow-y: auto; padding: 16px; }

/* ─── CHECKOUT ────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}

.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.85rem;
}

.crumb-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.crumb-step.active { background: var(--teal); color: #fff; }
.crumb-step.done { background: var(--cream-dark); color: var(--charcoal); }
.crumb-step.inactive { background: var(--cream); color: var(--text-muted); }
.crumb-arrow { color: var(--text-muted); }

.checkout-card {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.checkout-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── MY ORDERS ───────────────────────────────────────── */
.orders-page { max-width: 800px; margin: 40px auto; padding: 0 24px; }

/* Order detail: 2 columns on desktop, stacked on mobile */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}
@media (max-width: 768px) {
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-detail-grid > * { min-width: 0; }
}

.order-card {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: all var(--transition);
}

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

.order-card-header {
  padding: 16px 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.order-id-badge { font-weight: 700; font-size: 0.9rem; }
.order-date { font-size: 0.82rem; color: var(--text-muted); }
.order-status-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pending { background: #FFF9C4; color: #856404; }
.status-printing { background: #E3F2FD; color: #1565C0; }
.status-shipped { background: #E8F5E9; color: #2E7D32; }
.status-delivered { background: #E0F5EE; color: var(--teal); }
.status-cancelled { background: #FFEBEE; color: #C62828; }

.order-card-body { padding: 16px 20px; }

.order-item-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cream-border); }
.order-item-row:last-child { border-bottom: none; }

.order-total-row { padding: 14px 0 0; display: flex; justify-content: space-between; align-items: center; }

.order-placed-success {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}

.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.order-summary-box {
  background: #fff;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  text-align: left;
}

/* ─── AUTH PAGES ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--cream) 0%, #F0EAD8 100%);
}

.auth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.auth-logo .accent { color: var(--gold); }

.auth-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.auth-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px; }

.social-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 20px;
}

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

.divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; }
.divider hr { flex: 1; border: none; border-top: 1px solid var(--cream-border); }
.divider span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}
.input-icon-wrap .form-input { padding-left: 42px; }

.phone-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.82rem; color: var(--text-muted); pointer-events: none; }
.input-with-prefix { padding-left: 52px !important; }

.toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); border: none; background: none; }

.btn-auth {
  width: 100%;
  padding: 14px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.btn-auth:hover { background: var(--forest); transform: translateY(-1px); }

.auth-footer { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 24px; }
.auth-footer a { color: var(--forest); font-weight: 600; text-decoration: underline; }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand .accent { color: var(--gold); }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-trust-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.footer-heading {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-links a:hover { color: var(--gold); padding-left: 3px; }
.footer-link-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: background 0.2s;
}
.footer-links a:hover .footer-link-dot { background: var(--gold); }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.footer-contact-row a { color: rgba(255,255,255,0.7); transition: color 0.2s; word-break: break-word; }
.footer-contact-row a:hover { color: var(--gold); }
.footer-contact-text { color: rgba(255,255,255,0.55); }
.footer-contact-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ─── ALERTS / TOASTS ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--charcoal);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left: 4px solid var(--teal); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--gold); }

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

/* ─── ALERTS (Django messages) ───────────────────────── */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.alert-success { background: var(--teal-light); color: var(--teal); border: 1px solid var(--teal); }
.alert-error { background: #FFEBEE; color: var(--red); border: 1px solid var(--red); }
.alert-info { background: var(--gold-light); color: #856404; border: 1px solid var(--gold); }

/* ─── UTILITIES ───────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.font-bold { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }


/* ══════════════════════════════════════════════════════
   CUSTOMIZATION COMPONENTS
══════════════════════════════════════════════════════ */
.custom-card-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; color: var(--charcoal); padding: 14px 16px; background: var(--cream-dark); border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 1.5px solid var(--cream-border); border-bottom: none; }
.custom-block { background: #fff; border: 1.5px solid var(--cream-border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.custom-label { font-weight: 700; font-size: 0.88rem; margin-bottom: 12px; color: var(--charcoal); display: block; }
.custom-sublabel { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.custom-combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; }
.custom-combo-card { border: 2px solid var(--cream-border); border-radius: 12px; padding: 12px; cursor: pointer; text-align: center; transition: all 0.2s; }
.custom-combo-card:hover, .custom-combo-card.selected { border-color: var(--charcoal); background: var(--cream); }
.custom-combo-swatches { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.custom-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.12); }
.custom-combo-name { font-size: 0.78rem; font-weight: 600; }
.custom-colour-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-colour-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1.5px solid var(--cream-border); border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.custom-colour-chip:hover, .custom-colour-chip.selected { border-color: var(--charcoal); background: var(--cream); }
.custom-chip-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); flex-shrink: 0; }
.custom-chip-name { font-size: 0.8rem; font-weight: 600; }
.custom-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; }
.custom-pack-card { border: 2px solid var(--cream-border); border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; transition: all 0.2s; }
.custom-pack-card:hover, .custom-pack-card.selected { border-color: var(--teal); background: var(--teal-light); }
.custom-pack-label { font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }
.custom-pack-price { font-size: 1rem; font-weight: 800; color: var(--charcoal); margin-top: 4px; }
.custom-pack-off { font-size: 0.72rem; background: var(--teal); color: #fff; border-radius: 999px; padding: 2px 6px; margin-top: 4px; display: inline-block; }

/* ══════════════════════════════════════════════════════
   REVIEW COMPONENTS
══════════════════════════════════════════════════════ */
.home-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }

/* ══════════════════════════════════════════════════════
   STAR RATING INTERACTIVE
══════════════════════════════════════════════════════ */
.star-rating-interactive { display: flex; gap: 6px; align-items: center; }
.star-btn { font-size: 2rem; background: none; border: none; cursor: pointer; color: #ccc; transition: transform 0.1s; line-height: 1; padding: 0; }
.star-btn:hover { transform: scale(1.2); }
.rating-label { font-size: 0.88rem; font-weight: 600; color: var(--forest); margin-left: 8px; opacity: 0; transition: opacity 0.2s; }

/* ══════════════════════════════════════════════════════
   OAUTH BUTTONS
══════════════════════════════════════════════════════ */
.oauth-btn { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; border: 1.5px solid var(--cream-border); background: #fff; margin-bottom: 10px; }
.oauth-btn:hover { background: var(--cream); border-color: var(--charcoal); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.oauth-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Store / Customer Portal
   Mobile-first breakpoints: 768px, 640px, 480px, 380px
══════════════════════════════════════════════════════ */

/* ── ≤768px: Tablet & mobile ─────────────────────────── */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .navbar { padding: 0 14px; height: 60px; gap: 8px; }
  .navbar-nav { display: none; }
  .nav-toggle { display: flex; }
  .navbar-brand { font-size: 1.1rem; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--cream); border-bottom: 2px solid var(--cream-border);
    padding: 12px 14px; z-index: 99; gap: 2px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  }
  .navbar-nav.open li { width: 100%; }
  .navbar-nav.open a { display: block; padding: 11px 14px; border-radius: 10px; font-size: 0.92rem; }
  .navbar-nav.open a:hover { background: var(--cream-dark); }
  .greeting-text { display: none; }
  .btn-cart { padding: 8px 12px; font-size: 0.82rem; gap: 5px; }
  .btn-outline { padding: 7px 11px; font-size: 0.82rem; }

  /* ── Hero / Banner ── */
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-side { height: 220px; order: 2; }
  .hero-content { padding: 32px 20px 28px; gap: 14px; order: 1; }
  .hero-heading { font-size: 1.9rem; line-height: 1.2; }
  .hero-eyebrow { font-size: 0.7rem; padding: 5px 12px; }
  .btn-primary  { padding: 11px 20px; font-size: 0.88rem; }
  .btn-secondary { padding: 11px 20px; font-size: 0.88rem; }
  .hero-actions { gap: 10px; flex-wrap: wrap; }
  .hero-img-placeholder { width: 130px !important; height: 130px !important; }

  /* ── Sections ── */
  .section { padding: 40px 16px; }
  .section-sm { padding: 24px 16px; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.6rem; }

  /* ── Features strip 2-col ── */
  .features-strip-grid { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }

  /* ── Category carousel ── */
  .category-track-wrapper { padding-bottom: 4px; }
  .category-card { min-width: 110px; }
  .category-img-wrap { height: 80px; }

  /* ── Products grid ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: 12px; }
  .product-img-wrap { height: 160px; }

  /* ── Product detail ── */
  .product-detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery-main { max-height: 320px; border-radius: 12px; }
  .product-detail-name { font-size: 1.4rem; }
  .product-price-large { font-size: 1.5rem; }
  .product-thumbs { gap: 8px; }
  .product-thumb { width: 58px; height: 58px; }

  /* ── Reviews ── */
  .reviews-summary-card { grid-template-columns: 1fr; gap: 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .home-reviews-grid { grid-template-columns: 1fr; }
  .reviews-hero { padding: 40px 20px; }
  .big-rating { font-size: 3.5rem; }

  /* ── Story / About ── */
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { padding: 48px 20px; }

  /* ── Help ── */
  .help-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* ── Cart ── */
  .cart-layout { grid-template-columns: 1fr; gap: 0; }
  .cart-layout > div:first-child { order: 1; }
  .cart-layout > div:last-child  { order: 2; margin-top: 16px; }
  .cart-header { font-size: 1.2rem; padding: 16px 16px 12px; }
  .cart-item { grid-template-columns: 68px 1fr; gap: 10px; padding: 14px 16px; }
  .cart-item-img { width: 68px; height: 68px; }
  .cart-item > div:last-child { grid-column: 2; text-align: left; margin-top: 4px; }
  .cart-panel { width: 100%; }
  .order-summary-card { position: static; border-radius: var(--radius); }

  /* ── Checkout ── */
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
  .checkout-layout > * { min-width: 0; }
  .checkout-layout > .order-summary-box { order: 3; margin-top: 16px; }
  .checkout-card { padding: 16px; border-radius: var(--radius-sm); }
  .checkout-section-title { font-size: 0.8rem; }
  .checkout-breadcrumb { gap: 6px; font-size: 0.78rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .checkout-breadcrumb > * { flex-shrink: 0; }
  .crumb-step { padding: 5px 10px; font-size: 0.75rem; }

  /* ── My orders ── */
  .orders-page { padding: 20px 16px; margin: 0 auto; }
  .order-card-header { padding: 12px 14px; gap: 8px; }
  .order-card-body { padding: 12px 14px; }
  .order-item-row { gap: 10px; padding: 8px 0; }
  .order-total-row { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 10px; }

  /* ── Auth ── */
  .auth-card { padding: 28px 20px; margin: 16px; border-radius: var(--radius); }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer { padding: 40px 20px 24px; }
  .footer-bottom { margin-top: 24px; font-size: 0.8rem; }
}

/* Any touch/no-hover device: gallery arrows must be visible without a hover state */
@media (hover: none) {
  .pgal-arrow { opacity: 1 !important; }
  .pgal-zoom-hint { display: none; }
}

/* ── ≤640px: Mobile portrait ─────────────────────────── */
@media (max-width: 640px) {
  /* Navbar */
  .navbar { height: 58px; }
  .cart-text { display: none; }
  .btn-cart { padding: 8px 10px; }
  .btn-outline { padding: 6px 10px; font-size: 0.8rem; }

  /* Hero */
  .hero-content { padding: 28px 16px 24px; }
  .hero-heading { font-size: 1.65rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Product detail */
  .product-gallery-main { max-height: 280px; }
  .product-thumb { width: 52px; height: 52px; }

  /* Gallery arrows rely on :hover which never fires on touch — show them
     always on mobile so the gallery is actually usable there. */
  .pgal-arrow { opacity: 1 !important; }
  .pgal-zoom-hint { display: none; }

  /* Cart */
  .cart-item { grid-template-columns: 60px 1fr; gap: 8px; padding: 12px 14px; }
  .cart-item-img { width: 60px; height: 60px; }
  .qty-controls { gap: 6px; }
  .qty-ctrl-btn { width: 28px; height: 28px; font-size: 1rem; }
  .qty-num { min-width: 20px; font-size: 0.9rem; }

  /* Checkout */
  .form-row { grid-template-columns: 1fr; }
  .checkout-card { padding: 14px; }
  .checkout-breadcrumb { overflow-x: auto; white-space: nowrap; }

  /* About/values */
  .values-grid { grid-template-columns: 1fr; }

  /* Sections */
  .section { padding: 32px 14px; }
  .section-sm { padding: 20px 14px; }

  /* Reviews */
  .reviews-summary-card { padding: 20px 16px; gap: 16px; }

  /* Product marquee — scroll instead of animate on mobile */
  .products-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .products-marquee-track { animation: none !important; }
  .category-track { animation: none !important; }

  /* Customization */
  .custom-combo-grid, .custom-pack-grid { grid-template-columns: repeat(2,1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Auth */
  .auth-card { margin: 12px; padding: 24px 16px; }

  /* Orders */
  .orders-page { padding: 16px 12px; }
  .order-card-header { flex-wrap: wrap; gap: 6px; }
  .order-id-badge { font-size: 0.85rem; }
}

/* ── ≤480px: Small phones ────────────────────────────── */
@media (max-width: 480px) {
  /* Products 2-col min */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-img-wrap { height: 140px; }
  .product-body { padding: 10px; }
  .product-name { font-size: 0.82rem; }

  /* Hero */
  .hero-heading { font-size: 1.45rem; }
  .hero-content { padding: 24px 14px; }

  /* Values */
  .values-grid { grid-template-columns: 1fr; }

  /* Cart item */
  .cart-item { grid-template-columns: 56px 1fr; }
  .cart-item-img { width: 56px; height: 56px; }

  /* Product detail */
  .product-gallery-main { max-height: 240px; }
  .product-detail-name { font-size: 1.25rem; }
  .product-price-large { font-size: 1.35rem; }
  .size-pills { gap: 6px; }
  .size-pill { padding: 7px 12px; font-size: 0.8rem; }

  /* Auth */
  .auth-card { margin: 8px; padding: 20px 14px; }

  /* Navbar */
  .btn-cart { padding: 7px 9px; }
  .navbar-brand { font-size: 1rem; }
}

/* ── ≤380px: Very small phones ───────────────────────── */
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-heading { font-size: 1.3rem; }
  .navbar { padding: 0 10px; gap: 6px; }
  .section { padding: 28px 12px; }
  .cart-item { grid-template-columns: 52px 1fr; gap: 6px; padding: 10px 12px; }
  .auth-card { padding: 18px 12px; }
}

/* ══════════════════════════════════════════════════════
   CART DRAWER (Slide-in panel — Image 11 & 12 style)
══════════════════════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  top: 0; right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — excludes mobile browser chrome
                     so the footer/checkout button isn't hidden behind it */
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.cart-drawer-title { font-size: 1rem; font-weight: 700; color: var(--charcoal); }
.cart-drawer-close {
  width: 34px; height: 34px;
  border: 1.5px solid #ddd; border-radius: 50%;
  background: none; cursor: pointer;
  font-size: 0.9rem; color: #666;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cart-drawer-close:hover { border-color: var(--charcoal); color: var(--charcoal); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}

.cart-drawer-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-img {
  width: 68px; height: 68px;
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cart-drawer-img img { width:100%;height:100%;object-fit:contain;padding:6px; }
.cart-drawer-item-name { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.cart-drawer-qty {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid #ddd; border-radius: 999px;
  overflow: hidden;
}
.cart-drawer-qty-btn {
  width: 30px; height: 30px; border: none; background: none;
  cursor: pointer; font-size: 1rem; color: #333;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.cart-drawer-qty-btn:hover { background: var(--cream-dark); }
.cart-drawer-qty-num { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-drawer-remove { background: none; border: none; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.cart-drawer-remove:hover { color: var(--red); }
.cart-drawer-price { font-weight: 700; font-size: 0.92rem; color: var(--charcoal); flex-shrink: 0; }

.cart-drawer-footer {
  border-top: 1px solid #eee;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 60vh;
}
.cart-drawer-footer-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px;
  min-height: 0;
}
.cart-drawer-footer-pinned {
  flex-shrink: 0;
  padding: 0 20px 18px;
  border-top: 1px solid var(--cream-border);
  background: #fff;
}

/* Coupon row */
.cart-coupon-toggle {
  width: 100%; background: #f0fbf6; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin: 10px 0;
}
.cart-coupon-icon {
  width: 32px; height: 32px; background: var(--forest);
  border-radius: 50%; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.cart-drawer-coupon-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid #ddd;
  border-radius: 8px; font-size: 0.85rem; outline: none;
  font-family: inherit;
}
.cart-drawer-coupon-input:focus { border-color: var(--forest); }
.cart-drawer-coupon-btn {
  padding: 10px 16px; background: var(--forest); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  font-weight: 700; font-size: 0.85rem;
}

/* Coupon cards */
.drawer-coupon-card {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.15s;
}
.drawer-coupon-card:hover { border-color: var(--forest); }
.drawer-coupon-pill {
  width: 40px; min-height: 60px; background: var(--forest);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.drawer-coupon-apply-btn {
  background: none; border: none; color: var(--forest);
  font-weight: 700; font-size: 0.78rem; cursor: pointer;
  flex-shrink: 0;
}

/* Checkout button */
.cart-drawer-checkout {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px 20px;
  background: var(--forest); color: #fff;
  border-radius: 12px; font-size: 1rem; font-weight: 700;
  text-decoration: none; gap: 8px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 12px;
}
.cart-drawer-checkout:hover { background: #122d22; transform: translateY(-1px); }

/* Invoice download button */
.invoice-download-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; background: var(--cream-dark);
  border: 1.5px solid var(--cream-border); border-radius: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--charcoal);
  text-decoration: none; transition: all 0.15s;
}
.invoice-download-btn:hover { border-color: var(--charcoal); background: var(--cream); }

/* Review photo upload */
.review-photo-upload {
  display: block; border: 2px dashed var(--cream-border);
  border-radius: var(--radius); cursor: pointer;
  position: relative; transition: border-color 0.2s;
  text-align: center; background: var(--cream);
}
.review-photo-upload:hover { border-color: var(--teal); }

/* Coming Soon button */
.coming-soon-btn {
  background: var(--charcoal) !important;
  color: #fff !important;
  width: 100%;
  opacity: 0.6;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-coming-soon-wrap { display: flex; flex-direction: column; gap: 8px; }
.pd-cs-badge { letter-spacing: 0.02em; }
.pd-cs-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* Delivery info cards */
.pd-delivery-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--cream-border);
}
.pd-delivery-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 10px;
}
.pd-delivery-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pd-delivery-title { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); }
.pd-delivery-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }
.pd-delivery-card.pd-stock-low .pd-delivery-icon { background: #FFF3CD; }
.pd-delivery-card.pd-stock-low .pd-delivery-sub { color: #92400E; font-weight: 600; }
.pd-delivery-card.pd-stock-out { background: #FBEAEA; border-color: #F3C6C6; }
.pd-delivery-card.pd-stock-out .pd-delivery-icon { background: #fff; }
.pd-delivery-card.pd-stock-out .pd-delivery-title { color: var(--red, #C0392B); }

/* Cart mobile */
@media (max-width: 480px) {
  .cart-drawer { width: 100vw; right: -100vw; }
  .cart-drawer.open { right: 0; }
}

/* ── Help form image upload (clean professional style) ── */
.help-img-upload {
  display: block;
  border: 2px dashed var(--cream-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--cream);
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.help-img-upload:hover { border-color: var(--teal); }
.help-img-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.help-img-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  min-height: 68px;
}
