/* ============================================================
   PrintCraft Studio — Main Stylesheet
   File: css/style.css
   Description: Complete styles for the 3D printing marketplace.
   Color system, typography, components, layout, animations,
   and responsive breakpoints all live here.
   ============================================================ */

/* ============================================================
   SECTION 1: Google Fonts Import
   Rajdhani for headings (tech feel), Inter for body text.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Inter:wght@400;500&display=swap');

/* ============================================================
   SECTION 2: CSS Custom Properties (Variables)
   Change colors here to retheme the entire site.
   ============================================================ */
:root {
  --primary:    #1A1A2E;   /* Deep navy — main background */
  --accent:     #E94560;   /* Vivid crimson-red — buttons, highlights */
  --gold:       #F5A623;   /* Warm amber/gold — prices, badges, stars */
  --surface:    #16213E;   /* Slightly lighter navy — card backgrounds */
  --light:      #0F3460;   /* Medium navy — hover states, hero */
  --text-white: #FFFFFF;
  --text-muted: #A0AEC0;
  --success:    #38A169;   /* Green — WhatsApp buttons */
  --bg-light:   #F7FAFC;   /* Off-white — alternate sections */
  --dark-bg:    #0a0a1a;   /* Very dark — footer */

  /* Typography */
  --font-heading: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-pad:   80px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================================
   SECTION 3: Reset & Base Styles
   Normalize browser defaults for consistent rendering.
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-white);
  background-color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Text selection highlight */
