/* ================================================================
   css/style.css — Quality Accessories Main Stylesheet
   ================================================================
   TABLE OF CONTENTS
   1. CSS Custom Properties (Design Tokens)
   2. CSS Reset & Base
   3. Typography
   4. Layout Utilities
   5. Navigation
   6. Hero Section
   7. Stats Bar
   8. Product Cards & Grid
   9. Filter Chips
   10. Buttons
   11. Forms & Inputs
   12. Footer
   13. WhatsApp FAB
   14. Toast Notifications
   15. Modal / Lightbox
   16. Tables
   17. Badges & Tags
   18. Dashboard
   19. Admin Panel
   20. Responsive Breakpoints
   ================================================================ */

/* ── 1. CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Colours */
  --color-primary:    #1B2A4A;
  --color-accent:     #2D6BE4;
  --color-cta:        #FF6B35;
  --color-bg:         #F0F4FF;
  --color-stripe:     #DDE4F0;
  --color-whatsapp:   #25D366;
  --color-surface:    #FFFFFF;
  --color-error:      #DC2626;
  --color-success:    #16A34A;
  --color-warning:    #D97706;

  /* Text Colours */
  --text-primary:     #111827;
  --text-secondary:   #4B5563;
  --text-muted:       #9CA3AF;

  /* Typography */
  --font-heading:     'Poppins', sans-serif;
  --font-body:        'Roboto', sans-serif;
  --font-bengali:     'Noto Serif Bengali', serif;

  /* Spacing Scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Container */
  --container-max: 1400px;
}

/* ── 2. CSS Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--color-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-md);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: var(--space-md); }

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p  { margin-bottom: var(--space-md); color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Language-specific font override */
.lang-bn { font-family: var(--font-bengali); }

/* ── 4. Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--color-bg);
}

/* Responsive grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── 5. Navigation ────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-lg);
}

/* Force nav-links to true center by giving logo & actions equal width */
.navbar-logo  { flex: 1; }
.navbar-nav   { flex: 0 0 auto; }
.navbar-actions { flex: 1; justify-content: flex-end; }

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;          /* allow text truncation inside flex */
}

.navbar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.navbar-logo-text span:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.navbar-logo-text span:last-child {
  font-size: 0.65rem;
  color: #a0b4cc;
  letter-spacing: 0.04em;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;   /* prevents subtitle from blowing up desktop layout */
}

/* Nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  justify-content: center;
}

.navbar-nav a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #a0b4cc;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Navbar right controls */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.lang-toggle button {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0b4cc;
  background: none;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.lang-toggle button.active {
  background: var(--color-accent);
  color: #fff;
}

/* Login/auth buttons in nav */
.navbar-auth a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-nav-login {
  color: #a0b4cc;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  background: none;
  border: none;
}

.btn-nav-login:hover { color: #fff; }

.btn-nav-register {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  border: none;
}

.btn-nav-register:hover { background: #2358c8; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.navbar-mobile {
  flex-direction: column;
  background: #131f37;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* .open state handled by animations.css max-height transition */

.navbar-mobile a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #a0b4cc;
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}

.navbar-mobile a:hover, .navbar-mobile a.active { color: #fff; }

/* Breadcrumb */
.breadcrumb {
  background: var(--color-bg);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-stripe);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb-list a { color: var(--color-accent); }
.breadcrumb-list span { color: var(--text-muted); }

/* ── 6. Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(45,107,228,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,107,53,0.12) 0%, transparent 40%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(45,107,228,0.2);
  border: 1px solid rgba(45,107,228,0.4);
  color: #93b5f6;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--color-cta);
  position: relative;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: #a0b4cc;
  max-width: 560px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* ✏️ Homepage quick-search box (hero section) */
.hero-search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-full, 999px);
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  max-width: 480px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.12));
}
.hero-search i { color: var(--color-text-muted, #777); }
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--color-text, #1a1a1a);
  min-width: 0;
}
.hero-search .btn-sm { white-space: nowrap; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #a0b4cc;
  font-size: 0.8rem;
}

.hero-trust-item i {
  color: var(--color-whatsapp);
  font-size: 1rem;
}

/* ── 7. Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: #0f1d33;
  padding: var(--space-xl) 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  border-right: 1px solid rgba(255,255,255,0.07);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.8rem;
  color: #a0b4cc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── 8. Product Cards & Grid ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-stripe);
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card-badge.featured {
  background: var(--color-cta);
}

.product-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.product-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-stripe);
}

.product-card-meta-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card-meta-item i {
  color: var(--color-accent);
  font-size: 0.7rem;
}

.product-card-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ── 9. Filter Chips ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-chip {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--color-surface);
  border: 1.5px solid var(--color-stripe);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Category icon chips */
.filter-chip i {
  margin-right: 6px;
  font-size: 0.75rem;
}

/* Search bar */
.search-bar {
  position: relative;
  max-width: 400px;
  margin-bottom: var(--space-lg);
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 2px solid var(--color-stripe);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  background: var(--color-surface);
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45,107,228,0.12);
}

