@font-face {
  font-family: 'VazirLocal';
  src: url('../fonts/Vazir.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* ========================================
   بیوتی شاپ - استایل اصلی
   SEO + Fully Responsive
======================================== */

:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #fce4ec;
  --accent: #f8bbd0;
  --gold: #d4af37;
  --dark: #1a1a1a;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(233, 30, 99, 0.08);
  --shadow-hover: 0 12px 40px rgba(233, 30, 99, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: #fafafa;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Top Bar ========== */
.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a:hover { color: var(--accent); }
.top-bar-left, .top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ========== Header ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.logo span { color: var(--dark); }

.search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 11px 48px 11px 16px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--gray);
  position: relative;
}
.header-actions a i {
  font-size: 20px;
  margin-bottom: 2px;
  color: var(--dark);
}
.header-actions a:hover i,
.header-actions a:hover { color: var(--primary); }
.cart-count {
  position: absolute;
  top: -5px;
  left: -8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
  padding: 4px;
}

/* ========== Navigation ========== */
.nav {
  background: var(--primary);
}
.nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav li a {
  display: block;
  padding: 12px 18px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}
.nav li a:hover,
.nav li a.active {
  background: var(--primary-dark);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-dark {
  background: var(--dark);
  color: white;
}
.btn-dark:hover {
  background: #333;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f48fb1 100%);
  min-height: 380px;
}
.hero-slide {
  display: none;
  padding: 40px 0;
}
.hero-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.hero-text {
  flex: 1;
  max-width: 500px;
}
.hero-text .badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  margin-bottom: 12px;
}
.hero-text h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-text p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
}
.hero-image {
  flex: 1;
  text-align: center;
}
.hero-image img {
  max-height: 300px;
  margin: 0 auto;
  border-radius: 16px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active {
  background: var(--primary);
  width: 28px;
  border-radius: 8px;
}

/* ========== Features ========== */
.features {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}
.feature-text h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-text p {
  font-size: 12px;
  color: var(--gray);
}

/* ========== Sections ========== */
.section {
  padding: 40px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  position: relative;
  padding-right: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 3px;
}
.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-link:hover { gap: 10px; }

/* ========== Products Grid ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  z-index: 2;
}
.product-badge.new { background: #10b981; }
.product-img {
  height: 200px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img img {
  height: 160px;
  object-fit: contain;
  transition: transform 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-actions {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  opacity: 0;
  display: flex;
  gap: 6px;
  transition: var(--transition);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.product-actions a, .product-actions button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--dark);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
}
.product-actions a:hover, .product-actions button:hover {
  background: var(--primary);
  color: white;
}
.product-info { padding: 14px; }
.product-category {
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 4px;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-title a:hover { color: var(--primary); }
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.price-old {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
}

/* ========== Categories ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}
.category-card h4 {
  font-size: 13px;
  font-weight: 600;
}

/* ========== Banner ========== */
.banner-section { padding: 10px 0 40px; }
.banner {
  background: linear-gradient(135deg, #2d2d2d 0%, #4a4a4a 100%);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.12;
}
.banner-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.banner-text p {
  opacity: 0.8;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ========== Brands ========== */
.brands {
  background: white;
  padding: 32px 0;
}
.brands-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0.55;
}
.brand-item {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray);
  padding: 8px 14px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: white;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-right: 6px;
  color: #ccc;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--primary); font-weight: 600; }

/* ========== Product Detail Page ========== */
.product-detail {
  padding: 30px 0 50px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.product-gallery {
  position: relative;
}
.product-main-img {
  background: #f9f9f9;
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}
.product-main-img img {
  max-height: 360px;
  object-fit: contain;
}
.product-thumbs {
  display: flex;
  gap: 10px;
}
.product-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f9f9f9;
}
.product-thumbs img.active,
.product-thumbs img:hover {
  border-color: var(--primary);
}
.product-info-detail h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray);
}
.product-meta span { display: flex; align-items: center; gap: 5px; }
.product-meta .in-stock { color: #10b981; font-weight: 600; }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.product-rating .stars { color: #f59e0b; }
.product-rating span { font-size: 13px; color: var(--gray); }
.product-price-box {
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.product-price-box .price-current {
  font-size: 26px;
}
.product-price-box .discount-badge {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.product-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.8;
}
.product-actions-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid #eee;
  border-radius: 50px;
  overflow: hidden;
}
.qty-selector button {
  width: 40px;
  height: 44px;
  border: none;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 16px;
  color: var(--dark);
}
.qty-selector input {
  width: 50px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.product-features-list {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}
.product-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.product-features-list i {
  color: var(--primary);
  width: 18px;
}

/* Product Tabs */
.product-tabs {
  margin-top: 40px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tabs-nav {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
}
.tabs-nav button {
  padding: 14px 24px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.tabs-nav button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content {
  padding: 28px;
  display: none;
}
.tab-content.active { display: block; }
.tab-content h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.tab-content p, .tab-content li {
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 10px;
}
.tab-content ul {
  padding-right: 20px;
}
.tab-content ul li {
  list-style: disc;
}

/* ========== Cart Page ========== */
.cart-page {
  padding: 30px 0 50px;
}
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.cart-items {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cart-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 90px;
  height: 90px;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-info h3 a:hover { color: var(--primary); }
.cart-item-info .cat {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 8px;
}
.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  transition: var(--transition);
}
.cart-item-remove:hover { color: #b91c1c; }

.cart-summary {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.cart-summary h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.summary-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.cart-summary .btn {
  margin-top: 20px;
}
.coupon-box {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.coupon-box input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 13px;
  outline: none;
}
.coupon-box input:focus { border-color: var(--primary); }

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}
.empty-cart i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}
.empty-cart h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty-cart p {
  color: var(--gray);
  margin-bottom: 24px;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-about .logo {
  margin-bottom: 14px;
  color: white;
  font-size: 22px;
}
.footer-about p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.footer h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
  padding-right: 5px;
}
.footer-contact p {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact i {
  color: var(--primary);
  width: 18px;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-symbols {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-item {
  background: white;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
}
.trust-item i { font-size: 22px; }
.trust-item span {
  font-size: 10px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
}
.copyright {
  font-size: 12px;
  color: #999;
}

/* ========== Page Title ========== */
.page-title {
  background: white;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.page-title h1 {
  font-size: 24px;
  font-weight: 800;
}

/* ========== Related Products ========== */
.related-products {
  margin-top: 40px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { gap: 28px; }
  .cart-grid { grid-template-columns: 1fr 300px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--primary);
    z-index: 999;
  }
  .nav.open { display: block; }
  .nav ul {
    flex-direction: column;
  }
  .nav li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .header-main { flex-wrap: wrap; }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 { font-size: 26px; }
  .hero-image img { max-height: 220px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 160px; }
  .product-img img { height: 130px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .banner-text h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .product-main-img { height: 300px; }
  .cart-grid { grid-template-columns: 1fr; }
  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cart-summary { position: static; }
  .top-bar-left, .top-bar-right { gap: 10px; font-size: 11px; }
  .header-actions a span { display: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-info { padding: 10px; }
  .product-title { font-size: 13px; height: 36px; }
  .price-current { font-size: 13px; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; }
  .hero-text h1 { font-size: 22px; }
  .section-title { font-size: 18px; }
  .product-actions-bar { flex-direction: column; }
  .product-actions-bar .btn { width: 100%; }
  .tabs-nav button { padding: 12px 16px; font-size: 13px; }
  .cart-item-img { width: 70px; height: 70px; }
}

/* Print & Accessibility */
@media print {
  .header, .nav, .footer, .top-bar { display: none; }
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- صفحات محتوایی فروشگاه ---- */
.page-content { max-width: 900px; margin: 1.5rem auto; background: #fff; padding: 1.5rem; border-radius: 14px; line-height: 2; }
.page-content h1 { font-size: 1.6rem; }

/* ---- صفحه محصول و سبد: گزینه‌های تنوع و فرم‌ها ---- */
.store-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.store-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 6px 12px; font: inherit; cursor: pointer; }
.store-opt.active { border-color: var(--primary, #d4a0a7); box-shadow: 0 0 0 2px #f5d0d6; }
.store-opt .swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0002; display: inline-block; }
.inline-form { display: inline-block; margin: 0 4px 6px 0; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-outline:disabled { opacity: .5; cursor: not-allowed; }
.product-actions-bar form { margin: 0; }
.bad { color: #b91c1c; }
.msg { border-radius: 12px; padding: .6rem .9rem; margin: .6rem 0; background: #f9f5f6; }
.msg-customer { background: #eef6ff; }
.msg-admin { background: #f0fdf4; }
.msg-head { display: flex; justify-content: space-between; gap: 1rem; }
.section { padding: 30px 0; }
.section .msg { max-width: 85%; }
.cat { color: #888; font-size: 13px; }

/* فونت: اول فونت محلی، بعد CDN، بعد فونت سیستم */
body { font-family: 'VazirLocal', 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif; }

/* ---- فهرست محصولات ---- */
.shop-layout-store { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.shop-filter { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.store-filter-form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.store-filter-form input, .store-filter-form select { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 10px; font: inherit; }
.store-filter-form .price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-filter .attr-filter { border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 10px; margin: 10px 0; }
.shop-filter .attr-filter legend { font-weight: 700; font-size: 13px; }
.shop-filter .check { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 4px 0; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text, #333); }
.cat-list a.active, .cat-list a:hover { background: #fdf2f4; }
@media (max-width: 900px) { .shop-layout-store { grid-template-columns: 1fr; } }
