/* YadakPlus - Auto Spare Parts Store Template */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-maroon: #700101;
  --color-red: #D21F26;
  --color-cream: #FEF3D8;
  --color-navy: #002B3D;
  --color-steel: #78A1BB;
  --color-white: #FFFFFF;
  --color-gray-100: #F8F9FA;
  --color-gray-200: #E9ECEF;
  --color-gray-300: #DEE2E6;
  --color-gray-500: #6C757D;
  --shadow-sm: 0 2px 8px rgba(0, 43, 61, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 43, 61, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 43, 61, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-navy);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* Top Bar */
.top-bar {
  background: var(--color-navy);
  color: var(--color-cream);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a { color: var(--color-cream); opacity: 0.85; }
.top-bar a:hover { opacity: 1; color: var(--color-white); }

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1050;
}
.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo i { color: var(--color-red); font-size: 2rem; }
.logo span { color: var(--color-red); }

.search-box {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.search-box input {
  width: 100%;
  padding: 12px 48px 12px 20px;
  border: 2px solid var(--color-steel);
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-box input:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(210, 31, 38, 0.15);
}
.search-box button {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-red);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.search-box button:hover { background: var(--color-maroon); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--color-navy);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.header-action i { font-size: 1.5rem; }
.header-action:hover { color: var(--color-red); }
.header-action .badge-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--color-red);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Navigation */
.main-nav {
  background: var(--color-navy);
  padding: 0;
}
.main-nav .nav-link {
  color: var(--color-cream) !important;
  padding: 14px 18px !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--color-white) !important;
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--color-red);
}
.main-nav .dropdown-toggle::after { margin-right: 6px; }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px;
  display: none;
  z-index: 1040;
  animation: fadeInDown 0.3s ease;
}
.mega-menu.show { display: block; }
.mega-menu-title {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-red);
  font-size: 0.95rem;
}
.mega-menu ul { list-style: none; padding: 0; margin: 0; }
.mega-menu ul li a {
  display: block;
  padding: 6px 0;
  color: var(--color-gray-500);
  font-size: 0.88rem;
  transition: var(--transition);
}
.mega-menu ul li a:hover {
  color: var(--color-red);
  padding-right: 8px;
}
.mega-menu-icon {
  width: 48px;
  height: 48px;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 1.3rem;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary-custom {
  background: var(--color-red);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-custom:hover {
  background: var(--color-maroon);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-custom {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-steel);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}
.btn-steel {
  background: var(--color-steel);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}
.btn-steel:hover { background: var(--color-navy); color: white; }

/* Hero Slider */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.hero-slide {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: none;
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,43,61,0.85) 0%, rgba(0,43,61,0.4) 100%);
  border-radius: var(--radius-lg);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  color: white;
  max-width: 560px;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 16px; }
.hero-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--color-red); width: 28px; border-radius: 5px; }
.hero-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrows button:hover { background: var(--color-red); }
.hero-arrows .prev { right: 16px; }
.hero-arrows .next { left: 16px; }

/* Section */
.section { padding: 48px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--color-navy);
}
.section-subtitle {
  color: var(--color-gray-500);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Product Card */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  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-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--color-gray-100);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-red);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-badge.amazing { background: var(--color-maroon); }
.product-badge.out-of-stock { background: var(--color-gray-500); }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.product-rating { color: #FFC107; font-size: 0.85rem; margin-bottom: 8px; }
.product-rating span { color: var(--color-gray-500); margin-right: 4px; }
.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: auto;
}
.product-price .old-price {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}
.product-price .discount {
  background: var(--color-red);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 700;
}
.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-gray-200);
}
.product-card-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-add-cart { background: var(--color-red); color: white; }
.btn-add-cart:hover { background: var(--color-maroon); }
.btn-compare { background: var(--color-cream); color: var(--color-navy); width: 44px; flex: none !important; }
.btn-compare:hover { background: var(--color-steel); color: white; }
.btn-wishlist { background: var(--color-cream); color: var(--color-navy); width: 40px; flex: none !important; }
.btn-wishlist:hover { color: var(--color-red); }

/* Category Card */
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--color-navy);
  color: white;
}
.category-card i {
  font-size: 2.5rem;
  color: var(--color-red);
  margin-bottom: 12px;
  display: block;
  transition: var(--transition);
}
.category-card:hover i { color: var(--color-cream); }
.category-card h5 { font-size: 0.95rem; font-weight: 600; margin: 0; }

/* Amazing Banner */
.amazing-banner {
  background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-red) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.amazing-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.amazing-banner h2 { font-size: 2rem; font-weight: 800; }
