/* ==================================================
   GALILE — perfumes.css
   صفحه عطر و ادکلن
   ================================================== */

/* ============================================
   ۱. Hero مخصوص عطر (Editorial Banner)
   ============================================ */
.perfume-hero {
  position: relative;
  padding: 130px 0 60px;
  background: var(--bg);
  overflow: hidden;
}

.perfume-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 380px;
}

/* متن (راست) */
.perfume-hero-content {
  text-align: right;
}

.perfume-hero-content .eyebrow {
  color: var(--gold);
  margin-bottom: 16px;
}

.perfume-hero-content .eyebrow::before,
.perfume-hero-content .eyebrow::after {
  background: var(--gold);
}

.perfume-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.perfume-hero-subtitle {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.7;
}

.perfume-hero-desc {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 460px;
}

.perfume-hero-content .btn {
  align-self: flex-start;
}

/* تصویر (چپ) */
.perfume-hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perfume-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 154, 90, 0.25) 0%, transparent 65%),
    radial-gradient(circle at 30% 70%, rgba(184, 154, 90, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.perfume-hero-bottle {
  position: relative;
  width: 180px;
  height: 290px;
  color: var(--gold);
  opacity: 0.85;
  filter: drop-shadow(0 20px 40px rgba(184, 154, 90, 0.25));
}

.perfume-hero-bottle svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .perfume-hero {
    padding: 110px 0 40px;
  }
  .perfume-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
    min-height: auto;
  }
  .perfume-hero-content {
    text-align: center;
    order: 2;
  }
  .perfume-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .perfume-hero-content .btn {
    align-self: center;
  }
  .perfume-hero-visual {
    min-height: 240px;
    order: 1;
  }
  .perfume-hero-bottle {
    width: 120px;
    height: 200px;
  }
}

/* ============================================
   ۲. Layout
   ============================================ */
.shop-content {
  padding: 40px 0 80px;
  background: var(--bg);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* ============================================
   ۳. سایدبار فیلتر
   ============================================ */
.filters-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.filters-sidebar::-webkit-scrollbar {
  width: 4px;
}
.filters-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filters-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.filters-close {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
}

.filters-close:hover {
  background: var(--gold);
  color: #fff;
}

.filter-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.filter-block:last-of-type {
  border-bottom: none;
}

.filter-block h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.2s;
  user-select: none;
}

.filter-check:hover {
  color: var(--ink);
}

.filter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
  background: var(--bg);
}

.filter-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.filter-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5.5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-check small {
  margin-right: auto;
  color: var(--text-faint);
  font-size: 11px;
}

/* قیمت */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.price-inputs input {
  flex: 1;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  text-align: center;
  outline: none;
  transition: all 0.3s var(--ease);
  min-width: 0;
}

.price-inputs input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.price-inputs span {
  color: var(--text-faint);
  font-size: 14px;
}

.price-slider input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-alt);
  outline: none;
  cursor: pointer;
  margin: 8px 0;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(184, 154, 90, 0.4);
  transition: transform 0.2s var(--ease);
}

.price-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.price-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid #fff;
}

.price-range-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.price-unit {
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 6px;
}

/* ============================================
   ۴. نوار بالای محصولات
   ============================================ */
.products-area {
  min-width: 0;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.products-count {
  font-size: 13.5px;
  color: var(--text-soft);
}

.products-count span {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-wrapper {
  position: relative;
}

.sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.sort-toggle:hover {
  border-color: var(--gold);
}

.sort-toggle i:last-child {
  font-size: 10px;
  transition: transform 0.3s var(--ease);
}

.sort-toggle.active i:last-child {
  transform: rotate(180deg);
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s var(--ease);
}

.sort-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  text-align: right;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.sort-option:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.sort-option.active {
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

.filter-toggle-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-toggle-mobile:hover {
  border-color: var(--gold);
}

/* ============================================
   ۵. گرید محصولات — ۴ ستونه
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ============================================
   ۶. کارت عطر
   ============================================ */
.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 154, 90, 0.3);
}

/* تصویر */
.pf-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ECECEC 100%);
}

.pf-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.pf-svg-1 { opacity: 1; transform: scale(1); }
.pf-svg-2 { opacity: 0; transform: scale(1.05); }

.pf-card:hover .pf-svg-1 { opacity: 0; transform: scale(1.05); }
.pf-card:hover .pf-svg-2 { opacity: 1; transform: scale(1); }

