@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

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

body {
  font-family: 'Playfair Display', 'Tahoma', sans-serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  background: #faf5ff;
  color: #1a1a1a;
  padding: 0;
  line-height: 1.6;
}

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

/* ===== انیمیشن‌ها ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-in { animation: fadeInUp 0.5s ease; }

/* ===== هدر ===== */
.main-header { background: #2e1065; color: #f3ecfb; }

.header-top {
  padding: 14px 0;
  background: #ffffff;
  border-bottom: 2px solid #ec4899;
}

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

.header-left h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: #8b5cf6; }
.header-left h1 span { color: #7e22ce; }

.main-nav ul { list-style: none; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.main-nav ul li a {
  color: #8b5cf6;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 4px;
  left: 50%;
  background: #ec4899;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav ul li a:hover::after { width: 70%; }
.main-nav ul li a:hover { color: #ec4899; }

.admin-btn {
  background: transparent;
  color: #ec4899;
  border: 1.5px solid #ec4899;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.admin-btn:hover { background: #ec4899; color: #2e1065; }

.header-search input {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid #ec4899;
  background: #f5f0ff;
  color: #5b21b6;
  font-size: 14px;
  font-family: inherit;
  width: 200px;
  transition: 0.3s;
}

.header-search input::placeholder { color: #a99cc4; }

.header-search input:focus {
  outline: none;
  background: #ffffff;
  border-color: #f9a8d4;
  box-shadow: 0 0 0 3px rgba(236,72,153, 0.15);
}

/* ===== ویدیو هدر ===== */
.header-video {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.header-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.header-video .video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #f3ecfb;
  padding: 20px;
}

.header-video .video-overlay h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-video .video-overlay h2 span { color: #ec4899; }

.header-video .video-overlay p {
  font-size: 18px;
  color: #d8cdf0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ===== اسلایدر هدر (زیر ویدیو) — بنر تبلیغاتی ===== */
.header-slider {
  --hs-h: 340px;
  --hs-pad-top: 24px;
  position: relative;
  width: 100%;
  padding: var(--hs-pad-top) 20px 46px;
  background: #faf5ff;
}

.header-slides-track {
  position: relative;
  max-width: 1300px;
  height: var(--hs-h);
  margin: 0 auto;
}

.header-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(91, 20, 196, 0.28);
}

.header-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* درخشش ملایم پشت متن */
.header-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 115%, rgba(255,255,255,0.22), transparent 55%);
}

.header-slide-content {
  position: relative;
  z-index: 3;
  width: 46%;
  padding: 0 40px 0 60px;
  direction: rtl;
  text-align: right;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-slide-kicker {
  font-size: 21px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2px;
}

.header-slide-content h2 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.3;
  color: #e9d5ff;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(60, 10, 120, 0.45);
}

.header-slide-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.header-slide-cta {
  align-self: flex-end;
  padding: 10px 26px;
  background: #ffffff;
  color: #6b21a8;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(60, 10, 120, 0.25);
}

.header-slide-cta span { font-size: 20px; margin-right: 6px; line-height: 1; }

.header-slide-cta:hover {
  background: #f9a8d4;
  color: #4c0f7a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(236,72,153, 0.45);
}

.header-slide-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: var(--photo-w, 62%);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 36%);
  mask-image: linear-gradient(to right, transparent 0%, #000 36%);
}

.header-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-slide-arrow {
  position: absolute;
  top: calc(var(--hs-pad-top) + var(--hs-h) / 2);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #7e22ce;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.3s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 4px;
  box-shadow: 0 6px 18px rgba(60, 10, 120, 0.25);
}

.header-slide-arrow:hover {
  background: #f9a8d4;
  transform: translateY(-50%) scale(1.1);
}

.header-slide-arrow.prev { right: 34px; }
.header-slide-arrow.next { left: 34px; }

.header-slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.header-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8b4fe;
  cursor: pointer;
  transition: 0.3s;
}

.header-dot.active {
  background: #c026d3;
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(192, 38, 211, 0.55);
}

/* ===== اسلایدر صفحه اصلی ===== */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(46,16,101, 0.12);
}

.slider-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-content { color: #fff; padding: 30px; max-width: 600px; }

.slide-emoji {
  font-size: 60px;
  margin-bottom: 10px;
  animation: pulse 2s ease-in-out infinite;
}

.slide-content h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.slide-content p { font-size: 17px; color: #e0e0e0; margin-bottom: 20px; }

.slide-btn {
  padding: 10px 28px;
  background: #ec4899;
  color: #2e1065;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}

.slide-btn:hover {
  background: #f9a8d4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236,72,153, 0.4);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(236,72,153, 0.9);
  color: #2e1065;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 4px;
}

.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { right: 15px; }
.slider-arrow.next { left: 15px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s;
}

.slider-dot.active {
  background: #ec4899;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(236,72,153, 0.6);
}

/* ===== صفحه اصلی ===== */
#main-content { padding: 30px 0; min-height: 400px; }

.products-wrapper {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 25px;
  margin-bottom: 40px;
  border: 1px solid #f3e8ff;
  box-shadow: 0 4px 20px rgba(46,16,101, 0.04);
}

.products-wrapper .section-title {
  font-size: 24px;
  font-weight: 600;
  color: #2e1065;
  margin-bottom: 4px;
}

.products-wrapper .section-sub {
  color: #7a6a96;
  font-size: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f3ecfb;
  padding-bottom: 12px;
}

/* ===== فیلتر و مرتب‌سازی ===== */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #fdfaff;
  border-radius: 12px;
  border: 1px solid #f3ecfb;
}

.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.filter-group label { font-size: 14px; color: #2e1065; font-weight: 500; }

.filter-group select {
  padding: 8px 16px;
  border: 1.5px solid #e9ddf7;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition: 0.2s;
}

.filter-group select:focus { border-color: #ec4899; outline: none; }

.price-filter-group input {
  width: 110px;
  padding: 8px 12px;
  border: 1.5px solid #e9ddf7;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
  transition: 0.2s;
}

.price-filter-group input:focus { border-color: #ec4899; outline: none; }
.price-filter-group span { color: #7a6a96; font-size: 13px; }

.filter-apply-btn {
  padding: 8px 18px;
  background: #2e1065;
  color: #ec4899;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}

.filter-apply-btn:hover { background: #ec4899; color: #2e1065; }

.filter-reset-btn {
  padding: 8px 18px;
  background: transparent;
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}

.filter-reset-btn:hover { background: #fef2f2; }

.filter-active-info {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 15px;
  border-right: 3px solid #2e7d32;
  display: inline-block;
}

/* ===== گرید محصولات ===== */
.product-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.product-item-small {
  background: #fdfaff;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #f9a8d4;
  cursor: pointer;
  text-align: center;
  padding-bottom: 12px;
  position: relative;
}

.product-item-small:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #ec4899;
  box-shadow: 0 0 0 2px #ec4899, 0 12px 30px rgba(46,16,101, 0.1);
}

.product-item-small img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #f6effc;
  transition: transform 0.5s ease;
}

.product-item-small:hover img { transform: scale(1.05); }

.product-item-small h4 {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 10px 2px 10px;
  color: #1a1a1a;
}

.product-item-small .price-small {
  font-size: 14px;
  font-weight: 600;
  color: #ec4899;
  padding: 0 10px 8px 10px;
}

.product-item-small .badge-small {
  display: inline-block;
  background: #2e1065;
  color: #ec4899;
  font-size: 10px;
  padding: 2px 12px;
  border-radius: 20px;
  margin: 6px 0 4px 0;
}

.add-to-cart-btn {
  background: #2e1065;
  color: #ec4899;
  border: 1.5px solid #ec4899;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: 0.3s;
}

.add-to-cart-btn:hover {
  background: #ec4899;
  color: #2e1065;
  box-shadow: 0 4px 15px rgba(236,72,153, 0.3);
}

/* ===== قلب علاقه‌مندی ===== */
.wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.wishlist-btn:hover {
  transform: scale(1.15);
  background: #fff;
  box-shadow: 0 4px 15px rgba(236,72,153, 0.4);
}

.wishlist-btn.active { background: #ffe8e8; animation: pulse 0.5s ease; }

.wishlist-detail-btn {
  padding: 12px 28px;
  background: transparent;
  color: #2e1065;
  border: 1.5px solid #2e1065;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}

.wishlist-detail-btn:hover,
.wishlist-detail-btn.active { background: #2e1065; color: #ec4899; }

#wishlist-count {
  display: inline-block;
  background: #ec4899;
  color: #2e1065;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  padding: 0 4px;
  margin-right: 4px;
}

/* ===== رنگ‌بندی دسته‌ها ===== */
.product-item-small.cat-lingerie { background: linear-gradient(135deg, #fff5f7 0%, #fce4ec 100%); }
.product-item-small.cat-accessories { background: linear-gradient(135deg, #f5faf5 0%, #e8f5e9 100%); }
.product-item-small.cat-cosmetics { background: linear-gradient(135deg, #faf5fb 0%, #f3e5f5 100%); }

.cat-title-lingerie { color: #c2185b !important; border-bottom: 2px solid #f8bbd0 !important; padding-bottom: 12px; }
.cat-title-accessories { color: #2e7d32 !important; border-bottom: 2px solid #c8e6c9 !important; padding-bottom: 12px; }
.cat-title-cosmetics { color: #7b1fa2 !important; border-bottom: 2px solid #e1bee7 !important; padding-bottom: 12px; }

/* ===== بخش محصولات برجسته ===== */
.featured-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 25px;
  margin: 30px 0 40px 0;
  border: 1px solid #f3e8ff;
  box-shadow: 0 4px 20px rgba(46,16,101, 0.04);
}

.featured-section h2 { font-size: 24px; font-weight: 600; color: #2e1065; margin-bottom: 4px; }
.featured-section h2 span { color: #ec4899; }

.featured-section .featured-sub {
  color: #7a6a96;
  font-size: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f3ecfb;
  padding-bottom: 12px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.featured-item {
  text-align: center;
  background: #fdfaff;
  border-radius: 16px;
  padding: 16px 12px 18px;
  border: 1px solid #f3ecfb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-item:hover {
  border-color: #ec4899;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(46,16,101, 0.06);
}

.featured-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  background: #f6effc;
}

.featured-item h4 { font-size: 16px; font-weight: 500; margin: 10px 0 8px 0; color: #2e1065; }

.featured-item .featured-btn {
  display: inline-block;
  padding: 6px 22px;
  background: #2e1065;
  color: #ec4899;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid #2e1065;
  cursor: pointer;
  font-family: inherit;
}

.featured-item .featured-btn:hover { background: #ec4899; color: #2e1065; border-color: #ec4899; }

/* ===== مدال‌ها ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(46,16,101, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 24px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 30px 60px rgba(46,16,101, 0.15);
  position: relative;
  animation: modalFade 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid #ec4899;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.94) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2e1065;
  margin-bottom: 18px;
  border-bottom: 2px solid #ec4899;
  padding-bottom: 12px;
}

.close-modal {
  position: absolute;
  left: 20px; top: 16px;
  font-size: 30px;
  font-weight: 300;
  color: #b4a5cc;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}

.close-modal:hover { color: #2e1065; transform: rotate(90deg); }

/* ===== فرم‌ها ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: #2e1065;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e9ddf7;
  border-radius: 12px;
  font-size: 14px;
  background: #fdfaff;
  transition: 0.25s;
  font-family: inherit;
  color: #1a1a1a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ec4899;
  outline: none;
  box-shadow: 0 0 0 4px rgba(236,72,153, 0.08);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #2e1065;
  color: #ec4899;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.submit-btn:hover { background: #ec4899; color: #2e1065; box-shadow: 0 4px 20px rgba(236,72,153, 0.25); }

.upload-zone {
  border: 2px dashed #d9ccec;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: #fdfaff;
  transition: 0.3s;
}

.upload-zone:hover { border-color: #ec4899; }
.upload-zone #upload-icon { font-size: 36px; display: block; margin-bottom: 6px; }

/* ===== مدیریت ===== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.stat-item {
  background: #faf5ff;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #f3e8ff;
  font-size: 13px;
}

.stat-item span:last-child { font-weight: 700; color: #2e1065; }

.admin-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.admin-filter select { padding: 8px 14px; border: 2px solid #e9ddf7; border-radius: 12px; font-family: inherit; }

#admin-product-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #f3e8ff;
  border-radius: 12px;
  padding: 6px;
  background: #fdfaff;
}

.admin-product-items { display: flex; flex-direction: column; gap: 4px; }

.admin-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f3ecfb;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-product-info { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-product-name { font-weight: 500; color: #2e1065; font-size: 14px; }

.admin-product-category {
  font-size: 12px;
  color: #7a6a96;
  background: #f3ecfb;
  padding: 2px 12px;
  border-radius: 20px;
}

.admin-product-price { font-size: 13px; font-weight: 600; color: #ec4899; }
.admin-product-actions { display: flex; gap: 6px; }

.admin-delete-btn {
  background: transparent;
  border: none;
  color: #b4a5cc;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 8px;
  border-radius: 6px;
}

.admin-delete-btn:hover { background: #fef2f2; color: #d32f2f; }

.admin-edit-btn {
  background: transparent;
  border: none;
  color: #b4a5cc;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 8px;
  border-radius: 6px;
}

.admin-edit-btn:hover { background: #e8f5e9; color: #2e7d32; }

#reset-data-btn:hover { background: #d32f2f !important; color: #fff !important; border-color: #d32f2f !important; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid #f3e8ff;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fdfaff;
  transition: 0.3s;
}

.faq-item:hover { border-color: #ec4899; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #2e1065;
  transition: 0.2s;
}

.faq-question:hover { background: #faf5ff; }

.faq-toggle { font-size: 22px; color: #ec4899; transition: 0.3s; line-height: 1; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: #5a5a5a;
  line-height: 1.8;
  font-size: 14px;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

.back-btn {
  background: transparent;
  border: none;
  color: #ec4899;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  transition: 0.2s;
}

.back-btn:hover { color: #2e1065; }

/* ===== فوتر ===== */
.main-footer {
  background: #2e1065;
  color: #d8cdf0;
  padding: 50px 0 20px;
  margin-top: 60px;
  border-top: 3px solid #ec4899;
}

.main-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  direction: rtl;
}

.main-footer .footer-col h3 {
  color: #ec4899;
  font-size: 17px;
  margin-bottom: 18px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(236,72,153, 0.25);
}

.main-footer .footer-col p { font-size: 14px; line-height: 1.9; color: #d8cdf0; margin-bottom: 15px; }
.main-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.main-footer .footer-col ul li { margin-bottom: 10px; font-size: 14px; }

.main-footer .footer-col ul li a {
  color: #d8cdf0;
  text-decoration: none;
  transition: 0.2s;
  display: inline-block;
}

.main-footer .footer-col ul li a:hover { color: #ec4899; transform: translateX(-4px); }

.main-footer .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
  color: #d8cdf0;
}

.main-footer .footer-socials { display: flex; gap: 10px; margin-top: 15px; }

.main-footer .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(236,72,153, 0.1);
  border: 1px solid rgba(236,72,153, 0.3);
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.main-footer .footer-socials a:hover { background: #ec4899; transform: translateY(-3px); }

.main-footer .footer-bottom {
  border-top: 1px solid rgba(236,72,153, 0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}

.main-footer .footer-bottom p span { color: #ec4899; font-weight: 600; }

.main-footer .footer-payment { display: flex; align-items: center; gap: 10px; color: #a08fc0; }

.main-footer .pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(236,72,153, 0.1);
  border-radius: 8px;
  font-size: 18px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 900px) {
  .main-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { justify-content: center; }
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav ul { justify-content: center; }
  .header-search input { width: 100%; }
  .header-video { height: 200px; }
  .header-video .video-overlay h2 { font-size: 24px; }
  .header-video .video-overlay p { font-size: 15px; }

  .header-slider { --hs-h: 240px; --hs-pad-top: 16px; padding-left: 12px; padding-right: 12px; }
  .header-slide { border-radius: 20px; }
  .header-slide-content { width: 52%; padding: 0 36px 0 24px; }
  .header-slide-kicker { font-size: 14px; }
  .header-slide-content h2 { font-size: 26px; }
  .header-slide-content p { font-size: 12px; margin-bottom: 12px; }
  .header-slide-cta { padding: 7px 18px; font-size: 13px; }
  .header-slide-photo { width: 62%; }
  .header-slide-arrow { width: 32px; height: 32px; font-size: 20px; }
  .header-slide-arrow.prev { right: 18px; }
  .header-slide-arrow.next { left: 18px; }

  .slider-wrapper { height: 260px; }
  .slide-content h2 { font-size: 22px; }
  .slide-content p { font-size: 14px; }
  .slide-emoji { font-size: 45px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 22px; }

  .product-grid-small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .featured-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-product-item { flex-direction: column; align-items: stretch; }
}

@media (max-width: 550px) {
  .main-footer .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .main-footer .footer-bottom { flex-direction: column; text-align: center; }
  .price-filter-group { flex-direction: column; align-items: stretch; }
  .price-filter-group input { width: 100%; }
}

@media (max-width: 480px) {
  .product-grid-small { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .header-left h1 { font-size: 20px; }
  .main-nav ul li a { font-size: 13px; padding: 6px 12px; }
  .header-slider { --hs-h: 210px; }
  .header-slide-content { width: 44%; padding: 0 8px 0 12px; }
  .header-slide-kicker { font-size: 10.5px; }
  .header-slide-content h2 { font-size: 17px; line-height: 1.35; margin-bottom: 4px; }
  .header-slide-content p { font-size: 9.5px; line-height: 1.6; margin-bottom: 10px; }
  .header-slide-cta { padding: 6px 14px; font-size: 11px; }
  .header-slide-photo { width: 64%; }
  .header-slide-arrow { display: none; }
  .slider-wrapper { height: 220px; }
  .slide-content h2 { font-size: 18px; }
  .slide-content p { font-size: 12px; }
  .slide-emoji { font-size: 36px; }
}
/* ========================================================== */
/* ===== اصلاح: خط جداکننده و فاصله dots ===== */
/* ========================================================== */
.header-video {
  border-bottom: 3px solid #ec4899 !important;
}


/* ========================================================== */
/* ===== تب‌های پنل مدیریت ===== */
/* ========================================================== */
.admin-tabs {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f3e8ff;
}

.admin-tab {
  flex: 1;
  padding: 12px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  transition: 0.3s;
}

.admin-tab.active {
  background: #2e1065;
  color: #ec4899;
  font-weight: 600;
}

.admin-tab:hover:not(.active) {
  background: #f3ecfb;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}
/* ========================================================== */
/* ===== باکس آپلود ویدیو ===== */
/* ========================================================== */
#video-upload-zone {
  border: 2px dashed #d9ccec;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: #fdfaff;
  transition: 0.3s;
}

#video-upload-zone:hover {
  border-color: #ec4899;
  background: #f9f3fd;
}

#video-upload-zone #video-upload-icon {
  font-size: 45px;
  display: block;
  margin-bottom: 8px;
}

#video-preview {
  max-height: 250px;
  width: 100%;
  object-fit: contain;
  background: #000;
}

#video-upload-status {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}

#upload-video-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}