:root {
  --red: #e32636;
  --red-dark: #c41e2d;
  --red-light: #ff4444;
  --black: #1a1a1a;
  --gray-900: #212529;
  --gray-800: #343a40;
  --gray-700: #555;
  --gray-600: #6c757d;
  --light-bg: #f8f9fa;
  --gray-500: #adb5bd;
  --gray-400: #ced4da;
  --gray-300: #dee2e6;
  --gray-200: #e9ecef;
  --gray-100: #f8f9fa;
  --white: #ffffff;
  --whatsapp: #2ecc71;
  --whatsapp-dark: #1da851;
  --facebook: #1877f2;
  --instagram: #e4405f;
  --star: #ffc107;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --dark-nav: #1a1a2e;
  --grey: #6c757d;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }

/* ===== Announcement Bar ===== */
.announcement-bar {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  letter-spacing: 0.3px;
  text-align: center;
}
.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-bar a { color: rgba(255,255,255,0.8); font-size: 12px; }
.announcement-bar a:hover { color: var(--red-light); }
.announcement-bar .bi { margin-right: 4px; }

/* ===== Header ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.main-header.scrolled { box-shadow: var(--shadow-md); }

/* Mobile search toggle */
@media (max-width: 767.98px) {
  .header-search-wrap { display: none !important; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 100; border-top: 1px solid var(--gray-200); }
  .header-search-wrap.mobile-show { display: flex !important; }
  #mobileSearchToggle { display: flex !important; }
}
@media (min-width: 768px) {
  #mobileSearchToggle { display: none !important; }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  gap: 24px;
}

.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img { height: 180px; width: auto; max-width: 400px; object-fit: contain; object-position: left center; }
.header-logo .logo-text { font-size: 42px; font-weight: 700; color: var(--black); }
.header-logo .logo-text .logo-red { color: var(--red); }

.header-search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.header-search-input {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  background: var(--gray-100);
  transition: var(--transition);
  outline: none;
}
.header-search-input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(227,38,54,0.1);
}
.header-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.header-search-btn:hover { background: var(--red-dark); }

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}
.search-suggestions.active { display: block; }
.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}
.search-suggestions .suggestion-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.search-suggestions .suggestion-item:hover { background: var(--gray-100); }
.search-suggestions .suggestion-img {
  width: 44px; height: 44px; object-fit: contain; border-radius: 6px; flex-shrink: 0;
  background: var(--gray-100);
}
.search-suggestions .suggestion-info { flex: 1; min-width: 0; }
.search-suggestions .suggestion-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggestions .suggestion-price { font-size: 12px; color: var(--red); font-weight: 600; }
.search-suggestions .suggestion-see-all { display: block; text-align: center; padding: 10px; font-size: 13px; color: var(--red); font-weight: 500; text-decoration: none; }

.header-icons-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hi-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--gray-700);
  font-size: 13px;
  line-height: 1.2;
}
.hi-icon:hover { background: var(--gray-100); color: var(--red); }
.hi-icon i { font-size: 22px; margin-bottom: 2px; }
.hi-icon .hi-label { font-size: 11px; white-space: nowrap; }
.hi-icon .hi-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-total-label { font-size: 11px; color: var(--gray-500); white-space: nowrap; }

/* ===== Nav Bar ===== */
.nav-wrap { position: relative; }
.nav-primary {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1025;
  height: 48px;
}
.nav-primary-inner {
  display: flex;
  align-items: center;
}
.categories-nav-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  user-select: none;
}
.categories-nav-trigger:hover { background: var(--red-dark); }
.categories-nav-trigger i { font-size: 18px; }