::selection { background: var(--accent); color: #fff; }

/* Focus outlines for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   SECTION 4: Utility Classes
   Reusable helpers for layout and spacing.
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad {
  padding: var(--section-pad) 0;
}

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

/* Section heading styles */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ============================================================
   SECTION 5: Buttons
   Two primary button variants: filled and outlined.
   ============================================================ */

/* Base button reset */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Filled primary button — gradient pill with shine sweep */
.btn-primary {
  background: linear-gradient(135deg, #E94560, #c73652);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.6);
}

/* Outlined white button (non-hero usage) */
.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Glassmorphism secondary button — used for WhatsApp in hero */
.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* WhatsApp green button */
.btn-whatsapp {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-whatsapp:hover {
  background: #2d8a59;
  border-color: #2d8a59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 161, 105, 0.4);
}

/* WhatsApp outlined button */
.btn-whatsapp-outline {
  background: transparent;
  color: var(--success);
  border-color: var(--success);
}
.btn-whatsapp-outline:hover {
  background: var(--success);
  color: #fff;
  transform: translateY(-2px);
}

/* Small button variant */
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* Full width button */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* Dark button for promo sections */
.btn-dark {
  background: var(--dark-bg);
  color: #fff;
  border-color: var(--dark-bg);
}
.btn-dark:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION 6: Header / Navbar
   Sticky top navigation with logo, links, and cart icon.
   ============================================================ */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding: 0;
}

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

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.nav-logo .logo-accent { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Cart icon button */
.nav-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-white);
  font-size: 22px;
  padding: 6px;
  transition: color var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-cart:hover { color: var(--accent); }

/* Cart item count badge */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge[data-count="0"] { display: none; }

/* Hamburger menu button (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   SECTION 7: Hero Banner (100vh full screen)
   Layered animated background, gradient headline, premium buttons,
   glassmorphism stats pill, rotating 3D CSS cube.
   ============================================================ */

/* ── Shared entrance animation keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Gradient text shimmer for headline line 2 ── */
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ── Aurora blob drift ── */
@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

/* ── Background grid move ── */
@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

#hero {
  min-height: 100vh;
  /* Layered radial gradient — deeper depth than the old linear */
  background: radial-gradient(ellipse at 30% 50%, #0F3460 0%, #1A1A2E 60%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Layer 1: barely-visible animated dot grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 69, 96, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 69, 96, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Layer 2: aurora blob — large blurred ellipse drifting behind the visual */
#hero::after {
  content: '';
  position: absolute;
  top: 5%;
  right: -80px;
  width: 600px;
  height: 400px;
  background: #E94560;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  animation: auroraFloat 20s infinite alternate ease-in-out;
  z-index: 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Left text column — no parent animation; children animate individually */
.hero-content {
  flex: 1;
  max-width: 580px;
}

/* Keep fadeInUp for non-hero usages (nowhere else uses it, but keep defined) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "Made in Nellore" badge pill — entrance: 0.1s */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 20px;
}

/* Line 1 — entrance: 0.3s */
.hero-headline .line1 {
  display: block;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* Line 2 — animated shimmer gradient + entrance: 0.5s */
.hero-headline .line2 {
  display: block;
  background: linear-gradient(90deg, #E94560, #F5A623, #E94560);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(233, 69, 96, 0.3);
  animation: fadeUp 0.6s ease 0.5s both, shimmer 3s linear infinite;
}

/* Subheadline — entrance: 0.7s */
.hero-subheadline {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeUp 0.6s ease 0.7s both;
}

/* CTA buttons row — entrance: 0.9s */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.9s both;
}

/* ── Animated shimmer gradient text — hero headline line 2 ── */
.hero-gradient-text {
  background: linear-gradient(90deg, #E94560 0%, #F5A623 50%, #E94560 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  display: block;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ── Glassmorphism stats pill ── */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 16px 32px;
  margin-top: 2rem;
  animation: fadeUp 0.6s ease 1.1s both;
}

.hero-stats .stat {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.hero-stats .stat:first-child { padding-left: 0; }
.hero-stats .stat:last-child  { padding-right: 0; }

/* Thin vertical divider between each stat */
.hero-stats .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

.hero-stats .stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #F5A623;
  font-family: 'Rajdhani', sans-serif;
  line-height: 1;
}

.hero-stats .stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ──────────────────────────────────────────────────────────
   RIGHT SIDE: Canvas particle cube animation
   Rendered by the inline script at the bottom of index.html.
   ────────────────────────────────────────────────────────── */

/* Right visual container — entrance: 0.4s fade in */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeIn 0.6s ease 0.4s both;
}

/* Canvas element — scale down on smaller viewports */
#heroCanvas {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(233, 69, 96, 0.2));
}

/* ============================================================
   SECTION 8: Marquee Announcement Bar
   Full-width scrolling text strip.
   ============================================================ */
.marquee-bar {
  background: var(--accent);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

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

.marquee-track span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding-right: 60px;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION 9: Product Cards
   Card design used on both homepage and products page.
   ============================================================ */

/* Card grid layout (used inside sections) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Individual product card */
.product-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(233, 69, 96, 0.25);
}

/* Image wrapper — 1:1 aspect ratio */
.card-image-wrap {
  position: relative;
  padding-top: 100%; /* 1:1 ratio */
  overflow: hidden;
  background: var(--light);
}

.card-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* Badge (Bestseller, New, etc.) */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Hover overlay "Add to Cart" button that slides up */
.card-hover-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(233, 69, 96, 0.95);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform var(--transition);
  border: none;
  font-family: var(--font-body);
}

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

/* Card body text section */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-category {
  display: inline-block;
  background: rgba(233, 69, 96, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.4;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Star rating */
.card-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.stars { color: var(--gold); letter-spacing: 1px; }
.star-count { color: var(--text-muted); font-size: 12px; }

/* Price display */
.card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.price-current {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Card action buttons */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

/* Loading skeleton pulse animation */
.card-skeleton {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.skeleton-block {
  background: linear-gradient(90deg, var(--surface) 25%, var(--light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-img  { padding-top: 100%; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* ============================================================
   SECTION 10: Featured Products Section (Homepage)
   ============================================================ */
#featured-products {
  background: var(--primary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.view-all-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   SECTION 11: Promo Banner #1 — Launch Offer
   Gradient background with countdown timer.
   ============================================================ */
#promo-launch {
  background: linear-gradient(90deg, #E94560, #F5A623);
  padding: 60px 0;
  overflow: hidden;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.promo-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.promo-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.promo-text .code-pill {
  display: inline-block;
  background: rgba(0,0,0,0.3);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: monospace;
  font-size: 16px;
  margin: 8px 0 20px;
}

/* Countdown timer */
.countdown {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 10px 16px;
  border-radius: 8px;
  min-width: 64px;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* CSS Gift Box art */
.gift-box {
  position: relative;
  width: 160px;
  height: 180px;
  flex-shrink: 0;
}

.gift-box-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100px;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,0.5);
}

.gift-box-lid {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 28px;
  background: rgba(0,0,0,0.4);
  border-radius: 6px 6px 0 0;
  border: 3px solid rgba(255,255,255,0.5);
}

.gift-ribbon-v {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 130px;
  background: rgba(255,255,255,0.4);
  bottom: 0;
  border-radius: 4px;
}

.gift-ribbon-h {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background: rgba(255,255,255,0.4);
  bottom: 96px;
  border-radius: 4px;
}

.gift-bow-left,
.gift-bow-right {
  position: absolute;
  top: 0;
  width: 50px;
  height: 40px;
  border: 14px solid rgba(255,255,255,0.5);
  border-radius: 50%;
}
.gift-bow-left  { left: 18px; transform: rotate(-30deg); }
.gift-bow-right { right: 18px; transform: rotate(30deg); }

/* ============================================================
   SECTION 12: Category Grid
   6-card grid linking to filtered product pages.
   ============================================================ */
#categories {
  background: var(--surface);
}

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

.category-card {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-white);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
  transform: translateY(-4px) scale(1.02);
}

.cat-icon {
  font-size: 48px;
  line-height: 1;
  display: block;
}

.cat-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
}

.cat-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 13: How It Works — 3 Steps
   ============================================================ */
#how-it-works {
  background: var(--primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 20px;
}

/* Arrow connector between steps */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  color: var(--accent);
  font-size: 28px;
}

.step-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px 28px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(233,69,96,0.15);
}

/* Large watermark number behind content */
.step-num {
  position: absolute;
  top: -10px;
  right: 16px;
  font-family: var(--font-heading);
  font-size: 100px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
}

.step-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION 14: Promo Banner #2 — Bulk Order
   ============================================================ */
#promo-bulk {
  background: var(--light);
  padding: 48px 0;
}

.bulk-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.bulk-icon {
  font-size: 56px;
  flex-shrink: 0;
}

.bulk-text {
  flex: 1;
}

.bulk-text h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.bulk-text p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 15: Testimonials
   3 review cards with gold stars.
   ============================================================ */
#testimonials {
  background: var(--surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--primary);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition);
}

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

.testimonial-quote {
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.testimonial-author {
  font-weight: 500;
  color: var(--text-white);
  font-size: 14px;
}

/* ============================================================
   SECTION 16: Footer
   4-column layout, dark background.
   ============================================================ */
#footer {
  background: var(--dark-bg);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--accent);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 17: Products Page — Filters Sidebar
   ============================================================ */
.products-page-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* Sidebar container */
.filters-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 90px;
}

.filter-section {
  margin-bottom: 28px;
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search input */
.search-input {
  width: 100%;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }

/* Checkbox filters */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 11px;
  color: #fff;
}

.filter-checkbox span {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.filter-checkbox:hover span { color: var(--text-white); }

/* Price range slider */
.price-range-wrap {
  padding: 0 4px;
}

.price-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--val, 100%), rgba(255,255,255,0.15) var(--val, 100%));
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 10px 0;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(233,69,96,0.5);
  transition: transform var(--transition);
}
.price-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.price-current-label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* Sort dropdown */
.sort-select {
  width: 100%;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0AEC0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--accent); }
