/*
   KARIBU AFRICA COSMETICS - Premium Design System
   Theme: Deep Dark Navy, Near-Black Surfaces, Natural Lime-Green & Orchid-Pink Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Brand Surfaces */
  --bg-primary: #080b1a;
  --bg-secondary: #0e1225;
  --surface-card: #151a30;
  --surface-elevated: #1c223d;
  --surface-glass: rgba(14, 18, 37, 0.86);

  /* Brand Accents */
  --accent-lime: #d4f378;
  --accent-lime-strong: #b8e95a;
  --accent-lime-grad: linear-gradient(135deg, #d9f886 0%, #b4e554 100%);
  --accent-pink: #e474c9;
  --accent-pink-grad: linear-gradient(135deg, #f08cd5 0%, #d45ab5 100%);
  --accent-gold-star: #e6b86a;

  /* Text Tokens */
  --text-primary: #f8f9fc;
  --text-secondary: #a6aec8;
  --text-on-accent: #080b1a;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(212, 243, 120, 0.4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 20px 54px rgba(0, 0, 0, 0.62);
  --glow-lime: 0 8px 24px rgba(212, 243, 120, 0.24);
  --glow-pink: 0 8px 24px rgba(228, 116, 201, 0.24);

  /* Radii & Motion */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --font-main: 'Plus Jakarta Sans', 'Poppins', sans-serif;

  /* Semantic Legacy Aliases (ensures inline styles & shared views stay cohesive) */
  --bg-nude: #080b1a;
  --primary-pink: #151a30;
  --primary-pink-rgb: 21, 26, 48;
  --accent-gold: #d4f378;
  --text-dark: #f8f9fc;
  --text-muted: #a6aec8;
  --white: #151a30;
  --card-bg: #151a30;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, input, select, textarea, button {
  font-family: var(--font);
}

html, body {
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-elevated);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lime);
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #10162f 0%, #172338 50%, #1d1531 100%);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--accent-lime);
  text-align: center;
  padding: 8px 36px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}
.announcement-bar .close-announcement {
  position: absolute;
  right: 14px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 4px;
  transition: var(--transition);
}
.announcement-bar .close-announcement:hover {
  color: var(--text-primary);
}

/* Sticky Header */
header {
  background-color: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  position: relative;
  gap: 16px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.brand-logo-img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}
.logo-title .brand-karibu {
  color: var(--accent-lime);
}
.logo-title .brand-africa {
  color: var(--accent-pink);
}
.logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Search Bar */
.search-container {
  display: none !important;
  position: absolute;
  top: calc(100% + 6px);
  right: 20px;
  width: 340px;
  background-color: var(--bg-secondary);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  margin: 0;
}
.search-container.open {
  display: block !important;
}
.search-form {
  display: flex;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  overflow: hidden;
  padding: 3px;
  transition: var(--transition);
}
.search-form:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(212, 243, 120, 0.14);
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
}
.search-input::placeholder {
  color: var(--text-secondary);
}
.search-btn {
  background: var(--accent-lime-grad);
  border: none;
  color: var(--text-on-accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-lime);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: 7px 13px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.lang-switch-btn i {
  color: var(--accent-lime);
}
.lang-switch-btn:hover {
  border-color: var(--border-accent);
  background-color: var(--surface-elevated);
  transform: translateY(-1px);
}
.header-action-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-action-btn:hover {
  color: var(--accent-lime);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}
.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-lime);
  color: var(--text-on-accent);
  font-size: 10px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* Category Navigation Bar */
.nav-bar {
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(8, 11, 26, 0.72);
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  list-style: none;
  gap: 18px;
}
.nav-link {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  padding: 5px 8px;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-lime);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent-lime);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  max-width: 1240px;
  margin: 20px auto 10px;
  padding: 0 20px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 80% 45%, rgba(212, 243, 120, 0.16), transparent 55%),
              radial-gradient(circle at 15% 80%, rgba(228, 116, 201, 0.16), transparent 50%),
              linear-gradient(135deg, #10192b 0%, #0b1022 60%, #18122b 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 340px;
}
.hero-content {
  padding: 40px 44px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 243, 120, 0.12);
  border: 1px solid rgba(212, 243, 120, 0.28);
  color: var(--accent-lime);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-subtext {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 440px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border: none;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-lime);
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 243, 120, 0.35);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero-pill-badge i {
  color: var(--accent-lime);
}
.hero-pill-badge.pink i {
  color: var(--accent-pink);
}
.hero-media {
  position: relative;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 420px;
  display: block;
  object-fit: cover;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 65%, rgba(0,0,0,0.15) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 65%, rgba(0,0,0,0.15) 100%);
}
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: rgba(8, 11, 26, 0.72);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: var(--transition);
}
.hero-slider-arrow:hover {
  background: var(--accent-lime);
  color: var(--text-on-accent);
}
.hero-slider-arrow.prev { left: 12px; }
.hero-slider-arrow.next { right: 12px; }
.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 4;
}
.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}
.hero-slider-dot.active {
  width: 22px;
  background: var(--accent-lime);
}

