/* ===================================================================
   RANGANATH JEWELLERS Ã¢â‚¬â€ Design System & Stylesheet
   By Mahipal Tanna
   =================================================================== */

/* --- DESIGN TOKENS --- */
:root {
  --font-display: 'Playfair Display', 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;

  /* Brand Copper-Terracotta (from logo) */
  --brand-copper: #c47a44;
  --brand-copper-dark: #a05e2e;
  --brand-copper-light: #e8b88a;
  --brand-copper-bg: rgba(196, 122, 68, 0.06);

  /* Maroon-Gold Heritage */
  --maroon-dark: #1a0003;
  --maroon-primary: #3d0008;
  --maroon-light: #5a0c16;
  --maroon-gradient: linear-gradient(135deg, #3d0008 0%, #1a0003 100%);

  /* Gold System */
  --gold-primary: #cda14d;
  --gold-metallic: #d4af37;
  --gold-dark: #aa7c11;
  --gold-light: #fdf5e2;
  --gold-gradient: linear-gradient(135deg, #aa7c11 0%, #d4af37 50%, #f6ebd0 100%);

  /* Neutral / Silver */
  --sidebar-bg: #faf9f7;
  --sidebar-border: #e8e2da;
  --bg-cream: #fdfcfa;
  --bg-warm: #f7f4f0;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text-dark: #1c1108;
  --text-body: #3d2b1a;
  --text-muted: #8a7968;
  --text-light: #ffffff;

  /* Utilities */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-warm: 0 8px 24px rgba(196, 122, 68, 0.12);
  --blur-glass: 16px;
  --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --t-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- APP LAYOUT --- */
.app-container { display: flex; min-height: 100vh; position: relative; width: 100%; max-width: 100vw; overflow-x: hidden; }

/* ===================================================================
   SIDEBAR
   =================================================================== */
.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #f8f6f2 0%, #f3efe8 40%, #ede8e0 100%);
  border-right: 1px solid #ddd5ca;
  padding: 2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: width var(--t-normal), padding var(--t-normal);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
  overflow: visible;
}
.brand-logo-img {
  width: auto; height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  overflow: visible;
}
.brand-text h1 {
  font-size: 1.35rem; line-height: 1;
  font-weight: 700;
  color: var(--brand-copper);
  letter-spacing: 1px;
}
.brand-text span {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.sidebar-nav { flex-grow: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 0.35rem; }

.nav-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  color: var(--text-body);
  font-weight: 500; font-size: 0.92rem;
  border-radius: var(--r-md);
  transition: all var(--t-normal);
  border-left: 3px solid transparent;
  position: relative;
}
.nav-link i { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; transition: color var(--t-fast); }
.nav-link span { white-space: nowrap; transition: opacity var(--t-normal); }

.nav-link:hover {
  background: var(--brand-copper-bg);
  color: var(--brand-copper);
  border-left-color: rgba(196, 122, 68, 0.3);
  transform: translateX(2px);
}
.nav-link:hover i { color: var(--brand-copper); }

.nav-link.active {
  background: var(--brand-copper-bg);
  color: var(--brand-copper-dark);
  font-weight: 600;
  border-left-color: var(--brand-copper);
}
.nav-link.active i { color: var(--brand-copper); }

.nav-badge {
  background: var(--brand-copper);
  color: white;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
  margin-left: auto;
  min-width: 20px;
  text-align: center;
}

/* Sidebar Social Links */
.sidebar-contact-links {
  display: flex; gap: 0.5rem; justify-content: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sidebar-border);
  margin-top: auto;
}
.sidebar-social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--t-fast);
  border: 1px solid var(--sidebar-border);
  color: var(--text-muted);
  background: white;
}
.sidebar-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.sidebar-social-btn.whatsapp:hover { color: #25d366; border-color: #25d366; }
.sidebar-social-btn.email:hover { color: var(--brand-copper); border-color: var(--brand-copper); }
.sidebar-social-btn.phone:hover { color: #3b82f6; border-color: #3b82f6; }

/* --- COLLAPSED SIDEBAR --- */
.app-container.collapsed .sidebar {
  width: 72px; padding: 2rem 0.5rem; align-items: center;
}
.app-container.collapsed .sidebar-brand { justify-content: center; }
.app-container.collapsed .brand-text,
.app-container.collapsed .nav-link span,
.app-container.collapsed .nav-badge { display: none; }
.app-container.collapsed .nav-link { justify-content: center; padding: 0.85rem; }
.app-container.collapsed .main-content { margin-left: 72px; }
.app-container.collapsed .header-logo-small { opacity: 1; }

/* ===================================================================
   MAIN CONTENT
   =================================================================== */
.main-content {
  flex-grow: 1;
  margin-left: 270px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left var(--t-normal);
  max-width: 100%;
  overflow-x: hidden;
}

/* ===================================================================
   TOP HEADER
   =================================================================== */
.top-header {
  background: var(--maroon-primary);
  color: var(--text-light);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: sticky; top: 0; z-index: 90;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.header-left { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.btn-icon {
  background: none; border: none;
  color: var(--gold-light); font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color var(--t-fast);
}
.btn-icon:hover { color: var(--brand-copper-light); }

.header-logo-small {
  height: 34px; width: auto; object-fit: contain;
  opacity: 0; transition: opacity var(--t-normal);
  overflow: visible;
}


/* Ticker */
.ticker-container {
  display: flex; align-items: center; justify-content: flex-start;
  font-size: 0.82rem; font-weight: 500;
  overflow: hidden; height: 32px;
  position: relative;
  margin-left: 1.5rem;
  flex: 1;
  min-width: 0;
}
.ticker-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-weight: 750; color: var(--gold-metallic);
  letter-spacing: 1px; white-space: nowrap;
  background: var(--maroon-primary);
  position: relative; z-index: 5;
  padding-right: 0.75rem; font-size: 0.7rem;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: #ef4444; border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}
.ticker-wrap { width: 100%; overflow: hidden; display: flex; align-items: center; }
.ticker-content {
  display: inline-flex; white-space: nowrap; gap: 1.5rem;
  animation: none;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 0;
}
.ticker-content span { margin-right: 2.5rem; display: inline-block; }
.ticker-content strong { color: white; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.header-action-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.wishlist-badge-bubble {
  position: absolute; top: -3px; right: -3px;
  background: var(--brand-copper);
  color: white; border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--maroon-primary);
}

.btn-admin {
  background: linear-gradient(135deg, var(--gold-metallic), var(--gold-dark));
  color: var(--maroon-dark);
  padding: 0.35rem 0.8rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: 0.78rem;
  display: flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--gold-light);
  transition: all var(--t-fast);
}
.btn-admin:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3); }

/* ===================================================================
   PAGE CONTAINER
   =================================================================== */
.page-container {
  padding: 2rem 2.5rem;
  max-width: 1280px; width: 100%;
  margin: 0 auto; flex-grow: 1;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Spinner */
.loading-spinner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; gap: 1rem; color: var(--text-muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(196, 122, 68, 0.15);
  border-left-color: var(--brand-copper);
  border-radius: 50%; animation: spin 1s linear infinite;
}

/* Page Transitions */
.fade-in { animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ===================================================================
   PAGE HEADERS
   =================================================================== */
.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(196, 122, 68, 0.1);
  padding-bottom: 1rem;
}
.page-header h2 {
  font-size: 2rem; letter-spacing: 0.5px;
  color: var(--text-dark);
  position: relative;
}
.page-header h2::after {
  content: ''; position: absolute;
  bottom: -12px; left: 0;
  width: 50px; height: 2.5px;
  background: var(--brand-copper);
  border-radius: 2px;
}
.page-header p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.5rem; }

/* ===================================================================
   GLASS CARDS
   =================================================================== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid rgba(196, 122, 68, 0.08);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn-primary {
  background: var(--brand-copper);
  color: white; font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r-md); border: none;
  cursor: pointer; font-family: var(--font-sans);
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--brand-copper-dark); transform: translateY(-1px); box-shadow: var(--shadow-warm); }

.btn-outline {
  background: transparent;
  color: var(--brand-copper);
  border: 1.5px solid var(--brand-copper);
  font-weight: 600; padding: 0.75rem 1.6rem;
  border-radius: var(--r-md);
  cursor: pointer; font-family: var(--font-sans);
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { background: var(--brand-copper); color: white; transform: translateY(-1px); }

.btn-gold {
  background: var(--gold-gradient);
  color: var(--maroon-dark); font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r-md); border: none;
  cursor: pointer; font-family: var(--font-sans);
  transition: all var(--t-fast);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25); }

/* Inquire Button Ã¢â‚¬â€ warm subtle tone (replaces green WhatsApp) */
.btn-inquire {
  background: rgba(196, 122, 68, 0.08);
  color: var(--brand-copper-dark);
  border: 1.5px solid var(--brand-copper-light);
  font-weight: 600; font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  cursor: pointer; font-family: var(--font-sans);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: all var(--t-fast);
}
.btn-inquire:hover {
  background: var(--brand-copper);
  color: white; border-color: var(--brand-copper);
  transform: translateY(-1px);
}

/* ===================================================================
   PAGE 1: HOME Ã¢â‚¬â€ HERO SLIDESHOW
   =================================================================== */
.hero-slideshow {
  position: relative;
  width: 100%; height: 600px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26, 0, 3, 0.75) 0%, rgba(26, 0, 3, 0.2) 60%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}
