/* =============================================
   ANEX Foam & Furniture — Custom Stylesheet
   ============================================= */

/* ---------- CSS Variables / Color System ---------- */
:root {
  /* Brand palette */
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --violet: #8b5cf6;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --orange: #f97316;
  --orange-light: #fdba74;
  --red: #ef4444;
  --red-light: #f87171;
  --green: #10b981;
  --green-light: #34d399;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Footer dark color */
  --footer-dark: #1e1b4b;
  --footer-dark-lighter: #2d2a6e;

  /* Gradients */
  --grad-purple-blue: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-purple-pink: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --grad-pink-orange: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
  --grad-purple-pink-orange: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
  --grad-blue-cyan: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 20px 50px rgba(124, 58, 237, 0.15);

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-900);
}

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

img {
  max-width: 100%;
  display: block;
}

.text-warning{
  color: var(--purple) !important;
}

.bg-warning{
  border-radius: var(--radius-lg);
  background: var(--grad-purple-pink-orange);
  color: var(--white) !important;
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  border: none;
  border-radius: var(--radius);
  background: var(--grad-purple-blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

/* Custom container helper — uses 1280px max-width */
.container-xl {
  max-width: var(--container-max);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =============================================
   1. TOP PROMOTIONAL BAR
   ============================================= */
.top-promo-bar {
  background: var(--grad-purple-blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  width: 100vw;
  position: relative;
  z-index: 1050;
}

.top-promo-bar .promo-text {
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-promo-bar i {
  font-size: 0.9rem;
}

.top-promo-bar .promo-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.top-promo-bar .promo-links a:hover {
  color: var(--white);
}

/* =============================================
   2. MAIN HEADER
   ============================================= */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  z-index: 1040;
}

/* Logo */
.anex-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  transition: var(--transition);
}

.logo-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grad-purple-pink);
  color: var(--white);
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-anex {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.3px;
}

.anex-logo:hover .logo-icon-wrap {
  transform: scale(1.08);
}

/* Search box */
.search-box {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.search-category {
  position: relative;
  border-right: 1px solid var(--gray-200);
}

.search-category-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: none;
  background: var(--gray-50);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  cursor: pointer;
  height: 100%;
  transition: var(--transition);
}

.search-category-btn:hover {
  background: var(--gray-100);
}

.search-category-btn i {
  font-size: 0.7rem;
  color: var(--gray-400);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-btn {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  border: none;
  background: var(--grad-purple-blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.search-btn i {
  font-size: 0.9rem;
}

/* Hotline */
.hotline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--purple);
  font-size: 1.2rem;
}

.hotline-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hotline-label {
  font-size: 0.72rem;
  color: var(--gray-400);
}

.hotline-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
}

.hotline-number:hover {
  color: var(--purple);
}

/* Cart icon */
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray-700);
  transition: var(--transition);
}

.cart-icon-btn:hover {
  color: var(--purple);
}

.cart-icon {
  font-size: 1.6rem;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--grad-pink-orange);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 5px;
  border: 2px solid var(--white);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-badge.bump {
  transform: scale(1.4);
}

.cart-amount {
  line-height: 1.2;
}

.cart-amount-label {
  font-size: 0.68rem;
  color: var(--gray-400);
}

#cartAmount {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
}

.wishlist-icon-btn {
  font-size: 1.3rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.wishlist-icon-btn:hover {
  color: var(--pink);
}

/* =============================================
   3. NAVIGATION BAR
   ============================================= */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.3s, background 0.3s;
}

.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  min-height: 56px;
}

/* All Categories button */
.all-categories-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  border: none;
  border-radius: var(--radius);
  background: var(--grad-purple-pink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  transition: var(--transition);
}

.all-categories-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.all-categories-btn i {
  font-size: 1.1rem;
}

/* Desktop nav links */
.nav-links .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-purple-pink);
  transition: width 0.3s, left 0.3s;
}

