/* ═══════════════════════════════════════════════════
   CATAPPARELS.COM — Premium Midnight Luxury Stylesheet
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────── */
:root {
  /* Alabaster Light Palette (Default) */
  --bg-dark:    #ffffff;
  --surface:    #f4f4f5;   /* Zinc 100 */
  --surface-L2: #e4e4e7;   /* Zinc 200 */
  --nav-bg:     rgba(255, 255, 255, 0.7);
  
  /* Text */
  --text-main:  #09090b;   /* Zinc 950 */
  --text-muted: #52525b;   /* Zinc 600 */
  
  /* Brand Accents */
  --accent:       #b48530; /* Darker Gold for visibility on light */
  --accent-light: #d4a853;
  --accent-glow:  rgba(180, 133, 48, 0.2);
  --gradient:     linear-gradient(135deg, var(--accent), var(--accent-light));
  
  /* UI Elements */
  --border:       rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.2);
  --green:        #059669; /* Emerald 600 */
  --danger:       #dc2626; /* Red 600 */

  /* Typography */
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  /* Elevation */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.12);
  --shadow-gold:  0 8px 24px var(--accent-glow);

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-pill:  999px;
}

/* Midnight Luxury Palette (Dark Mode) */
:root[data-theme="dark"] {
  --bg-dark:    #09090b;   /* Zinc 950 */
  --surface:    #18181b;   /* Zinc 900 */
  --surface-L2: #27272a;   /* Zinc 800 */
  --nav-bg:     rgba(9, 9, 11, 0.7);
  
  --text-main:  #fafafa;
  --text-muted: #a1a1aa;
  
  --accent:       #d4a853; /* Premium Gold */
  --accent-light: #e8c678;
  --accent-glow:  rgba(212, 168, 83, 0.2);
  
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --green:        #10b981; /* Emerald 500 */
  --danger:       #ef4444; /* Red 500 */

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-dark:    #09090b;
    --surface:    #18181b;
    --surface-L2: #27272a;
    --nav-bg:     rgba(9, 9, 11, 0.7);
    --text-main:  #fafafa;
    --text-muted: #a1a1aa;
    --accent:       #d4a853;
    --accent-light: #e8c678;
    --accent-glow:  rgba(212, 168, 83, 0.2);
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --green:        #10b981;
    --danger:       #ef4444;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg:    0 16px 40px rgba(0,0,0,0.6);
  }
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────── */
.stars { color: var(--accent); letter-spacing: 2px; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}
.btn-primary:hover { 
  background: var(--accent); 
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-main);
  border-color: var(--border);
}
.btn-secondary:hover { 
  background: var(--surface-L2);
  border-color: var(--border-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-main);
}
.btn-ghost:hover { 
  color: var(--accent); 
  text-shadow: 0 0 8px var(--accent-glow);
}
.btn-gold {
  background: var(--gradient);
  color: var(--bg-dark);
  border: none;
}
.btn-gold:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-lg { padding: 18px 40px; font-size: 14px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-block { width: 100%; }

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}
.nav-logo-icon { font-size: 22px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .3s ease;
  position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--text-main); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  transition: all .3s ease;
}
.nav-icon:hover { 
  background: var(--surface-L2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gradient);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* ── Announcement Bar ───────────────────────────── */
.announce-bar {
  background: var(--gradient);
  color: var(--bg-dark);
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.announce-bar a { text-decoration: underline; }

/* ── Sections ───────────────────────────────────── */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 24px;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
}
.section-title em { 
  font-style: normal; 
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Page Hero ──────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 80px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero-title em { 
  font-style: normal; 
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── See All Link ───────────────────────────────── */
.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .3s;
  white-space: nowrap;
}
.see-all::after { content: '→'; }
.see-all:hover { gap: 12px; filter: drop-shadow(0 0 8px var(--accent-glow)); }

/* ── Product Card (Premium) ─────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.product-card-img {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--surface-L2);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-img img {
  transform: scale(1.08); /* Slower subtle zoom */
}
.product-emoji {
  font-size: 96px;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-emoji { transform: scale(1.1) rotate(-5deg); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.badge-best { background: var(--gradient); color: var(--bg-dark); }
.badge-viral { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; }
.badge-new { background: var(--text-main); color: var(--bg-dark); }
.product-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: scale(.8);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-main);
}
.product-card:hover .product-wishlist { opacity: 1; transform: scale(1); }
.product-card-body { padding: 24px; }
.product-card-cat {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.product-card-stars { font-size: 12px; color: var(--accent); }
.product-card-review-count { font-size: 12px; color: var(--text-muted); }
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product-card-current {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
}
.product-card-compare {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ── Marquee ────────────────────────────────────── */
.marquee-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 40px;
}
.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Breadcrumb ─────────────────────────────────── */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: var(--text-main); }
.breadcrumb span { color: var(--surface-L2); }

/* ── Divider ────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Steps ──────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.step.active { color: var(--text-main); font-weight: 700; }
.step.done { color: var(--accent); }
.step-num {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all .3s;
}
.step.active .step-num {
  background: var(--text-main);
  color: var(--bg-dark);
  border-color: var(--text-main);
  box-shadow: 0 0 16px rgba(255,255,255,0.2);
}
.step.done .step-num {
  background: var(--gradient);
  color: var(--bg-dark);
  border: none;
}
.step-line {
  width: 60px;
  height: 2px;
  background: var(--surface-L2);
  margin: 0 16px;
  border-radius: 2px;
}
.step-line.done { background: var(--gradient); }

/* ── Order Summary ──────────────────────────────── */
.order-summary {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.summary-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
}
.summary-row .val { font-weight: 600; color: var(--text-main); }
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-display);
}
.summary-row.total .val { color: var(--accent); font-size: 28px; }

/* ── Forms ──────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input,
.form-select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: all .3s;
}
.form-input:focus,
.form-select:focus { 
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form-input::placeholder { color: var(--surface-L2); }
.form-select { cursor: pointer; color: var(--text-main); }

/* ── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-error { border-color: var(--danger); }

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 100px 32px 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .3s;
  color: var(--text-muted);
}
.footer-social a:hover { 
  background: var(--surface-L2);
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
}
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bar {
  max-width: 1400px;
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-logo { font-size: 20px; gap: 8px; }
  .nav-logo-icon { font-size: 18px; }
  .nav-icons { gap: 8px; }
  .nav-icon { width: 36px; height: 36px; font-size: 14px; }
  
  .nav-links { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 60px; 
    left: 0; 
    right: 0; 
    background: var(--nav-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 20px; 
    border-bottom: 1px solid var(--border); 
    gap: 20px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
  
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bar { flex-direction: column; text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card-img { height: 280px; }
}

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