.sort-select option { background: var(--surface); }

/* Clear filters button */
.btn-clear-filters {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-clear-filters:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   SECTION 18: Products Page — Main Grid Area
   ============================================================ */
.products-main {
  flex: 1;
  min-width: 0;
}

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

.products-count {
  font-size: 14px;
  color: var(--text-muted);
}
.products-count strong {
  color: var(--text-white);
}

/* No results message */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
}
.no-results.visible { display: block; }
.no-results .no-results-icon { font-size: 60px; margin-bottom: 20px; display: block; }
.no-results h3 { font-family: var(--font-heading); font-size: 22px; color: var(--text-white); margin-bottom: 8px; }

/* ============================================================
   SECTION 19: Page Hero (sub-pages: products, cart)
   Short 200px hero with heading and breadcrumb.
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--light), var(--primary));
  padding: 50px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-white); }
.breadcrumb-sep { color: var(--accent); }

/* ============================================================
   SECTION 20: Cart Page
   ============================================================ */
.cart-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.cart-items-col {
  flex: 1;
  min-width: 0;
}

.cart-summary-col {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 90px;
}

.cart-summary-col h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Cart item row */
.cart-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--light);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Quantity +/- controls */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-white);
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: rgba(255,255,255,0.08); }

.qty-display {
  width: 38px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text-white);
  border-left: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 4px 0;
  line-height: 1;
  font-family: var(--font-body);
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  transition: color var(--transition);
  flex-shrink: 0;
}
.cart-remove:hover { color: var(--accent); }