.nav-links .nav-link:hover {
  color: var(--purple);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  width: 60%;
  left: 20%;
}

.nav-links .nav-link.active {
  color: var(--purple);
  font-weight: 600;
}

.nav-feature {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-feature i {
  color: var(--purple);
  font-size: 1rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  background: transparent;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

/* Mobile nav drawer */
.mobile-nav {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 500px;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.mobile-nav .nav-link {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple);
}

.mobile-nav-features {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.82rem;
  color: var(--gray-500);
}

.mobile-nav-features i {
  color: var(--purple);
  margin-right: 0.3rem;
}

/* =============================================
   4. HERO SLIDER
   ============================================= */
.hero-section {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
  /* 16:7 aspect ratio on desktop */
  aspect-ratio: 16 / 7;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--gray-800);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.hero-slider:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-md);
}

.hero-arrow:focus-visible {
  opacity: 1;
  outline: 3px solid var(--purple-light);
  outline-offset: 2px;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

/* Pagination dots */
.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--white);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* =============================================
   5. SERVICE FEATURES
   ============================================= */
.service-features {
  background: var(--gray-50);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  height: 100%;
}

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

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-5deg);
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0;
}

/* Pastel gradients per card */
.service-purple { background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(124,58,237,0.03)); }
.service-purple .service-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.service-pink { background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(236,72,153,0.03)); }
.service-pink .service-icon { background: linear-gradient(135deg, #ec4899, #f472b6); }

.service-orange { background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.03)); }
.service-orange .service-icon { background: linear-gradient(135deg, #f97316, #fdba74); }

.service-green { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.03)); }
.service-green .service-icon { background: linear-gradient(135deg, #10b981, #34d399); }

.service-blue { background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(37,99,235,0.03)); }
.service-blue .service-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }

/* =============================================
   6. SECTION HEADERS (shared)
   ============================================= */
.section-header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}

.section-underline {
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-purple-pink);
  margin: 0 auto;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* =============================================
   6. CATEGORY CARDS
   ============================================= */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.2rem 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.category-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.08);
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.shop-now {
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

/* Accent colors for categories */
.accent-purple .category-img-wrap { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(124,58,237,0.04)); }
.accent-purple .shop-now { color: var(--purple); }
.accent-purple:hover .shop-now { color: var(--violet); }

.accent-blue .category-img-wrap { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(37,99,235,0.04)); }
.accent-blue .shop-now { color: var(--blue); }
.accent-blue:hover .shop-now { color: var(--blue-light); }

.accent-pink .category-img-wrap { background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(236,72,153,0.04)); }
.accent-pink .shop-now { color: var(--pink); }
.accent-pink:hover .shop-now { color: var(--pink-light); }

.accent-orange .category-img-wrap { background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.04)); }
.accent-orange .shop-now { color: var(--orange); }
.accent-orange:hover .shop-now { color: var(--orange-light); }

.accent-green .category-img-wrap { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04)); }
.accent-green .shop-now { color: var(--green); }
.accent-green:hover .shop-now { color: var(--green-light); }

.accent-red .category-img-wrap { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04)); }
.accent-red .shop-now { color: var(--red); }
.accent-red:hover .shop-now { color: var(--red-light); }

/* =============================================
   7. PROMOTIONAL BANNER
   ============================================= */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  background: var(--grad-purple-pink-orange);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.promo-banner::before,
.promo-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.promo-banner::before {
  width: 200px;
  height: 200px;
  top: -80px;
  right: -50px;
}

.promo-banner::after {
  width: 140px;
  height: 140px;
  bottom: -60px;
  left: 20%;
}

.promo-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.promo-tag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.promo-banner-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
}

.promo-banner-discount {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.promo-banner-center {
  text-align: center;
  position: relative;
  z-index: 1;
}

.promo-banner-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
}