.search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ── 10. Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  letter-spacing: 0.02em;
}

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

/* Primary button */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: #2358c8; border-color: #2358c8; color: #fff; }

/* CTA button (orange) */
.btn-cta {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}
.btn-cta:hover { background: #e85520; border-color: #e85520; color: #fff; }

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* White outline (for dark backgrounds) */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* WhatsApp button */
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover { background: #1aad54; border-color: #1aad54; color: #fff; }

/* Small button variant */
.btn-sm {
  font-size: 0.8rem;
  padding: 8px 16px;
  min-height: 38px;
}

/* Full-width */
.btn-full { width: 100%; }

/* ── 11. Forms & Inputs ───────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--color-stripe);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45,107,228,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: var(--space-xs);
}

.form-error.visible { display: block; }

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Form card (login/register) */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--color-stripe);
}

/* ── 12. Footer ───────────────────────────────────────────────── */
#footer {
  background: var(--color-primary);
  color: #a0b4cc;
  padding: var(--space-2xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.8rem;
  color: #a0b4cc;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0b4cc;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover { background: var(--color-accent); color: #fff; }

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a {
  font-size: 0.85rem;
  color: #a0b4cc;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.footer-contact-item i {
  color: var(--color-accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #6b7a90;
  margin: 0;
}

/* ── 13. WhatsApp FAB ─────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.whatsapp-fab-btn {
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  animation: fabPulse 3s infinite;
}

.whatsapp-fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: #fff;
}

.whatsapp-fab-label {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
  pointer-events: none;
}

.whatsapp-fab { flex-direction: column-reverse; align-items: flex-start; }
.whatsapp-fab:hover .whatsapp-fab-label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* ── 14. Toast Notifications ──────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px;
  min-width: 280px;
  max-width: 360px;
  pointer-events: all;
  border-left: 4px solid var(--color-accent);
  animation: toastIn var(--transition) ease;
  font-size: 0.875rem;
}

.toast.success { border-left-color: var(--color-success); }
.toast.error   { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }

.toast i { font-size: 1rem; }
.toast.success i { color: var(--color-success); }
.toast.error   i { color: var(--color-error); }
.toast.warning i { color: var(--color-warning); }
.toast .toast-default i { color: var(--color-accent); }

.toast-text { flex: 1; color: var(--text-primary); }

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px;
}

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

/* ── 15. Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 200ms ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-stripe);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: var(--space-xl); }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── 16. Tables ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-stripe);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-stripe);
  transition: background var(--transition);
}

.data-table tbody tr:hover { background: var(--color-bg); }
.data-table tbody tr:nth-child(even) { background: rgba(240,244,255,0.4); }
.data-table tbody tr:nth-child(even):hover { background: var(--color-bg); }

.data-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

/* Specs table on product detail */
.specs-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 40%;
  background: var(--color-bg);
}

/* ── 17. Badges & Tags ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-blue     { background: rgba(45,107,228,0.12);  color: var(--color-accent); }
.badge-green    { background: rgba(22,163,74,0.12);   color: var(--color-success); }
.badge-orange   { background: rgba(255,107,53,0.12);  color: var(--color-cta); }
.badge-red      { background: rgba(220,38,38,0.12);   color: var(--color-error); }
.badge-yellow   { background: rgba(217,119,6,0.12);   color: var(--color-warning); }
.badge-gray     { background: var(--color-bg); color: var(--text-secondary); }

/* Order status badges */
.status-pending    { background: rgba(217,119,6,0.12);  color: var(--color-warning); }
.status-confirmed  { background: rgba(45,107,228,0.12); color: var(--color-accent); }
.status-processing { background: rgba(45,107,228,0.12); color: var(--color-accent); }
.status-shipped    { background: rgba(255,107,53,0.12); color: var(--color-cta); }
.status-delivered  { background: rgba(22,163,74,0.12);  color: var(--color-success); }
.status-cancelled  { background: rgba(220,38,38,0.12);  color: var(--color-error); }

/* ── 18. Dashboard ────────────────────────────────────────────── */
.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 68px 1fr;
}

