/* ============================================================
   RedMart — Complete Stylesheet
   Cherry Red theme · Mobile-first · Production-grade
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --red: #c0392b;
  --red-dark: #96281b;
  --red-light: #e74c3c;
  --red-pale: #fdf0ef;
  --red-glow: rgba(192, 57, 43, 0.15);

  --black: #1a1a1a;
  --dark: #2c2c2c;
  --mid: #666;
  --light: #aaa;
  --border: #e8e8e8;
  --bg: #f9f9f9;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-red: 0 6px 24px rgba(192,57,43,0.28);

  --header-h: 72px;
  --topbar-h: 38px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-outline:hover { background: var(--red-pale); }
.btn-outline-white {
  background: transparent;
  border-color: white;
  color: white;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--black);
  color: #ccc;
  font-size: 0.78rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.top-social { display: flex; gap: 0.75rem; }
.top-social a {
  color: #aaa;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}
.top-social a:hover { color: var(--white); background: var(--red); }
.top-contact { display: flex; gap: 1.5rem; align-items: center; }
.top-contact span { display: flex; align-items: center; gap: 0.4rem; }
.top-contact i { color: var(--red-light); font-size: 0.7rem; }

/* ---------- MAIN HEADER ---------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  color: white;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--black);
  letter-spacing: -0.03em;
}
.logo-text strong { font-weight: 700; color: var(--red); }

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--dark);
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { left: 0.75rem; right: 0.75rem; }
.nav-link:hover, .nav-link.active { color: var(--red); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--dark);
  font-size: 1rem;
  transition: all var(--transition);
}
.icon-btn:hover { background: var(--red-pale); color: var(--red); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--red-pale); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SEARCH DROPDOWN */
.search-bar-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, border-color 0.25s;
  border-top: 0 solid var(--border);
  background: white;
}
.search-bar-dropdown.open {
  max-height: 80px;
  border-top: 1px solid var(--border);
}
.search-form {
  display: flex;
  align-items: stretch;
  padding: 0.75rem 0;
  gap: 0;
}
.search-form input {
  flex: 1;
  border: 2px solid var(--border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.7rem 1.2rem;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--red); }
.search-form button {
  background: var(--red);
  color: white;
  border: 2px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--red-dark); }

/* ---------- HERO CAROUSEL ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 60vh, 680px);
}
.carousel { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.slide-text-box {
  max-width: 520px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.slide-tag {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.slide-text-box h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.slide-text-box h1 em {
  font-style: normal;
  color: #f4a59a;
}
.slide-text-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* CAROUSEL CONTROLS */
.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.carousel-prev, .carousel-next {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.carousel-prev:hover, .carousel-next:hover {
  background: var(--red);
  border-color: var(--red);
}
.carousel-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active {
  background: var(--red);
  transform: scale(1.2);
  width: 28px;
  border-radius: 5px;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--black);
}
.fire-badge { font-size: 1.4rem; }
.see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: flex; align-items: center; gap: 0.3rem;
  transition: gap var(--transition);
}
.see-all:hover { gap: 0.6rem; }

/* ---------- CATEGORY PILLS ---------- */
.category-pills-section { padding: 3.5rem 1.5rem 2rem; }
.category-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  min-width: 90px;
  flex: 1;
}
.cat-pill:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--red-pale);
}
.cat-pill-icon {
  width: 48px; height: 48px;
  background: var(--red-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--red);
  transition: all var(--transition);
}
.cat-pill:hover .cat-pill-icon { background: var(--red); color: white; }
.cat-pill span { font-size: 0.8rem; font-weight: 600; color: var(--dark); }

/* ---------- PRODUCTS SECTIONS ---------- */
.products-section { padding: 2.5rem 1.5rem; }

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.products-grid.list-view {
  grid-template-columns: 1fr;
}
.products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  height: 160px;
}
.products-grid.list-view .product-img {
  height: 100%;
  border-radius: var(--radius) 0 0 var(--radius);
}
.products-grid.list-view .product-body { padding: 1.25rem; }

/* PRODUCT CARD */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}
.product-img {
  height: 200px;
  overflow: hidden;
  background: #f2f2f2;
  position: relative;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.07); }