.pf-svg svg {
  width: 55%;
  height: 75%;
  color: var(--gold);
  opacity: 0.6;
}

.pf-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.5s var(--ease);
}

.pf-card:hover .pf-image img {
  transform: scale(1.05);
}

/* برچسب‌ها */
.pf-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.pf-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
}

.pf-badge-new {
  background: var(--gold);
  color: #fff;
}

.pf-badge-sale {
  background: #e63946;
  color: #fff;
}

.pf-badge-out {
  background: rgba(23, 23, 25, 0.85);
  color: #fff;
}

/* دکمه علاقه‌مندی */
.pf-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
}

.pf-card:hover .pf-wishlist {
  opacity: 1;
  transform: translateY(0);
}

.pf-wishlist:hover,
.pf-wishlist.active {
  background: var(--gold);
  color: #fff;
}

/* اطلاعات */
.pf-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pf-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

/* مشخصات کوتاه EDP | 100ml */
.pf-short {
  font-size: 11px;
  color: var(--text-soft);
  font-family: var(--ff-en);
  letter-spacing: 0.05em;
  direction: ltr;
  text-align: right;
}

/* نت‌ها */
.pf-notes {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
  margin-top: 2px;
}

/* قیمت */
.pf-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.pf-price-current {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pf-price-final {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pf-price-final small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-soft);
  margin-right: 2px;
}

.pf-price-discount-badge {
  background: #e63946;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.pf-price-old {
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-top: 2px;
}

/* دکمه مشاهده رایحه */
.pf-view {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
  z-index: 2;
  font-family: inherit;
}

.pf-card:hover .pf-view {
  opacity: 1;
  transform: translateY(0);
}

.pf-view:hover {
  background: var(--gold);
}

.pf-view:disabled {
  background: rgba(23, 23, 25, 0.4);
  cursor: not-allowed;
}

/* ============================================
   ۷. حالت بدون نتیجه
   ============================================ */
.products-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.products-empty i {
  font-size: 44px;
  color: var(--text-mute);
  margin-bottom: 14px;
  display: block;
}

.products-empty h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}

.products-empty p {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

/* ============================================
   ۸. SEO
   ============================================ */
.seo-intro {
  padding: 60px 0 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.seo-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.seo-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.seo-box p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 2;
}

/* ============================================
   ۹. Overlay فیلتر
   ============================================ */
.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 25, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 550;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.filters-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   ۱۰. ریسپانسیو
   ============================================ */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    max-height: none;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border);
    z-index: 600;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: 24px;
  }

  .filters-sidebar.open {
    transform: translateX(0);
  }

  .filters-close {
    display: inline-flex;
  }

  .filter-toggle-mobile {
    display: inline-flex;
  }

  /* تبلت: ۳ ستونه */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .shop-content {
    padding: 28px 0 60px;
  }

  .products-toolbar {
    gap: 10px;
    margin-bottom: 18px;
  }

  .products-count {
    font-size: 12.5px;
  }

  /* موبایل: ۲ ستونه */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pf-card {
    border-radius: var(--radius-sm);
  }

  .pf-info {
    padding: 10px 10px 12px;
    gap: 4px;
  }

  .pf-name {
    font-size: 12px;
    min-height: 34px;
  }

  .pf-short {
    font-size: 10px;
  }

  .pf-notes {
    font-size: 10.5px;
  }

  .pf-price-final {
    font-size: 13px;
  }

  .pf-price-final small {
    font-size: 9.5px;
  }

  .pf-price-old {
    font-size: 10px;
  }

  .pf-price-discount-badge {
    font-size: 9px;
    padding: 1.5px 5px;
  }

  .pf-svg svg {
    width: 60%;
    height: 70%;
  }

  .pf-wishlist {
    opacity: 1;
    transform: translateY(0);
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 6px;
    left: 6px;
  }

  .pf-badges {
    top: 6px;
    right: 6px;
  }

  .pf-badge {
    font-size: 9px;
    padding: 3px 7px;
  }

  .pf-view {
    opacity: 1;
    transform: translateY(0);
    height: 30px;
    font-size: 11px;
    bottom: 6px;
    left: 6px;
    right: 6px;
  }

  .seo-intro {
    padding: 40px 0 60px;
  }

  .seo-box h2 {
    font-size: 17px;
  }

  .seo-box p {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .products-grid {
    gap: 8px;
  }

  .pf-name {
    font-size: 11.5px;
  }

  .pf-price-final {
    font-size: 12px;
  }
}