/* ==========================================
   ORGANIC SHOP - MAIN CSS
   Google Fonts: Hind Siliguri (Bangla)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2d8a4e;
  --primary-dark: #1e6035;
  --primary-light: #4aad69;
  --secondary: #f97316;
  --secondary-dark: #ea6c0a;
  --accent: #fbbf24;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #1a2e1a;
  --gray-100: #f8fdf9;
  --gray-200: #e8f5eb;
  --gray-300: #d1e8d5;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --font: 'Hind Siliguri', sans-serif;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(45,138,78,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,138,78,0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #fb923c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(249,115,22,0.35);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { transform: translateY(-2px); color: white; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #f87171);
  color: white;
}

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; display: flex; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ==========================================
   HEADER
   ========================================== */

.top-bar {
  background: linear-gradient(90deg, var(--dark) 0%, #2d4a2d 100%);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 7px 0;
}

.top-bar a { color: var(--accent); }

.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo img { height: 52px; width: auto; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-sub { font-size: 12px; color: var(--gray-500); font-weight: 400; }

.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 11px 50px 11px 18px;
  border: 2px solid var(--gray-300);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--gray-100);
  transition: var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.header-search .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 16px;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 999;
  max-height: 360px;
  overflow-y: auto;
}

.search-dropdown.show { display: block; }
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.search-item:hover { background: var(--gray-100); }
.search-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.search-item-name { font-weight: 500; font-size: 14px; }
.search-item-price { color: var(--primary); font-weight: 600; font-size: 13px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-size: 22px;
  color: var(--gray-700);
  transition: var(--transition);
  text-decoration: none;
}
.header-icon-btn:hover { color: var(--primary); }
.header-icon-btn span { font-size: 11px; font-weight: 600; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* NAV */
.main-nav {
  background: var(--primary);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-inner a {
  color: rgba(255,255,255,0.9);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  display: block;
  transition: var(--transition);
}
.nav-inner a:hover, .nav-inner a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-dropdown { position: relative; }
.nav-dropdown > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: none;
  z-index: 100;
  padding: 8px 0;
}
.nav-dropdown:hover > ul { display: block; }
.nav-dropdown > ul a {
  color: var(--gray-700) !important;
  padding: 9px 18px;
}
.nav-dropdown > ul a:hover { background: var(--gray-100); color: var(--primary) !important; }

/* MOBILE NAV TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--gray-700);
}

/* ==========================================
   HERO SLIDER
   ========================================== */

.hero-slider { position: relative; overflow: hidden; background: var(--dark); min-height: 400px; }
.hero-slide {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  display: none;
}

/* Mobile slider - rounded, side margins, no overlay */
@media (max-width: 768px) {
  .hero-slider {
    padding: 0;
    margin: 8px 16px 0;
    background: transparent;
    min-height: 0 !important;
    aspect-ratio: 16/7;
    border-radius: 16px;
    overflow: hidden;
  }
  .hero-slide {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    background-position: center center !important;
    background-size: cover !important;
    min-height: 0 !important;
    height: 100% !important;
  }
  .hero-slide::before { display: none !important; }
  .hero-content { display: none !important; }
  .hero-content.show-mobile {
    display: flex !important;
    flex-direction: column;
    padding: 16px;
  }
  .hero-content.show-mobile .hero-title { font-size: 20px; }
  .hero-content.show-mobile .hero-actions .btn { font-size: 13px; padding: 10px 18px; }
  .slider-arrow { display: none !important; }
  .slider-nav { bottom: 10px !important; z-index: 10 !important; }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.35);
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: badgeShine 3s infinite;
}
@keyframes badgeShine {
  0%   { left: -100%; }
  50%, 100% { left: 150%; }
}
.hero-badge::after {
  content: '✦';
  font-size: 8px;
  opacity: 0.7;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: white;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  animation: heroTitleIn .6s ease both;
}
@keyframes heroTitleIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-title span {
  background: linear-gradient(135deg,#fef08a 0%,#fbbf24 50%,#fef08a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 3s linear infinite;
}
@keyframes goldShine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 480px;
  font-weight: 400;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
  animation: heroTitleIn .8s .1s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroTitleIn .8s .2s ease both;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active { background: white; width: 28px; border-radius: 5px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover { background: var(--primary); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ==========================================
   SECTION STYLES
   ========================================== */

.section { padding: 56px 0; }
.section-alt { background: var(--gray-100); }

.section-header { text-align: center; margin-bottom: 36px; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-title { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.section-title span { color: var(--primary); }
.section-sub { color: var(--gray-500); font-size: 15px; max-width: 480px; margin: 0 auto; }

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

/* CONTAINER */
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ==========================================
   CATEGORY GRID
   ========================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: white;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-700);
}
.category-card:hover, .category-card.active {
  border-color: var(--primary);
  background: var(--gray-100);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.category-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.category-name { font-size: 13px; font-weight: 600; }

/* ==========================================
   PRODUCT GRID
   ========================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}
.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--info); color: white; }
.badge-organic { background: var(--primary); color: white; }
.badge-hot { background: var(--secondary); color: white; }

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  z-index: 1;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.product-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: white; }

/* QUICK ADD BTN */
.quick-add-btn {
  touch-action: manipulation;
  position: relative;
  z-index: 2;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 11px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(100%);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.product-card:hover .quick-add-btn { transform: translateY(0); }

.product-body { padding: 14px; }
.product-category { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { color: inherit; }

.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.price-current { font-size: 17px; font-weight: 700; color: var(--primary); }
.price-old { font-size: 13px; color: var(--gray-500); text-decoration: line-through; }
.price-unit { font-size: 12px; color: var(--gray-500); }

.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.stars { color: var(--accent); font-size: 13px; }
.rating-count { font-size: 12px; color: var(--gray-500); }

.product-footer {
  padding: 0 14px 14px;
  display: flex;
  gap: 8px;
}

.product-footer .btn { flex: 1; font-size: 13px; padding: 9px 12px; border-radius: 8px; touch-action: manipulation; position: relative; z-index: 2; }

.stock-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.in-stock { background: #dcfce7; color: #16a34a; }
.out-of-stock { background: #fee2e2; color: #dc2626; }

/* ==========================================
   CART SIDEBAR (RIGHT SLIDE)
   ========================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  display: none;
  backdrop-filter: blur(3px);
}
.cart-overlay.show { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 400px;
  height: 100%;
  background: white;
  z-index: 1051;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.cart-sidebar.open { right: 0; }
@media (max-width: 768px) {
  .cart-sidebar {
    width: 80vw !important;
    max-width: 80vw !important;
    right: -80vw !important;
  }
  .cart-sidebar.open { right: 0 !important; }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 2px solid var(--gray-200);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}
.cart-header h3 { font-size: 17px; font-weight: 700; }

.cart-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 14px; }
.cart-item-line-total { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.cart-item-line-total strong { color: var(--dark); }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.qty-btn:hover { background: var(--primary); color: white; }
.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  background: white;
  padding: 0;
}
.qty-input:focus { outline: none; }

.cart-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  flex-shrink: 0;
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-500);
}
.cart-empty .empty-icon { font-size: 52px; margin-bottom: 12px; }
.cart-empty p { font-size: 15px; }

.cart-footer { padding: 8px 12px; border-top: 2px solid var(--gray-200); background: var(--gray-100); }

.cart-totals { margin-bottom: 14px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.cart-total-row.grand { font-weight: 700; font-size: 17px; border-top: 2px solid var(--gray-300); padding-top: 10px; margin-top: 4px; }
.cart-total-row.grand .amount { color: var(--primary); font-size: 20px; }

.cart-footer .btn { margin-bottom: 6px; border-radius: 10px; padding: 13px 12px; font-size: 14px; }
@media (max-width: 768px) {
  .cart-footer { padding: 8px 10px; }
  .cart-footer .btn { padding: 8px 10px !important; font-size: 12px !important; margin-bottom: 4px; border-radius: 8px; }
}

/* ==========================================
   CHECKOUT MODAL
   ========================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }

.checkout-modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  text-align: center;
  padding: 24px 24px 16px;
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.modal-header p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gray-200);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close-btn:hover { background: var(--danger); color: white; }

.modal-body { padding: 20px 24px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--dark); }
.form-label .req { color: var(--danger); }

.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray-500);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  transition: var(--transition);
  background: var(--gray-100);
  color: var(--dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(45,138,78,0.12);
}
.form-control.no-icon { padding-left: 16px; }

/* SHIPPING ZONES */
.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.shipping-option:hover { border-color: var(--primary); }
.shipping-option.selected { border-color: var(--primary); background: linear-gradient(135deg, rgba(45,138,78,0.05), rgba(45,138,78,0.10)); }
.shipping-option input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); }
.shipping-option-label { flex: 1; font-size: 14px; font-weight: 500; }
.shipping-option-price { font-weight: 700; color: var(--dark); }

/* COUPON */
.coupon-row { display: flex; gap: 10px; }
.coupon-row .form-control { flex: 1; padding-left: 16px; }

/* ORDER SUMMARY */
.order-summary { background: var(--gray-100); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.order-item-details { flex: 1; }
.order-item-name { font-size: 13px; font-weight: 600; }
.order-item-qty { font-size: 12px; color: var(--gray-500); }
.order-item-price { font-weight: 700; color: var(--primary); font-size: 14px; }

.order-totals { margin-top: 14px; }
.totals-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.totals-row.grand-total { font-weight: 700; font-size: 17px; border-top: 2px solid var(--gray-300); padding-top: 10px; margin-top: 4px; }
.grand-total .amount { color: var(--primary); font-size: 19px; }

/* UPSELL */
.upsell-box {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: linear-gradient(135deg, rgba(45,138,78,0.04), rgba(45,138,78,0.08));
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  cursor: pointer;
  transition: var(--transition);
}
.upsell-box:hover { background: rgba(45,138,78,0.12); }
.upsell-checkbox { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.upsell-content { flex: 1; }
.upsell-content p { font-size: 13px; line-height: 1.5; }
.upsell-content strong { color: var(--primary); }
.upsell-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

/* CONFIRM BTN */
.confirm-order-btn {
  background: linear-gradient(135deg, var(--secondary) 0%, #fb923c 100%);
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.confirm-order-btn:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.5);
}

.order-confirm-note {
  text-align: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0;
}

.pay-online-btn {
  background: linear-gradient(135deg, #f5c000, #f9a825);
  color: var(--dark);
  border: none;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==========================================
   PRODUCT PAGE
   ========================================== */

.product-detail { padding: 40px 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery { position: sticky; top: 100px; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-section .breadcrumb { margin-bottom: 12px; font-size: 13px; color: var(--gray-500); }
.product-info-section .breadcrumb a { color: var(--primary); }

.product-title { font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.35; }

.product-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; color: var(--gray-500); }
.product-meta span strong { color: var(--dark); }

.product-price-section { margin-bottom: 22px; }
.product-price-section .price-current { font-size: 32px; font-weight: 700; color: var(--primary); }
.product-price-section .price-old { font-size: 18px; color: var(--gray-500); text-decoration: line-through; margin-left: 10px; }
.discount-tag {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 10px;
}

.product-description { font-size: 15px; line-height: 1.8; color: var(--gray-700); margin-bottom: 24px; }

.product-options { margin-bottom: 22px; }
.option-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.option-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.option-btn {
  padding: 8px 18px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: white;
  transition: var(--transition);
}
.option-btn:hover, .option-btn.active { border-color: var(--primary); background: var(--gray-100); color: var(--primary); }

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.product-btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.product-btn-row .btn { padding: 14px 20px; font-size: 15px; border-radius: 12px; }

.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 2px solid var(--gray-200); }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
}
.trust-badge .icon { font-size: 20px; }

/* ==========================================
   FLASH SALE SECTION
   ========================================== */

.flash-sale { background: linear-gradient(135deg, var(--dark) 0%, #2d4a2d 100%); color: white; }
.flash-sale .section-title { color: white; }
.flash-sale .section-label { color: var(--accent); }

.countdown { display: flex; gap: 14px; align-items: center; justify-content: center; margin-bottom: 24px; }
.countdown-item {
  background: rgba(255,255,255,0.12);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 68px;
  backdrop-filter: blur(4px);
}
.countdown-num { font-size: 28px; font-weight: 700; line-height: 1; }
.countdown-label { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.countdown-sep { font-size: 26px; font-weight: 700; opacity: 0.6; }

/* ==========================================
   LIVE CHAT WIDGET
   ========================================== */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
}

.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(45,138,78,0.5);
  transition: var(--transition);
  position: relative;
}
.chat-toggle-btn:hover { transform: scale(1.1); }
.chat-toggle-btn .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.chat-window {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  animation: chatIn 0.25s ease;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-window.open { display: flex; }

.chat-win-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 16px 18px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chat-win-info { flex: 1; }
.chat-win-info h4 { font-size: 14px; font-weight: 700; }
.chat-online { font-size: 11px; display: flex; align-items: center; gap: 5px; opacity: 0.85; }
.chat-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }

.chat-close-win {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
}
.chat-close-win:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fdf9;
}

.chat-msg { display: flex; gap: 8px; align-items: flex-end; }
.chat-msg.admin-msg { flex-direction: row; }
.chat-msg.visitor-msg { flex-direction: row-reverse; }

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 200px;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.admin-msg .msg-bubble { background: white; border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.visitor-msg .msg-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10px; opacity: 0.6; margin-top: 3px; }

.chat-form-area { padding: 12px 14px; border-top: 1px solid var(--gray-200); background: white; }

.chat-start-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-start-form input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
}
.chat-start-form input:focus { outline: none; border-color: var(--primary); }

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 24px;
  font-family: var(--font);
  font-size: 13px;
  transition: var(--transition);
}
.chat-input:focus { outline: none; border-color: var(--primary); }

.chat-send-btn {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.chat-send-btn:hover { background: var(--primary-dark); }

/* ==========================================
   TRACKING PAGE
   ========================================== */

.tracking-steps { margin-top: 24px; }
.tracking-step {
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
}
.tracking-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  width: 2px;
  bottom: 0;
  background: var(--gray-300);
}
.tracking-step.done::after { background: var(--primary); }

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}
.tracking-step.done .step-dot { background: var(--primary); color: white; }
.tracking-step.active .step-dot { background: var(--secondary); color: white; box-shadow: 0 0 0 5px rgba(249,115,22,0.2); }

.step-content { padding-top: 4px; }
.step-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.step-desc { font-size: 13px; color: var(--gray-500); }
.step-time { font-size: 11px; color: var(--gray-500); margin-top: 3px; }

/* ==========================================
   BLOG
   ========================================== */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 18px; }
.blog-card-tag { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-title { font-size: 16px; font-weight: 700; margin: 8px 0; line-height: 1.4; }
.blog-card-title a { color: var(--dark); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.blog-card-meta { display: flex; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--gray-500); }

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: linear-gradient(135deg, var(--dark) 0%, #243824 100%);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: white; font-size: 24px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 14px; opacity: 0.75; }

.footer h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--accent); }

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { color: rgba(255,255,255,0.7); font-size: 14px; transition: var(--transition); }
.footer ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

#toast-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid var(--primary);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast-icon { font-size: 22px; }
.toast-msg { flex: 1; font-size: 14px; font-weight: 500; }

/* ==========================================
   POPUP BANNER
   ========================================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  display: none;
}
.popup-overlay.show { display: flex; }
.popup-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.3s ease;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-box img { width: 100%; max-height: 280px; object-fit: cover; }
.popup-content { padding: 24px; }
.popup-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

/* ==========================================
   PAGINATION
   ========================================== */

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--gray-300);
  background: white;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--dark);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
  .top-bar .top-bar-right { display: none; }
  .header-search { display: none; }
  .header-inner { padding: 12px 0; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-inner a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-title { font-size: 30px; }
  .hero-slide { min-height: 320px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .blog-grid { grid-template-columns: repeat(1, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .checkout-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 92dvh;
    max-height: 92vh;
    margin: 0;
    transform: none !important;
    animation: mobileModalIn 0.3s ease !important;
  }
  @keyframes mobileModalIn {
    from { transform: translateY(100%); opacity: 0.5; }
    to { transform: translateY(0); opacity: 1; }
  }
  .cart-overlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45);
  }
  .section { padding: 36px 0; }
  .section-title { font-size: 22px; }
  .hero-title { font-size: 24px; }
  .chat-window { width: 300px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-body { padding: 10px; }
  .product-name { font-size: 13px; }
  .price-current { font-size: 15px; }
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--gray-500) !important; }
.fw-bold { font-weight: 700 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 890;
  background: #25d366;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); color: white; }

/* =============================================
   PRODUCT PAGE TABS
   ============================================= */
.product-tabs {
  margin-top: 8px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 3px solid var(--gray-200);
  background: transparent;
  padding: 0;
}
.tab-btn {
  padding: 12px 22px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
}
.tab-btn:hover {
  color: var(--primary);
  background: var(--gray-100);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: white;
}
.tab-content {
  background: white;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
@media (max-width: 480px) {
  .tab-btn { padding: 10px 14px; font-size: 13px; }
}

@keyframes badgeDot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(1.3)}}