.product-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-badge.new { background: #2ecc71; }
.product-badge.sale { background: var(--red); }
.product-wishlist {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--light);
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover .product-wishlist { opacity: 1; transform: scale(1); }
.product-wishlist:hover { color: var(--red); }
.product-wishlist.wishlisted { color: var(--red); opacity: 1; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-vendor {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.stars { color: #f39c12; font-size: 0.75rem; }
.rating-count { font-size: 0.72rem; color: var(--light); }
.product-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
}
.price-original {
  font-size: 0.82rem;
  color: var(--light);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: #27ae60;
  background: #eafaf1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.add-to-cart-btn {
  width: 100%;
  background: var(--red-pale);
  color: var(--red);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.55rem;
  font-weight: 600;
  font-size: 0.83rem;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: all var(--transition);
}
.add-to-cart-btn:hover {
  background: var(--red);
  color: white;
  transform: none;
}

/* ---------- PROMO BANNER ---------- */
.promo-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 60%, #e74c3c 100%);
  color: white;
  padding: 4rem 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.promo-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.promo-text p { opacity: 0.9; max-width: 400px; margin-bottom: 1.5rem; }
.promo-stats {
  display: flex;
  gap: 2.5rem;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; }
.stat span { font-size: 0.85rem; opacity: 0.8; }

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.page-hero p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ---------- SHOP PAGE ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  align-items: start;
}

/* SIDEBAR */
.shop-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.filter-toggle-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.filter-arrow { transition: transform var(--transition); }
.filter-toggle-bar.open .filter-arrow { transform: rotate(180deg); }
.sidebar-inner { padding: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--dark);
  padding: 0.35rem 0;
  cursor: pointer;
  transition: color var(--transition);
}
.filter-check:hover { color: var(--red); }
.filter-check input[type="checkbox"],
.filter-check input[type="radio"] { accent-color: var(--red); width: 15px; height: 15px; }
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--red);
  margin-bottom: 0.5rem;
}
.price-label { font-size: 0.85rem; color: var(--mid); }
.price-label strong { color: var(--red); }
.sort-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.87rem;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--red); }
.clear-filters { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* SHOP MAIN */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.result-count { font-size: 0.87rem; color: var(--mid); }
.view-toggle { display: flex; gap: 0.4rem; }
.view-btn {
  width: 34px; height: 34px;
  border-radius: 6px;
  color: var(--light);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.view-btn.active { background: var(--red); color: white; border-color: var(--red); }
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--light);
}
.no-results i { font-size: 3rem; margin-bottom: 1rem; color: var(--border); }
.no-results h3 { color: var(--mid); margin-bottom: 0.5rem; }
.no-results p { margin-bottom: 1.5rem; }

/* ---------- CATEGORIES PAGE ---------- */
.cat-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cat-tab {
  padding: 0.55rem 1.2rem;
  border-radius: 25px;
  font-size: 0.87rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--mid);
  transition: all var(--transition);
}
.cat-tab:hover { border-color: var(--red); color: var(--red); }
.cat-tab.active { background: var(--red); color: white; border-color: var(--red); }
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.cat-card-img {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: white;
}
.cat-card-body { padding: 1.25rem; }
.cat-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.cat-card-body p { font-size: 0.82rem; color: var(--mid); margin-bottom: 1rem; }

/* ---------- CART PAGE ---------- */
.cart-page-layout { padding: 2.5rem 1.5rem; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.cart-items { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-size: 1.05rem; font-weight: 700; }
.clear-cart-btn { font-size: 0.82rem; color: var(--red); cursor: pointer; }
.clear-cart-btn:hover { text-decoration: underline; }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background var(--transition);
}
.cart-item:hover { background: var(--bg); }
.cart-item-img {
  width: 90px; height: 90px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #f0f0f0;
}
.cart-item-info h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.cart-item-vendor { font-size: 0.75rem; color: var(--red); font-weight: 600; margin-bottom: 0.5rem; }
.cart-item-price { font-weight: 700; color: var(--red); font-size: 1rem; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--dark);
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-num { font-weight: 600; font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-remove {
  color: var(--light);
  font-size: 0.9rem;
  padding: 0.3rem;
  transition: color var(--transition);
  cursor: pointer;
}
.cart-item-remove:hover { color: var(--red); }
.cart-summary {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.55rem 0;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: 0; }
.summary-row.total { font-size: 1.05rem; font-weight: 700; color: var(--black); }
.summary-row.total .price { color: var(--red); }
.promo-input {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.promo-input input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  outline: none;
}
.promo-input input:focus { border-color: var(--red); }
.promo-input button {
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition);
}
.promo-input button:hover { background: var(--red); }
.checkout-cta { margin-top: 1rem; }
.checkout-cta .btn { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.secure-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--light);
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.empty-cart {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--light);
}
.empty-cart i { font-size: 4rem; margin-bottom: 1rem; color: var(--border); }
.empty-cart h3 { color: var(--mid); margin-bottom: 0.5rem; }
.empty-cart p { margin-bottom: 1.5rem; }

