/* ============================================================
   نوین‌مارکت — Professional Persian RTL E-Commerce Stylesheet
   ============================================================ */

/* ----- CSS CUSTOM PROPERTIES ----- */
:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #f97316;
  --secondary-light: #fb923c;
  --accent: #059669;
  --accent-light: #10b981;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* ============================================================
   1. CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   2. DEMO BAR
   ============================================================ */
.demo-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.demo-bar a {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================
   3. HEADER
   ============================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

/* --- Header Top --- */
.header-top {
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.header-top a:hover {
  color: #ffffff;
}

/* --- Header Main --- */
.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--primary-dark);
}

/* --- Search Box --- */
.search-box {
  display: flex;
  flex: 1;
  max-width: 500px;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-box input {
  flex: 1;
  padding: 10px 20px;
  border: none;
  outline: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  background: transparent;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box button {
  padding: 10px 20px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--primary-dark);
}

.search-box button svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* --- Header Icons --- */
.header-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-icons a,
.header-icons button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.header-icons a:hover,
.header-icons button:hover {
  background: var(--primary);
  color: #ffffff;
}

.header-icons a:hover svg,
.header-icons button:hover svg {
  fill: #ffffff;
}

.header-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--text-dark);
  transition: fill 0.3s ease;
}

.icon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

/* --- Navigation Bar --- */
.nav-bar {
  background: var(--primary-dark);
  padding: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #ffffff;
  padding: 14px 20px;
  display: block;
  transition: background 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu li a:hover {
  background: var(--primary);
}

.mega-menu {
  display: none;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  border: none;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--text-dark);
}

/* ============================================================
   4. HERO
   ============================================================ */
#home {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
  min-height: 500px;
  padding: 80px 0;
  color: #ffffff;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: var(--secondary);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: 'Vazirmatn', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: #ea580c;
}

.btn-outline {
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: 'Vazirmatn', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   5. PROMO BANNERS
   ============================================================ */
.banners-section {
  padding: 60px 0;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.banner-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.banner-card:hover {
  transform: translateY(-3px);
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.banner-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.banner-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700;
}

.banner-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

/* ============================================================
   6. CATEGORIES
   ============================================================ */
#categories {
  padding: 60px 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.6;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.category-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  background: #e2e8f0;
}

.category-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ============================================================
   7. PRODUCTS
   ============================================================ */
.products-section {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: #e2e8f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.product-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-action-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.product-action-btn:hover {
  background: var(--primary);
}

.product-action-btn:hover svg {
  fill: #ffffff;
}

.product-action-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-medium);
  transition: fill 0.3s ease;
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.product-rating svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.product-rating span {
  font-size: 13px;
  color: var(--text-light);
  margin-right: 5px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 14px;
}

.price-current {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

.price-currency {
  font-size: 13px;
  font-weight: 400;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
}

/* ============================================================
   8. MID BANNER
   ============================================================ */
.mid-banner {
  background: linear-gradient(135deg, #f97316, #ea580c);
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.mid-banner h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 900;
}

.mid-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* ============================================================
   9. BENEFITS
   ============================================================ */
#benefits {
  padding: 60px 0;
  background: var(--bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.benefit-card {
  text-align: center;
  background: var(--bg-white);
  padding: 40px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.benefit-icon {
  width: 70px;
  height: 70px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================================
   10. BRANDS
   ============================================================ */
#brands {
  padding: 60px 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}

.brand-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--text-medium);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
}

.brand-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.brand-item img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ============================================================
   11. SHOP / ARCHIVE SECTION
   ============================================================ */
#shop {
  padding: 60px 0;
  background: var(--bg-light);
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* --- Shop Sidebar --- */
.shop-sidebar {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
}

.filter-group {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-medium);
  transition: color 0.3s ease;
}

.filter-group label:hover {
  color: var(--text-dark);
}

.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.price-range {
  display: flex;
  gap: 10px;
}

.price-range input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
}

.price-range input:focus {
  border-color: var(--primary);
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.size-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--text-medium);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30, 64, 175, 0.05);
}