.nav-primary-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-primary-links a {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-primary-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-pipe { color: rgba(255,255,255,0.2); font-size: 14px; padding: 0 2px; }
.nav-phone { display: flex; align-items: center; gap: 6px; }
.nav-phone i { font-size: 14px; color: var(--whatsapp); }

/* ===== Categories Dropdown ===== */
.categories-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: 3px solid var(--red);
  z-index: 1040;
  display: none;
  padding: 6px 0;
  max-height: 70vh;
  overflow-y: auto;
}
.categories-dropdown.open { display: block; }

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.category-item:hover { background: #fff5f5; }
.category-item:hover > a { color: var(--red); }
.category-item a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  flex: 1;
  text-decoration: none;
}
.category-item i.bi-chevron-right {
  font-size: 12px;
  color: var(--gray-400);
}

/* ===== Brand Flyout Panel ===== */
.mega-brand-panel {
  position: absolute;
  top: 100%;
  left: 280px;
  min-width: 300px;
  max-width: 500px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) 0;
  border-top: 3px solid var(--red);
  z-index: 1041;
  display: none;
  padding: 20px 24px;
}
.mega-brand-panel.open { display: block; }
.mega-brand-panel h6 {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mega-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}
.mega-brand-link {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
}
.mega-brand-link:hover { color: var(--red); background: #fff5f5; }
.mega-back { display: none; }

.categories-dropdown::-webkit-scrollbar { width: 4px; }
.categories-dropdown::-webkit-scrollbar-track { background: var(--gray-100); }
.categories-dropdown::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

/* ===== Hero Slider ===== */
.hero-section {
  position: relative;
  background: var(--gray-100);
}
.hero-swiper {
  width: 100%;
}
.hero-swiper .swiper-slide {
  width: 100%;
}
.hero-slide {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-slide { min-height: 680px; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 560px;
  padding: 60px 0;
}
.hero-content .hero-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-content .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: none;
}
.hero-content .btn-hero:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,38,54,0.3); }

.hero-swiper .swiper-pagination { bottom: 20px !important; }
.hero-swiper .swiper-pagination-bullet { width: 12px; height: 12px; background: rgba(255,255,255,0.5); opacity: 1; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--red); }
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: var(--white);
  background: rgba(255,255,255,0.15);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover { background: var(--red); }
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { font-size: 20px; }

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--gray-600);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}
.section-title .title-line {
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== Category Grid (Homepage) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.category-card .cat-icon {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--red);
  margin-bottom: 12px;
  transition: var(--transition);
}
.category-card:hover .cat-icon { background: var(--red); color: var(--white); }
.category-card .cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.category-card .cat-count {
  font-size: 12px;
  color: var(--gray-500);
}

/* ===== View All Link ===== */
.btn-view-all {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-view-all:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* ===== Product Card ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.product-card .badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}
.product-card .badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}

.product-card .product-img-wrap {
  position: relative;
  padding: 20px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}
.product-card .product-img-wrap img {
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Watermark-hiding overlay — controlled by body.hide-watermarks */
body.hide-watermarks .product-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 12%, rgba(255,255,255,0) 28%);
  pointer-events: none;
  z-index: 1;
}
body.hide-watermarks .shop-product-item .product-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 12%, rgba(255,255,255,0) 28%);
  pointer-events: none;
  z-index: 1;
}

.product-card .product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card .product-actions a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 16px;
  transition: var(--transition);
}
.product-card .product-actions a:hover { background: var(--red); color: var(--white); }