.dashboard-sidebar {
  grid-row: 1 / -1;
  background: var(--color-primary);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 0 var(--space-lg) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-md);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-lg);
  color: #a0b4cc;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--color-accent);
}

.sidebar-nav a i { width: 18px; text-align: center; font-size: 0.9rem; }

.dashboard-main {
  background: var(--color-bg);
  padding: var(--space-2xl);
  overflow-y: auto;
}

.dashboard-welcome {
  margin-bottom: var(--space-xl);
}

/* Stat cards in dashboard */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-stripe);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-card-icon.blue   { background: rgba(45,107,228,0.1);  color: var(--color-accent); }
.stat-card-icon.orange { background: rgba(255,107,53,0.1);  color: var(--color-cta); }
.stat-card-icon.green  { background: rgba(22,163,74,0.1);   color: var(--color-success); }
.stat-card-icon.red    { background: rgba(220,38,38,0.1);   color: var(--color-error); }

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 2px;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── 19. Admin Panel ──────────────────────────────────────────── */
.admin-topbar {
  grid-column: 2;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-stripe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
}

.admin-page-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-avatar {
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-heading);
}

/* Content panel card */
.panel-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-stripe);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-stripe);
}

.panel-card-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.panel-card-body { padding: var(--space-xl); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

.pagination button {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-stripe);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination button:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination button.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-stripe);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-3xl);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--color-stripe);
  display: block;
}

/* ── 20. Responsive Breakpoints ───────────────────────────────── */

/* Tablet (768px – 1023px) */
@media (max-width: 1023px) {
  .products-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .stats-bar-inner{ grid-template-columns: repeat(2, 1fr); }
  .stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-cards     { grid-template-columns: repeat(2, 1fr); }
  .grid-4         { grid-template-columns: repeat(2, 1fr); }
  .grid-3         { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 200px 1fr; }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  :root {
    --space-xl:  24px;
    --space-2xl: 40px;
    --space-3xl: 60px;
  }

  .container { padding: 0 var(--space-md); }

  /* Navbar */
  .navbar-nav { display: none; }
  .lang-toggle, .navbar-auth { display: none; }

  /* ── Mobile navbar: hamburger LEFT, logo fills space ── */
  .navbar-inner {
    justify-content: flex-start;
    gap: 0;
  }
  .hamburger {
    display: flex;
    order: -1;               /* leftmost */
    flex: 0 0 auto;
    margin-right: var(--space-md);
  }
  .navbar-logo {
    flex: 1;                 /* logo fills remaining width */
    min-width: 0;
  }
  .navbar-logo span:last-child {
    display: none;           /* hide subtitle on small screens */
  }
  .navbar-actions {
    display: none;           /* hide lang/auth on mobile */
  }

  /* Hero */
  .hero { min-height: 70vh; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Grids */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Dashboard */
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: var(--space-lg); }

  /* FAB position adjustment */
  .whatsapp-fab { bottom: 20px; left: 16px; }

  /* Forms */
  .form-card { padding: var(--space-lg); }
}

/* Very small screens */
@media (max-width: 479px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card-actions { flex-direction: column; }
}

/* ── Hamburger Color Fix ──────────────────────────────────────── */
/* Make hamburger lines clearly visible on dark navbar background */
.hamburger span {
  background: #e8f0fe !important;   /* bright white-blue — visible on dark navbar */
}
.hamburger:hover span {
  background: #ffffff !important;
}
/* Mobile nav drawer improved colors */
.navbar-mobile {
  background: #0d1b35;
  border-top: 2px solid var(--color-accent);
}
.navbar-mobile a {
  color: #c8d8f0;
  font-size: 1rem;
  padding: 14px var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar-mobile a:hover,
.navbar-mobile a.active {
  color: #fff;
  background: rgba(45,107,228,0.15);
}

/* ── Admin Input Styles ───────────────────────────────────────── */
.admin-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-stripe);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.admin-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ── Admin Login Overlay ─────────────────────────────────────── */
#admin-login-overlay {
  position: fixed;
  inset: 0;
  background: #060f1e;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-login-box {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--color-stripe);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.admin-login-box h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
}
.admin-login-box p {
  color: #a0b4cc;
  font-size: 0.85rem;
  margin-bottom: var(--space-xl);
}
.admin-login-box label {
  display: block;
  font-size: 0.8rem;
  color: #a0b4cc;
  margin-bottom: 6px;
  font-weight: 600;
}
.admin-login-box .admin-input {
  margin-bottom: var(--space-md);
}
#admin-login-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-bottom: var(--space-md);
  min-height: 20px;
}
.admin-login-demo {
  margin-top: var(--space-lg);
  background: rgba(45,107,228,0.1);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-size: 0.78rem;
  color: #6b7a90;
  border: 1px solid rgba(45,107,228,0.2);
}
.admin-login-demo strong { color: #93b5f6; }

/* ── Beach Cards (About page) ─────────────────────────────────── */
.beach-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-stripe);
  transition: transform var(--transition), box-shadow var(--transition);
}
.beach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.beach-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.beach-card-body {
  padding: var(--space-lg);
}
.beach-card-map {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}
.beach-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.beach-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-stripe);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.beach-tab-btn.active,
.beach-tab-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.beach-detail { display: none; }
.beach-detail.active { display: block; }