.hero-slide-overlay img.hero-logo {
  display: none;
}
.hero-slide-overlay h1 {
  font-size: 2.8rem; color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-slide-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 0.75rem; }
.hero-dots {
  position: absolute; bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer; border: none;
  transition: all var(--t-fast);
}
.hero-dot.active { background: var(--brand-copper-light); transform: scale(1.3); }

/* Home Featured Categories */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.feature-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--sidebar-border);
  transition: all var(--t-normal);
  cursor: pointer;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: var(--brand-copper-light);
}
.feature-card-icon {
  font-size: 2rem;
  color: var(--brand-copper);
  margin-bottom: 1rem;
}
.feature-card h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ===================================================================
   PAGE 2: RATES
   =================================================================== */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.rate-card {
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
  background: white;
  border: 1px solid var(--sidebar-border);
}
.rate-card.gold-24k {
  background: linear-gradient(135deg, #3d0008 0%, #1a0003 100%);
  border-color: rgba(212,175,55,0.35);
}
.rate-card.gold-24k .rate-title { color: var(--gold-light); }
.rate-card.gold-24k .price-display {
  background: linear-gradient(90deg, #fdf5e2, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rate-card.gold-24k .unit-label { color: rgba(253,245,226,0.5); }
.rate-card.gold-24k .update-stamp { color: rgba(253,245,226,0.4); border-top-color: rgba(212,175,55,0.2); }
.rate-card.gold-24k .purity-tag { background: rgba(212,175,55,0.2); color: var(--gold-light); }
.rate-card.gold-24k .rate-icon { color: var(--gold-metallic); }

.rate-card.gold-22k {
  background: linear-gradient(135deg, #5a0c16 0%, #3d0008 100%);
  border-color: rgba(212,175,55,0.25);
}
.rate-card.gold-22k .rate-title { color: #fdf5e2; }
.rate-card.gold-22k .price-display {
  background: linear-gradient(90deg, #fdf5e2, #e8b88a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rate-card.gold-22k .unit-label { color: rgba(253,245,226,0.5); }
.rate-card.gold-22k .update-stamp { color: rgba(253,245,226,0.4); border-top-color: rgba(212,175,55,0.15); }
.rate-card.gold-22k .purity-tag { background: rgba(212,175,55,0.15); color: #fdf5e2; }
.rate-card.gold-22k .rate-icon { color: #e8b88a; }

.rate-card.gold-20k {
  background: linear-gradient(135deg, #4a0a12 0%, #2d0005 100%);
  border-color: rgba(212,175,55,0.2);
}
.rate-card.gold-20k .rate-title { color: #fdf5e2; }
.rate-card.gold-20k .price-display {
  background: linear-gradient(90deg, #fdf5e2, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rate-card.gold-20k .unit-label { color: rgba(253,245,226,0.5); }
.rate-card.gold-20k .update-stamp { color: rgba(253,245,226,0.4); border-top-color: rgba(212,175,55,0.12); }
.rate-card.gold-20k .purity-tag { background: rgba(212,175,55,0.15); color: #fdf5e2; }
.rate-card.gold-20k .rate-icon { color: #d4af37; }
.rate-card.gold-20k:hover { box-shadow: 0 12px 30px rgba(196, 122, 68, 0.18); }

.rate-icon { font-size: 1.8rem; margin-bottom: 0.75rem; color: var(--brand-copper); }

.rate-title {
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.35rem;
}
.purity-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  background: var(--brand-copper-bg);
  color: var(--brand-copper-dark);
  font-weight: 600; margin-bottom: 1.25rem;
}
.price-display {
  font-size: 1.9rem; font-weight: 750;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
}
.unit-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 1rem; }
.update-stamp {
  font-size: 0.68rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.3rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  padding-top: 0.6rem; width: 100%; justify-content: center;
}
.rate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rate-card.gold-24k:hover { box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25); }
.rate-card.gold-22k:hover { box-shadow: 0 12px 30px rgba(196, 122, 68, 0.2); }

/* Calculator */
.rates-calc-section { max-width: 760px; margin: 0 auto; }
.calc-card h3 {
  margin-bottom: 1.25rem; font-size: 1.3rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.calc-card h3 i { color: var(--brand-copper); }

.calculator-form { display: flex; flex-direction: column; gap: 1rem; }
.calc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select {
  font-family: var(--font-sans);
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--sidebar-border);
  outline: none; background: white;
  font-size: 0.9rem;
  transition: border-color var(--t-fast);
}
.form-group input:focus, .form-group select:focus { border-color: var(--brand-copper); }

.calc-breakdown {
  background: var(--bg-warm);
  border: 1px dashed var(--brand-copper-light);
  border-radius: var(--r-md);
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.88rem; margin-top: 0.5rem;
}
.breakdown-row { display: flex; justify-content: space-between; }
.breakdown-row.total {
  font-weight: 700;
  border-top: 1px solid rgba(196, 122, 68, 0.15);
  padding-top: 0.4rem;
  color: var(--text-dark); font-size: 1.05rem;
}

/* ===================================================================
   PAGE 3: CATALOGUE
   =================================================================== */
.catalogue-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn {
  background: white;
  border: 1px solid var(--sidebar-border);
  padding: 0.5rem 1rem; border-radius: 50px;
  cursor: pointer; font-weight: 500;
  font-family: var(--font-sans); font-size: 0.82rem;
  transition: all var(--t-fast); color: var(--text-body);
}
.filter-btn:hover { border-color: var(--brand-copper); color: var(--brand-copper); }
.filter-btn.active { background: var(--brand-copper); color: white; border-color: var(--brand-copper); }

.search-box { position: relative; min-width: 260px; }
.search-box input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.3rem;
  border-radius: 50px;
  border: 1px solid var(--sidebar-border);
  font-family: var(--font-sans); font-size: 0.88rem; outline: none;
  transition: border-color var(--t-fast);
}
.search-box input:focus { border-color: var(--brand-copper); }
.search-box i {
  position: absolute; left: 0.9rem; top: 50%;
  transform: translateY(-50%); color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all var(--t-normal);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(196,122,68,0.15); }

.product-img-wrapper {
  position: relative; height: 240px;
  overflow: hidden; background: #f7f4f0; cursor: pointer;
}
.product-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrapper img { transform: scale(1.06); }

.product-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 0, 3, 0.65);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity var(--t-normal);
  backdrop-filter: blur(3px);
}
.product-card:hover .product-overlay { opacity: 1; }
.btn-view-details {
  color: white; font-weight: 600; font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
}

.btn-wishlist {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast); z-index: 5;
}
.btn-wishlist:hover { color: #ef4444; transform: scale(1.08); }
.btn-wishlist.active { color: #ef4444; }

.product-details { padding: 1.25rem; }
.product-category-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.product-category-tag { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.product-purity-tag { font-size: 0.68rem; background: var(--gold-light); color: var(--brand-copper-dark); font-weight: 600; padding: 0.12rem 0.45rem; border-radius: 4px; }
.product-title {
  font-size: 1.15rem; margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-family: var(--font-display); font-weight: 600;
  cursor: pointer; transition: color var(--t-fast);
}
.product-title:hover { color: var(--brand-copper); }
.product-meta { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.product-price-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.product-price { font-size: 1.2rem; font-weight: 750; color: var(--text-dark); }

/* ===================================================================
   PAGE 4: ABOUT US
   =================================================================== */
.about-hero {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 3rem; align-items: center;
  margin-bottom: 3rem;
}
.about-hero-visual {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm);
  border-radius: var(--r-xl);
  padding: 3rem;
  border: 1px solid var(--sidebar-border);
}
.about-hero-visual img { max-width: 300px; object-fit: contain; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-dark); }
.about-text p { color: var(--text-body); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.value-card {
  background: white;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--t-normal);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); border-color: var(--brand-copper-light); }
.value-card-icon { font-size: 1.8rem; color: var(--brand-copper); margin-bottom: 0.75rem; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.value-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ===================================================================
   PAGE 5: CONTACT US
   =================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.contact-card {
  background: white;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--t-normal);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); border-color: var(--brand-copper-light); }
.contact-card-icon { font-size: 2rem; color: var(--brand-copper); margin-bottom: 0.75rem; }
.contact-card h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.contact-card a.contact-link {
  color: var(--brand-copper-dark); font-weight: 600; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color var(--t-fast);
}
.contact-card a.contact-link:hover { color: var(--brand-copper); }

.contact-form-section { max-width: 600px; margin: 0 auto; }
.contact-form-section h3 { text-align: center; margin-bottom: 1.5rem; }

/* ===================================================================
   PAGE 6: WISHLIST / CHECKOUT
   =================================================================== */
.wishlist-items-list {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 2rem;
}
.wishlist-row {
  background: white;
  border: 1px solid var(--sidebar-border);
  border-left: 4px solid var(--brand-copper);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
  transition: all var(--t-fast);
}
.wishlist-row:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.wishlist-row-img {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-warm);
}
.wishlist-row-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-row-info { flex-grow: 1; }
.wishlist-row-info h5 { font-size: 1rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.wishlist-row-info span { font-size: 0.78rem; color: var(--text-muted); }
.wishlist-row-price { font-size: 1.1rem; font-weight: 750; color: var(--text-dark); white-space: nowrap; }
.wishlist-row-actions { display: flex; gap: 0.5rem; }
.btn-remove-row {
  background: none; border: 1px solid #fecaca;
  color: #ef4444; width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-fast);
}
.btn-remove-row:hover { background: #fee2e2; }

.wishlist-summary-card {
  background: var(--maroon-gradient);
  color: white;
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--gold-metallic);
}
.wishlist-summary-card h4 { color: var(--gold-light); margin-bottom: 1rem; }
.wishlist-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; margin-bottom: 0.4rem;
}
.wishlist-total-row.grand {
  font-size: 1.3rem; font-weight: 800;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem; margin-top: 0.5rem;
  color: var(--gold-light);
}
.wishlist-finalize-btn {
  width: 100%; margin-top: 1.5rem;
  background: var(--brand-copper);
  color: white; border: none;
  padding: 1rem; border-radius: var(--r-md);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-sans);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all var(--t-fast);
}
.wishlist-finalize-btn:hover { background: var(--brand-copper-dark); transform: translateY(-1px); }

.wishlist-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.wishlist-empty i { font-size: 3rem; color: var(--brand-copper-light); margin-bottom: 1rem; }
.wishlist-empty p { margin-bottom: 1.5rem; }

/* ===================================================================
   MODALS
   =================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(18, 0, 2, 0.65);
  backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: center;
  z-index: 500; padding: 1rem;
}
.modal-content {
  background: white;
  width: 100%; max-width: 780px;
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.modal-close-btn {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.3rem; color: var(--text-muted);
  cursor: pointer; transition: color var(--t-fast); z-index: 10;
}
.modal-close-btn:hover { color: var(--text-dark); }

.modal-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.75rem; }
.modal-img-container {
  height: 100%; min-height: 300px;
  background: var(--bg-warm); border-radius: var(--r-md);
  overflow: hidden;
}
.modal-img-container img { width: 100%; height: 100%; object-fit: cover; }
.modal-info-container { display: flex; flex-direction: column; }
.modal-meta-header { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; }
.modal-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-muted); }
.modal-purity { font-size: 0.68rem; background: var(--gold-light); color: var(--brand-copper-dark); font-weight: 600; padding: 0.12rem 0.45rem; border-radius: 4px; }
.modal-info-container h2 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 0.6rem; }
.modal-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.modal-specifications { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.25rem; }
.spec-box { background: var(--bg-warm); border: 1px solid var(--sidebar-border); border-radius: var(--r-sm); padding: 0.5rem; text-align: center; }
.spec-box span { font-size: 0.68rem; color: var(--text-muted); display: block; }
.spec-box strong { font-size: 0.82rem; color: var(--text-dark); }

.modal-pricing-box {
  background: var(--bg-warm);
  border: 1px solid rgba(196, 122, 68, 0.15);
  border-radius: var(--r-md); padding: 1.1rem;
  margin-bottom: 1.25rem;
}
.modal-pricing-box h4 { font-size: 0.88rem; margin-bottom: 0.6rem; color: var(--text-dark); border-bottom: 1px dashed rgba(196,122,68,0.15); padding-bottom: 0.35rem; }
.price-breakdown-table { display: flex; flex-direction: column; gap: 0.35rem; }
.price-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.price-row.grand-total { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); border-top: 1px solid rgba(0,0,0,0.05); padding-top: 0.4rem; margin-top: 0.2rem; }

.modal-actions { display: flex; gap: 0.75rem; margin-top: auto; }
.btn-wishlist-toggle {
  flex: 1; background: var(--bg-warm); border: 1px solid var(--sidebar-border);
  color: var(--text-body); padding: 0.7rem;
  border-radius: var(--r-md); font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  transition: all var(--t-fast); font-family: var(--font-sans);
}
.btn-wishlist-toggle.active { background: #fee2e2; border-color: #fecaca; color: #ef4444; }
.btn-inquire-modal {
  flex: 1.4; background: var(--brand-copper); color: white;
  border: none; padding: 0.7rem; border-radius: var(--r-md);
  font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: background var(--t-fast); font-family: var(--font-sans);
}
.btn-inquire-modal:hover { background: var(--brand-copper-dark); }

/* ===================================================================
   CONTACT DETAILS POPUP (replaces login)
   =================================================================== */
.details-popup {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  max-width: 370px; width: calc(100% - 3rem);
  background: white;
  border: 1.5px solid var(--brand-copper-light);
  border-radius: var(--r-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 400; overflow: hidden;
}
.details-popup-content { padding: 1.5rem; position: relative; }
.details-popup-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: none; border: none;
  font-size: 1rem; color: var(--text-muted); cursor: pointer;
}
.details-popup-icon { font-size: 2rem; color: var(--brand-copper); margin-bottom: 0.5rem; }
.details-popup h5 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.details-popup p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; }

/* ===================================================================
   WISHLIST DROPDOWN
   =================================================================== */
.wishlist-dropdown-container { position: relative; }
.wishlist-quick-dropdown {
  position: absolute; top: 48px; right: 0;
  width: 310px; background: white;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: none; flex-direction: column;
  z-index: 120; overflow: hidden;
}
.wishlist-quick-dropdown.active { display: flex; animation: fadeInUp 0.2s ease forwards; }
.dropdown-header { background: var(--bg-warm); padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--sidebar-border); display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; }
.dropdown-header .clear-count { color: var(--brand-copper); }
.dropdown-items { max-height: 220px; overflow-y: auto; }
.dropdown-item { padding: 0.65rem 0.9rem; border-bottom: 1px solid #f5f3f0; display: flex; justify-content: space-between; align-items: center; transition: background var(--t-fast); }
.dropdown-item:hover { background: var(--bg-warm); }
.dropdown-item-details h6 { font-size: 0.82rem; color: var(--text-dark); margin-bottom: 0.1rem; font-family: var(--font-display); }
.dropdown-item-details span { font-size: 0.68rem; color: var(--text-muted); }
.dropdown-item-price { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); margin-top: 0.2rem; }
.btn-remove-dropdown { background: none; border: none; color: #ef4444; cursor: pointer; padding: 0.2rem; }
.empty-dropdown { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.78rem; }
.dropdown-footer { padding: 0.65rem; background: var(--bg-warm); border-top: 1px solid var(--sidebar-border); text-align: center; }
.btn-view-wishlist { font-size: 0.78rem; font-weight: 600; color: var(--brand-copper-dark); transition: color var(--t-fast); }
.btn-view-wishlist:hover { color: var(--brand-copper); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--maroon-gradient);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1280px; margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
}
.footer-logo { width: auto; height: 80px; object-fit: contain; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { color: var(--gold-light); font-size: 0.92rem; margin-bottom: 0.75rem; }
.footer-links a, .footer-contact a {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem; transition: color var(--t-fast);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--brand-copper-light); }
.footer-nav-link { cursor: pointer; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; padding: 1rem 2rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
}

/* ===================================================================
   MOBILE BOTTOM NAV
   =================================================================== */
.mobile-home-fab {
  display: none;
  position: fixed;
  bottom: 75px; /* Overlaps bottom nav bar perfectly without blocking items */
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 65px;
  background: white;
  border: 2px solid var(--brand-copper-light);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 105;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  transition: transform var(--t-fast);
}
.mobile-home-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mobile-home-fab:active {
  transform: translateX(-50%) scale(0.95);
}

@media (max-width: 640px) {
  .mobile-home-fab {
    display: flex;
  }
}

.mobile-nav {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
  background: white;
  border-top: 1px solid var(--sidebar-border);
  display: none; justify-content: space-around; align-items: center;
  z-index: 100; box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.6rem; font-weight: 500;
  gap: 0.2rem; flex-grow: 1; height: 100%;
  transition: color var(--t-fast);
}
.mobile-nav-link i { font-size: 1.15rem; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--brand-copper); }

/* ===================================================================
   KEYFRAMES
   =================================================================== */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(239,68,68,0); }
  100% { transform: scale(0.9); }
}
@keyframes scroll-ticker { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-100%,0,0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeOutDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(25px); opacity: 0; } }