.product-card .product-body {
  padding: 16px;
}
.product-card .product-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 39px;
}
.product-card .product-name:hover { color: var(--red); }
.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.product-card .product-rating .stars { color: var(--star); }
.product-card .product-rating .reviews { color: var(--gray-500); }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 4px; }
.star-rating-input input { display: none; }
.star-rating-input label { cursor: pointer; font-size: 28px; color: var(--gray-300); transition: color .15s; }
.star-rating-input label:hover, .star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: var(--star); }
.star-rating-input input:checked ~ label:hover { color: var(--star); }
.product-card .product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.product-card .product-price .current {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}
.product-card .product-price .old {
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.product-card .btn-add-cart {
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
}
.product-card:hover .btn-add-cart {
  opacity: 1;
  transform: translateY(0);
}
.product-card .btn-add-cart:hover {
  background: var(--red);
  color: var(--white);
}

/* ===== Product Carousel ===== */
.product-carousel {
  position: relative;
  padding: 0 48px;
}
.product-carousel .swiper-button-next,
.product-carousel .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--black);
  z-index: 10;
}
.product-carousel .swiper-button-next:hover,
.product-carousel .swiper-button-prev:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.product-carousel .swiper-button-next::after,
.product-carousel .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}
.product-carousel .swiper-button-next {
  right: 0;
}
.product-carousel .swiper-button-prev {
  left: 0;
}
@media (max-width: 767.98px) {
  .product-carousel {
    padding: 0 36px;
  }
  .product-carousel .swiper-button-next,
  .product-carousel .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  .product-carousel .swiper-button-next::after,
  .product-carousel .swiper-button-prev::after {
    font-size: 12px;
  }
}

/* ===== Shop Product Grid ===== */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shop-product-item {
  min-width: 0;
}
.shop-product-item .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shop-product-item .product-card .product-img-wrap {
  height: 220px;
  padding: 20px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.shop-product-item .product-card .product-img-wrap img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.shop-product-item .product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}
.shop-product-item .product-card .product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shop-product-item .product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 6px;
  flex: 1;
}
.shop-product-item .product-card .product-name:hover {
  color: var(--red);
}
.shop-product-item .product-card .product-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.shop-product-item .product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.shop-product-item .product-card .product-rating .stars {
  display: flex;
  gap: 1px;
}
.shop-product-item .product-card .product-rating .reviews {
  font-size: 12px;
  color: var(--gray-500);
}
.shop-product-item .product-card .product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.shop-product-item .product-card .product-price .current {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}
.shop-product-item .product-card .product-price .old {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.shop-product-item .product-card .btn-add-cart {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 50px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.shop-product-item .product-card .btn-add-cart:hover {
  background: #c41e2e;
}
.shop-product-item .product-card .btn-whatsapp-inquiry {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 50px;
  background: var(--whatsapp, #25D366);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.shop-product-item .product-card .btn-whatsapp-inquiry:hover {
  opacity: 0.9;
  color: var(--white);
}
.shop-product-item .product-card .badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}
.shop-product-item .product-card .badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}
.shop-product-item .product-card .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: 3;
}
.shop-product-item .product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}
.shop-product-item .product-card .product-actions a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 16px;
  transition: var(--transition);
}
.shop-product-item .product-card .product-actions a:hover {
  background: var(--red);
  color: var(--white);
}
@media (max-width: 1199.98px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767.98px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .shop-product-item .product-card .product-img-wrap {
    height: 160px;
    padding: 12px;
  }
  .shop-product-item .product-card .product-img-wrap img {
    max-height: 130px;
  }
  .shop-product-item .product-card .product-body {
    padding: 12px;
  }
  .shop-product-item .product-card .product-name {
    font-size: 13px;
  }
  .shop-product-item .product-card .product-price .current {
    font-size: 16px;
  }
  .shop-product-item .product-card .product-actions {
    opacity: 1;
    transform: none;
  }
  .shop-product-item .product-card .btn-add-cart {
    opacity: 1;
  }
}

/* ===== Trust Badges ===== */
.trust-badges {
  background: var(--gray-100);
  padding: 50px 0;
}
.trust-badge {
  text-align: center;
  padding: 20px;
}
.trust-badge .tb-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--red);
  margin: 0 auto 12px;
  box-shadow: var(--shadow-sm);
}
.trust-badge h6 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.trust-badge p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

/* ===== Brands Strip ===== */
.brands-section {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: var(--transition);
}
.brand-item:hover { filter: none; opacity: 1; }
.brand-item img { max-height: 40px; object-fit: contain; }