/* --- Shop Content --- */
.shop-content {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: var(--bg-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.shop-toolbar span {
  font-size: 14px;
  color: var(--text-medium);
}

.view-toggle {
  display: flex;
  gap: 5px;
}

.view-toggle button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.view-toggle button:hover,
.view-toggle button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.view-toggle button:hover svg,
.view-toggle button.active svg {
  fill: #ffffff;
}

.view-toggle button svg {
  width: 18px;
  height: 18px;
  fill: var(--text-medium);
  transition: fill 0.3s ease;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  background: var(--bg-white);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-select:focus {
  border-color: var(--primary);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.page-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================
   12. SINGLE PRODUCT
   ============================================================ */
#product-detail {
  padding: 60px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* --- Product Gallery --- */
.product-gallery {
  display: flex;
  gap: 15px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  background: #e2e8f0;
  transition: border-color 0.3s ease;
}

.gallery-thumb:hover {
  border-color: var(--primary-light);
}

.gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e8f0;
}

.gallery-main img {
  width: 100%;
  height: auto;
}

/* --- Product Detail Info --- */
.product-detail-info h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--text-dark);
}

.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  color: var(--text-medium);
  font-size: 14px;
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.detail-rating svg {
  width: 18px;
  height: 18px;
  fill: #f59e0b;
}

.detail-rating span {
  font-size: 14px;
  color: var(--text-medium);
}

.detail-price {
  margin-bottom: 20px;
}

.detail-price .price-original {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.detail-price .price-current {
  font-size: 30px;
}

.product-short-desc {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 15px;
}

/* --- Variation Selector --- */
.variation-selector {
  margin-bottom: 20px;
}

.variation-label {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-dark);
}

.variation-options {
  display: flex;
  gap: 10px;
}

.variation-option {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  background: var(--bg-white);
  color: var(--text-dark);
}

.variation-option:hover {
  border-color: var(--primary-light);
}

.variation-option.active {
  border-color: var(--primary);
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
}

/* --- Quantity & Cart --- */
.quantity-cart {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}

.quantity-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  color: var(--text-dark);
}

.quantity-btn:hover {
  background: var(--bg-light);
}

.quantity-input input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-family: 'Vazirmatn', sans-serif;
  outline: none;
  color: var(--text-dark);
  -moz-appearance: textfield;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Product Tabs --- */
.product-tabs {
  margin-top: 50px;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 30px;
  gap: 0;
}

.tab-btn {
  padding: 12px 25px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-medium);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  /* All panels stacked since no JS tabs */
}

.tab-panel {
  margin-bottom: 40px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.tab-panel h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.tab-panel p {
  line-height: 1.9;
  color: var(--text-medium);
  font-size: 14px;
}

/* --- Specs Table --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
  background: var(--bg-white);
}

.specs-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-medium);
}

.specs-table td:first-child {
  font-weight: 700;
  width: 200px;
  color: var(--text-dark);
}

/* --- Reviews --- */
.review-item {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e2e8f0;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.reviewer-info span {
  font-size: 12px;
  color: var(--text-light);
}

.review-rating {
  display: flex;
  gap: 2px;
}

.review-rating svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.review-text {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 14px;
}

.review-form {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius);
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.review-form h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.review-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.3s ease;
}

.review-form textarea:focus {
  border-color: var(--primary);
}

/* ============================================================
   13. CART SECTION
   ============================================================ */
#cart {
  padding: 60px 0;
  background: var(--bg-light);
}

.cart-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}

.cart-table th {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 15px 20px;
  font-weight: 700;
  text-align: right;
  font-size: 14px;
}

.cart-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  font-size: 14px;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #e2e8f0;
}

.cart-item-name {
  font-weight: 700;
  color: var(--text-dark);
}

.cart-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 20px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-remove:hover {
  opacity: 0.7;
}

.cart-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}

.coupon-form {
  display: flex;
  gap: 10px;
}

.coupon-form input {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  width: 250px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.coupon-form input:focus {
  border-color: var(--primary);
}

.coupon-form button {
  padding: 12px 25px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  transition: background 0.3s ease;
}

.coupon-form button:hover {
  background: var(--primary-dark);
}

.cart-totals {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 350px;
}

.cart-totals h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-medium);
}

.totals-row:last-of-type {
  border-bottom: none;
}

.totals-row.total {
  font-weight: 900;
  font-size: 20px;
  color: var(--accent);
  border-top: 2px solid var(--primary);
  border-bottom: none;
  padding-top: 15px;
  margin-top: 5px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: var(--accent-light);
}

