/* ============================================================
   Gifty Pearls — Global Stylesheet
   Designed for Cameroon dropshipping business (Africa-first)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* ── Gifty Pearls — Luxury Feminine Palette ─────────────── */
  --primary: #8B5A6B;
  --primary-light: #A67282;
  --primary-dark: #6E4554;

  --accent: #C4A47C;
  --accent-dark: #A8875E;
  --accent-light: #E8D5B5;
  --secondary: #F0E6DC;

  --hero-bg-start: #FAF5F0;
  --hero-bg-end: #FDFAF7;
  --bg: #FAF8F6;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFCFA;

  --text: #2E2826;
  --text-muted: #6B5F5A;
  --text-light: #9A8E88;

  --border: #EDE4DC;
  --border-strong: #DDD0C4;

  --footer-bg: #2A2420;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Shadows — warm, soft depth */
  --shadow-sm: 0 1px 3px rgba(46, 40, 38, 0.06), 0 1px 2px rgba(46, 40, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(46, 40, 38, 0.08), 0 4px 8px rgba(46, 40, 38, 0.04);
  --shadow-lg: 0 20px 48px rgba(46, 40, 38, 0.10), 0 8px 16px rgba(46, 40, 38, 0.06);
  --shadow-glow: 0 4px 20px rgba(139, 90, 107, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  --transition-smooth: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
p { line-height: 1.75; color: var(--text-muted); }

/* ── Utilities ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-5); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* ── Common Inline Style Replacements ─────────────────────── */
.hidden { display: none; }
.text-accent { color: var(--accent); }
.text-muted-sm { font-size: 0.82rem; color: var(--text-muted); }
.text-muted-xs { font-size: 0.78rem; color: var(--text-muted); }
.text-light-sm { font-size: 0.88rem; color: var(--text-light); }
.text-muted-line { font-size: 0.8rem; color: var(--text-muted); }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-60 { margin-top: 60px; }
.mt-4 { margin-top: 4px; }
.mb-16 { margin-bottom: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.pt-16 { padding-top: 16px; }
.pt-36 { padding-top: 36px; }
.pb-36 { padding-bottom: 36px; }
.pad-36 { padding: 36px 0; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }
.flex-h-center-gap-12 { display: flex; align-items: center; gap: 12px; }
.flex-h-center-gap-10 { display: flex; align-items: center; gap: 10px; }
.flex-h-between { display: flex; justify-content: space-between; align-items: center; }
.flex-h-center { display: flex; justify-content: center; align-items: center; }
.flex-v-start { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.flex-v-center { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.flex-col-gap-20 { display: flex; flex-direction: column; gap: 20px; }
.footer-social-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-copy { text-align: center; margin-top: 20px; }
.content-narrow { max-width: 800px; line-height: 1.8; }
.content-narrow-2 { max-width: 500px; }
.content-narrow-3 { max-width: 700px; margin-left: auto; margin-right: auto; }
.content-narrow-4 { max-width: 460px; margin-left: auto; margin-right: auto; }
.section-white { background: var(--bg-card); }
.gradient-light { background: linear-gradient(135deg, var(--secondary), var(--bg)); }
.gradient-dark { background: var(--primary-dark); padding: var(--space-16) 0; text-align: center; }
.newsletter-section { background: var(--primary-dark); padding: var(--space-16) 0; text-align: center; }
.newsletter-section h2 { color: #fff; margin-bottom: var(--space-3); }
.newsletter-section p { color: rgba(255, 255, 255, 0.72); margin-bottom: var(--space-8); max-width: 460px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: var(--space-3); max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-input {
  flex: 1; min-width: 220px; padding: 13px 18px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem; background: rgba(255,255,255,0.95); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,164,124,0.25); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.loading-state { grid-column: 1 / -1; text-align: center; padding: var(--space-10); color: var(--text-muted); }
.loading-state .spinner { margin: 0 auto var(--space-4); }
.text-white { color: #fff; }
.text-white-65 { color: rgba(255, 255, 255, 0.65); }
.text-white-muted { font-size: 0.78rem; color: var(--text-light); }
.step-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--primary); color: #fff; flex-shrink: 0; }
.step-circle-inactive { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.step-line { width: 40px; height: 1px; background: rgba(255, 255, 255, 0.3); margin: 0 10px; }
.form-input-full { width: 100%; }
.form-grid-inline { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.form-input-inline { flex: 1; min-width: 220px; padding: 12px 16px; border-radius: var(--radius-sm); border: none; font-size: 0.9rem; }
.btn-ghost-white { background: transparent; color: var(--primary); border: 1.5px solid var(--border-strong); }
.btn-ghost-white:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.payment-badge-mtn { background: #FFF5E6; color: #F59E0B; border: 1px solid #FED7AA; }
.payment-badge-orange { background: #FFF0F0; color: #EF4444; border: 1px solid #FECACA; }
.payment-badge-visa { background: #EFF6FF; color: #3B82F6; border: 1px solid #BFDBFE; }
.payment-badge-mastercard { background: #FEF3C7; color: #D97706; border: 1px solid #FCD34D; }
.border-bottom-light { border-bottom: 1px solid var(--border); }
.border-top-light { border-top: 1px solid var(--border); }
.page-section { padding: 60px 0; }
.page-section-large { padding: 100px 0; }
.section-header-centered { display: flex; align-items: flex-end; justify-content: space-between; }
.input-search { width: 180px; padding: 7px 12px; font-size: 0.85rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb a { color: var(--primary); }
.info-box { padding: 20px; background: rgba(139, 90, 107, 0.06); border-radius: var(--radius-md); border: 1px solid rgba(139, 90, 107, 0.12); text-align: left; }
.info-box h3 { font-size: 0.95rem; margin-bottom: 12px; }
.info-box-step { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; margin-bottom: 16px; }
.qty-input-inline { width: 44px; height: 34px; }
.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: linear-gradient(135deg, var(--secondary), var(--bg)); }

/* ── Button loading state ───────────────────────────────────── */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}
.btn.is-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

/* ── Step list (how-to-order, etc.) ─────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: var(--space-10); }
.step-item { display: flex; gap: var(--space-5); align-items: flex-start; }
.step-item h3 { margin-bottom: var(--space-2); color: var(--text); }
.step-item p { margin: 0; }
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes iconTilt {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg) scale(1.1); }
  100% { transform: rotate(0deg); }
}
@keyframes pulse-subtle {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 90, 107, 0.28);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(196, 164, 124, 0.35);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 164, 124, 0.4);
}

.btn-accent:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-sm { 
  padding: 8px 18px; 
  font-size: 0.82rem; 
}

.btn-lg { 
  padding: 15px 36px; 
  font-size: 1rem; 
}

.btn-full { 
  width: 100%; 
}

.btn-icon { 
  padding: 10px; 
  border-radius: 50%; 
}

.btn-icon:hover svg { 
  animation: iconTilt 0.3s var(--transition-bounce) forwards; 
}

.btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 252, 250, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
#navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 252, 250, 0.96);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-5);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); flex-wrap: nowrap; min-width: 0;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--text); display: flex; align-items: center; gap: var(--space-2);
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.nav-logo .logo-icon img {
  display: block;
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.875rem; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(139, 90, 107, 0.06);
}
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-actions {
  display: flex; align-items: center; gap: 8px; /* padding-right handled by nav-inner for desktop */
}
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 8px 16px; transition: all var(--transition);
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1); }
.nav-search input { background: none; border: none; outline: none; font-size: 0.88rem; width: 160px; }
.nav-search svg { color: var(--text-muted); flex-shrink: 0; }
.nav-search:hover svg { color: var(--primary); }
.social-link:hover svg { animation: iconTilt 0.3s var(--transition-bounce) forwards; }

.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border);
  transition: all var(--transition); flex-shrink: 0;
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff; font-size: 0.65rem;
  font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transition: transform var(--transition-bounce);
}
.cart-btn:hover .cart-badge { transform: scale(1.2) translateY(-2px); }

.currency-toggle {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 6px 12px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); color: var(--text); flex-shrink: 0; white-space: nowrap;
}
.currency-toggle:hover { border-color: var(--primary); color: var(--primary); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); transition: background var(--transition); flex-shrink: 0;
}
.hamburger:hover { background: var(--bg); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* Mobile nav */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: auto; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 20px; z-index: 999; flex-direction: column; gap: 0; width: 280px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 500; transition: background var(--transition);
  color: var(--text); display: block; width: 100%;
}
.mobile-menu a:hover { background: rgba(139, 90, 107, 0.06); color: var(--primary); }

/* New mobile search styling */
.mobile-menu .mobile-search {
  display: flex; /* Show search in mobile menu */
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  margin-bottom: 16px; /* Space below search bar */
  width: 100%; /* Full width in mobile menu */
}
.mobile-menu .mobile-search input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 0.88rem;
}
.mobile-menu .mobile-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Mobile Navbar Fixes ─────────────────────────────────────── */
@media (max-width: 1023px) {
  #navbar {
    overflow: visible; /* Allow mobile-menu to show outside navbar bounds */
  }
  .nav-inner {
    padding: 0 12px;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
  }
  .nav-logo {
    flex-shrink: 1;
    min-width: 0;
    font-size: 1.3rem;
  }
  .nav-logo .logo-icon {
    width: 36px;
    height: 34px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .currency-toggle {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .cart-btn {
    width: 36px;
    height: 36px;
  }
  .hamburger {
    margin-left: 4px;
    flex-shrink: 0;
  }
}


/* Prevent horizontal scroll on all screen sizes */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.container {
  overflow-x: hidden;
}

/* Courses grid styles moved from services.html */
.courses-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:20px;margin-top:18px}
@media(min-width:700px){.courses-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.courses-grid{grid-template-columns:repeat(3,1fr)}}
.course-card{background:var(--bg-card);border-radius:10px;padding:18px;box-shadow:0 6px 20px rgba(10,10,10,0.06);display:flex;flex-direction:column;gap:12px}
.course-img{width:100%;height:180px;object-fit:cover;border-radius:8px;border:1px solid var(--border);}
.course-card h3{margin:0;font-size:1.15rem}
.course-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}
.course-list{margin:0;padding-left:1.1rem}
.btn-register{display:inline-block;background:#25D366;color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700}
.muted{color:var(--text-muted);}
.course-cta{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:12px}
.price-badge{background:#111;color:#fff;padding:8px 12px;border-radius:8px;font-weight:700}
.currency-select{border:1px solid var(--border);padding:6px 8px;border-radius:6px;background:#fff}

.hero-inner, .section-header, .hero-actions, .products-grid, .categories-grid, .testimonials-grid, .trust-inner, .footer-inner {
  max-width: 100%;
}
.hero-visual, .hero-content, .hero-phone-mock {
  width: 100%;
  max-width: 100%;
}
.hero-phone-mock {
  max-width: 420px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.nav-actions {
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto; /* Push actions (including hamburger) to the far right */
}
.nav-search { min-width: 0; flex: 1 1 240px; } /* Desktop search bar */
.nav-search input { width: 100%; }
.product-card, .category-card, .testimonial-card, .trust-item, .footer-inner > * {
  width: 100%;
}
input, button, select, textarea { max-width: 100%; }


/* ── Global responsive grid helpers ───────────────────────────── */
.categories-grid,
.products-grid,
.testimonials-grid,
.trust-inner,
.footer-inner {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.product-card,
.category-card,
.testimonial-card,
.info-box,
.cart-item-card,
.checkout-summary,
.cart-summary,
.supplier-card {
  width: 100%;
}

.supplier-actions .btn {
  width: 100%;
}

/* ── Page wrapper ────────────────────────────────────────────── */
main { padding-top: var(--nav-h); min-height: 80vh; }

/* ── Suppliers Page Styles ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.supplier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.supplier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.supplier-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.supplier-card h3 {
  margin: 0;
  font-size: 1rem;
}

.supplier-tag {
  background: rgba(155,139,133,0.12);
  color: var(--primary);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.73rem;
  text-transform: capitalize;
  font-weight: 600;
}

.supplier-country {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.supplier-desc {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 10px;
}

.supplier-locked {
  color: #b91c1c;
  font-weight: 700;
  margin: 10px 0;
}

.supplier-contact {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 8px;
  color: #166534;
  font-weight: 600;
  padding: 8px;
  margin-bottom: 10px;
}

.supplier-actions { display: flex; justify-content: flex-end; }

.btn.disabled, .btn[disabled], .btn.btn-outline.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.modal-overlay { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 999; }
.modal-box { background: #fff; border-radius: var(--radius-md); width: min(92vw, 540px); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); border:1px solid var(--border); }
.modal-body { padding: 20px; }

/* ── Modal Image Upload ─────────────────────────────────────── */
.image-upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}
.image-upload-area:hover {
  border-color: var(--primary);
  background: rgba(153,0,0,0.03);
}
.image-upload-area .upload-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.image-upload-area p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.image-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.preview-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  padding: 0;
}
.preview-remove:hover {
  background: #EF4444;
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-error.full {
  grid-column: 1 / -1;
}

/* ── Modal Header ──────────────────────────────────────────── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 1.05rem;
  margin: 0;
}
.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.modal-close-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.modal-box .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}
.modal-box .form-group.full {
  grid-column: 1 / -1;
}
.modal-box .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.modal-box .form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  background: #fff;
  transition: border-color var(--transition);
  color: var(--text);
}
.modal-box .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1);
}
.modal-box textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 55%, var(--bg) 100%);
  padding: var(--space-20) 0 var(--space-16);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(196, 164, 124, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(139, 90, 107, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(196, 164, 124, 0.14);
  border: 1px solid rgba(196, 164, 124, 0.35);
  color: var(--accent-dark);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero h1 { color: var(--text); margin-bottom: var(--space-4); }
.hero h1 span { color: var(--accent); font-style: italic; }

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.hero-stat { color: var(--text-muted); }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.hero-stat span { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }

.hero-phone-mock {
  width: 280px;
  height: 440px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(196, 164, 124, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-smooth);
}

.hero-visual:hover .hero-phone-mock { transform: translateY(-4px); }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.hero-float-card {
  position: absolute; 
  background: #FFFFFF; 
  border-radius: var(--radius-md);
  padding: 12px 16px; 
  box-shadow: 0 12px 32px rgba(138, 115, 110, 0.15), 0 6px 12px rgba(138, 115, 110, 0.1);
  display: flex; 
  align-items: center; 
  gap: 10px;
  transition: transform var(--transition-bounce);
}

.hero-float-card:hover { 
  transform: scale(1.05) translateY(-5px); 
}

.hero-float-card.card-1 { 
  top: 20px; 
  right: -30px; 
}

.hero-float-card.card-2 { 
  bottom: 40px; 
  left: -40px; 
}

.hero-float-card .card-icon { 
  font-size: 1.5rem; 
}

.hero-float-card .card-text strong { 
  display: block; 
  font-size: 0.82rem; 
  font-weight: 700; 
  color: #3D3333; 
}

.hero-float-card .card-text span { 
  font-size: 0.72rem; 
  color: #A89E9A; 
}

/* ── Section styles ──────────────────────────────────────────── */
.section { padding: var(--space-16) 0; }
.section-header { margin-bottom: var(--space-10); }
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-3);
}
.section-header h2 { margin-bottom: var(--space-3); color: var(--text); }
.section-header p { color: var(--text-muted); max-width: 520px; }

/* ── Service Packages ─────────────────────────────────────── */
.section-services { background: var(--bg); padding: var(--space-20) 0; }
.section-services .section-header {
  margin-bottom: 32px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.service-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}
.service-card-description {
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.75;
  font-size: 0.95rem;
}
.service-notice {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: rgba(155, 139, 133, 0.08);
  border: 1px solid rgba(155, 139, 133, 0.18);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(212, 165, 116, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.service-card-subtitle {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-card-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.9rem 1rem;
  background: rgba(155, 139, 133, 0.1);
  border: 1px solid rgba(155, 139, 133, 0.2);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  letter-spacing: normal;
}
.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.service-card-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.95rem;
}
.service-card-list li::before {
  content: '✔';
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 2px;
}
.service-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.service-card-actions .btn {
  flex: 1;
}

/* ── Trust Badges ────────────────────────────────────────────── */
.trust-bar {
  background: var(--footer-bg);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.9);
}
.trust-icon { font-size: 1.3rem; }
.trust-item strong { display: block; font-size: 0.85rem; font-weight: 600; }
.trust-item span { font-size: 0.75rem; opacity: 0.7; }

/* ── Product Cards ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.product-card-img {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--bg);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img .placeholder-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: linear-gradient(135deg, var(--secondary), var(--bg));
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-sale { background: #C45C5C; color: #fff; }
.badge-new { background: var(--primary); color: #fff; }
.badge-hot { background: var(--accent); color: #fff; }
.product-wishlist {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); font-size: 0.9rem; transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
}
.product-card:hover .product-wishlist { opacity: 1; transform: translateY(0); }
.product-wishlist:hover { background: #FEF2F2; color: #EF4444; }
.product-card-body { padding: 16px; }
.product-category { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-name {
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  margin-bottom: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 14px;
}
.product-price-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.price-current { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.price-original { font-size: 0.85rem; color: #6b4c3a; text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 600; line-height: 1.2; }
.price-discount { font-size: 0.78rem; font-weight: 600; color: var(--primary-dark); background: rgba(196,164,124,0.18); border: 1px solid rgba(196,164,124,0.35); padding: 2px 8px; border-radius: 999px; }
.product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.product-card-actions .btn {
  min-width: 0;
  width: 100%;
  padding: 8px 6px;
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: normal;
  flex-wrap: wrap;
  text-align: center;
  letter-spacing: 0;
}
.product-card-actions .add-to-cart-btn {
  gap: 4px;
}

/* Staggering Entrance for Grid Items */
.reveal.active .products-grid > .product-card {
  animation: fadeInUp 0.6s var(--transition-smooth) both;
}
.reveal.active .products-grid > .product-card:nth-child(1) { animation-delay: 0.05s; }
.reveal.active .products-grid > .product-card:nth-child(2) { animation-delay: 0.1s; }
.reveal.active .products-grid > .product-card:nth-child(3) { animation-delay: 0.15s; }
.reveal.active .products-grid > .product-card:nth-child(4) { animation-delay: 0.2s; }
.reveal.active .products-grid > .product-card:nth-child(5) { animation-delay: 0.25s; }
.reveal.active .products-grid > .product-card:nth-child(6) { animation-delay: 0.3s; }

/* ── Skeleton Loader ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--secondary) 25%, var(--border) 50%, var(--secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.skeleton-img { aspect-ratio: 1; }
.skeleton-body { padding: 16px; }
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }

/* ── Categories Section ──────────────────────────────────────── */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.category-card {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 28px 20px;
  text-align: center; border: 1px solid var(--border); cursor: pointer;
  transition: all var(--transition); text-decoration: none; color: var(--text);
}
.category-card:hover {
  border-color: var(--accent);
  background: rgba(196, 164, 124, 0.08);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card .cat-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.category-card .cat-icon { font-size: 2rem; margin-bottom: 12px; transition: transform var(--transition); }
.category-card:hover .cat-icon { transform: scale(1.08); }
.category-card .cat-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--accent); font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.testimonial-author strong { display: block; font-size: 0.88rem; font-weight: 600; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-16) 0 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; opacity: 0.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: #fff;
}
.social-link svg,
.whatsapp-btn svg {
  display: block;
}
.social-link svg { width: 22px; height: 22px; }
.social-link:hover { background: var(--primary); transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

/* Social Media Brand Hover States */
.social-link[href*="tiktok"]:hover { background: #010101; }
.social-link[href*="wa.me"]:hover { background: #25D366; }
.social-link[href*="instagram"]:hover { background: #E4405F; }
.social-link[href*="twitter"]:hover { background: #1DA1F2; }
.social-link[href*="mailto"]:hover { background: #EA4335; }

.footer-col h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.85rem; opacity: 0.7; transition: opacity var(--transition); }
.footer-col ul a:hover { opacity: 1; color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px; margin-top: 48px;
  max-width: var(--max-w); margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; opacity: 0.5; }
.payment-badges { display: flex; gap: 8px; }
.payment-badge {
  background: rgba(255,255,255,0.1); border-radius: 4px; padding: 4px 10px;
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.7);
}

/* ── Floating Social Buttons ────────────────────────────────── */
.whatsapp-btn, .tiktok-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all var(--transition);
  animation: pulse-float 2s infinite;
}

.whatsapp-btn {
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.tiktok-btn {
  bottom: 90px; /* Positioned above WhatsApp */
  background: #000000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.tiktok-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.5); }

.whatsapp-btn svg, .tiktok-btn svg {
  width: 28px;
  height: 28px;
}

@keyframes pulse-float {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ── Toast Notification ──────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 90px; right: 24px; z-index: 6000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--text); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid #22C55E; }
.toast.error { border-left: 3px solid #EF4444; }
.toast.info { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Live Sales Popup ───────────────────────────────────────── */
.sales-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1050;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.sales-popup.show { transform: translateY(0); }
.sales-popup-icon {
  width: 40px; height: 40px; background: rgba(155,139,133,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.sales-popup-content { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.sales-popup-content strong { display: block; color: var(--text); font-weight: 600; }
.sales-popup-time { display: block; font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }

/* ── Filters (Products Page) ─────────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--hero-bg-start), var(--bg));
  padding: var(--space-12) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { color: var(--text); margin-bottom: var(--space-2); }
.page-header p { color: var(--text-muted); font-size: 0.95rem; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 40px 0; }
.filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filters-toggle:hover { border-color: var(--primary); color: var(--primary); }
.filter-mobile-header { display: none; }

.filters-panel {
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 24px; height: fit-content;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.filter-group { margin-bottom: 28px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; color: var(--text); }
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.filter-option input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-option label { font-size: 0.88rem; cursor: pointer; }
.price-slider { width: 100%; accent-color: var(--primary); }
.price-display { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.shop-count { font-size: 0.88rem; color: var(--text-muted); }
.sort-select {
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 0.88rem; background: var(--bg-card); cursor: pointer; outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--primary); }

/* ── Product Detail Page ─────────────────────────────────────── */
.product-detail { padding: 40px 0; }
.product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.main-image {
  aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 12px;
  background: var(--bg);
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.main-image .placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; background: linear-gradient(135deg, #f5f5f5, #ebebeb); }
.thumb-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: var(--radius-sm);
  overflow: hidden; border: 2px solid transparent; cursor: pointer;
  transition: border-color var(--transition); background: var(--bg);
}
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-detail-category { display: flex; align-items: center; gap: 8px; }
.product-detail-category a { font-size: 0.82rem; color: var(--text-muted); }
.product-detail-category span { color: var(--text-light); font-size: 0.78rem; }
.product-detail-name { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.product-detail-price { display: flex; align-items: baseline; gap: 12px; }
.product-detail-price .price-main { font-family: var(--font-body); font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.product-detail-price .price-old { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }
.product-detail-price .price-save { background: #FEF2F2; color: #EF4444; padding: 4px 10px; border-radius: 12px; font-size: 0.82rem; font-weight: 700; }
.stock-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.stock-dot.low { background: #F59E0B; }
.product-detail-desc { font-size: 0.93rem; color: var(--text-muted); line-height: 1.8; }
.quantity-selector { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 38px; height: 38px; border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: all var(--transition);
}
.qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input {
  width: 54px; height: 38px; border: 1px solid var(--border); border-left: 0; border-right: 0;
  text-align: center; font-size: 0.95rem; font-weight: 600; background: var(--bg-card);
}
.qty-input:focus { outline: none; }
.detail-actions { display: flex; gap: 12px; }
.product-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.meta-row { display: flex; gap: 8px; font-size: 0.85rem; }
.meta-label { color: var(--text-muted); min-width: 90px; }
.meta-val { font-weight: 500; }
.trust-mini { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.trust-mini-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }

/* ── Cart Page ───────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 40px 0; }
.cart-items-panel { display: flex; flex-direction: column; gap: 16px; }
.cart-item-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 20px;
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center;
}
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img .placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: #f5f5f5; }
.cart-item-name { font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.cart-item-cat { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.cart-item-price-qty { display: flex; align-items: center; gap: 16px; }
.cart-summary {
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 24px; height: fit-content;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 20px; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; margin-bottom: 12px;
}
.summary-row.total { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; padding-top: 14px; border-top: 1px solid var(--border); }
.cart-empty-state { text-align: center; padding: 80px 20px; }
.cart-empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cart-empty-state h3 { margin-bottom: 8px; }
.cart-empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 40px 0; }
.checkout-form-panel { display: flex; flex-direction: column; gap: 24px; }
.form-section { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 24px; }
.form-section h3 { margin-bottom: 20px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  background: var(--bg-card);
  color: var(--text);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 90, 107, 0.1); background: #fff; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all var(--transition);
}
.payment-option:hover, .payment-option.selected { border-color: var(--primary); background: rgba(155,139,133,0.06); }
.payment-option input[type=radio] { accent-color: var(--primary); }
.payment-icon { font-size: 1.4rem; }
.payment-info strong { display: block; font-size: 0.9rem; font-weight: 600; }
.payment-info span { font-size: 0.78rem; color: var(--text-muted); }
.payment-instructions {
  background: rgba(155,139,133,0.06); border: 1px solid rgba(155,139,133,0.2);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 10px;
  font-size: 0.85rem; display: none;
}
.payment-instructions.show { display: block; }
.checkout-summary { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 24px; height: fit-content; position: sticky; top: calc(var(--nav-h) + 16px); width: 100%; max-width: 100%; min-width: 0; }
  .checkout-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; min-width: 0; }
  .checkout-item { display: flex; gap: 12px; align-items: center; min-width: 0; }
  .checkout-item-img { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); flex-shrink: 0; }
  .checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
  .checkout-item-name { font-size: 0.85rem; font-weight: 600; }
  .checkout-item-price { font-size: 0.88rem; color: var(--primary); font-weight: 600; }
  .checkout-layout { min-width: 0; }
  .checkout-form-panel, .form-section, .form-grid { min-width: 0; }

/* ── Order Confirmation ──────────────────────────────────────── */
.confirmation-page { text-align: center; padding: 80px 20px; max-width: 600px; margin: 0 auto; }
.confirmation-icon { font-size: 5rem; margin-bottom: 20px; }
.confirmation-page h1 { color: var(--primary); margin-bottom: 12px; }
.confirmation-page p { color: var(--text-muted); margin-bottom: 32px; }
.order-details-box { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 24px; text-align: left; }
.order-ref { font-family: var(--font-body); font-size: 1.3rem; font-weight: 800; color: var(--primary); }

/* ── Admin Panel ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-dark); padding: 0; }
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; }
.admin-nav { padding: 12px 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav a svg { flex-shrink: 0; }
.admin-main { background: #F4F6F8; overflow-y: auto; }
.admin-header {
  background: #fff; padding: 16px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-header h2 { font-size: 1.15rem; }
.admin-content { padding: 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-card .stat-val { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.admin-table-wrap { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.admin-table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: #F9FAFB; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #F9FAFB; }
.table-img { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.table-img img { width: 100%; height: 100%; object-fit: cover; }
.table-actions { display: flex; gap: 6px; }
.btn-edit { padding: 6px 12px; background: rgba(155,139,133,0.12); color: var(--primary); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; transition: all var(--transition); }
.btn-edit:hover { background: var(--primary); color: #fff; }
.btn-delete { padding: 6px 12px; background: #FEF2F2; color: #EF4444; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; transition: all var(--transition); }
.btn-delete:hover { background: #EF4444; color: #fff; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto; padding: 28px;
  transform: scale(0.96); transition: transform var(--transition);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-close-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: background var(--transition); }
.modal-close-btn:hover { background: #FEF2F2; color: #EF4444; }
.image-upload-area {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-md);
  padding: 32px; text-align: center; cursor: pointer; transition: all var(--transition);
}
.image-upload-area:hover, .image-upload-area.dragover { border-color: var(--primary); background: rgba(27,107,58,0.04); }
.image-upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.image-upload-area p { font-size: 0.88rem; color: var(--text-muted); }
.image-upload-area p strong { color: var(--primary); }
.image-preview-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.preview-thumb { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb .remove-img { position: absolute; top: 2px; right: 2px; background: #EF4444; color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; cursor: pointer; }

/* Login Page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--hero-bg-start), var(--bg)); }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.login-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.login-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-error { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem; color: #B91C1C; display: none; }
.login-error.show { display: block; }
.form-error { 
  display: none; color: #fff; background: #ef4444; 
  padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; 
  font-size: 0.95rem; font-weight: 500; position: relative; z-index: 1000; word-break: break-word;
}
.form-error.show { display: block; }

/* ── Loading Spinner ─────────────────────────────────────────── */
.spinner-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 2500; display: flex; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────────── */

/* Base Mobile Hide Rules */
.nav-links, .nav-search { display: none; }
.hamburger { display: flex; }

/* Consolidated Media Queries */
@media (min-width: 1024px) {
  .btn { width: auto; }
  .hamburger { display: none; }
  
  /* Navbar Visibility */
  .nav-links {
    display: flex;
    gap: 8px;
  }
  .nav-search {
    display: flex;
    flex: 0 1 240px;
  }
  .nav-inner { /* Desktop styles */
    flex-wrap: nowrap; /* No wrap on desktop */
    gap: 20px; /* Desktop gap */
  }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
  .products-grid, .testimonials-grid, .trust-inner, .footer-inner { 
    grid-template-columns: repeat(4, 1fr); 
  }
  .shop-layout { grid-template-columns: 260px 1fr; }
  .product-detail-inner { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 360px; }
  .admin-layout { grid-template-columns: 240px 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-10); }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: var(--space-6); }
  .hero-float-card { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .cart-item-card { grid-template-columns: 1fr; text-align: center; }
  .cart-item-price-qty { flex-direction: column; }
  .shop-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; top: auto; }
  .filters-toggle { display: inline-flex; }
  .filter-mobile-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .close-filters {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
  }
  .filters-panel { 
    position: fixed; 
    top: 0; 
    left: -100%; 
    width: min(300px, 85vw); 
    height: 100%; 
    z-index: 1100; 
    border-radius: 0; 
    transition: left var(--transition);
    overflow-y: auto;
    margin: 0;
  }
  .filters-panel.active { left: 0; }
}

/* Navigation overlay */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s; }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ── PWA Styles ────────────────────────────────────────────────── */

/* Install Banner */
.pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  padding: 16px 20px;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
  width: 90%;
}

.pwa-banner.show {
  transform: translateX(-50%) translateY(0);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 90, 107, 0.1);
}

.pwa-banner-icon img {
  width: 92%;
  height: 92%;
  display: block;
  object-fit: contain;
  margin: auto;
}

.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-banner-text strong {
  font-size: 0.95rem;
  color: var(--text);
}

.pwa-banner-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.pwa-banner-actions .btn {
  flex: 1;
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Network Status */
.network-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #FEF2F2;
  border-bottom: 1px solid #FECACA;
  padding: 8px 16px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 3000;
  font-size: 0.85rem;
  color: #B91C1C;
}

.network-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: blink 1.5s ease-in-out infinite;
}

/* PWA Info */
.pwa-info {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* Install Button */
#installPWA {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

#installPWA:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Offline indicator in navigation */
.offline-badge {
  display: none;
  padding: 4px 12px;
  background: #FEF2F2;
  color: #B91C1C;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.offline-badge.visible {
  display: inline-flex;
  align-items: center;
}

/* PWA App Header (for standalone mode) */
@media all and (display-mode: standalone) {
  .pwa-standalone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

/* Sales popup (existing, enhanced for PWA) */
.sales-popup {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1500;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 280px;
  pointer-events: none;
}

.sales-popup.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.sales-popup-icon {
  font-size: 1.8rem;
}

.sales-popup-content {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}

.sales-popup-content strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

/* Toast container improvements */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.toast {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease forwards;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }
.toast.warning { border-left-color: #F59E0B; }
.toast.info { border-left-color: #3B82F6; }

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

/* Mobile adjustments for PWA elements */
@media (max-width: 480px) {
  .pwa-banner {
    bottom: 10px;
    padding: 12px 16px;
  }
  
  .pwa-banner-content {
    flex-wrap: wrap;
  }
  
  .pwa-banner-text {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }
  
  .pwa-banner-actions {
    width: 100%;
  }
  
  .sales-popup {
    left: 10px;
    right: 10px;
    bottom: 70px;
    max-width: none;
  }
  
  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}