/* ===== Brand Grid (Homepage) ===== */
.brand-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
  text-decoration: none;
  aspect-ratio: 1;
  overflow: hidden;
}
.brand-grid-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.brand-grid-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.brand-grid-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-grid-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}
.brand-grid-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  transition: var(--transition);
  padding: 8px 4px;
}
.brand-grid-item:hover .brand-grid-name { color: var(--red); }

/* ===== Page Header ===== */
.page-header {
  background: var(--gray-100);
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-200);
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.page-header .breadcrumb {
  margin: 0;
  font-size: 13px;
  background: none;
  padding: 0;
}
.page-header .breadcrumb .breadcrumb-item a { color: var(--gray-600); }
.page-header .breadcrumb .breadcrumb-item.active { color: var(--red); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--gray-400); }

/* ===== Filter Sidebar ===== */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.filter-sidebar .filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-sidebar .filter-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-sidebar .filter-section:last-child { border-bottom: none; }
.filter-sidebar .filter-section h6 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.filter-sidebar .form-check {
  margin-bottom: 6px;
}
.filter-sidebar .form-check-input:checked {
  background-color: var(--red);
  border-color: var(--red);
}
.filter-sidebar .form-check-label {
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
}
.filter-sidebar .form-check-label .count {
  color: var(--gray-500);
  margin-left: 4px;
}
.filter-sidebar .price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-sidebar .price-inputs .form-control {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
}
.filter-sidebar .price-inputs .form-control:focus { border-color: var(--red); }

/* ===== Sort Bar ===== */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.sort-bar .result-count { font-size: 14px; color: var(--gray-600); }
.sort-bar .result-count strong { color: var(--black); }
.sort-bar select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 16px;
  font-size: 13px;
  background: var(--white);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ===== Product Detail Page ===== */
.product-gallery {
  position: relative;
}
.product-gallery .main-image {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  cursor: crosshair;
  border: 1px solid var(--gray-200);
  margin-bottom: 12px;
}
.product-gallery .main-image img {
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-gallery .main-image:hover .product-zoom-img {
  transform: scale(1.5);
}
.product-gallery .thumb-list {
  display: flex;
  gap: 10px;
}
.product-gallery .thumb-list .thumb {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: var(--transition);
}
.product-gallery .thumb-list .thumb:hover,
.product-gallery .thumb-list .thumb.active { border-color: var(--red); }
.product-gallery .thumb-list .thumb img { max-height: 60px; object-fit: contain; }

.product-info h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-info .product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.product-info .product-meta .rating { color: var(--star); }
.product-info .product-meta .sku { color: var(--gray-500); }

.product-info .price-box {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.product-info .price-box .current-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
}
.product-info .price-box .old-price {
  font-size: 20px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 12px;
}
.product-info .price-box .discount-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 12px;
}

.product-info .product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.product-info .product-actions .qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  overflow: hidden;
}
.product-info .product-actions .qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.product-info .product-actions .qty-control button:hover { background: var(--gray-200); }
.product-info .product-actions .qty-control input {
  width: 50px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}
