/* =====================================================
   فرا تکنیک کاوه - Style Sheet
   Final Version (Fixed Sticky Header)
   ===================================================== */

/* ===== Root Variables ===== */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-soft: #e7f1ff;
  --secondary: #6c757d;
  --success: #198754;
  --success-soft: #d1e7dd;
  --danger: #dc3545;
  --danger-soft: #f8d7da;
  --warning: #ffc107;
  --warning-soft: #fff3cd;
  --info: #0dcaf0;
  --info-soft: #cff4fc;
  --dark: #1a1d21;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #2c2c2c;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  margin: 0;
}

body.dark-mode {
  background: #12161c;
  color: #e4e6eb;
}

body.dark-mode .main-header,
body.dark-mode .main-nav,
body.dark-mode .section.bg-light-section,
body.dark-mode .category-card,
body.dark-mode .product-card,
body.dark-mode .feature-card,
body.dark-mode .testimonial-card,
body.dark-mode .blog-card,
body.dark-mode .deal-card,
body.dark-mode .brand-card,
body.dark-mode .search-results,
body.dark-mode .custom-toast {
  background: #1a1f27 !important;
  border-color: #2a303a !important;
  color: #e4e6eb;
}

body.dark-mode .search-box input,
body.dark-mode .mobile-search input {
  background: #232831;
  color: #fff;
  border-color: #2a303a;
}