.promo-banner-subtitle {
  display: block;
  font-size: 1.1rem;
  opacity: 0.9;
}

.promo-banner-right {
  position: relative;
  z-index: 1;
}

.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.promo-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--pink);
}

/* =============================================
   8. PRODUCT CARDS
   ============================================= */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-50);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--grad-pink-orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-400);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .wishlist-btn {
  opacity: 1;
}

.wishlist-btn:hover {
  background: var(--white);
  color: var(--pink);
  transform: scale(1.15);
}

.wishlist-btn.active {
  color: var(--pink);
  opacity: 1;
}

.wishlist-btn.active i::before {
  content: "\F415"; /* bi-heart-fill */
}

.product-info {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--purple);
  margin-bottom: 0.3rem;
}

.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.product-rating .stars {
  color: #fbbf24;
  font-size: 0.82rem;
}

.product-rating .rating-count {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}

.product-old-price {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.add-to-cart-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--grad-purple-blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.add-to-cart-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.add-to-cart-btn i {
  font-size: 1rem;
}

.add-to-cart-btn.added {
  background: linear-gradient(135deg, #10b981, #34d399);
}

/* =============================================
   10. FOOTER
   ============================================= */
.anex-footer {
  background: var(--footer-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 0;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo .logo-anex { color: var(--white); }
.footer-logo .logo-sub { color: var(--purple-light); }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--grad-purple-pink);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-purple-pink);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--purple-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--purple-light);
}

.footer-contact i {
  color: var(--purple-light);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-payments {
  display: flex;
  gap: 0.75rem;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--grad-purple-pink);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
}

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .section-title {
    font-size: 1.7rem;
  }

  .logo-anex {
    font-size: 1.2rem;
  }

  .logo-sub {
    font-size: 0.68rem;
  }

  .hotline {
    display: none !important;
  }

  .hero-slider {
    aspect-ratio: 16 / 8;
  }

  .promo-banner {
    padding: 2rem;
  }

  .promo-banner-discount {
    font-size: 1.3rem;
  }

  .promo-banner-title {
    font-size: 1.1rem;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .top-promo-bar .promo-text {
    margin: 0 auto;
    text-align: center;
  }

  .top-promo-bar .container-fluid {
    justify-content: center;
  }

  .top-promo-bar .promo-links {
    display: none !important;
  }

  .main-header .row {
    align-items: center;
  }

  .hero-slider {
    aspect-ratio: 16 / 8;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    opacity: 1;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Service cards: 2 columns on mobile */
  .service-card {
    padding: 1.1rem 0.6rem;
  }

  .service-card h3 {
    font-size: 0.85rem;
  }

  .service-card p {
    font-size: 0.72rem;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  /* Promo banner stacks vertically */
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
  }

  .promo-banner-left {
    flex-direction: column;
    text-align: center;
  }

  .promo-banner-cta {
    width: 100%;
    justify-content: center;
  }

  .promo-banner::after {
    display: none;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.1rem;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .container-xl {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .logo-anex {
    font-size: 1.05rem;
  }

  .logo-sub {
    font-size: 0.6rem;
  }

  .logo-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .hero-slider {
    aspect-ratio: 4 / 2;
    border-radius: var(--radius);
  }

  .hero-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .hero-prev { left: 0.5rem; }
  .hero-next { right: 0.5rem; }

  .section-title {
    font-size: 1.3rem;
  }

  .category-card {
    padding: 0.9rem 0.7rem 1.1rem;
  }

  .category-card h3 {
    font-size: 0.8rem;
  }

  .shop-now {
    font-size: 0.75rem;
  }

  .promo-banner-discount {
    font-size: 1.2rem;
  }

  .footer-heading {
    font-size: 0.92rem;
  }

  .footer-links a,
  .footer-contact li {
    font-size: 0.82rem;
  }
}

/* =============================================
   FOCUS STATES (Accessibility)
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.search-input:focus-visible {
  outline: none;
}