.product-info .product-actions .btn-atc {
  flex: 1;
  padding: 12px 30px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-info .product-actions .btn-atc:hover { background: var(--red-dark); transform: translateY(-2px); }
.product-info .product-actions .btn-wishlist {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.product-info .product-actions .btn-wishlist:hover { border-color: var(--red); color: var(--red); }

.product-info .btn-whatsapp-inq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.product-info .btn-whatsapp-inq:hover { background: var(--whatsapp-dark); color: var(--white); }

.product-info .product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.product-info .product-features .pf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}
.product-info .product-features .pf-item i { color: var(--red); }

/* ===== Tabs ===== */
.product-tabs {
  margin-top: 40px;
}
.product-tabs .nav-tabs {
  border-bottom: 2px solid var(--gray-200);
  gap: 0;
}
.product-tabs .nav-tabs .nav-link {
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
}
.product-tabs .nav-tabs .nav-link:hover { color: var(--black); }
.product-tabs .nav-tabs .nav-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.product-tabs .tab-content {
  padding: 24px 0;
}
.product-tabs .tab-content p { font-size: 14px; line-height: 1.7; color: var(--gray-700); }

/* ===== Footer ===== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}
.site-footer h5 {
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 16px;
}
.site-footer h6 {
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-footer p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: var(--transition);
}
.site-footer ul li a:hover { color: var(--red); padding-left: 4px; }
.site-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.site-footer .contact-item i {
  color: var(--red);
  margin-top: 3px;
  font-size: 16px;
  flex-shrink: 0;
}
.site-footer .contact-item a { color: rgba(255,255,255,0.6); }
.site-footer .contact-item a:hover { color: var(--red); }

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { color: var(--white); }
.footer-social a:hover.facebook { background: var(--facebook); }
.footer-social a:hover.instagram { background: var(--instagram); }
.footer-social a:hover.whatsapp { background: var(--whatsapp); }
.footer-social a:hover.youtube { background: #ff0000; }


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom small { color: rgba(255,255,255,0.4); font-size: 12px; }
.footer-bottom .payment-icons { display: flex; gap: 8px; }
.footer-bottom .payment-icons img { height: 24px; opacity: 0.5; }

/* ===== Cart Page ===== */
.cart-table { font-size: 14px; }
.cart-table thead th { border-bottom: 2px solid var(--gray-200); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-700); }
.cart-table tbody td { vertical-align: middle; border-color: var(--gray-200); }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--radius-sm); background: var(--gray-100); padding: 4px; }
.cart-product .cp-name { font-weight: 600; font-size: 14px; }
.cart-product .cp-name:hover { color: var(--red); }
.cart-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--gray-300); border-radius: 6px; overflow: hidden; width: fit-content; }
.cart-qty button { width: 34px; height: 34px; border: none; background: var(--gray-100); cursor: pointer; font-size: 16px; }
.cart-qty button:hover { background: var(--gray-200); }
.cart-qty input { width: 44px; height: 34px; border: none; border-left: 1px solid var(--gray-300); border-right: 1px solid var(--gray-300); text-align: center; font-weight: 600; font-size: 14px; }
.cart-remove { color: var(--gray-500); cursor: pointer; transition: var(--transition); }
.cart-remove:hover { color: var(--red); }

.cart-summary { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; }
.cart-summary h5 { font-weight: 700; margin-bottom: 16px; }
.cart-summary .cs-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary .cs-row.total { border-top: 2px solid var(--gray-300); padding-top: 12px; margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--red); }
.cart-summary .btn-checkout { width: 100%; padding: 12px; background: var(--red); color: var(--white); border: none; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--transition); margin-top: 16px; }
.cart-summary .btn-checkout:hover { background: var(--red-dark); }

/* ===== Checkout Page ===== */
.checkout-section h4 { font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-200); }
.checkout-section .form-label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.checkout-section .form-control { border-radius: var(--radius-sm); border: 1px solid var(--gray-300); padding: 10px 14px; font-size: 14px; }
.checkout-section .form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,38,54,0.1); }

.order-summary { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 100px; }
.order-summary h5 { font-weight: 700; margin-bottom: 16px; }
.order-summary .os-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.order-summary .os-item img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; background: var(--white); }
.order-summary .os-item .os-name { font-size: 13px; font-weight: 600; }
.order-summary .os-item .os-price { font-size: 13px; color: var(--gray-600); }
.order-summary .os-total { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 700; font-size: 18px; color: var(--red); }