/* Category Filter Section */
.categories-filter {
  max-width: 1240px;
  margin: 34px auto 18px;
  padding: 0 20px;
  text-align: center;
}
.filter-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.filter-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-pink));
}
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.filter-btn {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background-color: var(--surface-elevated);
}
.filter-btn.active {
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--glow-lime);
}

/* Products Section */
.products-section {
  max-width: 1240px;
  margin: 0 auto 70px;
  padding: 0 20px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
}

/* Product Card */
.product-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.32s ease, border-color 0.32s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 243, 120, 0.35);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-pink-grad);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  opacity: 0.92;
  transition: var(--transition);
}
.card-action-btn {
  width: 34px;
  height: 34px;
  background: rgba(8, 11, 26, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  font-size: 13px;
}
.card-action-btn:hover {
  background: var(--surface-elevated);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  transform: scale(1.08);
}

.product-image-wrapper {
  position: relative;
  height: 270px;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at center, #202847 0%, #111528 100%);
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.product-image-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.product-card:hover .product-image-primary {
  opacity: 0;
}
.product-card:hover .product-image-secondary {
  opacity: 1;
  transform: scale(1.04);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--accent-pink);
  margin-bottom: 4px;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  min-height: 44px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--accent-gold-star);
}
.product-rating span {
  color: var(--text-secondary);
  font-size: 11px;
  margin-left: 5px;
}

/* Shade Selector in Card */
.shade-selector-container {
  margin-bottom: 12px;
}
.shade-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}
.shade-select {
  width: 100%;
  padding: 7px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  outline: none;
  background-color: var(--surface-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.shade-select:focus {
  border-color: var(--border-accent);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.price-container {
  display: flex;
  flex-direction: column;
}
.price-original {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-decoration: line-through;
  line-height: 1.2;
}
.price-current {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-lime);
  line-height: 1.2;
}
.price-currency {
  font-size: 11.5px;
  font-weight: 600;
  margin-left: 2px;
}

.add-to-cart-btn {
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-lime);
  font-size: 14px;
}
.add-to-cart-btn:hover {
  transform: scale(1.08);
}

/* Sliding Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(6px);
  z-index: 10100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  z-index: 10200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-close-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-close-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent-lime);
}

/* Shipping Progress Bar */
.shipping-progress-container {
  padding: 14px 20px;
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
}
.shipping-progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.shipping-progress-bar {
  height: 6px;
  background-color: var(--surface-elevated);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.shipping-progress-fill {
  height: 100%;
  background: var(--accent-lime-grad);
  width: 0;
  transition: width 0.5s ease;
}

/* Cart Items List */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.empty-cart-message {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 50px;
  font-size: 14px;
}
.cart-item {
  display: flex;
  gap: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}
.cart-item-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--surface-elevated);
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cart-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cart-item-shade {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-lime);
  margin-top: auto;
}
.cart-item-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.qty-selectors {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  overflow: hidden;
  background-color: var(--surface-elevated);
}
.qty-btn {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}
.qty-btn:hover {
  background-color: rgba(212, 243, 120, 0.14);
  color: var(--accent-lime);
}
.qty-val {
  width: 28px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-item-remove {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.cart-item-remove:hover {
  transform: scale(1.1);
}

/* Cart Footer */
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-card);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.cart-summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-lime);
  margin-top: 8px;
  margin-bottom: 18px;
  border-top: 1px dashed var(--border-medium);
  padding-top: 12px;
}
.checkout-btn {
  width: 100%;
  height: 48px;
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-lime);
}
.checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(212, 243, 120, 0.34);
}