body.dark-mode .nav-list > li > a { color: #c0c5ce; }
body.dark-mode .section-header h2 { color: #fff; }
body.dark-mode .product-title { color: #e4e6eb; }
body.dark-mode .price-new { color: #fff; }
body.dark-mode .logo-title { color: #fff; }
body.dark-mode .mega-menu { background: #1a1f27; }
body.dark-mode .mega-item:hover { background: #232831; }
body.dark-mode .search-result-item:hover { background: #232831; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }

/* ===== Utility ===== */
.bg-primary-soft { background: var(--primary-soft); }
.bg-success-soft { background: var(--success-soft); }
.bg-danger-soft { background: var(--danger-soft); }
.bg-warning-soft { background: var(--warning-soft); }
.bg-info-soft { background: var(--info-soft); }
.bg-secondary-soft { background: #e2e3e5; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: #e6a800 !important; }
.text-info { color: #0aa2c0 !important; }

/* ===== Top Bar ===== */
.top-bar {
  background: linear-gradient(90deg, #1a1d21, #2c3038);
  color: #fff;
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar-items span { display: inline-flex; align-items: center; gap: 6px; }
.dark-toggle {
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.dark-toggle:hover { background: rgba(255,255,255,0.2); }

/* ===== Sticky Wrapper (Header + Nav) ===== */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.sticky-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
body.dark-mode .sticky-wrapper {
  background: #1a1f27;
}

/* ===== Main Header ===== */
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  /* حذف شد: position: sticky و top */
}
body.dark-mode .main-header {
  background: #1a1f27;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo > i {
  font-size: 1.8rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.logo-title {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.3;
}
.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--gray);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f5f7;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 4px;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}
.search-icon {
  padding: 0 12px;
  color: var(--gray);
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 10px 0;
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 0;
}
.btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-search:hover { background: var(--primary-dark); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  border: 1px solid var(--border);
}
.search-results.active { display: block; }
.search-result-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--light); }
.search-result-item i { color: var(--primary); font-size: 1.2rem; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--gray);
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  white-space: nowrap;
}
.action-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.action-btn i { font-size: 1.2rem; }
.action-btn small { font-size: 0.68rem; }
.cart-btn { color: var(--primary); }
.badge-count {
  position: absolute;
  top: 2px; left: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 700;
}

/* ===== Navigation ===== */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  /* حذف شد: position: sticky و top */
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-list > li > a i { font-size: 0.82rem; }

/* ===== Mega Menu ===== */
.has-mega { position: static !important; }
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0; left: 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 24px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
  z-index: 998;
}
.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mega-item:hover { background: var(--light); transform: translateX(-4px); }
.mega-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mega-item strong { display: block; font-size: 0.88rem; color: var(--dark); }
.mega-item small { color: var(--gray); font-size: 0.75rem; }
.mega-promo {
  background: linear-gradient(135deg, var(--primary), #4a90e2);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  height: 100%;
}
.mega-promo i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.9; }
.mega-promo h5 { font-weight: 700; }
.mega-promo p { opacity: 0.9; font-size: 0.85rem; }

/* ===== Hero ===== */
.hero-section { padding: 32px 0; }
.hero-main {
  background: linear-gradient(135deg, #f0f6ff 0%, #e7f1ff 50%, #dbeafe 100%);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
body.dark-mode .hero-main {
  background: linear-gradient(135deg, #1a2a3f, #1e2d42);
}
.hero-content { position: relative; z-index: 2; max-width: 60%; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--warning); }
.hero-main h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 16px;
}
body.dark-mode .hero-main h1 { color: #fff; }
.hero-main p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 90%;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,110,253,0.3);
}
.btn-outline-custom {
  background: #fff;
  color: var(--dark);
  border: 2px solid var(--border);
  padding: 10px 26px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(13,110,253,0.15);
}
.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stats span { font-size: 0.78rem; color: var(--gray); }

.hero-visual {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px; height: 280px;
  pointer-events: none;
}
.hero-circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,253,0.15), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
.hero-visual i {
  position: absolute;
  color: var(--primary);
  opacity: 0.7;
}
.hero-icon-1 { font-size: 5rem; top: 40%; right: 40%; animation: float 3s ease-in-out infinite; }
.hero-icon-2 { font-size: 2.5rem; top: 15%; right: 20%; color: var(--warning) !important; animation: float 2.5s ease-in-out infinite; }
.hero-icon-3 { font-size: 3rem; bottom: 20%; left: 25%; color: var(--info) !important; animation: float 3.5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-promo {
  background: linear-gradient(135deg, var(--danger), #ff6b6b);
  color: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  height: 100%;
  min-height: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-promo::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
}
.promo-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.promo-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}
.hero-promo h4 { font-weight: 800; margin-bottom: 8px; }
.promo-discount { font-size: 0.9rem; opacity: 0.95; margin-bottom: 16px; }
.promo-discount strong { font-size: 1.8rem; display: block; }

/* ===== Sections ===== */
.section { padding: 48px 0; }
.bg-light-section { background: var(--light); }
body.dark-mode .bg-light-section { background: #12161c !important; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}
.section-header p { color: var(--gray); font-size: 0.85rem; margin: 0; }
.link-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.link-more:hover { gap: 10px; }

.tabs-custom { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Category Card ===== */
.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.cat-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
  transition: var(--transition);
}
.category-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.category-card h6 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.category-card small { color: var(--gray); font-size: 0.75rem; }

/* ===== Product Card ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-badges {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.p-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.p-badge.hot { background: var(--danger); }
.p-badge.new { background: var(--success); }
.p-badge.discount { background: var(--warning); color: #000; }
.p-badge.pipe { background: linear-gradient(135deg, var(--info), var(--primary)); }

.product-actions {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}
.p-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
.p-action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.p-action-btn.active-wish { background: var(--danger); color: #fff; border-color: var(--danger); }

.product-img {
  height: 180px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  transition: var(--transition);
  position: relative;
}
body.dark-mode .product-img { background: linear-gradient(135deg, #232831, #1a1f27); }
.product-card:hover .product-img { transform: scale(1.05); }

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.product-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}
.product-rating .stars { color: var(--warning); }
.product-rating small { color: var(--gray); }

.product-price {
  margin-top: auto;
  margin-bottom: 12px;
}
.price-old {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 0.78rem;
  display: block;
}
.price-new {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
}
.price-new small { font-size: 0.72rem; font-weight: 400; color: var(--gray); }

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Deal Card ===== */
.deal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  height: 100%;
}
.deal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.deal-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.deal-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.deal-card h6 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; min-height: 44px; color: var(--dark); }
.deal-price { margin-bottom: 12px; }
.deal-price .old {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 0.8rem;
  display: block;
}
.deal-price .new {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--danger);
}
.progress-sale { margin-bottom: 12px; }
.progress-sale .progress { height: 6px; background: var(--gray-light); border-radius: 3px; }
.progress-sale .progress-bar { background: linear-gradient(90deg, var(--warning), var(--danger)); border-radius: 3px; }
.progress-sale small { font-size: 0.72rem; color: var(--gray); }

/* ===== Countdown ===== */
.countdown { display: flex; gap: 8px; }
.cd-item {
  background: var(--dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 60px;
}
.cd-item span { display: block; font-size: 1.2rem; font-weight: 800; }
.cd-item small { font-size: 0.65rem; opacity: 0.7; }

/* ===== Brands ===== */
.brands-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gray);
  transition: var(--transition);
  cursor: pointer;
}
.brand-card:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== Features ===== */
.features-section { padding: 32px 0; }
.col-lg-2-4 { flex: 0 0 auto; width: 20%; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feat-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  transition: var(--transition);
}
.feature-card:hover .feat-icon { transform: scale(1.1) rotate(5deg); }
.feature-card h6 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.feature-card small { color: var(--gray); font-size: 0.75rem; }

/* ===== Special Banner ===== */
.special-banner {
  background: linear-gradient(135deg, var(--primary), #4a90e2, #6ba3ff);
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.special-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.banner-content { position: relative; z-index: 2; }
.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.special-banner h2 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; color: #fff; }
.special-banner p { opacity: 0.9; margin-bottom: 20px; color: #fff; }
.banner-icon {
  font-size: 8rem;
  opacity: 0.15;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  height: 100%;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-card .stars { color: var(--warning); margin-bottom: 12px; font-size: 0.85rem; }
.testimonial-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.8; margin-bottom: 16px; }
.testimonial-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-user strong { display: block; font-size: 0.88rem; color: var(--dark); }
.testimonial-user small { color: var(--gray); font-size: 0.75rem; }

/* ===== Blog ===== */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-img {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-body { padding: 16px; }
.blog-cat {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-body h6 { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; color: var(--dark); }
.blog-body p { font-size: 0.82rem; color: var(--gray); margin-bottom: 12px; line-height: 1.7; }
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray);
}
.blog-meta a { color: var(--primary); font-weight: 600; }

/* ===== Newsletter ===== */
.newsletter-section { padding: 48px 0; }
.newsletter-box {
  background: linear-gradient(135deg, #1a1d21, #2c3038);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  flex-wrap: wrap;
}
.nl-icon {
  font-size: 3rem;
  color: var(--warning);
  animation: float 3s ease-in-out infinite;
}
.nl-content { flex: 1; min-width: 240px; }
.nl-content h3 { font-weight: 800; margin-bottom: 4px; color: #fff; }
.nl-content p { opacity: 0.8; font-size: 0.85rem; margin: 0; }
.nl-form { display: flex; gap: 8px; flex: 1; min-width: 280px; }
.nl-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.nl-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nl-form button:hover { background: var(--primary-dark); }

/* ===== Footer ===== */
.main-footer {
  background: #1a1d21;
  color: #b0b8c1;
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo i { color: var(--primary); }
.footer-desc { font-size: 0.85rem; line-height: 1.8; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #b0b8c1;
  font-size: 0.83rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--primary); gap: 10px; }
.footer-links a i { font-size: 0.7rem; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  margin-bottom: 10px;
  line-height: 1.7;
}
.footer-contact a { color: #b0b8c1; transition: var(--transition); }
.footer-contact a:hover { color: var(--primary); }
.trust-badges { display: flex; gap: 8px; margin-top: 16px; }
.badge-item {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 40px;
}
.footer-bottom p { margin: 0; }

/* ===== Mobile Offcanvas ===== */
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.mobile-nav-list .collapse a {
  padding: 10px 24px;
  font-size: 0.85rem;
  color: var(--gray);
}
.mobile-nav-list .collapse.show { display: block; }

/* ===== Quick View Modal ===== */
.quick-view-img {
  height: 260px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  color: var(--primary);
}

/* ===== Toast ===== */
.custom-toast {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  animation: slideIn 0.3s ease;
  border-right: 4px solid var(--success);
  min-width: 280px;
  max-width: 90vw;
}
.custom-toast.error { border-right-color: var(--danger); }
.custom-toast.info { border-right-color: var(--info); }
.custom-toast i { font-size: 1.2rem; color: var(--success); }
.custom-toast.error i { color: var(--danger); }
.custom-toast.info i { color: var(--info); }
@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .brands-row { grid-template-columns: repeat(4, 1fr); }
  .hero-main h1 { font-size: 2.4rem; }
  .hero-main { padding: 40px 32px; }
  .hero-visual { width: 220px; height: 220px; left: 20px; }
  .hero-icon-1 { font-size: 4rem; }
}

@media (max-width: 991px) {
  .hero-main { padding: 32px 24px; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero-main h1 { font-size: 2rem; }
  .hero-main p { max-width: 100%; }
  .hero-visual { display: none; }
  .hero-promo { min-height: auto; }
  .col-lg-2-4 { width: 33.33%; }
  .special-banner { flex-direction: column; text-align: center; gap: 20px; }
  .banner-icon { position: static; transform: none; font-size: 5rem; opacity: 0.2; }
}

@media (max-width: 767px) {
  .hero-main h1 { font-size: 1.6rem; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.1rem; }
  .section { padding: 32px 0; }
  .section-header h2 { font-size: 1.15rem; }
  .special-banner { padding: 32px 24px; }
  .special-banner h2 { font-size: 1.4rem; }
  .banner-icon { display: none; }
  .newsletter-box { padding: 24px; text-align: center; justify-content: center; }
  .nl-form { flex-direction: column; min-width: 100%; }
  .col-lg-2-4 { width: 50%; }
  .brands-row { grid-template-columns: repeat(2, 1fr); }
  .countdown { margin-top: 8px; }
  .action-btn small { display: none; }
  .logo-sub { display: none; }
  .cd-item { padding: 6px 10px; min-width: 50px; }
  .cd-item span { font-size: 1rem; }
  .top-bar-items { font-size: 0.75rem; }
  .testimonial-card, .blog-card { margin-bottom: 0; }
}

@media (max-width: 575px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .hero-stats strong { font-size: 1rem; }
  .hero-main { padding: 24px 20px; }
  .hero-main h1 { font-size: 1.4rem; }
  .hero-main p { font-size: 0.88rem; }
  .col-lg-2-4 { width: 50%; }
  .top-bar-items span:nth-child(3) { display: none; }
  .btn-search { padding: 10px 14px; font-size: 0.85rem; }
  .btn-search span { display: none; }
  .action-btn { padding: 6px 8px; }
  .logo-title { font-size: 0.95rem; }
  .logo > i { font-size: 1.5rem; padding: 8px; }
  .countdown { justify-content: flex-start; }
  .special-banner { padding: 24px 20px; }
  .special-banner h2 { font-size: 1.2rem; }
  .footer-bottom { font-size: 0.75rem; }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =====================================================
   AUTH PAGES (login.html / register.html)
   ===================================================== */

.auth-body {
  background: linear-gradient(135deg, #f0f6ff 0%, #e7f1ff 50%, #dbeafe 100%);
  min-height: 100vh;
}
body.dark-mode.auth-body {
  background: linear-gradient(135deg, #12161c 0%, #1a1f27 50%, #1e242f 100%);
}

.auth-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}
body.dark-mode .auth-header { background: #1a1f27; border-color: #2a303a; }

.auth-section {
  padding: 40px 0 60px;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(13,110,253,0.15);
  overflow: hidden;
}
body.dark-mode .auth-wrapper { background: #1a1f27; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.auth-illustration {
  background: linear-gradient(135deg, #0d6efd, #4a90e2, #6ba3ff);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.auth-illustration::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
}
.auth-illustration.register-illo {
  background: linear-gradient(135deg, #0dcaf0, #0d6efd, #6366f1);
}
.auth-illo-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 340px;
}
.auth-illo-icon {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}
.auth-illo-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.auth-illo-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.8;
}
.auth-benefits {
  text-align: right;
  margin-bottom: 32px;
}
.auth-benefits li {
  padding: 8px 0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-benefits i { color: #ffd43b; }
.auth-illo-deco {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.5rem;
  opacity: 0.5;
}
.auth-illo-deco i { animation: float 3s ease-in-out infinite; }
.auth-illo-deco i:nth-child(2) { animation-delay: 0.5s; }
.auth-illo-deco i:nth-child(3) { animation-delay: 1s; }

.auth-form-wrap {
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form-card {
  width: 100%;
  max-width: 420px;
}
.auth-form-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-form-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.auth-form-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
}
body.dark-mode .auth-form-header h1 { color: #fff; }
.auth-form-header p {
  color: var(--gray);
  font-size: 0.85rem;
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
body.dark-mode .auth-tabs { background: #232831; }
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
body.dark-mode .auth-tab.active { background: #1a1f27; }

.auth-pane { display: none; }
.auth-pane.active { display: block; animation: fadeInAuth 0.3s ease; }
@keyframes fadeInAuth {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form .form-group { margin-bottom: 18px; }
.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
body.dark-mode .auth-form label { color: #e4e6eb; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3f5f7;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  padding: 0 4px;
}
body.dark-mode .input-wrap { background: #232831; }
.input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}
body.dark-mode .input-wrap:focus-within { background: #1a1f27; }

.input-wrap > i {
  padding: 0 12px;
  color: var(--gray);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 12px 0;
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 0;
  color: var(--dark);
}
body.dark-mode .input-wrap input { color: #e4e6eb; }
.input-wrap input::placeholder { color: #a0a8b0; }

.toggle-password {
  background: none;
  border: none;
  padding: 0 10px;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}
.toggle-password:hover { color: var(--primary); }

.input-wrap.is-invalid,
.input-wrap:has(input.is-invalid) {
  border-color: var(--danger);
  background: #fff5f5;
}
body.dark-mode .input-wrap:has(input.is-invalid) { background: #3a1f23; }

.send-otp-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px;
}
.send-otp-btn:hover:not(:disabled) { background: var(--primary-dark); }
.send-otp-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 500;
}
.error-msg:not(:empty) { display: block; }

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray);
  cursor: pointer;
  font-weight: 500;
}
.remember-me input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}
.remember-me a { color: var(--primary); }
.forgot-link {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}
.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

.btn-auth-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 48px;
}
.btn-auth-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,110,253,0.3);
}
.btn-auth-submit:disabled { opacity: 0.8; cursor: not-allowed; }
.btn-auth-submit .btn-loader { display: inline-flex; align-items: center; gap: 8px; }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  color: var(--gray);
  font-size: 0.8rem;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0; left: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 14px;
  z-index: 1;
}
body.dark-mode .auth-divider span { background: #1a1f27; }

.social-login {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.social-btn {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode .social-btn { background: #232831; border-color: #2a303a; }
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.social-btn.google { color: #db4437; }
.social-btn.google:hover { border-color: #db4437; background: #fef1f0; }
.social-btn.telegram { color: #0088cc; }
.social-btn.telegram:hover { border-color: #0088cc; background: #e7f5fd; }
.social-btn.whatsapp { color: #25d366; }
.social-btn.whatsapp:hover { border-color: #25d366; background: #e6fbf0; }
.social-btn.linkedin { color: #0077b5; }
.social-btn.linkedin:hover { border-color: #0077b5; background: #e6f2f9; }

.auth-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
}
.auth-footer-text a {
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}
.auth-footer-text a:hover { text-decoration: underline; }

.back-home {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  transition: var(--transition);
}
.back-home:hover { color: var(--primary); }
.back-home i { margin-left: 4px; }

.password-strength {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strength-bar {
  height: 5px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}
.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--danger);
  border-radius: 3px;
  transition: var(--transition);
}
.password-strength small {
  font-size: 0.72rem;
  color: var(--gray);
}
.strength-label { font-weight: 700; }

@media (max-width: 991px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .auth-form-wrap { padding: 40px 32px; }
}

@media (max-width: 575px) {
  .auth-section { padding: 20px 0 40px; }
  .auth-form-wrap { padding: 28px 20px; }
  .auth-wrapper { border-radius: 16px; }
  .auth-form-header h1 { font-size: 1.2rem; }
  .auth-tabs { flex-direction: column; }
  .social-login { grid-template-columns: repeat(4, 1fr); }
  .auth-row { flex-direction: column; align-items: flex-start; }
}


/* =====================================================
   WISHLIST PAGE
   ===================================================== */

.active-wish-page {
  color: var(--danger) !important;
}
.active-wish-page:hover {
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
}

.wishlist-section {
  padding: 32px 0 64px;
  min-height: 60vh;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb-custom a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-custom a:hover { color: var(--primary-dark); }
.breadcrumb-custom i { font-size: 0.7rem; opacity: 0.6; }

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #fff5f7, #ffe7ea);
  border-radius: var(--radius);
  border: 1px solid #ffd6dc;
  flex-wrap: wrap;
}
body.dark-mode .wishlist-header {
  background: linear-gradient(135deg, #3a1f23, #2a181c);
  border-color: #4a252c;
}

.wishlist-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 240px;
}
.wishlist-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--danger), #ff6b8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
  animation: wishPulse 2.5s ease-in-out infinite;
}
@keyframes wishPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wishlist-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dark);
}
body.dark-mode .wishlist-header h1 { color: #fff; }
.wishlist-header p {
  color: var(--gray);
  font-size: 0.85rem;
  margin: 0;
}

.wishlist-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wishlist-header-actions .btn-outline-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-danger-outline {
  border-color: #f5c2c7 !important;
  color: var(--danger) !important;
}
.btn-danger-outline:hover:not(:disabled) {
  background: var(--danger) !important;
  color: #fff !important;
  border-color: var(--danger) !important;
}

.wishlist-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
body.dark-mode .wishlist-empty {
  background: #1a1f27;
  border-color: #2a303a;
}

.empty-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe7ea, #ffd6dc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 3.5rem;
  color: var(--danger);
  animation: float 3s ease-in-out infinite;
}
body.dark-mode .empty-icon {
  background: linear-gradient(135deg, #3a1f23, #4a252c);
}

.wishlist-empty h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}
body.dark-mode .wishlist-empty h2 { color: #fff; }
.wishlist-empty p {
  color: var(--gray);
  font-size: 0.92rem;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.9;
}

.wishlist-card {
  border-color: #ffd6dc;
}
body.dark-mode .wishlist-card { border-color: #3a1f23; }
.wishlist-card:hover {
  border-color: var(--danger);
}
.wishlist-card .p-action-btn.active-wish {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  animation: heartBeat 0.6s ease;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.15); }
}

@media (max-width: 767px) {
  .wishlist-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
  }
  .wishlist-header-left {
    flex-direction: column;
    text-align: center;
  }
  .wishlist-header-actions {
    flex-direction: column;
  }
  .wishlist-header-actions .btn {
    justify-content: center;
  }
  .wishlist-header h1 { font-size: 1.2rem; }
  .empty-icon { width: 90px; height: 90px; font-size: 2.5rem; }
  .wishlist-empty h2 { font-size: 1.05rem; }
  .wishlist-empty p { font-size: 0.82rem; }
}

@media (max-width: 575px) {
  .wishlist-section { padding: 20px 0 40px; }
}


/* =====================================================
   SHOP PAGE
   ===================================================== */

.shop-section {
  padding: 24px 0 64px;
  min-height: 70vh;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
body.dark-mode .shop-header h1 { color: #fff; }
.shop-header p {
  color: var(--gray);
  font-size: 0.88rem;
  margin: 0;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  font-weight: 700;
  margin-right: 6px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 140px; /* تغییر یافت: به خاطر هدر استیکی */
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
body.dark-mode .filter-sidebar { background: #1a1f27; border-color: #2a303a; }

.filter-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }

.filter-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  position: relative;
}
body.dark-mode .filter-title { color: #fff; }

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
  border-radius: 4px;
  padding-right: 4px;
}
.filter-item:hover { color: var(--primary); padding-right: 8px; }
.filter-item input[type="checkbox"],
.filter-item input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}
.filter-item span { flex: 1; }
.filter-count {
  font-size: 0.72rem;
  background: var(--light);
  color: var(--gray);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
body.dark-mode .filter-count { background: #232831; }

.filter-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.filter-scroll::-webkit-scrollbar { width: 4px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 2px; }

.filter-active-group {
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
}
body.dark-mode .filter-active-group { background: #3a1f23; border-color: #4a252c; }

.clear-filters-btn {
  position: absolute;
  left: 0;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 2px;
  font-size: 0.9rem;
  transition: var(--transition);
}
.clear-filters-btn:hover { transform: rotate(90deg); }

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.active-chip {
  background: #fff;
  border: 1px solid #f5c2c7;
  color: var(--danger);
  padding: 4px 8px 4px 6px;
  border-radius: 12px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  font-weight: 600;
}
.active-chip:hover { background: var(--danger); color: #fff; }
.active-chip i { font-size: 0.65rem; }

.filter-search {
  display: flex;
  background: #f3f5f7;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 2px;
  transition: var(--transition);
}
.filter-search:focus-within {
  border-color: var(--primary);
  background: #fff;
}
body.dark-mode .filter-search { background: #232831; }
.filter-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--dark);
  min-width: 0;
}
body.dark-mode .filter-search input { color: #e4e6eb; }
.filter-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-search button:hover { background: var(--primary-dark); }

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.price-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
  color: var(--dark);
  background: #fff;
  min-width: 0;
}
body.dark-mode .price-inputs input { background: #232831; border-color: #2a303a; color: #e4e6eb; }
.price-inputs input:focus { border-color: var(--primary); }

.price-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.price-chip {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
body.dark-mode .price-chip { background: #232831; border-color: #2a303a; }
.price-chip:hover, .price-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-apply-price {
  width: 100%;
  background: var(--primary-soft);
  color: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-apply-price:hover { background: var(--primary); color: #fff; }

.filter-rating .stars-inline {
  color: var(--warning);
  font-size: 0.75rem;
  display: inline-flex;
  gap: 2px;
}

.btn-clear-filters {
  width: 100%;
  background: transparent;
  color: var(--danger);
  border: 1px solid #f5c2c7;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.btn-clear-filters:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.shop-main { min-width: 0; }

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
body.dark-mode .sort-bar { background: #1a1f27; border-color: #2a303a; }

.sort-bar-info { font-size: 0.85rem; color: var(--gray); }
.sort-bar-info strong { color: var(--primary); font-weight: 800; }

.sort-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}
body.dark-mode .sort-select-wrap { background: #232831; }
.sort-select-wrap i { color: var(--gray); font-size: 0.85rem; }
.sort-select-wrap select {
  border: none;
  background: transparent;
  outline: none;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--dark);
  cursor: pointer;
  min-width: 160px;
}
body.dark-mode .sort-select-wrap select { color: #e4e6eb; }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode .view-btn { background: #232831; border-color: #2a303a; }
.view-btn:hover { color: var(--primary); border-color: var(--primary); }
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

#shopProductsGrid.view-list .col-lg-4 {
  flex: 0 0 100%;
  max-width: 100%;
}
.product-card-list {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  flex-direction: row;
}
.product-card-list .list-img {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--primary);
  flex-shrink: 0;
}
body.dark-mode .product-card-list .list-img { background: linear-gradient(135deg, #232831, #1a1f27); }
.product-card-list .list-body { flex: 1; min-width: 0; }
.product-card-list .product-title { min-height: auto; margin-bottom: 8px; font-size: 1rem; }
.product-card-list .list-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 4px 0 0;
  line-height: 1.7;
}
.product-card-list .list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.product-card-list .list-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.product-card-list .btn-add-cart {
  width: auto;
  padding: 8px 14px;
  font-size: 0.8rem;
}

.shop-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
body.dark-mode .shop-empty { background: #1a1f27; border-color: #2a303a; }
.shop-empty .empty-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.8rem;
}
.shop-empty h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
body.dark-mode .shop-empty h2 { color: #fff; }
.shop-empty p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.shop-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.pagination-list {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-list .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
body.dark-mode .pagination-list .page-item .page-link { background: #1a1f27; border-color: #2a303a; color: #e4e6eb; }
.pagination-list .page-item .page-link:hover:not(:disabled) {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.pagination-list .page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination-list .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

.offcanvas-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
body.dark-mode .offcanvas-footer { background: #1a1f27; border-color: #2a303a; }

@media (max-width: 991px) {
  .shop-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .shop-section { padding: 16px 0 40px; }
  .shop-header h1 { font-size: 1.25rem; }
  .sort-bar { padding: 10px 12px; }
  .sort-select-wrap select { min-width: 130px; font-size: 0.8rem; }
  .sort-bar-info { font-size: 0.8rem; }
  .view-toggle { display: none; }
  .product-card-list { flex-direction: column; align-items: stretch; }
  .product-card-list .list-img { width: 100%; height: 160px; }
  .product-card-list .list-actions { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 575px) {
  .shop-header h1 { font-size: 1.1rem; }
  .shop-header p { font-size: 0.8rem; }
  .pagination-list .page-item .page-link { min-width: 34px; height: 34px; padding: 0 8px; font-size: 0.8rem; }
  .active-chip { font-size: 0.7rem; }
  .filter-title { font-size: 0.85rem; }
}




















/* =====================================================
   CART PAGE
   ===================================================== */

.active-cart-page {
  color: var(--primary) !important;
}

.cart-section {
  padding: 24px 0 64px;
  min-height: 70vh;
}

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f7ff, #e7f1ff);
  border-radius: var(--radius);
  border: 1px solid #d6e4ff;
  flex-wrap: wrap;
}
body.dark-mode .cart-header {
  background: linear-gradient(135deg, #1a2a3f, #1e2d42);
  border-color: #2a3f5a;
}

.cart-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4a90e2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}
.cart-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dark);
}
body.dark-mode .cart-header h1 { color: #fff; }
.cart-header p {
  color: var(--gray);
  font-size: 0.85rem;
  margin: 0;
}

/* Empty */
.cart-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
body.dark-mode .cart-empty { background: #1a1f27; border-color: #2a303a; }

.cart-empty .empty-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7f1ff, #d6e4ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 3.2rem;
  animation: float 3s ease-in-out infinite;
}
body.dark-mode .cart-empty .empty-icon {
  background: linear-gradient(135deg, #1a2a3f, #1e2d42);
}

.cart-empty h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}
body.dark-mode .cart-empty h2 { color: #fff; }
.cart-empty p {
  color: var(--gray);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.9;
}
.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Items Wrapper */
.cart-items-wrapper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
body.dark-mode .cart-items-wrapper { background: #1a1f27; border-color: #2a303a; }

.cart-items-header {
  display: grid;
  grid-template-columns: 1fr 130px 130px 130px 40px;
  gap: 12px;
  padding: 14px 20px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
}
body.dark-mode .cart-items-header { background: #232831; }

/* Cart Item */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 130px 130px 130px 40px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fafbfc; }
body.dark-mode .cart-item:hover { background: #232831; }

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}
body.dark-mode .cart-item-img { background: linear-gradient(135deg, #232831, #1a1f27); }

.cart-item-info { min-width: 0; }
.cart-item-brand {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.dark-mode .cart-item-title { color: #e4e6eb; }
.cart-item-unit-mobile { display: none; }

.cart-item-unit,
.cart-item-total {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}
body.dark-mode .cart-item-unit,
body.dark-mode .cart-item-total { color: #e4e6eb; }
.cart-item-total { color: var(--primary); font-weight: 800; font-size: 0.92rem; }
.cart-item-total small { font-weight: 400; font-size: 0.72rem; color: var(--gray); }

/* Qty */
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  justify-self: center;
}
.qty-btn {
  width: 32px;
  height: 36px;
  border: none;
  background: var(--light);
  color: var(--dark);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  font-family: inherit;
}
body.dark-mode .qty-btn { background: #232831; color: #e4e6eb; }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
  width: 40px;
  height: 36px;
  border: none;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  background: #fff;
  -moz-appearance: textfield;
}
body.dark-mode .qty-input { background: #1a1f27; color: #e4e6eb; border-color: #2a303a; }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  justify-self: center;
}
.cart-item-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}

/* Coupon */
.cart-coupon-box {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
body.dark-mode .cart-coupon-box { background: #232831; border-color: #2a303a; }

.coupon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: var(--dark);
}
body.dark-mode .coupon-header { color: #e4e6eb; }

.coupon-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.coupon-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
  color: var(--dark);
  min-width: 0;
}
body.dark-mode .coupon-form input { background: #1a1f27; color: #e4e6eb; border-color: #2a303a; }
.coupon-form input:focus { border-color: var(--primary); }

.btn-apply-coupon {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-apply-coupon:hover { background: var(--primary-dark); }

.coupon-hint {
  font-size: 0.75rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Summary */
.cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 140px;
}
body.dark-mode .cart-summary { background: #1a1f27; border-color: #2a303a; }

.summary-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
}
body.dark-mode .summary-title { color: #fff; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--gray);
}
.summary-row strong {
  color: var(--dark);
  font-weight: 700;
}
body.dark-mode .summary-row strong { color: #e4e6eb; }
.summary-row.text-success strong { color: var(--success); }

.remove-coupon-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  margin-right: 6px;
  font-size: 0.75rem;
  padding: 0;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.summary-final {
  font-size: 1rem !important;
  color: var(--dark) !important;
}
.summary-final strong {
  color: var(--primary) !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
}
body.dark-mode .summary-final { color: #fff !important; }

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), #4a90e2);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}
.btn-checkout:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.4);
}

.summary-features {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.summary-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--gray);
  text-align: center;
  flex: 1;
}
.summary-feature i { font-size: 1.1rem; }

/* Responsive */
@media (max-width: 991px) {
  .cart-summary { position: static; }
}

@media (max-width: 767px) {
  .cart-section { padding: 16px 0 40px; }
  .cart-header { padding: 16px 20px; }
  .cart-header h1 { font-size: 1.15rem; }
  .cart-items-header { display: none; }
  .cart-item {
    grid-template-columns: 70px 1fr 40px;
    grid-template-areas:
      "img info remove"
      "img qty total";
    gap: 10px;
    padding: 14px 16px;
  }
  .cart-item-img { grid-area: img; width: 70px; height: 70px; font-size: 1.6rem; }
  .cart-item-info { grid-area: info; }
  .cart-item-remove { grid-area: remove; align-self: start; }
  .cart-item-unit { display: none; }
  .cart-item-qty { grid-area: qty; justify-self: start; margin-top: 4px; }
  .cart-item-total { grid-area: total; text-align: left; align-self: center; }
  .cart-item-unit-mobile {
    display: block;
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 4px;
  }
  .cart-item-unit-mobile strong { color: var(--primary); }

  .cart-coupon-box { padding: 16px; }
  .coupon-form { flex-direction: column; }
  .btn-apply-coupon { justify-content: center; }

  .cart-summary { padding: 20px; }
}

@media (max-width: 575px) {
  .cart-header { flex-direction: column; align-items: stretch; }
  .cart-header .btn-outline-custom { justify-content: center; }
  .empty-actions { flex-direction: column; }
  .empty-actions .btn { justify-content: center; }
  .cart-empty { padding: 40px 20px; }
  .cart-empty .empty-icon { width: 90px; height: 90px; font-size: 2.4rem; }
  .cart-empty h2 { font-size: 1.05rem; }
  .summary-title { font-size: 1rem; }
  .summary-final strong { font-size: 1.1rem !important; }
}
























/* =====================================================
   CHECKOUT PAGE
   ===================================================== */

.checkout-section {
  padding: 24px 0 64px;
  min-height: 70vh;
}

/* ===== Stepper ===== */
.checkout-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 24px 0 32px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  flex-wrap: wrap;
}
body.dark-mode .checkout-stepper { background: #1a1f27; border-color: #2a303a; }

.checkout-stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
  position: relative;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
}
.checkout-stepper .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.checkout-stepper .step.completed:not(:last-child)::after,
.checkout-stepper .step.active:not(:last-child)::after {
  background: var(--primary);
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border);
  transition: var(--transition);
}
body.dark-mode .step-icon { background: #232831; }
.checkout-stepper .step.completed .step-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.checkout-stepper .step.completed { color: var(--success); }
.checkout-stepper .step.active .step-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(13,110,253,0.15);
}
.checkout-stepper .step.active { color: var(--primary); font-weight: 800; }

/* ===== Cards ===== */
.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
body.dark-mode .checkout-card { background: #1a1f27; border-color: #2a303a; }

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.checkout-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--dark);
}
body.dark-mode .checkout-card-header h3 { color: #fff; }
.checkout-card-header p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
}

/* Form */
.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}
body.dark-mode .form-label { color: #e4e6eb; }
.form-label .req { color: var(--danger); }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
body.dark-mode .form-input { background: #232831; border-color: #2a303a; color: #e4e6eb; }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}
.form-input.is-invalid {
  border-color: var(--danger);
  background: #fff5f5;
}
body.dark-mode .form-input.is-invalid { background: #3a1f23; }
textarea.form-input { resize: vertical; min-height: 70px; }
select.form-input { cursor: pointer; }

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  font-weight: 600;
  min-height: 14px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray);
  cursor: pointer;
  font-weight: 500;
}
.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}

/* ===== Shipping Methods ===== */
.shipping-methods,
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shipping-option,
.payment-option {
  display: block;
  cursor: pointer;
  position: relative;
}
.shipping-option input,
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shipping-content,
.payment-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: var(--transition);
}
body.dark-mode .shipping-content,
body.dark-mode .payment-content { background: #232831; border-color: #2a303a; }

.shipping-option input:checked + .shipping-content,
.payment-option input:checked + .payment-content {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
}
body.dark-mode .shipping-option input:checked + .shipping-content,
body.dark-mode .payment-option input:checked + .payment-content {
  background: #1e2a3d;
}

.shipping-icon,
.payment-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.shipping-info,
.payment-info { flex: 1; min-width: 0; }
.shipping-info strong,
.payment-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 2px;
}
body.dark-mode .shipping-info strong,
body.dark-mode .payment-info strong { color: #e4e6eb; }
.shipping-info small,
.payment-info small {
  font-size: 0.75rem;
  color: var(--gray);
}
.shipping-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.check-mark {
  font-size: 1.2rem;
  opacity: 0;
  transition: var(--transition);
}
.payment-option input:checked + .payment-content .check-mark {
  opacity: 1;
}

.secure-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--success-soft);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #0a3622;
  font-weight: 600;
}
body.dark-mode .secure-notice { background: #0f2e1e; color: #8be0b3; }

/* ===== Checkout Summary ===== */
.checkout-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 140px;
}
body.dark-mode .checkout-summary { background: #1a1f27; border-color: #2a303a; }

.checkout-summary .summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
body.dark-mode .checkout-summary .summary-title { color: #fff; }

.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}
.order-items::-webkit-scrollbar { width: 4px; }
.order-items::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 2px; }

.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.order-item:hover { background: var(--light); }
body.dark-mode .order-item:hover { background: #232831; }

.order-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
body.dark-mode .order-item-img { background: linear-gradient(135deg, #232831, #1a1f27); }

.order-item-info { flex: 1; min-width: 0; }
.order-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark-mode .order-item-title { color: #e4e6eb; }
.order-item-meta {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--gray);
}
.qty-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}
.order-item-total {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}
body.dark-mode .order-item-total { color: #fff; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--gray);
}
.summary-row strong { color: var(--dark); font-weight: 700; }
body.dark-mode .summary-row strong { color: #e4e6eb; }
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.summary-final { font-size: 0.95rem !important; }
.summary-final strong {
  color: var(--primary) !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

.btn-place-order {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--success), #20c997);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(25,135,84,0.3);
}
.btn-place-order:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(25,135,84,0.45);
}
.btn-place-order:disabled { opacity: 0.8; cursor: not-allowed; }

.summary-features {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.summary-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--gray);
  text-align: center;
  flex: 1;
}
.summary-feature i { font-size: 1.05rem; }

/* ===== Empty ===== */
.checkout-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
body.dark-mode .checkout-empty { background: #1a1f27; border-color: #2a303a; }
.checkout-empty .empty-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.6rem;
}
.checkout-empty h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
body.dark-mode .checkout-empty h2 { color: #fff; }
.checkout-empty p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ===== Success Modal ===== */
.success-modal-content {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: none;
}
.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #20c997);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 20px;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 32px rgba(25,135,84,0.4);
}
@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-modal-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
body.dark-mode .success-modal-content h3 { color: #fff; }
.success-modal-content p {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.order-code {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}
.success-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .checkout-summary { position: static; }
}

@media (max-width: 767px) {
  .checkout-section { padding: 16px 0 40px; }
  .checkout-stepper { padding: 14px 10px; gap: 4px; }
  .checkout-stepper .step { font-size: 0.68rem; min-width: 60px; }
  .step-icon { width: 38px; height: 38px; font-size: 0.9rem; }
  .checkout-stepper .step:not(:last-child)::after { top: 19px; }
  .checkout-card { padding: 18px 16px; }
  .checkout-card-header h3 { font-size: 0.95rem; }
  .card-header-icon { width: 42px; height: 42px; font-size: 1rem; }
  .shipping-info small,
  .payment-info small { font-size: 0.7rem; }
}

@media (max-width: 575px) {
  .checkout-stepper .step span { display: none; }
  .checkout-stepper { padding: 16px 8px; }
  .order-items { max-height: 240px; }
}























/* =====================================================
   CONTACT PAGE
   ===================================================== */

/* Hero */
.contact-hero {
  padding: 48px 0 32px;
  background: linear-gradient(135deg, #f0f6ff, #e7f1ff 50%, #dbeafe);
  position: relative;
  overflow: hidden;
}
body.dark-mode .contact-hero {
  background: linear-gradient(135deg, #12161c, #1a1f27 50%, #1e242f);
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(13,110,253,0.08), transparent 70%);
  pointer-events: none;
}
.contact-hero-content {
  position: relative;
  z-index: 2;
}
.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.contact-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}
body.dark-mode .contact-hero h1 { color: #fff; }
.contact-hero p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: 600px;
}

/* Info Cards */
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.dark-mode .contact-info-card { background: #1a1f27; border-color: #2a303a; }
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.contact-info-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  transition: var(--transition);
}
.contact-info-card:hover .contact-info-icon { transform: scale(1.1) rotate(-5deg); }
.contact-info-card h5 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
body.dark-mode .contact-info-card h5 { color: #fff; }
.contact-info-value {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  text-decoration: none;
  transition: var(--transition);
  word-break: break-all;
  direction: ltr;
  text-align: center;
}
.contact-info-value:hover { color: var(--primary-dark); }
.contact-info-card small { color: var(--gray); font-size: 0.75rem; }

/* Form Card */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
body.dark-mode .contact-form-card { background: #1a1f27; border-color: #2a303a; }

.contact-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.contact-form-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #4a90e2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(13,110,253,0.25);
}
.contact-form-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--dark);
}
body.dark-mode .contact-form-header h2 { color: #fff; }
.contact-form-header p {
  color: var(--gray);
  font-size: 0.82rem;
  margin: 0;
}

/* Form */
.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}
body.dark-mode .form-label { color: #e4e6eb; }
.form-label .req { color: var(--danger); }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
body.dark-mode .form-input { background: #232831; border-color: #2a303a; color: #e4e6eb; }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,110,253,0.1);
}
.form-input.is-invalid {
  border-color: var(--danger);
  background: #fff5f5;
}
body.dark-mode .form-input.is-invalid { background: #3a1f23; }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  font-weight: 600;
  min-height: 14px;
}

.btn-send-contact {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), #4a90e2);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(13,110,253,0.25);
  min-height: 50px;
}
.btn-send-contact:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13,110,253,0.4);
}
.btn-send-contact:disabled { opacity: 0.8; cursor: not-allowed; }

/* Map Card */
.contact-map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.dark-mode .contact-map-card { background: #1a1f27; border-color: #2a303a; }

.contact-map-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.contact-map-header i { font-size: 1.3rem; }
.contact-map-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--dark);
}
body.dark-mode .contact-map-header h3 { color: #fff; }

.contact-map-frame {
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, #eef2f7 0px, #eef2f7 20px, #e7ecf2 20px, #e7ecf2 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
  text-align: center;
  padding: 16px;
}
body.dark-mode .map-placeholder {
  background:
    repeating-linear-gradient(45deg, #232831 0px, #232831 20px, #1e242e 20px, #1e242e 40px);
}
.map-placeholder i { font-size: 3rem; color: var(--primary); }
.map-placeholder span { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
body.dark-mode .map-placeholder span { color: #fff; }
.map-placeholder small { font-size: 0.75rem; color: var(--gray); }

/* Working Hours */
.contact-working-hours {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
body.dark-mode .contact-working-hours { background: #232831; }
.wh-title {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
}
body.dark-mode .wh-title { color: #fff; }
.contact-working-hours ul { list-style: none; padding: 0; margin: 0; }
.contact-working-hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--gray);
  border-bottom: 1px dashed var(--border);
}
.contact-working-hours li:last-child { border-bottom: none; }
.contact-working-hours li strong { color: var(--dark); font-weight: 700; }
body.dark-mode .contact-working-hours li strong { color: #e4e6eb; }
.contact-working-hours li.closed { color: var(--danger); }
.contact-working-hours li.closed strong { color: var(--danger); }

/* Socials */
.contact-socials {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-socials > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray);
}
.socials-row { display: flex; gap: 8px; }
.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}
.social-circle.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-circle.telegram { background: #0088cc; }
.social-circle.whatsapp { background: #25d366; }
.social-circle.linkedin { background: #0077b5; }
.social-circle:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* FAQ */
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
body.dark-mode .faq-accordion .accordion-item { background: #1a1f27; border-color: #2a303a; }
.faq-accordion .accordion-button {
  background: #fff;
  color: var(--dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 20px;
  box-shadow: none !important;
}
body.dark-mode .faq-accordion .accordion-button { background: #1a1f27; color: #fff; }
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--primary-soft);
  color: var(--primary);
}
body.dark-mode .faq-accordion .accordion-button:not(.collapsed) { background: #1e2a3d; color: #7fb1ff; }
.faq-accordion .accordion-button::after {
  margin-right: auto;
  margin-left: 0;
}
.faq-accordion .accordion-body {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.9;
  padding: 14px 20px 18px;
}
body.dark-mode .faq-accordion .accordion-body { color: #b0b8c1; }

/* Responsive */
@media (max-width: 991px) {
  .contact-form-card { padding: 24px; }
}

@media (max-width: 767px) {
  .contact-hero { padding: 32px 0 24px; }
  .contact-hero h1 { font-size: 1.4rem; }
  .contact-hero p { font-size: 0.85rem; }
  .contact-info-card { padding: 18px 14px; }
  .contact-info-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .contact-info-card h5 { font-size: 0.88rem; }
  .contact-info-value { font-size: 0.82rem; }
  .contact-form-card { padding: 20px; }
  .contact-form-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .contact-form-header h2 { font-size: 1.05rem; }
  .contact-map-card { padding: 20px; }
  .faq-accordion .accordion-button { font-size: 0.82rem; padding: 14px 16px; }
}

@media (max-width: 575px) {
  .contact-hero h1 { font-size: 1.2rem; }
  .contact-hero p { font-size: 0.8rem; }
  .contact-info-card { padding: 16px 12px; }
  .contact-info-icon { width: 46px; height: 46px; font-size: 1.1rem; }
  .contact-form-card { padding: 16px; }
  .contact-map-card { padding: 16px; }
  .contact-map-frame { height: 180px; }
}

































/* =====================================================
   ABOUT PAGE
   ===================================================== */

/* Hero */
.about-hero {
  padding: 48px 0 32px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e7f1ff 50%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}
body.dark-mode .about-hero {
  background: linear-gradient(135deg, #12161c 0%, #1a1f27 50%, #1e242f 100%);
}
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.about-badge i { color: var(--warning); }
.about-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 16px;
}
body.dark-mode .about-hero h1 { color: #fff; }
.about-hero p {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 90%;
}
.about-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-hero-card {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e7f1ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.dark-mode .about-hero-card {
  background: linear-gradient(135deg, #1a2a3f, #1e2d42);
}
.about-hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(13, 110, 253, 0.25);
  animation: float 3s ease-in-out infinite;
}
body.dark-mode .about-hero-icon { background: #1a1f27; }
.about-hero-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,253,0.15), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
.about-float-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: float 3s ease-in-out infinite;
}
.about-float-1 {
  top: 30px; right: 40px;
  background: linear-gradient(135deg, var(--warning), #ff9d42);
  animation-delay: 0.2s;
}
.about-float-2 {
  bottom: 50px; left: 40px;
  background: linear-gradient(135deg, var(--success), #20c997);
  animation-delay: 0.6s;
}
.about-float-3 {
  top: 50%; left: 30px;
  background: linear-gradient(135deg, var(--info), #3cb3d8);
  animation-delay: 1s;
}

/* Stats */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
body.dark-mode .stat-card { background: #1a1f27; border-color: #2a303a; }
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.6rem;
  transition: var(--transition);
}
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

/* Story */
.story-image {
  position: relative;
  height: 420px;
}
.story-img-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e7f1ff, #cfe3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--primary);
  overflow: hidden;
  position: relative;
}
body.dark-mode .story-img-inner {
  background: linear-gradient(135deg, #1a2a3f, #1e2d42);
}
.story-img-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(13,110,253,0.05) 0px, rgba(13,110,253,0.05) 20px,
    transparent 20px, transparent 40px);
}
.story-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
body.dark-mode .story-badge { background: #1a1f27; }
.story-badge i {
  font-size: 1.8rem;
  color: var(--success);
}
.story-badge strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}
body.dark-mode .story-badge strong { color: #fff; }
.story-badge small { font-size: 0.75rem; color: var(--gray); }

.story-text p {
  color: var(--gray);
  line-height: 2;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.story-text strong { color: var(--dark); }
body.dark-mode .story-text strong { color: #fff; }

.story-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.story-feat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sf-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.story-feat strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 2px;
}
body.dark-mode .story-feat strong { color: #fff; }
.story-feat small { font-size: 0.75rem; color: var(--gray); }

/* Values */
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
body.dark-mode .value-card { background: #1a1f27; border-color: #2a303a; }
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.value-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.7rem;
  transition: var(--transition);
}
.value-card:hover .value-icon { transform: scale(1.1) rotate(5deg); }
.value-card h5 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
body.dark-mode .value-card h5 { color: #fff; }
.value-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--info));
  border-radius: 2px;
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 30px 30px 0;
  text-align: left;
}
.timeline-item:nth-child(even) {
  margin-right: 50%;
  padding: 0 0 30px 30px;
  text-align: right;
}
.timeline-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  top: 6px;
  left: -9px;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(13,110,253,0.15);
}
.timeline-item:nth-child(even) .timeline-dot {
  left: auto;
  right: -9px;
}
.timeline-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
body.dark-mode .timeline-content { background: #1a1f27; border-color: #2a303a; }
.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.timeline-content h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
body.dark-mode .timeline-content h5 { color: #fff; }
.timeline-content p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.8;
}

/* Team */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
body.dark-mode .team-card { background: #1a1f27; border-color: #2a303a; }
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 2.6rem;
  transition: var(--transition);
}
.team-card:hover .team-avatar { transform: scale(1.05) rotate(-5deg); }
.team-card h5 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
body.dark-mode .team-card h5 { color: #fff; }
.team-role {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.team-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 14px;
}
.team-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.team-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  transition: var(--transition);
}
body.dark-mode .team-socials a { background: #232831; }
.team-socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Certificates */
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
body.dark-mode .cert-card { background: #1a1f27; border-color: #2a303a; }
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.cert-card i {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}
.cert-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.4;
}
body.dark-mode .cert-card strong { color: #fff; }
.cert-card small {
  font-size: 0.72rem;
  color: var(--gray);
}

/* CTA */
.about-cta {
  background: linear-gradient(135deg, var(--primary), #4a90e2, #6ba3ff);
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 20px;
}
.about-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.about-cta-content { position: relative; z-index: 2; }
.about-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.about-cta h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.about-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.about-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-light-lg,
.btn-outline-light-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.btn-light-lg {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.btn-light-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  color: var(--primary);
}
.btn-outline-light-lg {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light-lg:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.about-cta-icon {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.15;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 991px) {
  .about-hero h1 { font-size: 2rem; }
  .about-hero-card { height: 280px; margin-top: 16px; }
  .story-image { height: 320px; margin-bottom: 24px; }
  .timeline::before { right: 15px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-right: 0;
    padding: 0 40px 24px 0;
    text-align: right;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    right: 6px;
    left: auto;
  }
}

@media (max-width: 767px) {
  .about-hero { padding: 32px 0 24px; }
  .about-hero h1 { font-size: 1.5rem; }
  .about-hero p { font-size: 0.85rem; max-width: 100%; }
  .about-hero-icon { width: 110px; height: 110px; font-size: 3rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-icon { width: 54px; height: 54px; font-size: 1.3rem; }
  .story-image { height: 260px; }
  .story-img-inner { font-size: 5rem; }
  .about-cta { padding: 32px 24px; flex-direction: column; text-align: center; }
  .about-cta h2 { font-size: 1.35rem; }
  .about-cta-actions { justify-content: center; }
  .about-cta-icon { display: none; }
}

@media (max-width: 575px) {
  .about-hero h1 { font-size: 1.3rem; }
  .about-hero-actions .btn { width: 100%; justify-content: center; }
  .about-hero-actions { flex-direction: column; }
  .btn-light-lg,
  .btn-outline-light-lg { width: 100%; justify-content: center; }
  .story-badge { padding: 8px 12px; }
  .story-badge strong { font-size: 0.8rem; }
  .story-badge small { font-size: 0.68rem; }
}