/* ===== Order Success ===== */
.order-success { text-align: center; padding: 60px 0; }
.order-success .check-icon {
  width: 80px;
  height: 80px;
  background: #d4edda;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: #28a745;
}
.order-success h2 { font-weight: 800; margin-bottom: 8px; }
.order-success p { color: var(--gray-600); max-width: 400px; margin: 0 auto 24px; }
.order-success .order-details { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; max-width: 400px; margin: 0 auto; }
.order-success .order-details .od-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.order-success .order-details .od-row.total { border-top: 1px solid var(--gray-300); padding-top: 12px; margin-top: 8px; font-weight: 700; color: var(--red); }

/* ===== Floating Buttons ===== */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
}
.float-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.float-whatsapp .float-tooltip {
  display: none;
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-nav);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 500;
}
.float-whatsapp:hover .float-tooltip { display: block; }
.float-whatsapp .float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark-nav);
}
@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  background: var(--black);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--red); color: var(--white); }

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}
.toast-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 10px;
  min-width: 320px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  border-left: 4px solid var(--red);
}
.toast-notification.success { border-left-color: #28a745; }
.toast-notification.error { border-left-color: var(--red); }
.toast-notification .toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-notification .toast-msg { font-size: 14px; font-weight: 500; flex: 1; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(50px); } }

/* ===== Pagination ===== */
.pagination { gap: 4px; }
.pagination .page-link {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm) !important;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
}
.pagination .page-link:hover { border-color: var(--red); color: var(--red); background: var(--white); }
.pagination .page-item.active .page-link { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===== Utility Classes ===== */
.text-red { color: var(--red); }
.bg-red { background: var(--red); }
.border-red { border-color: var(--red) !important; }
.btn-red { background: var(--red); color: var(--white); border: none; border-radius: 50px; padding: 10px 28px; font-weight: 600; font-size: 14px; transition: var(--transition); }
.btn-red:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(227,38,54,0.3); }
.btn-outline-red { border: 2px solid var(--red); color: var(--red); background: transparent; border-radius: 50px; padding: 10px 28px; font-weight: 600; font-size: 14px; transition: var(--transition); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }

.section-padding { padding: 60px 0; }
.section-bg-light { background: var(--gray-100); }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 64px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h4 { font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .hero-content h1 { font-size: 32px; }
  .header-search-wrap { max-width: 300px; }
  .nav-primary-links a { padding: 12px 12px; font-size: 12px; }
  .product-gallery .main-image { height: 350px; }
  .section-title h2 { font-size: 24px; }
}

@media (max-width: 767.98px) {
  .announcement-bar { display: none; }

@media (max-width: 575.98px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 16px 12px; }
  .category-card .cat-icon { width: 48px; height: 48px; font-size: 22px; }
  .category-card .cat-name { font-size: 12px; }
  .hero-content h1 { font-size: 22px; }
  .hero-content .btn-hero { padding: 12px 24px; font-size: 13px; }
  .product-card .product-img-wrap { height: 160px; }
  .product-card .product-body { padding: 12px; }
  .product-card .product-name { font-size: 13px; }
  .product-card .product-price .current { font-size: 16px; }
  .section-title h2 { font-size: 20px; }
  .header-icons-group .hi-label { display: none; }
  .hi-icon { padding: 6px 8px; }
}