/* ---------- PRODUCT DETAIL ---------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 2.5rem;
}
.detail-gallery { position: relative; }
.detail-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #f5f5f5;
}
.detail-info {}
.detail-vendor { font-size: 0.78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.detail-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
.detail-rating { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; font-size: 0.88rem; color: var(--mid); }
.detail-price { margin-bottom: 1.5rem; }
.detail-price-current { font-size: 2.2rem; font-weight: 800; color: var(--red); line-height: 1; }
.detail-price-original { font-size: 1rem; color: var(--light); text-decoration: line-through; margin-left: 0.5rem; }
.detail-price-save { display: inline-block; background: #eafaf1; color: #27ae60; font-size: 0.82rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 6px; margin-top: 0.4rem; }
.detail-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.8; margin-bottom: 1.5rem; }
.detail-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.detail-qty-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.detail-qty-control button { width: 40px; height: 44px; font-size: 1.2rem; color: var(--dark); transition: all var(--transition); }
.detail-qty-control button:hover { background: var(--red-pale); color: var(--red); }
.detail-qty-control span { padding: 0 1rem; font-weight: 700; font-size: 1rem; }
.detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
.detail-meta { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.83rem; color: var(--mid); }
.detail-meta span { display: block; margin-bottom: 0.3rem; }
.detail-meta strong { color: var(--dark); }

/* ---------- CHECKOUT PAGE ---------- */
.checkout-progress {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.step-circle.active { background: var(--red); color: white; }
.step-circle.done { background: #2ecc71; color: white; }
.progress-step span { font-size: 0.78rem; font-weight: 600; color: var(--light); }
.progress-line {
  width: 80px; height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  position: relative;
  top: -10px;
  transition: background var(--transition);
}
.progress-line.done { background: #2ecc71; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  align-items: start;
}
.checkout-step {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
}
.checkout-step h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--black);
}
.checkout-step h2 i { color: var(--red); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--dark); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  color: var(--black);
}
.form-group input:focus { border-color: var(--red); }
.form-group input.error { border-color: #e74c3c; }
.field-error { display: block; font-size: 0.78rem; color: #e74c3c; margin-top: 0.3rem; min-height: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.shipping-options { display: flex; flex-direction: column; gap: 0.75rem; }
.shipping-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.shipping-option:has(input:checked) { border-color: var(--red); background: var(--red-pale); }
.shipping-option input { accent-color: var(--red); }
.shipping-option-content { flex: 1; display: flex; gap: 0.75rem; align-items: center; font-size: 0.88rem; }
.shipping-option-content strong { font-weight: 600; }
.shipping-option-content span { color: var(--mid); }
.shipping-price { margin-left: auto; font-weight: 700; color: var(--red); }
.payment-methods { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.payment-method { flex: 1; min-width: 100px; }
.payment-method input { display: none; }
.pay-method-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
  transition: all var(--transition);
  text-align: center;
}
.payment-method:has(input:checked) .pay-method-label { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.card-input-wrap { position: relative; }
.card-icons { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); display: flex; gap: 0.3rem; font-size: 1.3rem; }
.card-icons .fa-cc-visa { color: #1a1f71; }
.card-icons .fa-cc-mastercard { color: #eb001b; }
.card-icons .fa-cc-amex { color: #2e77bc; }
.payment-info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--red-pale);
  border-radius: var(--radius);
  border: 1px solid rgba(192,57,43,0.2);
  font-size: 0.9rem;
  color: var(--dark);
}
.payment-info-box i { font-size: 2rem; color: var(--red); }

/* CHECKOUT SUMMARY */
.checkout-summary {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.checkout-summary h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.checkout-items-list { margin-bottom: 1rem; }
.checkout-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  align-items: center;
}
.checkout-item img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.checkout-item-info { flex: 1; }
.checkout-item-info strong { display: block; font-size: 0.83rem; line-height: 1.3; }
.checkout-item-info span { color: var(--mid); font-size: 0.78rem; }
.checkout-item-price { font-weight: 700; color: var(--red); white-space: nowrap; }
.checkout-totals .summary-row { font-size: 0.88rem; }
.secure-badges {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.secure-badges span {
  font-size: 0.75rem;
  color: var(--light);
  display: flex; align-items: center; gap: 0.3rem;
}
.secure-badges i { color: #27ae60; }

/* ORDER REVIEW */
#orderReview .review-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
}
#orderReview .review-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 0.75rem;
}
#orderReview .review-section p { font-size: 0.9rem; color: var(--dark); line-height: 1.7; }

/* ---------- CONFIRMATION PAGE ---------- */
.confirmation-page {
  padding: 3rem 1.5rem;
  max-width: 680px;
}
.confirmation-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
}
.confirm-icon { margin-bottom: 1.5rem; }
.checkmark-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(46,204,113,0.35);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.checkmark-circle i { font-size: 2.5rem; color: white; }
.confirmation-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.confirm-subtitle { color: var(--mid); margin-bottom: 1.5rem; }
.order-id-box {
  background: var(--red-pale);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  margin-bottom: 2rem;
  color: var(--dark);
}
.order-id-box strong { font-size: 1.05rem; color: var(--red); }
.confirm-details {
  text-align: left;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.9;
}
.confirm-details strong { color: var(--dark); font-weight: 600; }
.confirm-timeline { margin: 2rem 0; }
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  position: relative;
}
.timeline-step .tl-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.timeline-step.done .tl-icon { background: #2ecc71; color: white; }
.timeline-step.pending .tl-icon { background: var(--border); color: var(--light); }
.tl-text strong { display: block; font-size: 0.9rem; font-weight: 600; }
.tl-text span { font-size: 0.8rem; color: var(--light); }
.timeline-line { width: 2px; height: 30px; background: var(--border); margin: 0.25rem 0 0.25rem 19px; }
.confirm-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- ORDERS PAGE ---------- */
.orders-page { padding: 2.5rem 1.5rem; }
.orders-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.order-filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--mid);
  transition: all var(--transition);
}
.order-filter-btn:hover { border-color: var(--red); color: var(--red); }
.order-filter-btn.active { background: var(--red); color: white; border-color: var(--red); }
.order-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.order-card:hover { box-shadow: var(--shadow); }
.order-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.order-id { font-weight: 700; font-size: 0.92rem; }
.order-date { font-size: 0.83rem; color: var(--light); }
.order-status {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-processing { background: #fef9e7; color: #d68910; }
.status-shipped { background: #eaf3fb; color: #1a74b0; }
.status-delivered { background: #eafaf1; color: #1e8449; }
.status-cancelled { background: #fdedec; color: #c0392b; }
.order-total { margin-left: auto; font-weight: 700; color: var(--red); }
.order-card-body { padding: 1.25rem 1.5rem; }
.order-products { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-product-thumb {
  width: 60px; height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
}
.order-card-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.empty-orders {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--light);
}
.empty-orders i { font-size: 4rem; margin-bottom: 1rem; color: var(--border); }
.empty-orders h3 { color: var(--mid); margin-bottom: 0.5rem; }
.empty-orders p { margin-bottom: 1.5rem; }

/* ---------- AUTH PAGES ---------- */
.auth-body { background: var(--bg); }
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand-panel {
  background: linear-gradient(145deg, var(--black) 0%, var(--red-dark) 100%);
  color: white;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.auth-logo { margin-bottom: 3rem; position: relative; z-index: 1; }
.auth-logo .logo-icon { background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.auth-logo .logo-text { color: white; }
.auth-logo .logo-text strong { color: #f4a59a; }
.auth-brand-content { position: relative; z-index: 1; }
.auth-brand-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.auth-brand-content p { opacity: 0.8; line-height: 1.7; margin-bottom: 2rem; }
.auth-features { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
.auth-feature i { color: #f4a59a; width: 18px; }
.auth-form-panel {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}
.auth-subtitle { font-size: 0.88rem; color: var(--mid); margin-bottom: 2rem; }
.auth-subtitle a { color: var(--red); font-weight: 600; }
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  background: white;
  transition: all var(--transition);
  margin-bottom: 1.25rem;
}
.google-btn:hover {
  border-color: #4285F4;
  background: #f8f9ff;
  box-shadow: var(--shadow-sm);
}
.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  color: var(--light);
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: white;
  padding: 0 0.75rem;
}
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--light); font-size: 0.85rem; }
.input-icon-wrap input { padding-left: 2.5rem !important; }
.toggle-pw {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.toggle-pw:hover { color: var(--red); }
.form-row-spaced { justify-content: space-between; align-items: center; grid-template-columns: auto auto; gap: 0; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mid);
  cursor: pointer;
}
.checkbox-label input { accent-color: var(--red); }
.forgot-link { font-size: 0.85rem; color: var(--red); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }
.auth-footer-note { font-size: 0.78rem; color: var(--light); text-align: center; margin-top: 1.25rem; }
.auth-footer-note a { color: var(--red); }
.password-strength { height: 4px; background: var(--border); border-radius: 2px; margin-top: 0.4rem; overflow: hidden; }
.strength-bar { height: 100%; width: 0; border-radius: 2px; transition: all 0.3s; }
.strength-bar.weak { background: #e74c3c; width: 33%; }
.strength-bar.medium { background: #f39c12; width: 66%; }
.strength-bar.strong { background: #2ecc71; width: 100%; }
.strength-label { font-size: 0.75rem; margin-top: 0.25rem; display: block; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
}
.footer-brand .logo-text { color: white; }
.footer-brand .logo-text strong { color: #f4a59a; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-links h4, .footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1.25rem;
}
.footer-links ul li {
  margin-bottom: 0.65rem;
}
.footer-links ul a {
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-links ul a:hover { color: var(--red-light); }
.footer-contact p {
  font-size: 0.87rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}
.footer-contact i { color: var(--red-light); margin-top: 0.15rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--red-light); }

/* ---------- TOAST NOTIFICATION ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--black);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  pointer-events: none;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success::before { content: '✓'; color: #2ecc71; font-weight: 700; font-size: 1rem; }
.toast.error::before { content: '✕'; color: var(--red-light); font-weight: 700; }
.toast.info::before { content: 'ℹ'; color: #3498db; }

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 900px) {
  .top-contact .top-email { display: none; }
  
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
    margin-left: 0;
  }
  .main-nav.open { right: 0; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.5rem 2rem; }

  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 2rem 1.5rem; }

  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: static;
    margin-bottom: 1rem;
  }
  .filter-toggle-bar { display: flex; }
  .sidebar-inner { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 1.25rem; }
  .sidebar-inner.open { max-height: 1000px; padding: 1.25rem; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }

  .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-main-img { height: 280px; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; --topbar-h: 0px; }
  .top-bar { display: none; }
  
  .logo-text { font-size: 1.1rem; }

  .hero-section { height: clamp(320px, 70vw, 480px); }
  .slide-text-box { padding: 1.5rem; }
  .slide-text-box h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .slide-text-box p { display: none; }

  .category-pills { gap: 0.6rem; }
  .cat-pill { padding: 0.9rem 1rem; min-width: 72px; }
  .cat-pill-icon { width: 40px; height: 40px; font-size: 1rem; }
  .cat-pill span { font-size: 0.72rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-img { height: 160px; }
  .product-body { padding: 0.75rem; }
  .product-name { font-size: 0.82rem; }
  .price-current { font-size: 1rem; }
  .add-to-cart-btn { font-size: 0.75rem; padding: 0.5rem; }

  .promo-inner { text-align: center; flex-direction: column; }
  .promo-stats { justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-links:last-child, .footer-links:nth-child(3) { display: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .checkout-layout, .cart-layout { padding: 1rem; }
  .confirmation-card { padding: 2rem 1.25rem; }
  
  .cart-item { grid-template-columns: 70px 1fr auto; }
  .cart-item-img { width: 70px; height: 70px; }

  .progress-line { width: 40px; }

  .category-cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .product-img { height: 130px; }
}