/* ============================================================
   14. CHECKOUT
   ============================================================ */
#checkout {
  padding: 60px 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

.checkout-form {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkout-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Order Summary --- */
.order-summary {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 200px;
}

.order-summary h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
  color: var(--text-dark);
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-medium);
}

.order-item:last-child {
  border-bottom: none;
}

/* --- Shipping & Payment Options --- */
.shipping-options,
.payment-options {
  margin: 15px 0;
}

.shipping-options h4,
.payment-options h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  font-size: 14px;
  color: var(--text-medium);
}

.radio-option:hover {
  border-color: var(--primary);
}

.radio-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  margin-top: 15px;
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.3s ease;
}

.place-order-btn:hover {
  background: var(--accent-light);
}

/* ============================================================
   15. ACCOUNT
   ============================================================ */
#account {
  padding: 60px 0;
  background: var(--bg-light);
}

.auth-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.auth-form {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-form h3 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
  color: var(--text-dark);
}

.auth-form .form-group {
  margin-bottom: 15px;
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.3s ease;
}

.auth-form button[type="submit"]:hover {
  background: var(--primary-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 3px solid var(--primary);
}

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

.dashboard-card svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
  margin-bottom: 15px;
}

.dashboard-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.dashboard-card p {
  font-size: 13px;
  color: var(--text-medium);
  margin-top: 5px;
}

/* ============================================================
   16. WISHLIST
   ============================================================ */
#wishlist {
  padding: 60px 0;
}

#wishlist .cart-table {
  /* Inherits cart-table styles */
}

#wishlist .cart-table th {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 15px 20px;
  font-weight: 700;
  text-align: right;
}

#wishlist .cart-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.wishlist-add-cart {
  padding: 8px 20px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.3s ease;
}

.wishlist-add-cart:hover {
  background: var(--primary-dark);
}

/* ============================================================
   17. COMPARE
   ============================================================ */
#compare {
  padding: 60px 0;
  background: var(--bg-light);
}

.compare-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}

.compare-table th {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 15px;
  min-width: 200px;
  font-weight: 700;
  font-size: 14px;
}

.compare-table td {
  padding: 15px;
  border: 1px solid var(--border-light);
  text-align: center;
  vertical-align: top;
  font-size: 14px;
  color: var(--text-medium);
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--text-dark);
  background: var(--bg-light);
  text-align: right;
}

.compare-product-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 auto;
  background: #e2e8f0;
}

/* ============================================================
   18. REVIEWS / TESTIMONIALS
   ============================================================ */
#reviews {
  padding: 60px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: "\201C";
  font-size: 60px;
  color: rgba(30, 64, 175, 0.2);
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  font-family: serif;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 15px;
  background: #e2e8f0;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-light);
}

.testimonial-rating {
  display: flex;
  margin: 10px 0;
  gap: 2px;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.testimonial-text {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 14px;
}

.testimonial-date {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ============================================================
   19. ABOUT
   ============================================================ */
#about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 700;
}

.about-text p {
  line-height: 1.9;
  color: var(--text-medium);
  margin-bottom: 15px;
  font-size: 15px;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.stat-item {
  text-align: center;
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.stat-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-medium);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

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

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #e2e8f0;
}

.team-card-info {
  padding: 20px;
}

.team-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-medium);
}

/* ============================================================
   20. BLOG
   ============================================================ */
#blog {
  padding: 60px 0;
  background: var(--bg-light);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.blog-card-image {
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 25px;
}

.blog-category-tag {
  display: inline-block;
  background: rgba(30, 64, 175, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-dark);
}

.blog-card h3 a {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--text-light);
}

/* --- Blog Full Article --- */
.blog-full-article {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.blog-full-article .article-header {
  margin-bottom: 25px;
}

.blog-full-article .article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 25px;
  background: #e2e8f0;
}

.blog-full-article h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.blog-full-article h4 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.blog-full-article p {
  line-height: 2;
  color: var(--text-medium);
  margin-bottom: 15px;
  font-size: 15px;
}

.blog-full-article ul,
.blog-full-article ol {
  padding-right: 25px;
  margin-bottom: 15px;
}