/* ===== Mobile Responsiveness Fixes ===== */
@media (max-width: 767.98px) {
  .nav-primary { height: auto; min-height: 44px; }
  .nav-phone span { display: none; }
  .nav-phone i { font-size: 14px; }
  .category-item { padding: 8px 12px; }
  .mega-brand-panel {
    position: absolute;
    top: 100%;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 0;
    padding: 12px 16px;
    z-index: 1045;
  }
  .mega-back { display: flex; align-items: center; gap: 6px; padding: 10px 0; cursor: pointer; color: var(--red); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--gray-200); margin-bottom: 8px; }
  .mega-back:hover { color: var(--red-dark); }
  .mega-brand-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev { width: 36px; height: 36px; }
  .product-card .product-actions { opacity: 1; transform: none; }
  .product-card .product-actions a { opacity: 1; }
  .product-card .btn-add-cart { opacity: 1; transform: none; }
  .site-footer { padding-top: 40px; }
  .site-footer h5 { font-size: 16px; }
  .footer-bottom { margin-top: 24px; padding: 16px 0; }
  .filter-sidebar { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
  .hero-slide { min-height: 320px; }
  .hero-3d .hero-content h1 { font-size: 24px; }
  .hero-3d .hero-content p { font-size: 13px; }
  .header-logo .logo-text { font-size: 26px; }
  .header-logo img { height: 60px; max-width: 200px; }
  .hi-icon i { font-size: 18px; }
  .header-icons-group { gap: 2px; }
  .cart-total-label { display: none; }
  .header-search-input { font-size: 16px; }
  .categories-nav-trigger span { display: none; }
  .categories-nav-trigger i { margin: 0; }
  .nav-primary-links { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-primary-links a { white-space: nowrap; font-size: 10px; padding: 10px 6px; }
  .brand-grid-item { padding: 0; }
  .brand-grid-logo { padding: 12px; }
  .brand-grid-name { font-size: 11px; padding: 6px 2px; }
  .brand-grid-fallback { font-size: 24px; }
  .trust-badges { padding: 30px 0; }
  .trust-badge { padding: 12px; }
  .tb-icon { width: 48px; height: 48px; font-size: 22px; }
  .trust-badge h6 { font-size: 13px; }
  .footer-social a { width: 34px; height: 34px; font-size: 14px; }
  .product-card .product-img-wrap { padding: 12px; }
  .product-gallery .main-image { padding: 16px; }
  .product-gallery .main-image img { max-height: 240px; }
  .product-gallery .thumb-list .thumb { width: 60px; height: 60px; }
  .product-info .price-box { padding: 16px; }
  .product-info .price-box .old-price { font-size: 16px; }
  .product-info .product-actions .btn-atc { padding: 12px 20px; }
  .product-info .product-features { grid-template-columns: 1fr; }
  .product-tabs .nav-tabs .nav-link { padding: 10px 12px; font-size: 12px; }
  .cart-product img { width: 48px; height: 48px; }
  .cart-qty button { width: 40px; height: 40px; }
  .cart-summary, .order-summary { padding: 16px; }
  .sort-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sort-bar select { width: 100%; }
  .float-whatsapp { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 24px; }
  .back-to-top { bottom: 72px; right: 16px; width: 36px; height: 36px; font-size: 16px; }
  .empty-state { padding: 40px 16px; }
  .empty-state .empty-icon { font-size: 48px; }
  .toast-container { right: 10px; left: 10px; }
  .toast-notification { min-width: auto; width: calc(100vw - 20px); }
  .btn-red, .btn-outline-red { padding: 10px 20px; }
}

/* ===== CATEGORY GRID (matches brand grid) ===== */
.cat-grid-item {
  display: block;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.cat-grid-item:hover {
  transform: translateY(-2px);
}
.cat-grid-logo {
  background: #f8f8f8;
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.cat-grid-logo img {
  max-height: 60px;
  max-width: 80%;
  object-fit: contain;
}
.cat-grid-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 8px;
  line-height: 1.3;
}
.cat-grid-item:hover .cat-grid-name {
  color: var(--primary);
}

/* ===== 3D Animations & Scroll Reveal ===== */

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for grid items */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }

/* 3D tilt container for product cards */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}
.tilt-3d .product-img-wrap {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}
.tilt-3d .product-body {
  transform: translateZ(10px);
}
.tilt-3d .badge-discount,
.tilt-3d .badge-new {
  transform: translateZ(30px);
}
.tilt-3d .btn-add-cart {
  transform: translateZ(15px);
}