.zoom-in { animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.fade-in-up { animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-out { animation: fadeOut 0.2s ease forwards; }
.fade-out-down { animation: fadeOutDown 0.2s ease forwards; }
.gold-shimmer {
  background: linear-gradient(to right, #aa7c11 0%, #f6ebd0 50%, #aa7c11 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ===================================================================
   FULLSCREEN IMAGE LIGHTBOX
   =================================================================== */
.image-lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.image-lightbox img {
  max-width: 92vw; max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: rgba(255,255,255,0.15); border: none;
  color: white; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.88rem;
  background: rgba(0,0,0,0.5); padding: 0.4rem 1.2rem;
  border-radius: 50px; white-space: nowrap;
  font-family: var(--font-display);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* -- Critical mobile overflow fix -- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .sidebar { width: 72px; padding: 2rem 0.5rem; align-items: center; }
  .brand-text { display: none; }
  .nav-link { justify-content: center; padding: 0.85rem; }
  .nav-link span, .nav-badge { display: none; }
  .sidebar-contact-links { flex-direction: column; }
  .main-content { margin-left: 72px; }
  .about-hero { grid-template-columns: 1fr; }
  .modal-layout { grid-template-columns: 1fr; }
  .modal-img-container { min-height: 200px; height: 200px; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-logo-small { opacity: 1; }
}

@media (max-width: 768px) {
  /* Hide features grid and center nav on tablets */
  .home-features-grid { display: none !important; }
  .header-center-nav { display: none !important; }
}

@media (max-width: 640px) {
  /* === CORE MOBILE LAYOUT === */
  .sidebar { display: none !important; }
  .main-content {
    margin-left: 0 !important;
    padding-bottom: 80px; /* Taller bottom nav clearance */
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .app-container {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* === TOP HEADER â€” BIGGER & BOLDER on mobile === */
  .top-header {
    padding: 0 0.85rem;
    height: 72px;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  }
  .sidebar-toggle { display: none; }
  .header-left { gap: 0.5rem; }
  .header-logo-small {
    opacity: 1;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }
  .ticker-container {
    max-width: 52%;
    margin-left: 0.4rem;
    font-size: 0.78rem;
    height: 28px;
  }
  .ticker-label {
    font-size: 0.65rem;
    padding-right: 0.35rem;
    letter-spacing: 0.5px;
  }
  .pulse-dot { width: 6px; height: 6px; }
  .ticker-content { font-size: 0.72rem; }
  .ticker-content span { margin-right: 1.5rem; }

  /* Header action buttons â€” bigger touch targets */
  .header-actions { gap: 0.35rem; }
  .header-action-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
  }
  .wishlist-badge-bubble {
    width: 16px; height: 16px;
    font-size: 0.55rem;
    top: -2px; right: -2px;
  }
  .btn-admin { padding: 0.3rem 0.6rem; font-size: 0.72rem; }

  /* === MOBILE BOTTOM NAV â€” TALLER === */
  .mobile-nav {
    display: flex;
    height: 68px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav-link {
    font-size: 0.62rem;
    font-weight: 600;
    gap: 0.25rem;
    padding: 0.4rem 0;
  }
  .mobile-nav-link i { font-size: 1.25rem; }
  .mobile-nav-link.active {
    color: var(--brand-copper);
    position: relative;
  }
  .mobile-nav-link.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--brand-copper);
    border-radius: 0 0 3px 3px;
  }

  /* === HOME FAB â€” adjusted for taller nav === */
  .mobile-home-fab {
    bottom: 82px;
    width: 60px;
    height: 60px;
    border-width: 2.5px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  }

  /* === PAGE CONTAINER === */
  .page-container {
    padding: 1rem 0.9rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .page-header h2 { font-size: 1.65rem; }
  .page-header p { font-size: 0.88rem; }
  .page-header { margin-bottom: 1.25rem; padding-bottom: 0.75rem; }

  /* === HERO SLIDESHOW === */
  .hero-slideshow {
    height: 280px;
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
  }
  .hero-slide-overlay {
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 0, 3, 0.82) 0%, rgba(26, 0, 3, 0.3) 55%, transparent 100%);
  }
  .hero-slide-overlay h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }
  .hero-slide-overlay p {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
    line-height: 1.4;
  }
  .hero-cta { gap: 0.5rem; flex-wrap: wrap; }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    border-radius: var(--r-sm);
  }
  .hero-dots { bottom: 0.75rem; }
  .hero-dot { width: 8px; height: 8px; }

  /* === FEATURE CARDS (if shown) === */
  .home-features-grid { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
  .feature-card { padding: 1.25rem 1rem; }
  .feature-card-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .feature-card h4 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.8rem; }

  /* === RATE CARDS â€” 2 columns for compact feel === */
  .rates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .rate-card {
    padding: 1.1rem 0.75rem;
    border-radius: var(--r-md);
  }
  .rate-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
  .rate-title { font-size: 0.7rem; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
  .purity-tag { font-size: 0.6rem; margin-bottom: 0.6rem; padding: 0.15rem 0.4rem; }
  .price-display { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.2rem; }
  .unit-label { font-size: 0.62rem; margin-bottom: 0.5rem; }
  .update-stamp { font-size: 0.58rem; padding-top: 0.4rem; }
  .rate-card:hover { transform: none; } /* Disable hover on mobile */

  /* Calculator */
  .rates-calc-section { margin-top: 0.5rem; }
  .calc-card h3 { font-size: 1.1rem; }
  .calc-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .calc-breakdown { padding: 0.9rem; font-size: 0.82rem; }
  .breakdown-row.total { font-size: 0.95rem; }

  /* === CATALOGUE === */
  .catalogue-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    min-height: 36px;
  }
  .search-box { min-width: unset; width: 100%; }
  .search-box input { padding: 0.6rem 0.9rem 0.6rem 2.2rem; font-size: 0.85rem; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-img-wrapper { height: 180px; }
  .product-details { padding: 0.75rem; }
  .product-title { font-size: 0.92rem; margin-bottom: 0.3rem; }
  .product-meta { font-size: 0.72rem; margin-bottom: 0.6rem; }
  .product-price { font-size: 0.95rem; }
  .product-category-tag { font-size: 0.6rem; }
  .product-purity-tag { font-size: 0.6rem; }
  .product-price-row {
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
  }
  .product-price-row .btn-outline,
  .product-price-row .btn-inquire {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  .product-overlay { display: none; } /* No hover overlay on mobile â€” tap opens modal */

  /* Bridal slideshow */
  .bridal-slideshow-container {
    height: 200px !important;
    border-radius: var(--r-md) !important;
  }
  .bridal-slideshow-container h2 { font-size: 1.2rem !important; }
  .bridal-slideshow-container p { font-size: 0.75rem !important; }

  /* === CONTACT === */
  .contact-cards-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-card { padding: 1.25rem 1rem; }
  .contact-card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
  .contact-card h4 { font-size: 0.95rem; }
  .contact-card p { font-size: 0.8rem; }
  .contact-form-section { padding: 1rem; }

  /* Map */
  div[style*="height: 300px"] { height: 200px !important; }

  /* === ABOUT === */
  .about-hero { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-hero-visual { padding: 1.25rem; }
  .about-hero-visual img { max-width: 160px; }
  .about-text h3 { font-size: 1.4rem; }
  .about-text p { font-size: 0.88rem; }
  .about-values-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .value-card { padding: 1.25rem; }
  .value-card-icon { font-size: 1.5rem; }
  .value-card h4 { font-size: 0.95rem; }
  .value-card p { font-size: 0.8rem; }

  /* === DETAILS POPUP === */
  .details-popup {
    bottom: 5rem;
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    width: auto;
    border-radius: var(--r-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  }
  .details-popup-content { padding: 1.25rem; }

  /* === MODAL â€” mobile optimized === */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    margin: 0;
    padding: 1.25rem;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: slideUpModal 0.3s ease forwards;
  }
  .modal-layout { grid-template-columns: 1fr; gap: 0.75rem; }
  .modal-img-container {
    min-height: 180px;
    height: 200px;
    border-radius: var(--r-md);
  }
  .modal-info-container { padding: 0; }
  .modal-info-container h2 { font-size: 1.2rem; }
  .modal-desc { font-size: 0.78rem; line-height: 1.5; }
  .modal-specifications { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .spec-box { padding: 0.4rem 0.25rem; }
  .spec-box span { font-size: 0.6rem; }
  .spec-box strong { font-size: 0.75rem; }
  .modal-pricing-box { padding: 0.9rem; }
  .modal-pricing-box h4 { font-size: 0.82rem; }
  .price-row { font-size: 0.72rem; }
  .price-row.grand-total { font-size: 1rem; }
  .modal-actions { flex-direction: column; gap: 0.5rem; }
  .btn-wishlist-toggle, .btn-inquire-modal {
    padding: 0.75rem;
    font-size: 0.88rem;
  }
  .modal-close-btn {
    top: 0.6rem;
    right: 0.6rem;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* === FOOTER === */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1rem 1.25rem;
  }
  .footer-logo { height: 44px; }
  .footer-brand p { font-size: 0.78rem; }
  .footer-links h4, .footer-contact h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
  .footer-links a, .footer-contact a { font-size: 0.78rem; }
  .footer-bottom { padding: 0.75rem 1rem; font-size: 0.68rem; }

  /* === GLASS CARD === */
  .glass-card { padding: 1rem; border-radius: var(--r-md); }

  /* === WISHLIST === */
  .wishlist-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem;
  }
  .wishlist-row-img { width: 100%; height: auto; border-radius: var(--r-sm); }
  .wishlist-row-img img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--r-sm); }
  .wishlist-row-info h5 { font-size: 0.95rem; }
  .wishlist-row-info span { font-size: 0.75rem; }
  .wishlist-row-price { font-size: 1.05rem; }
  div[style*="grid-template-columns: 1.6fr"] { grid-template-columns: 1fr !important; }
  .wishlist-summary-card { margin-top: 0.5rem; padding: 1.5rem; }
  .wishlist-finalize-btn { padding: 0.85rem; font-size: 0.92rem; }

  /* === WISHLIST DROPDOWN === */
  .wishlist-quick-dropdown {
    width: calc(100vw - 1.5rem);
    max-width: 320px;
    right: -0.5rem;
  }

  /* === LIGHTBOX === */
  .image-lightbox img {
    max-width: 96vw;
    max-height: 85vh;
    border-radius: var(--r-sm);
  }
  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .lightbox-caption { font-size: 0.75rem; bottom: 1rem; }

  /* === SECTION DIVIDERS IN HOME PAGE === */
  div[style*="margin-top: 4.5rem"] {
    margin-top: 2.5rem !important;
    padding-top: 0.75rem !important;
  }

  /* Account modal adjustments */
  .modal-content[style*="max-width:400px"],
  .modal-content[style*="max-width:420px"] {
    max-width: 100% !important;
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
  }
}

/* === EXTRA SMALL DEVICES (< 380px) === */
@media (max-width: 380px) {
  .top-header { height: 66px; padding: 0 0.6rem; }
  .header-logo-small { height: 42px; }
  .ticker-container { max-width: 48%; }
  .ticker-content { font-size: 0.65rem; }

  .hero-slideshow { height: 230px; }
  .hero-slide-overlay h1 { font-size: 1.3rem; }
  .hero-slide-overlay p { font-size: 0.75rem; }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline { padding: 0.45rem 0.7rem; font-size: 0.72rem; }

  .rates-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .rate-card { padding: 1rem 0.75rem; }
  .price-display { font-size: 1.4rem; }

  .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .product-img-wrapper { height: 220px; }
  .product-details { padding: 0.85rem; }
  .product-title { font-size: 1rem; }

  .page-header h2 { font-size: 1.4rem; }
  .page-container { padding: 0.75rem; }

  .modal-specifications { grid-template-columns: 1fr 1fr; }
  .wishlist-quick-dropdown { width: calc(100vw - 1rem); max-width: 280px; }
  .mobile-home-fab { width: 52px; height: 52px; bottom: 78px; }
}

/* === TABLET PORTRAIT (480-640px) === */
@media (min-width: 480px) and (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
  .product-img-wrapper { height: 200px; }
}

/* === PWA STANDALONE ADJUSTMENTS === */
@media (display-mode: standalone) {
  .home-features-grid { display: none !important; }
  .top-header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; }
  .page-container { margin-top: 72px; }
}

/* === Modal slide-up animation for mobile === */
@keyframes slideUpModal {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === BRIDAL THEME (Pinkish-Maroon) === */
.theme-bridal {
  background: linear-gradient(135deg, #4a1c28 0%, #300f18 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(212,175,55,0.05);
}

.theme-bridal .product-title {
  color: #fff0d4;
}

.theme-bridal .product-meta span {
  color: rgba(255, 240, 212, 0.7);
}

.theme-bridal .product-meta strong {
  color: #d4af37;
}

.theme-bridal .btn-inquire {
  background: transparent;
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.5);
}

.theme-bridal .btn-inquire:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
  color: #300f18;
  border-color: #d4af37;
}