/* ── Product card image improvement ─────────────────────────── */
.product-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE
   Toggled by ThemeManager in js/cart.js
   html[data-theme="dark"] overrides all CSS variables
══════════════════════════════════════════════════════════════ */
html[data-theme="dark"] {
  --color-bg:       #0f172a;
  --color-surface:  #1e293b;
  --color-border:   #334155;
  --color-stripe:   #1e293b;
  --color-text:     #f1f5f9;
  --color-text-muted: #94a3b8;
  --text-muted:     #94a3b8;
  --color-primary:  #93c5fd;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.4);
  --shadow-md:      0 4px 14px rgba(0,0,0,.5);
}

html[data-theme="dark"] body       { background: var(--color-bg); color: var(--color-text); }
html[data-theme="dark"] #navbar    { background: rgba(15,23,42,.96); border-bottom: 1px solid var(--color-border); }
html[data-theme="dark"] .product-card { background: var(--color-surface); }
html[data-theme="dark"] .hero      { background: linear-gradient(135deg,#0f172a 0%,#1e3a5f 100%); }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select     { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
html[data-theme="dark"] .btn-outline { border-color: var(--color-border); color: var(--color-text); }
html[data-theme="dark"] footer     { background: #060d1a; }

/* ── Theme toggle button ─────────────────────────────────────── */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text, #1a1a1a);
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle-btn:hover { background: var(--color-stripe, #f1f5f9); }

/* ══════════════════════════════════════════════════════════════
   CART NAV BUTTON + BADGE
══════════════════════════════════════════════════════════════ */
.cart-nav-btn {
  position: relative;
  background: none;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text, #1a1a1a);
  font-size: 0.9rem;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-cta, #e63946);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   MINI CART PANEL
══════════════════════════════════════════════════════════════ */
.mini-cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-bg, #fff);
  box-shadow: -4px 0 30px rgba(0,0,0,.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(.22,.68,0,1.2);
  border-left: 1px solid var(--color-border, #e2e8f0);
}
.mini-cart-panel.open { right: 0; }
.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mini-cart-panel.open ~ .mini-cart-overlay,
body:has(.mini-cart-panel.open) .mini-cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════
   ORDER STATUS BADGE
══════════════════════════════════════════════════════════════ */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-pending    { background: rgba(251,191,36,.15); color: #d97706; }
.status-confirmed  { background: rgba(59,130,246,.15); color: #2563eb; }
.status-processing { background: rgba(139,92,246,.15); color: #7c3aed; }
.status-shipped    { background: rgba(20,184,166,.15); color: #0f766e; }
.status-delivered  { background: rgba(34,197,94,.15);  color: #16a34a; }
.status-cancelled  { background: rgba(248,113,113,.15); color: #dc2626; }
.status-new        { background: rgba(251,191,36,.15); color: #d97706; }
.status-read       { background: rgba(59,130,246,.15); color: #2563eb; }
.status-replied    { background: rgba(34,197,94,.15);  color: #16a34a; }
.status-closed     { background: rgba(156,163,175,.15); color: #6b7280; }

/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAIL — GALLERY
══════════════════════════════════════════════════════════════ */
.detail-gallery {
  display: grid;
  gap: 8px;
}
.detail-gallery-main {
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg, #f8fafc);
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.detail-gallery-thumbs img.active,
.detail-gallery-thumbs img:hover { border-color: var(--color-cta, #e63946); }

/* ══════════════════════════════════════════════════════════════
   FEATURED PRODUCTS SECTION (homepage)
══════════════════════════════════════════════════════════════ */
#featured-products-section { background: var(--color-bg); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT GALLERY SLIDER
══════════════════════════════════════════════════════════════ */
.product-slider-wrapper {
  position: relative;
  padding: 0 50px;
}
.slider-track-outer {
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
}
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.slider-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 8px;
  box-sizing: border-box;
  cursor: pointer;
}
@media (max-width: 900px) {
  .slider-slide { flex: 0 0 50%; }
}
@media (max-width: 600px) {
  .slider-slide { flex: 0 0 100%; }
  .product-slider-wrapper { padding: 0 40px; }
}
.slider-card {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  border: 1px solid var(--color-stripe, #f1f5f9);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.slider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.1));
}
.slider-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--color-bg, #f8fafc);
}
.slider-card-body {
  padding: 14px 16px;
}
.slider-card-name {
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 4px;
  color: var(--color-text, #1a1a1a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slider-card-cat {
  font-size: .75rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-stripe, #e2e8f0);
  background: var(--color-bg, #fff);
  color: var(--color-text, #1a1a1a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: background .2s, color .2s;
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,.08));
}
.slider-btn:hover { background: var(--color-cta, #e63946); color: #fff; border-color: var(--color-cta); }
.slider-btn-prev { left: 0; }
.slider-btn-next { right: 0; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-stripe, #e2e8f0);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
  padding: 0;
}
.slider-dot.active {
  background: var(--color-cta, #e63946);
  transform: scale(1.3);
}
.slider-autoplay-btn {
  position: absolute;
  bottom: -40px;
  right: 0;
  background: none;
  border: 1px solid var(--color-stripe, #e2e8f0);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: .75rem;
  color: var(--text-muted, #64748b);
}
.slider-autoplay-btn:hover { color: var(--color-cta, #e63946); }

/* Dark mode slider */
html[data-theme="dark"] .slider-card { background: var(--color-surface); border-color: var(--color-border); }
html[data-theme="dark"] .slider-btn  { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }

/* ══════════════════════════════════════════════════════════════
   HISTORY TIMELINE
══════════════════════════════════════════════════════════════ */
.history-timeline {
  position: relative;
  padding: 0 0 var(--space-lg);
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-stripe, #e2e8f0);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  margin-bottom: var(--space-xl);
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cta, #e63946);
  border: 3px solid var(--color-bg, #fff);
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px var(--color-cta, #e63946);
  z-index: 1;
}
.timeline-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-stripe, #f1f5f9);
  border-radius: var(--radius-md, 12px);
  padding: var(--space-lg);
  max-width: 380px;
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,.06));
  transition: transform .2s, box-shadow .2s;
}
.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,.1));
}
.timeline-year {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-cta, #e63946);
  margin-bottom: 4px;
}
.timeline-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text, #1a1a1a);
}
.timeline-desc {
  font-size: .88rem;
  color: var(--text-muted, #64748b);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 700px) {
  .history-timeline::before { left: 16px; }
  .timeline-item,
  .timeline-item:nth-child(even) { justify-content: flex-start; padding-left: 48px; padding-right: 0; }
  .timeline-dot { left: 16px; }
  .timeline-card { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   MISSION / VISION / APPROACH
══════════════════════════════════════════════════════════════ */
.mission-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-stripe, #f1f5f9);
  border-radius: var(--radius-md, 12px);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,.06));
  transition: transform .2s, box-shadow .2s;
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.1));
}
.mission-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(230,57,70,.1);
  color: var(--color-cta, #e63946);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}
.mission-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  color: var(--color-text, #1a1a1a);
}
.mission-card p {
  color: var(--text-muted, #64748b);
  line-height: 1.8;
  margin: 0;
}

/* Approach cards */
.approach-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-stripe, #f1f5f9);
  border-radius: var(--radius-md, 12px);
  padding: var(--space-xl);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.1));
}
.approach-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-lg);
}
.approach-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text, #1a1a1a);
}
.approach-card p {
  color: var(--text-muted, #64748b);
  font-size: .9rem;
  line-height: 1.8;
  margin: 0;
}

html[data-theme="dark"] .mission-card,
html[data-theme="dark"] .approach-card,
html[data-theme="dark"] .timeline-card { background: var(--color-surface); border-color: var(--color-border); }