/* 3D floating animation for category cards */
.category-card-3d {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
.category-card-3d:hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.category-card-3d .cat-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-card-3d:hover .cat-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* 3D hover on brand grid items */
.brand-grid-item-3d {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.brand-grid-item-3d:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Hero slide 3D parallax */
.hero-3d {
  perspective: 1200px;
  overflow: hidden;
}
.hero-3d .hero-content {
  transform-style: preserve-3d;
}
.hero-3d .hero-content h1 {
  transform: translateZ(40px);
}
.hero-3d .hero-content p {
  transform: translateZ(20px);
}
.hero-3d .hero-content .btn-hero {
  transform: translateZ(30px);
}

/* Animated gradient border on featured elements */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--red), #ff6b6b, var(--red-dark), var(--red));
  background-size: 300% 300%;
  z-index: -1;
  animation: glowRotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-border:hover::before {
  opacity: 1;
}
@keyframes glowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero text entrance animations */
.hero-content .hero-tag {
  animation: fadeInUp 0.6s ease both;
}
.hero-content h1 {
  animation: fadeInUp 0.6s ease 0.15s both;
}
.hero-content p {
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-content .btn-hero {
  animation: fadeInUp 0.6s ease 0.45s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust badges entrance */
.trust-badges .trust-badge {
  opacity: 0;
  transform: translateY(30px);
}
.trust-badges .trust-badge.visible {
  animation: trustPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes trustPop {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Product card image zoom enhancement */
.product-card .product-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.12);
}

/* Smooth page header entrance */
.page-header {
  animation: headerSlide 0.5s ease both;
}
@keyframes headerSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Mobile Filter Drawer ===== */
.filter-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 1040;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(227,38,54,0.4);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.filter-mobile-toggle:active {
  transform: scale(0.95);
}
.filter-mobile-toggle .filter-count-badge {
  background: var(--white);
  color: var(--red);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1049;
  opacity: 0;
  transition: opacity 0.3s;
}
.filter-overlay.active {
  opacity: 1;
}
.filter-drawer {
  position: fixed;
  top: 0;
  left: -85%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  z-index: 1050;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.filter-drawer.open {
  left: 0;
}
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1;
}
.filter-drawer-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-600);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-drawer-close:hover {
  background: var(--gray-200);
  color: var(--red);
}
.filter-drawer-body {
  padding: 0;
}
.filter-drawer-body .filter-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-drawer-body .filter-section h6 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.filter-drawer-body .form-check {
  margin-bottom: 8px;
}
.filter-drawer-body .form-check-input:checked {
  background-color: var(--red);
  border-color: var(--red);
}
.filter-drawer-body .form-check-label {
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
}
.filter-drawer-body .form-check-label .count {
  color: var(--gray-500);
  margin-left: 4px;
}
.filter-drawer-body .price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-drawer-body .price-inputs .form-control {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
}
.filter-drawer-body .price-inputs .form-control:focus { border-color: var(--red); }
.filter-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
  position: sticky;
  bottom: 0;
}
.filter-drawer-footer .btn {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border-radius: 50px;
}
@media (max-width: 991.98px) {
  .filter-mobile-toggle {
    display: flex;
  }
  .filter-overlay {
    display: block;
    pointer-events: none;
  }
  .filter-overlay.active {
    pointer-events: auto;
  }
}
@media (min-width: 992px) {
  .filter-drawer, .filter-overlay, .filter-mobile-toggle {
    display: none !important;
  }
}

/* PWA Install Popup */
.pwa-install-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.pwa-install-modal .modal-body { padding: 32px 28px 20px; }
.pwa-install-close { position: absolute; top: 12px; right: 12px; z-index: 5; }
.pwa-install-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.pwa-app-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pwa-install-desc { font-size: 14px; }
#pwaIosInstructions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 14px;
}
#pwaIosInstructions .bi-square-fill { color: #1da1f2; }
#pwaIosInstructions .bi-plus-square { color: #e32636; }