/* Modals General */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 6, 15, 0.78);
  backdrop-filter: blur(8px);
  z-index: 10300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  width: 94%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease;
}
.modal-overlay.open .modal-container {
  transform: translateY(0);
  opacity: 1;
}
.modal-header {
  padding: 18px 22px;
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close-btn {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent-lime);
}
.modal-body {
  padding: 22px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}
.form-group.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.form-control::placeholder {
  color: rgba(166, 174, 200, 0.55);
}
.form-control:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(212, 243, 120, 0.14);
}
textarea.form-control {
  resize: vertical;
  min-height: 84px;
}
.submit-btn {
  width: 100%;
  height: 48px;
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--glow-lime);
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 243, 120, 0.32);
}

/* Order Success Notification */
.order-success-card {
  text-align: center;
  padding: 36px 26px !important;
  background: linear-gradient(145deg, #102026 0%, #151a30 100%) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  box-shadow: var(--shadow-lg) !important;
}
.success-icon {
  font-size: 56px !important;
  color: #34d399 !important;
  margin-bottom: 18px !important;
  display: inline-block !important;
}
.success-title {
  color: var(--text-primary) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}
.success-desc {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 24px !important;
  line-height: 1.6 !important;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background-color: #25d366;
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 2.2s infinite;
}
.whatsapp-widget:hover {
  transform: translateY(-4px);
  background-color: #1fb858;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top Widget */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--accent-lime);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  transform: translateY(-3px);
}

/* Footer Section */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 54px 0 24px;
  color: var(--text-primary);
}
.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}
.footer-logo-title .brand-karibu { color: var(--accent-lime); }
.footer-logo-title .brand-africa { color: var(--accent-pink); }
.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 380px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.footer-social-link:hover {
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border-color: transparent;
  transform: translateY(-2px);
}
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--accent-lime);
  padding-left: 4px;
}
.footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Product Detail Modal */
.modal-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}
.modal-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-gallery-main {
  position: relative;
  width: 100%;
  height: 360px;
  background: radial-gradient(circle at center, #202847 0%, #111528 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
  cursor: zoom-in;
}
.modal-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(8, 11, 26, 0.78);
  border: 1px solid var(--border-medium);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-primary);
  transition: var(--transition);
  z-index: 5;
}
.modal-gallery-arrow:hover {
  background: var(--accent-lime);
  color: var(--text-on-accent);
}
.modal-gallery-arrow.left { left: 12px; }
.modal-gallery-arrow.right { right: 12px; }
.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-gallery-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: var(--surface-card);
  transition: var(--transition);
}
.modal-gallery-thumb:hover,
.modal-gallery-thumb.active {
  border-color: var(--accent-lime);
}
.modal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-info-container {
  display: flex;
  flex-direction: column;
}
.modal-info-category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-pink);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.modal-info-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.modal-info-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent-gold-star);
  margin-bottom: 14px;
}
.modal-info-rating span {
  color: var(--text-secondary);
  margin-left: 6px;
}
.modal-info-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-info-price-current {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-lime);
}
.modal-info-price-original {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: line-through;
}
.modal-info-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}
.modal-info-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.modal-qty-container {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.modal-add-to-cart-btn {
  background: var(--accent-lime-grad);
  color: var(--text-on-accent);
  border: none;
  height: 48px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: var(--glow-lime);
}
.modal-add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 243, 120, 0.32);
}

/* Lightbox Overlay */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 15, 0.96);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
#lightbox-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  touch-action: none;
}
#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform-origin: center center;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#lightbox-img.zoomed { cursor: grab; }
#lightbox-img.zoomed:active { cursor: grabbing; }
#lightbox-controls {
  position: fixed;
  top: 20px;
  left: 24px;
  display: flex;
  gap: 10px;
  z-index: 100000;
}
.lightbox-btn, #lightbox-close-btn {
  background: rgba(21, 26, 48, 0.85);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
#lightbox-close-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 22px;
  z-index: 100000;
}
.lightbox-btn:hover, #lightbox-close-btn:hover {
  background: var(--accent-lime);
  color: var(--text-on-accent);
}

/* Image Preview Thumbnails in Admin */
.image-preview-thumb {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background-color: var(--surface-card);
}
.image-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-thumb .remove-preview-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: rgba(248, 113, 113, 0.9);
  color: #ffffff;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