.amazing-timer {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.amazing-timer .time-box {
  background: rgba(0,0,0,0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 56px;
}
.amazing-timer .time-box .num { font-size: 1.5rem; font-weight: 800; display: block; }
.amazing-timer .time-box .label { font-size: 0.7rem; opacity: 0.8; }

/* Features */
.feature-box {
  text-align: center;
  padding: 24px 16px;
}
.feature-box i {
  font-size: 2.5rem;
  color: var(--color-steel);
  margin-bottom: 12px;
  display: block;
}
.feature-box h5 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-box p { font-size: 0.85rem; color: var(--color-gray-500); margin: 0; }

/* Brands Slider */
.brands-slider {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brand-item {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-navy);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.brand-item:hover { box-shadow: var(--shadow-md); color: var(--color-red); }

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: var(--color-cream);
  padding-top: 48px;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(254,243,216,0.75);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-right: 6px; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(254,243,216,0.75);
}
.footer-contact i { color: var(--color-red); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--color-red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(254,243,216,0.6);
}

/* Breadcrumb */
.breadcrumb-custom {
  background: transparent;
  padding: 16px 0;
  margin: 0;
  font-size: 0.88rem;
}
.breadcrumb-custom .breadcrumb-item a { color: var(--color-steel); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--color-navy); font-weight: 600; }

/* Product Detail */
.product-gallery { position: sticky; top: 100px; }
.product-gallery .main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-white);
}
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.product-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-thumbs img.active,
.product-thumbs img:hover { border-color: var(--color-red); }
.product-info h1 { font-size: 1.5rem; margin-bottom: 12px; }
.product-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.88rem; color: var(--color-gray-500); }
.product-meta span { display: flex; align-items: center; gap: 4px; }
.product-price-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.product-price-box .current-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.quantity-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-gray-100);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.quantity-selector button:hover { background: var(--color-steel); color: white; }
.quantity-selector input {
  width: 50px;
  text-align: center;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
}

/* Tabs */
.custom-tabs .nav-link {
  color: var(--color-gray-500);
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: var(--transition);
}
.custom-tabs .nav-link.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
  background: transparent;
}
.custom-tabs .nav-link:hover { color: var(--color-navy); }

/* Mobile Sticky Tabs */
.mobile-sticky-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1040;
  padding: 0;
}
.mobile-sticky-tabs .nav-link {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.8rem;
  color: var(--color-gray-500);
  border: none;
  border-top: 3px solid transparent;
}
.mobile-sticky-tabs .nav-link.active {
  color: var(--color-red);
  border-top-color: var(--color-red);
}

/* Compare Table */
.compare-table { overflow-x: auto; }
.compare-table table { min-width: 800px; }
.compare-table th {
  background: var(--color-navy);
  color: white;
  padding: 16px;
  font-weight: 600;
  text-align: center;
  vertical-align: top;
}
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-white);
  font-size: 0.9rem;
}
.compare-table td:first-child {
  background: var(--color-cream);
  font-weight: 600;
  text-align: right;
  position: sticky;
  right: 0;
}
.compare-product-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 auto 12px;
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  position: relative;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 180px;
  position: relative;
}
.checkout-step::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: var(--color-gray-200);
  z-index: 0;
}
.checkout-step:last-child::after { display: none; }
.checkout-step.active::after,
.checkout-step.done::after { background: var(--color-red); }
.checkout-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-200);
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.checkout-step.active .step-num,
.checkout-step.done .step-num {
  background: var(--color-red);
  color: white;
}
.checkout-step .step-label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--color-gray-500);
  text-align: center;
}
.checkout-step.active .step-label { color: var(--color-navy); font-weight: 600; }

/* Cart */
.cart-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: center;
}
.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-summary {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-gray-200);
}
.cart-summary .summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
}
.cart-summary .summary-row:last-of-type {
  border-bottom: none;
}
.cart-discount-applied {
  padding: 10px 12px;
  background: rgba(120, 161, 187, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}

/* Cart page layout stability */
.cart-page {
  min-height: 50vh;
}
.cart-page__alert {
  margin-bottom: 24px;
}
.cart-page__content {
  align-items: flex-start;
}
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(280px, 42vh, 440px);
  padding: 48px 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.cart-empty-state__icon {
  font-size: 4rem;
  color: var(--color-steel);
  line-height: 1;
  margin-bottom: 1rem;
}
.cart-empty-state h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

/* Inner page header */
.page-header {
  padding: 32px 0 24px;
  background: var(--color-cream);
}
.page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.page-header p {
  color: var(--color-gray-500);
  margin-bottom: 0;
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--color-gray-500);
}
.page-header .breadcrumb a {
  color: var(--color-gray-500);
}
.page-header .breadcrumb a:hover {
  color: var(--color-red);
}
.page-header .breadcrumb span {
  color: var(--color-steel);
}

/* Profile Sidebar */
.profile-sidebar {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-user {
  background: linear-gradient(135deg, var(--color-navy), var(--color-steel));
  padding: 24px;
  text-align: center;
  color: white;
}
.profile-user .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 2rem;
}
.profile-menu { list-style: none; padding: 8px 0; margin: 0; }
.profile-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--color-navy);
  font-size: 0.9rem;
  transition: var(--transition);
  border-right: 3px solid transparent;
}
.profile-menu li a:hover,
.profile-menu li a.active {
  background: var(--color-cream);
  color: var(--color-red);
  border-right-color: var(--color-red);
}
.profile-menu li a i { font-size: 1.1rem; width: 24px; }