.blog-full-article li {
  line-height: 1.9;
  color: var(--text-medium);
  margin-bottom: 5px;
  font-size: 15px;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-tag {
  background: var(--bg-light);
  color: var(--text-medium);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ============================================================
   21. CONTACT
   ============================================================ */
#contact {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-form {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form button[type="submit"] {
  padding: 14px 40px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.contact-form button[type="submit"]:hover {
  background: var(--primary-dark);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.contact-info-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  font-size: 16px;
  margin-top: 20px;
}

/* ============================================================
   22. FAQ
   ============================================================ */
#faq {
  padding: 60px 0;
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--bg-white);
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  display: none;
  content: '';
}

.faq-list summary:hover {
  color: var(--primary);
}

.faq-list summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--text-medium);
  border-bottom: 2px solid var(--text-medium);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: 5px;
}

.faq-list details[open] summary::after {
  transform: rotate(135deg);
}

.faq-list details[open] summary {
  color: var(--primary);
  background: var(--bg-light);
}

.faq-answer {
  padding: 0 25px 20px;
  line-height: 1.9;
  color: var(--text-medium);
  font-size: 14px;
}

/* ============================================================
   23. TERMS
   ============================================================ */
#terms {
  padding: 60px 0;
}

.terms-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.terms-section {
  margin-bottom: 30px;
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.terms-section ol,
.terms-section ul {
  padding-right: 25px;
  margin-bottom: 15px;
}

.terms-section li {
  line-height: 1.9;
  color: var(--text-medium);
  margin-bottom: 8px;
  font-size: 14px;
}

.terms-section p {
  line-height: 1.9;
  color: var(--text-medium);
  margin-bottom: 10px;
  font-size: 14px;
}

/* ============================================================
   24. EMAIL TEMPLATES
   ============================================================ */
#email-templates {
  padding: 60px 0;
  background: var(--bg-light);
}

.email-template {
  max-width: 600px;
  margin: 0 auto 30px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.email-header {
  background: var(--primary);
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.email-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.email-header p {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
}

.email-body {
  padding: 30px;
}

.email-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.email-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.email-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.email-body table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-medium);
}

.email-footer {
  background: var(--bg-light);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   25. FOOTER
   ============================================================ */
#footer {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}

.footer-about {
  max-width: 300px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 15px;
  display: block;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.trust-badges {
  display: flex;
  gap: 15px;
}

.trust-badge {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px;
  text-align: center;
  transition: background 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.15);
}

.trust-badge svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
  margin-bottom: 5px;
}

/* ============================================================
   26. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet & Small Desktop (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

/* --- Tablet Portrait & Mobile Landscape (max-width: 768px) --- */
@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .header-main .container {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
  }

  .nav-bar {
    display: none;
  }

  .nav-bar.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 100%;
  }

  #home {
    min-height: auto;
    padding: 50px 0;
  }

  .banners-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .auth-forms {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cart-bottom {
    flex-direction: column;
  }

  .cart-totals {
    min-width: 100%;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .mid-banner h2 {
    font-size: 26px;
  }

  .mid-banner p {
    font-size: 15px;
  }

  .blog-full-article {
    padding: 25px;
  }

  .blog-full-article h3 {
    font-size: 22px;
  }

  .blog-full-article .article-image {
    height: 250px;
  }

  .terms-content {
    padding: 25px;
  }

  .product-detail-info h2 {
    font-size: 22px;
  }

  .detail-price .price-current {
    font-size: 24px;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .trust-badges {
    justify-content: center;
  }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .logo {
    font-size: 22px;
  }

  .header-icons {
    gap: 10px;
  }

  .product-image {
    height: 200px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coupon-form {
    flex-direction: column;
  }

  .coupon-form input {
    width: 100%;
  }

  .quantity-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .variation-options {
    flex-wrap: wrap;
  }

  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 14px;
  }

  .email-template {
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* ============================================================
   27. UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.pt-0 {
  padding-top: 0;
}

.pb-0 {
  padding-bottom: 0;
}

/* ============================================================
   28. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* --- Scroll-triggered animation class (apply via JS if needed) --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- General transition smoothing --- */
a,
button,
input,
select,
textarea {
  transition: all 0.3s ease;
}

/* --- Focus visible for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Selection color --- */
::selection {
  background: var(--primary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary);
  color: #ffffff;
}

/* --- Scrollbar styling (WebKit) --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-medium);
}

