/* ===== BirTool.az - Main Stylesheet ===== */

:root {
  --primary: #e8270d;
  --primary-dark: #c41e0b;
  --primary-light: #ff4a2e;
  --secondary: #1a1a2e;
  --secondary-light: #2d2d44;
  --accent: #f5a623;
  --text-dark: #1a1a1a;
  --text-mid: #555;
  --text-light: #888;
  --bg-light: #f7f7f7;
  --bg-white: #ffffff;
  --border: #e8e8e8;
  --success: #28a745;
  --warning: #ffc107;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 14px;
  --transition: all 0.22s ease;
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--secondary);
  color: #aaa;
  font-size: 12.5px;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #ccc; transition: var(--transition); }
.top-bar a:hover { color: #fff; }
.top-bar .top-links { display: flex; gap: 20px; align-items: center; }
.top-bar .top-contact { display: flex; gap: 16px; align-items: center; }
.top-bar i { margin-right: 4px; }

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 1px 0 #efefef;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.logo-text { line-height: 1.1; }
.logo-text .brand { font-size: 22px; font-weight: 800; color: #1a1a1a; }
.logo-text .brand span { color: var(--primary); }
.logo-text .tagline { font-size: 11px; color: var(--text-light); }

.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 11px 50px 11px 18px;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: #f7f7f7;
  color: #1a1a1a;
}
.header-search input:focus { border-color: var(--primary); background: #fff; }
.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 50px;
  color: #fff;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  font-size: 11px;
  gap: 3px;
  border: none;
  background: transparent;
  text-decoration: none;
}
.header-btn i { display: flex; align-items: center; color: var(--secondary); }
.header-btn:hover { background: var(--bg-light); }
.header-btn.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== NAV ===== */
nav {
  background: #fff;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}
.nav-inner {
  display: flex;
  align-items: center;
}
.nav-all-cats {
  background: var(--primary);
  color: #fff;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13.5px;
  transition: var(--transition);
  flex-shrink: 0;
  user-select: none;
  letter-spacing: 0.2px;
}
.nav-all-cats:hover, .nav-all-cats.mega-open { background: var(--primary-dark); }

/* ===== MEGA MENU ===== */
.mega-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9998;
  background: transparent;
}
.mega-menu.open { display: block; }
.mega-menu-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border-radius: 0 0 16px 16px;
  border-top: 3px solid var(--primary);
  overflow: hidden;
  max-height: 460px;
}
.mega-cats-panel {
  width: 252px;
  flex-shrink: 0;
  background: #f9f9f9;
  border-right: 1px solid #efefef;
  padding: 6px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.mega-cat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  text-decoration: none;
  color: #333;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.14s;
  line-height: 1.3;
  cursor: pointer;
  border-radius: 0;
}
.mega-cat-item:hover, .mega-cat-item.mega-active {
  background: #fff;
  color: var(--primary);
}
.mega-cat-icon { display: flex; align-items: center; width: 26px; flex-shrink: 0; }
.mega-cat-name { flex: 1; }
.mega-cat-arr { color: #bbb; font-size: 20px; font-weight: 500; line-height: 1; }
.mega-cat-item:hover .mega-cat-arr, .mega-cat-item.mega-active .mega-cat-arr { color: var(--primary); }
.mega-subs-panel {
  flex: 1;
  padding: 22px 28px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.mega-subs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.mega-subs-title { font-weight: 700; color: #1a1a1a; flex: 1; font-size: 16px; }
.mega-all-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.mega-all-link:hover { text-decoration: underline; }
.mega-subs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 12px;
}
.mega-sub-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #444;
  text-decoration: none;
  transition: all 0.14s;
  font-weight: 500;
}
.mega-sub-link:hover {
  background: rgba(232,39,13,0.07);
  color: var(--primary);
  padding-left: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: #444;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(232,39,13,0.05); }

/* ===== CONTAINER ===== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 48px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d44 50%, #3a1a0a 100%);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.hero-content { color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,39,13,0.2);
  border: 1px solid rgba(232,39,13,0.4);
  color: #ff7a6a;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title span { color: var(--primary); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232,39,13,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-light); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .num { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.5); }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.hero-card-icon { font-size: 32px; margin-bottom: 10px; }
.hero-card-title { color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.hero-card-sub { color: rgba(255,255,255,0.5); font-size: 12px; }
.hero-card.featured { grid-column: span 2; display: flex; align-items: center; gap: 14px; }
.hero-card.featured .hero-card-icon { font-size: 40px; }
.hero-card.featured .hero-card-title { font-size: 15px; }

/* ===== TRUST BADGES ===== */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon { display: flex; align-items: center; color: var(--primary); flex-shrink: 0; }
.trust-text .title { font-weight: 700; font-size: 13.5px; color: var(--text-dark); }
.trust-text .sub { font-size: 12px; color: var(--text-light); }

/* ===== SECTIONS ===== */
.section { padding: 52px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 26px; font-weight: 800; color: var(--text-dark); }
.section-title span { color: var(--primary); }
.section-sub { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.section-link { color: var(--primary); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.section-link:hover { gap: 8px; }

/* ===== CATEGORIES GRID ===== */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1.5px solid #f0f0f0;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(232,39,13,0.10);
  transform: translateY(-2px);
}
.cat-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.cat-card:hover .cat-icon-wrap { transform: scale(1.08); }
.cat-name { font-size: 13px; font-weight: 700; line-height: 1.3; color: #1a1a1a; }
.cat-count { font-size: 11px; color: #aaa; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.products-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== PRODUCT CARDS — Toolino Style ===== */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.22s ease;
  border: 1.5px solid #efefef;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
  border-color: #e0e0e0;
}
.product-img-wrap {
  position: relative;
  background: #fff;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f5f5f5;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-img-placeholder svg { width: 72px; height: 72px; }
.badge-discount {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  z-index: 2;
}
.badge-new {
  position: absolute; top: 10px; right: 10px;
  background: var(--success); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.badge-out {
  position: absolute; top: 10px; right: 10px;
  background: #888; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.product-info {
  padding: 14px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 5px; }
.stars { color: #f5a623; font-size: 12px; letter-spacing: 1px; }
.rating-count { font-size: 11px; color: #999; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.price-new { font-size: 20px; font-weight: 800; color: #1a1a1a; }
.price-old { font-size: 13px; color: #bbb; text-decoration: line-through; }
.price-birmarket { font-size: 11px; color: var(--text-light); background: #f5f5f5; padding: 2px 6px; border-radius: 4px; }
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 14px;
  gap: 8px;
}
.act-btn {
  flex: 1;
  height: 40px;
  border-radius: 50px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  color: #666;
}
.act-btn:hover { border-color: #ccc; background: #f8f8f8; }
.act-btn.cart {
  flex: 2;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}
.act-btn.cart:hover { background: #c41e0b; border-color: #c41e0b; }
.act-btn.cart:disabled { background: #ccc; border-color: #ccc; cursor: not-allowed; }
.act-btn.wishlist.active { color: var(--primary); border-color: var(--primary); }

/* ===== CAROUSEL SECTION ===== */
.carousel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  color: #555;
}
.carousel-arrow:hover { border-color: var(--primary); color: var(--primary); background: rgba(232,39,13,0.05); }
.carousel-track-wrap { overflow: hidden; }
.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.carousel-track.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.filter-label { font-weight: 700; font-size: 14px; color: var(--text-dark); flex-shrink: 0; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  background: #fff;
}
.chip:hover, .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-sort { margin-left: auto; }
.filter-sort select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
  color: var(--text-dark);
  cursor: pointer;
}

/* ===== SIDEBAR ===== */
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.sidebar { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 80px; }
.sidebar-title { font-weight: 700; font-size: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--text-dark); }
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  transition: var(--transition);
}
.sidebar-cat:hover, .sidebar-cat.active { background: rgba(232,39,13,0.06); color: var(--primary); font-weight: 600; }
.sidebar-cat-count { margin-left: auto; font-size: 11px; color: var(--text-light); background: var(--bg-light); padding: 2px 7px; border-radius: 10px; }

.price-range { margin-top: 16px; }
.price-inputs { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.price-inputs input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; box-sizing: border-box; }
.price-inputs input:focus { border-color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.product-gallery { position: relative; display: flex; flex-direction: column; gap: 14px; }
.product-detail-name { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }

/* Main image */
.pd-main-img-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #f5f5f5; aspect-ratio: 1; }
.pd-main-img { width: 100%; height: 100%; object-fit: contain; padding: 20px; display: block; }
.pd-main-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 96px; }
.pd-discount-badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 50px; }

/* Thumbnails */
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--primary); cursor: pointer; background: #f5f5f5; flex-shrink: 0; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* Delivery card */
.pd-delivery-card { background: var(--bg-light); border-radius: 12px; padding: 16px; }
.pd-delivery-title { font-weight: 700; font-size: 13px; color: var(--text-mid); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.pd-delivery-rows { display: flex; flex-direction: column; gap: 9px; }
.pd-delivery-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mid); }

/* Trust row */
.pd-trust-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pd-trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: var(--bg-light); border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--text-mid); text-align: center; }

/* Info column */
.pd-info { display: flex; flex-direction: column; gap: 0; }

/* Badges */
.pd-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.pd-badge-discount { background: rgba(232,39,13,0.12); color: var(--primary); }
.pd-badge-stock { background: rgba(40,167,69,0.12); color: var(--success); }
.pd-badge-nostock { background: rgba(136,136,136,0.12); color: #888; }
.pd-badge-brand { background: var(--bg-light); color: var(--text-mid); font-weight: 500; }

/* Rating */
.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-stars { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.pd-rating-val { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.pd-rating-count { font-size: 13px; color: var(--text-light); }
.pd-views { font-size: 12px; color: var(--text-light); }

/* Price */
.pd-price-block { background: linear-gradient(135deg, #fff8f7 0%, #fff 100%); border: 1.5px solid rgba(232,39,13,0.15); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-price-new { font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; }
.pd-price-old { font-size: 20px; color: var(--text-light); text-decoration: line-through; }
.pd-savings { display: inline-flex; align-items: center; gap: 6px; background: rgba(40,167,69,0.1); color: var(--success); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 50px; }

/* Urgency */
.pd-urgency { display: flex; align-items: center; gap: 8px; background: rgba(255,160,0,0.1); border: 1px solid rgba(255,160,0,0.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #b86e00; margin-bottom: 16px; }
.pd-urgency-fire { font-size: 16px; }

/* Description */
.pd-desc { padding: 14px 16px; background: var(--bg-light); border-radius: 12px; font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 18px; }

/* Specs */
.pd-specs { margin-bottom: 18px; }
.pd-specs-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--text-dark); }
.pd-specs-grid { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.pd-spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.pd-spec-row:last-child { border-bottom: none; }
.pd-spec-key { padding: 9px 14px; font-size: 13px; color: var(--text-mid); background: var(--bg-light); font-weight: 500; }
.pd-spec-val { padding: 9px 14px; font-size: 13px; color: var(--text-dark); font-weight: 600; }

.pd-divider { height: 1px; background: var(--border); margin: 4px 0 18px; }

/* Actions */
.pd-actions { display: flex; flex-direction: column; gap: 10px; }
.pd-qty-row { display: flex; align-items: center; gap: 14px; }
.pd-qty-label { font-size: 14px; font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-selector button { width: 40px; height: 46px; background: var(--bg-light); border: none; font-size: 20px; cursor: pointer; transition: var(--transition); }
.qty-selector button:hover { background: var(--primary); color: #fff; }
.qty-selector input { width: 52px; height: 46px; border: none; text-align: center; font-size: 16px; font-weight: 700; outline: none; }

.pd-btn-cart { width: 100%; padding: 15px 24px; font-size: 16px; font-weight: 700; justify-content: center; border-radius: 12px; }
.pd-btn-wa { width: 100%; padding: 14px 24px; font-size: 15px; font-weight: 700; justify-content: center; border-radius: 12px; background: #25d366; color: #fff; border: none; display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; transition: var(--transition); }
.pd-btn-wa:hover { background: #1ebe5c; color: #fff; }
.pd-btn-wish { display: flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 16px; font-size: 13px; color: var(--text-mid); cursor: pointer; transition: var(--transition); width: fit-content; }
.pd-btn-wish:hover { border-color: var(--primary); color: var(--primary); }

.pd-cod-note { display: flex; align-items: flex-start; gap: 10px; background: rgba(40,167,69,0.06); border: 1px solid rgba(40,167,69,0.2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text-mid); margin-top: 14px; }
.pd-cod-note svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Sticky buy bar */
.sticky-buy-bar { position: fixed; top: -90px; left: 0; right: 0; z-index: 900; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.13); border-bottom: 2px solid var(--primary); transition: top 0.3s cubic-bezier(.4,0,.2,1); padding: 12px 0; }
.sticky-buy-bar.visible { top: 0; }
.sticky-buy-inner { display: flex; align-items: center; gap: 20px; }
.sticky-buy-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-price { font-size: 22px; font-weight: 900; color: var(--primary); white-space: nowrap; }
.sticky-buy-actions { flex-shrink: 0; }

/* OLD compat kept */
.birmarket-note { background: var(--bg-light); border-radius: var(--radius); padding: 14px; font-size: 12.5px; color: var(--text-mid); margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; }
.birmarket-note i { color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-items { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.cart-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; background: var(--bg-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 36px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 16px; }
.cart-item-qty { display: flex; align-items: center; }
.cart-item-remove { color: #bbb; cursor: pointer; font-size: 18px; transition: var(--transition); border: none; background: none; }
.cart-item-remove:hover { color: var(--primary); }

.cart-summary { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 18px; font-weight: 800; }
.summary-row.total .val { color: var(--primary); }
.payment-note { background: rgba(40,167,69,0.08); border: 1px solid rgba(40,167,69,0.2); border-radius: var(--radius); padding: 14px; margin: 16px 0; font-size: 13px; color: var(--success); display: flex; gap: 10px; align-items: flex-start; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.checkout-form { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.form-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-method { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.payment-method.active { border-color: var(--primary); background: rgba(232,39,13,0.04); }
.payment-method .pm-icon { font-size: 26px; }
.payment-method .pm-text .title { font-weight: 700; font-size: 14px; }
.payment-method .pm-text .sub { font-size: 12px; color: var(--text-light); }
.payment-method input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; margin-left: auto; }

/* ===== ORDER SUCCESS ===== */
.success-box { background: #fff; border-radius: var(--radius-lg); padding: 52px; text-align: center; box-shadow: var(--shadow); }
.success-icon { font-size: 72px; margin-bottom: 20px; }
.success-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.success-sub { color: var(--text-light); margin-bottom: 28px; font-size: 15px; }
.order-number { background: var(--bg-light); border-radius: var(--radius); padding: 16px 24px; display: inline-block; font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 28px; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: block; min-height: 100vh; }
.admin-sidebar {
  background: #1a1a2e;
  color: #fff;
  padding: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  overflow-y: auto;
  z-index: 100;
}
.admin-logo { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-logo .brand { font-size: 20px; font-weight: 800; }
.admin-logo .brand span { color: var(--primary); }
.admin-logo .sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.admin-nav { padding: 12px 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13.5px;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.admin-nav-item.active { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--primary); }
.admin-nav-section {
  padding: 14px 20px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.28);
}
.admin-main {
  margin-left: 240px;
  background: var(--bg-light);
  min-height: 100vh;
  width: calc(100% - 240px);
  overflow-x: hidden;
}
.admin-topbar {
  background: #fff;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}
.admin-topbar .page-title {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.admin-content { padding: 24px 28px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.red { background: rgba(232,39,13,0.1); }
.stat-icon.green { background: rgba(40,167,69,0.1); }
.stat-icon.blue { background: rgba(13,110,253,0.1); }
.stat-icon.orange { background: rgba(245,166,35,0.1); }
.stat-info { min-width: 0; }
.stat-info .num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-info .lbl { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-card-title { font-size: 15px; font-weight: 800; white-space: nowrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { padding: 10px 14px; text-align: left; font-weight: 700; color: var(--text-mid); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(232,39,13,0.03); }
.admin-product-img { width: 48px; height: 48px; background: var(--bg-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; flex-shrink: 0; }
.admin-product-img img { width: 48px; height: 48px; object-fit: contain; padding: 4px; display: block; }
.badge-active { background: rgba(40,167,69,0.1); color: var(--success); padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.badge-inactive { background: rgba(136,136,136,0.1); color: #888; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.action-btns { display: flex; gap: 6px; }
.action-btn { width: 30px; height: 30px; border-radius: 6px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); }
.action-btn.edit { background: rgba(13,110,253,0.1); color: #0d6efd; }
.action-btn.del { background: rgba(232,39,13,0.1); color: var(--primary); }
.action-btn:hover { opacity: 0.7; }

.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.input-group input { padding-left: 36px; }
.input-group .input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 13px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-size: 18px; font-weight: 800; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-light); transition: var(--transition); }
.modal-close:hover { color: var(--primary); }

/* ===== WISHLIST ===== */
.wl-remove-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-mid); transition: var(--transition); z-index: 2; backdrop-filter: blur(4px); }
.wl-remove-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== COMPARE BAR ===== */
.compare-bar { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); z-index: 850; background: var(--secondary); color: #fff; border-radius: 14px 14px 0 0; padding: 14px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,0.22); transition: bottom 0.3s cubic-bezier(.4,0,.2,1); min-width: 320px; }
.compare-bar.visible { bottom: 0; }
.compare-bar-inner { display: flex; align-items: center; gap: 20px; }
.compare-bar-label { display: flex; align-items: center; gap: 8px; font-size: 14px; flex: 1; }
.compare-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== COMPARE MODAL ===== */
.compare-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.compare-modal.open { display: flex; }
.compare-modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.compare-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--border); }
.compare-modal-header h3 { font-size: 18px; font-weight: 800; margin: 0; }
.compare-modal-close { background: var(--bg-light); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-mid); transition: var(--transition); }
.compare-modal-close:hover { background: var(--primary); color: #fff; }
.compare-modal-body { overflow: auto; flex: 1; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table thead th { padding: 16px 14px; text-align: center; border-bottom: 2px solid var(--border); vertical-align: top; }
.compare-label-col { width: 140px; }
.compare-product-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.compare-product-head img { width: 80px; height: 80px; object-fit: contain; border-radius: 10px; background: var(--bg-light); padding: 6px; }
.compare-product-name { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; }
.compare-remove-btn { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-light); background: none; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; cursor: pointer; transition: var(--transition); }
.compare-remove-btn:hover { color: var(--primary); border-color: var(--primary); }
.compare-table tbody tr { border-bottom: 1px solid var(--border); }
.compare-table tbody tr:nth-child(even) { background: var(--bg-light); }
.compare-table tbody td { padding: 11px 14px; font-size: 13px; text-align: center; vertical-align: middle; }
.compare-label { text-align: left !important; font-weight: 600; color: var(--text-mid); font-size: 12px; white-space: nowrap; background: #fff !important; border-right: 1px solid var(--border); }
.compare-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.compare-old-price { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.compare-badge-discount { background: rgba(232,39,13,0.12); color: var(--primary); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 50px; }
.compare-row-actions td { padding: 14px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 90px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; max-width: 340px; }
.toast {
  background: var(--secondary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  animation: slideIn 0.3s ease;
  min-width: 260px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--primary); }
.toast.info { border-left: 4px solid #0d6efd; }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius); border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-size: 14px; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-light); }
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
.empty-state .msg { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.empty-state .sub { font-size: 14px; margin-bottom: 24px; }

/* ===== FOOTER ===== */
footer { background: var(--secondary); color: rgba(255,255,255,0.7); margin-top: 60px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 52px 0 40px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand { font-size: 22px; font-weight: 800; color: #fff; }
.footer-brand .brand span { color: var(--primary); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); font-size: 16px; text-decoration: none; }
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; align-items: flex-start; }
.footer-contact-item i { color: var(--primary); width: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(5, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-track { grid-template-columns: repeat(3, 1fr); }
  .carousel-track.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 2000;
  padding: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
  position: relative;
}
.mob-nav-item.active, .mob-nav-item:active { color: var(--primary); }
.mob-nav-item svg { flex-shrink: 0; }
.mob-nav-item.wa { color: #25d366; }
.mob-cart-badge {
  position: absolute;
  top: 6px; right: 22px;
  background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
}

/* ===== MOBILE FILTER DRAWER ===== */
.mob-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1500;
}
.sidebar-overlay.open { display: block; }
.drawer-handle {
  display: none;
  width: 40px; height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 16px;
}

@media (max-width: 768px) {
  /* BODY — add bottom padding for nav bar */
  body { padding-bottom: 60px; }

  /* TOP BAR — simplify */
  .top-bar .top-links { display: none; }
  .top-bar .top-contact { gap: 10px; font-size: 11.5px; }

  /* HEADER */
  .header-search { display: none; }
  .header-main { gap: 12px; padding: 10px 0; }
  .logo-text .tagline { display: none; }

  /* NAV */
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 12px; font-size: 12.5px; }

  /* HERO */
  .hero { padding: 32px 0 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-title { font-size: 28px; margin-bottom: 10px; }
  .hero-sub { font-size: 14px; margin-bottom: 20px; }
  .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 14px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 8px; margin-top: 24px; padding-top: 20px; }
  .hero-stat .num { font-size: 20px; }
  .hero-stat .lbl { font-size: 11px; }

  /* TRUST BAR */
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 14px 12px; gap: 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .trust-item:last-child, .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* SECTIONS */
  .section { padding: 32px 0; }
  .section-header { flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
  .section-title { font-size: 20px; }
  .section-sub { font-size: 12px; }

  /* CAROUSEL — swipe instead of arrows */
  .carousel-header { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .carousel-arrows { display: none; }
  .carousel-track-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .carousel-track-wrap::-webkit-scrollbar { display: none; }
  .carousel-track { display: flex !important; grid-template-columns: none !important; gap: 12px; width: max-content; }
  .carousel-track .product-card { width: 160px; flex-shrink: 0; scroll-snap-align: start; }

  /* CATEGORIES GRID */
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 16px 8px 12px; gap: 7px; border-radius: 12px; }
  .cat-icon-wrap { width: 48px; height: 48px; }
  .cat-name { font-size: 11.5px; }
  .cat-count { font-size: 10px; }

  /* PRODUCTS GRID */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* PRODUCT CARD */
  .product-info { padding: 10px 10px 6px; }
  .product-name { font-size: 12.5px; }
  .price-new { font-size: 17px; }
  .price-old { font-size: 12px; }
  .product-actions { padding: 8px 10px 10px; gap: 5px; }
  .act-btn { height: 36px; font-size: 13px; }
  .act-btn.cart { font-size: 12px; }

  /* PRODUCTS PAGE SIDEBAR */
  .page-layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
  .sidebar.drawer {
    display: block;
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    top: auto !important;
    border-radius: 20px 20px 0 0;
    z-index: 1600;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.drawer.open { transform: translateY(0); }
  .drawer-handle { display: block; }
  .mob-filter-btn { display: flex; }

  /* PRODUCT DETAIL */
  .product-detail-grid { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .product-detail-name { font-size: 20px; }
  .product-main-img { font-size: 64px; }
  .pd-price-new { font-size: 32px; }
  .pd-price-old { font-size: 16px; }
  .pd-trust-row { grid-template-columns: repeat(3,1fr); }
  .pd-spec-row { grid-template-columns: 1fr; }
  .pd-spec-key { border-bottom: none; padding-bottom: 2px; }
  .pd-spec-val { padding-top: 2px; background: #fff; }
  .sticky-buy-bar { display: none; }
  .pd-btn-cart { font-size: 15px; padding: 14px; }
  .pd-btn-wa { font-size: 14px; padding: 13px; }

  /* CART / CHECKOUT */
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-item { gap: 10px; }
  .cart-item-img { width: 64px; height: 64px; }
  .qty-selector button { width: 30px; height: 30px; }

  /* FOOTER */
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-col:not(:last-child) { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }

  /* FORMS */
  .form-row { grid-template-columns: 1fr; }

  /* ADMIN */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  /* MOBILE BOTTOM NAV — show */
  .mobile-bottom-nav { display: block; }
  .compare-bar.visible { bottom: 60px; border-radius: 14px; }
  .toast-container { top: 70px; right: 12px; max-width: calc(100vw - 24px); }

  /* WA FLOAT — move up above bottom nav */
  .wa-float { bottom: 72px; right: 16px; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .carousel-track .product-card { width: 148px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .container { padding: 0 14px; }
}

/* WhatsApp Float Button */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
  color: #fff;
}
.wa-float svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .wa-float { padding: 13px; border-radius: 50%; bottom: 20px; right: 20px; }
  .wa-float span { display: none; }
}