/* Category Visual Index Cards */
.categories-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 24px auto;
  padding: 0 12px;
}
.category-index-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-index-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}
.category-index-icon {
  font-size: 24px;
  color: var(--accent-lime);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 243, 120, 0.1);
  border: 1px solid rgba(212, 243, 120, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-index-card:nth-child(even) .category-index-icon {
  color: var(--accent-pink);
  background: rgba(228, 116, 201, 0.1);
  border-color: rgba(228, 116, 201, 0.22);
}
.category-index-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Account Screen Styles */
.account-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.account-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 243, 120, 0.2), rgba(228, 116, 201, 0.2));
  border: 1px solid var(--border-medium);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}
.account-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.account-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.user-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-order-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.user-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}
.user-order-id {
  font-family: monospace;
  color: var(--text-secondary);
}
.user-order-status {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-weight: 700;
}
.user-order-status.status-pending {
  background-color: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}
.user-order-status.status-shipped {
  background-color: rgba(52, 211, 153, 0.16);
  color: #34d399;
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
  display: none;
}
.bottom-nav.hidden {
  display: none !important;
}

/* RTL Support Overrides */
html[dir="rtl"] {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}
html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] button {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .logo-container {
  text-align: right;
}
html[dir="rtl"] .hero-banner-img {
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 65%, rgba(0,0,0,0.15) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 65%, rgba(0,0,0,0.15) 100%);
}
html[dir="rtl"] .product-price-row,
html[dir="rtl"] .modal-info-price-row {
  flex-direction: row-reverse;
  justify-content: space-between;
}
html[dir="rtl"] .qty-selectors {
  flex-direction: row-reverse;
}
html[dir="rtl"] .price-original,
html[dir="rtl"] .modal-info-price-original {
  margin-left: 0;
  margin-right: 10px;
}
html[dir="rtl"] .footer-container > div,
html[dir="rtl"] .cart-summary-row {
  text-align: right;
}
html[dir="rtl"] .announcement-bar .close-announcement {
  right: auto;
  left: 14px;
}
html[dir="rtl"] .search-container {
  right: auto;
  left: 20px;
}
html[dir="rtl"] .modal-close-btn {
  margin-left: 0;
  margin-right: auto;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .hero-card {
    grid-template-columns: 1fr 0.9fr;
  }
  .hero-content {
    padding: 32px;
  }
}

/* Mobile & Small Tablet Breakpoint */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }
  .header-top {
    padding: 10px 14px;
    gap: 8px;
  }
  .brand-logo-img {
    height: 36px;
    width: 36px;
  }
  .logo-title {
    font-size: 13.5px;
    letter-spacing: 0.8px;
  }
  .logo-sub {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-bar {
    display: none;
  }
  .search-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .hero-section {
    margin: 12px auto 6px;
    padding: 0 12px;
  }
  .hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 24px 20px;
    order: 2;
  }
  .hero-media {
    min-height: 200px;
    max-height: 240px;
    order: 1;
  }
  .hero-banner-img {
    min-height: 200px;
    max-height: 240px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0.08) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0.08) 100%);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-image-wrapper {
    height: 175px;
  }
  .product-info {
    padding: 12px;
  }
  .product-name {
    font-size: 13px;
    min-height: 36px;
  }
  .price-current {
    font-size: 14.5px;
  }
  .add-to-cart-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .modal-detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .modal-gallery-main {
    height: 240px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 66px;
    background-color: var(--surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    transition: var(--transition);
    height: 100%;
  }
  .bottom-nav-item i {
    font-size: 19px;
    transition: transform 0.2s ease;
  }
  .bottom-nav-item.active {
    color: var(--accent-lime);
  }
  .bottom-nav-item.active i {
    transform: scale(1.12);
  }
  .badge-count-nav {
    position: absolute;
    top: -7px;
    right: -10px;
    background-color: var(--accent-pink);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-secondary);
  }
  .whatsapp-widget {
    width: 44px;
    height: 44px;
    font-size: 22px;
    left: 14px;
    bottom: 76px !important;
    opacity: 0.92;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 15px;
    right: 14px;
    bottom: 76px !important;
  }
  .products-section {
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 4px 12px !important;
    scrollbar-width: none;
  }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: 0 0 auto !important;
    font-size: 11.5px !important;
    padding: 7px 14px !important;
  }
  .products-section {
    padding: 0 12px;
  }
  .product-image-wrapper {
    height: 150px !important;
  }
  .lang-switch-btn {
    padding: 5px 9px !important;
    font-size: 10px !important;
  }
  .header-action-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

@keyframes badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.badge-pulse-active {
  animation: badge-pulse 0.35s ease-out;
}
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