/* Order summary totals */
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 14px;
}

.summary-row.total .amount {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 22px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.cart-empty-icon { font-size: 64px; display: block; margin-bottom: 20px; }
.cart-empty h3 { font-family: var(--font-heading); font-size: 24px; color: var(--text-white); margin-bottom: 10px; }

/* ============================================================
   SECTION 21: Mobile Navigation Menu (off-canvas)
   ============================================================ */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
  gap: 4px;
}

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

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(233,69,96,0.12);
  color: var(--text-white);
}

/* ============================================================
   SECTION 22: Miscellaneous Components
   ============================================================ */

/* Divider line */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 32px 0;
}

/* Tag/pill for product details */
.tag-pill {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 320px;
}

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

.toast.success { border-color: var(--success); }
.toast.success .toast-icon { color: var(--success); }
.toast-icon { font-size: 18px; }

/* ============================================================
   SECTION 23: Responsive Styles
   Mobile-first approach: start with mobile, scale up.
   Breakpoints: 480px (small), 768px (tablet), 1024px (desktop)
   ============================================================ */

/* ── Small mobile (default, no media query) ── */
.hamburger { display: flex; }
.nav-links  { display: none; }

.hero-inner {
  flex-direction: column;
  text-align: center;
  padding: 60px 0;
}

.hero-content { max-width: 100%; }

.hero-visual {
  display: none; /* hide on small mobile */
}

.hero-cta {
  justify-content: center;
}

.hero-stats {
  justify-content: center;
  padding: 12px 20px;
  border-radius: 60px;
}

.steps-grid {
  grid-template-columns: 1fr;
}
.step-arrow { display: none; }

.promo-inner {
  flex-direction: column;
  text-align: center;
}
.gift-box { display: none; }

.bulk-inner { flex-direction: column; text-align: center; }

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

.cart-layout { flex-direction: column; }
.cart-summary-col { width: 100%; position: static; }

.products-page-layout { flex-direction: column; }
.filters-sidebar { width: 100%; position: static; }

/* ── Medium mobile: 480px+ ── */
@media (min-width: 480px) {
  .hero-visual {
    display: flex;
  }
  #heroCanvas {
    width: 300px;
    height: 300px;
  }
}

/* ── Tablet: 768px+ ── */
@media (min-width: 768px) {
  :root { --section-pad: 80px; }

  .hamburger { display: none; }
  .nav-links  { display: flex; }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    padding: 0;
  }
  .hero-content { max-width: 520px; }
  .hero-cta     { justify-content: flex-start; }
  .hero-stats   { justify-content: flex-start; }

  .hero-visual {
    display: flex;
    flex: 0 0 380px;
  }
  #heroCanvas {
    width: 380px;
    height: 380px;
  }

  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
  .step-arrow { display: flex; }

  .promo-inner { flex-direction: row; text-align: left; }
  .gift-box    { display: block; }

  .bulk-inner { flex-direction: row; text-align: left; }

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

  .cart-layout { flex-direction: row; }
  .cart-summary-col { width: 300px; position: sticky; }

  .products-page-layout { flex-direction: row; }
  .filters-sidebar { width: 260px; position: sticky; }
}

/* ── Desktop: 1024px+ ── */
@media (min-width: 1024px) {
  .hero-visual {
    flex: 0 0 500px;
  }
  #heroCanvas {
    width: 500px;
    height: 500px;
  }
}

/* ============================================================
   SECTION 24: Reduced Motion
   Disable all animations for users who prefer reduced motion.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