/* Auth */
.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 460px;
  margin: 0 auto;
}
.auth-card .form-control {
  padding: 12px 16px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: var(--transition);
}
.auth-card .form-control:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(210,31,38,0.15);
}

/* Blog */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: 20px; }
.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--color-steel);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { font-size: 0.88rem; color: var(--color-gray-500); margin-bottom: 12px; }

/* Review */
.review-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author .avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-navy);
}
.star-rating { color: #FFC107; }
.star-rating .bi-star { color: var(--color-gray-300); cursor: pointer; transition: var(--transition); }
.star-rating .bi-star:hover,
.star-rating .bi-star-fill { color: #FFC107; }

/* Q&A */
.qa-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.qa-question {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.qa-question .q-icon {
  width: 32px;
  height: 32px;
  background: var(--color-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.qa-answer {
  display: flex;
  gap: 12px;
  padding-right: 20px;
  border-right: 3px solid var(--color-steel);
}
.qa-answer .a-icon {
  width: 32px;
  height: 32px;
  background: var(--color-steel);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-page .error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  opacity: 0.8;
}
.error-page h2 { font-size: 1.75rem; margin: 16px 0; }

/* Filter Sidebar */
.filter-sidebar {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.filter-group { margin-bottom: 24px; }
.filter-group h6 {
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-cream);
}
.filter-group .form-check { margin-bottom: 8px; }
.filter-group .form-check-label { font-size: 0.88rem; }

/* Address Card */
.address-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.address-card:hover,
.address-card.selected {
  border-color: var(--color-red);
  box-shadow: var(--shadow-sm);
}
.address-card.selected::before {
  content: '\F26B';
  font-family: bootstrap-icons;
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--color-red);
  font-size: 1.2rem;
}
.address-card .address-badge {
  background: var(--color-cream);
  color: var(--color-navy);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Order Card */
.order-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.order-status.delivered { background: #D4EDDA; color: #155724; }
.order-status.shipping { background: #CCE5FF; color: #004085; }
.order-status.pending { background: var(--color-cream); color: var(--color-maroon); }
.order-status.cancelled { background: #F8D7DA; color: #721C24; }

/* Horizontal Product Slider */
.product-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-slider::-webkit-scrollbar { display: none; }
.product-slider .product-card { min-width: 260px; max-width: 280px; flex-shrink: 0; }

/* Notification Toast */
.toast-custom {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--color-navy);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  animation: slideInUp 0.3s ease;
}
.toast-custom.show { display: flex; align-items: center; gap: 10px; }
@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Page Menu (Dev Navigation) */
.page-menu-dropdown .dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
  min-width: 280px;
}
.page-menu-dropdown .dropdown-item { font-size: 0.85rem; padding: 8px 16px; }

/* Responsive */
@media (min-width: 992px) {
  .site-header .container > .d-flex.flex-lg-row > .header-actions {
    margin-inline-start: auto;
  }

  .site-header .row > .col-lg-4:has(.header-actions) {
    display: flex;
    justify-content: flex-end;
    padding-inline-start: 2rem;
  }
}

@media (max-width: 991.98px) {
  .hero-slide { height: 300px; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content { padding: 32px; }
  .search-box { max-width: 100%; }
  .mega-menu { position: static; box-shadow: none; border-radius: 0; }
}

@media (max-width: 767.98px) {
  .mobile-sticky-tabs { display: flex; }
  body.has-mobile-tabs { padding-bottom: 60px; }
  .hero-slide { height: 240px; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.95rem; }
  .section { padding: 32px 0; }
  .section-title { font-size: 1.4rem; }
  .cart-item { flex-direction: column; text-align: center; }
  .checkout-steps { flex-wrap: wrap; gap: 16px; }
  .checkout-step::after { display: none; }
  .header-action span { display: none; }
  .product-gallery .main-img { height: 280px; }
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); }

/* Home 2 specific */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 400px;
}
.hero-split-left {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Home 3 specific */
.hero-minimal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.hero-minimal h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-minimal .highlight { color: var(--color-red); }
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.category-pill {
  background: var(--color-cream);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.category-pill:hover {
  background: var(--color-red);
  color: white;
}

@media (max-width: 767.98px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-minimal h1 { font-size: 2rem; }
  .hero-minimal { padding: 40px 24px; }
}

.site-promo-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1040;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
  color: var(--color-cream);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.site-promo-banner__inner { padding: 0.75rem 1rem; }

.site-promo-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-promo-banner__badge {
  background: var(--color-red);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-promo-banner__title { font-weight: 700; }
.site-promo-banner__description { opacity: 0.9; }

.site-promo-banner__countdown {
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

body:has(.site-promo-banner) { padding-bottom: 56px; }
body.has-mobile-tabs:has(.site-promo-banner) { padding-bottom: 110px; }
