/* ==================================================
   GALILE — watches-wallets.css
   صفحه ساعت و کیف پول
   ================================================== */

/* ============================================
   ۱. عنوان صفحه
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  text-align: center;
}

.page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 28px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  justify-content: center;
}

.breadcrumb a {
  color: var(--text-soft);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span:not(.current) {
  color: var(--text-mute);
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 110px 0 40px;
  }
}

/* ============================================
   ۲. تب‌های دسته‌بندی
   ============================================ */
.subcategory-tabs {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.tabs-row {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-row::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }
}

/* ============================================
   ۳. 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;
}

/* رنگ */
.color-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.2s;
  user-select: none;
}

.color-option:hover {
  color: var(--ink);
}

.color-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
  background: var(--bg);
}

.color-option input[type="checkbox"]:checked {
  border-color: var(--gold);
  border-width: 5px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* ============================================
   ۵. نوار بالای محصولات
   ============================================ */
.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: 180px;
  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;
}

/* ============================================
   ۷. کارت ساعت / کیف پول
   ============================================ */
.ww-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;
}

.ww-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 154, 90, 0.3);
}

/* تصویر + SVG placeholder */
.ww-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}

.ww-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease);
}

.ww-svg-1 { opacity: 1; }
.ww-svg-2 { opacity: 0; }

.ww-card:hover .ww-svg-1 { opacity: 0; }
.ww-card:hover .ww-svg-2 { opacity: 1; }

.ww-svg svg {
  width: 65%;
  height: 65%;
  color: var(--gold);
  opacity: 0.55;
  transition: transform 0.5s var(--ease);
}

.ww-card:hover .ww-svg svg {
  transform: scale(1.05);
}

.ww-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.5s var(--ease);
}

.ww-card:hover .ww-image img {
  transform: scale(1.06);
}

/* برچسب‌ها */
.ww-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.ww-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
}

.ww-badge-new {
  background: var(--gold);
  color: #fff;
}

.ww-badge-sale {
  background: #e63946;
  color: #fff;
}

.ww-badge-out {
  background: rgba(23, 23, 25, 0.85);
  color: #fff;
}

/* دکمه علاقه‌مندی */
.ww-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);
}

.ww-card:hover .ww-wishlist {
  opacity: 1;
  transform: translateY(0);
}

.ww-wishlist:hover,
.ww-wishlist.active {
  background: var(--gold);
  color: #fff;
}

/* اطلاعات */
.ww-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ww-name {
  font-size: 13px;
  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: 40px;
}

.ww-meta {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.ww-meta-sep {
  color: var(--text-mute);
  margin: 0 4px;
}

.ww-meta-feature {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* رنگ‌های موجود */
.ww-colors {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.ww-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(23, 23, 25, 0.15);
}

.ww-color-more {
  font-size: 10px;
  color: var(--text-faint);
  margin-right: 4px;
}

/* قیمت */
.ww-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.ww-price-current {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ww-price-final {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ww-price-final small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-soft);
  margin-right: 2px;
}

.ww-price-discount-badge {
  background: #e63946;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.ww-price-old {
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-top: 2px;
}

/* دکمه افزودن */
.ww-quick-add {
  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;
}

.ww-card:hover .ww-quick-add {
  opacity: 1;
  transform: translateY(0);
}

.ww-quick-add:hover {
  background: var(--gold);
}

.ww-quick-add: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;
}

/* ============================================
   ۹. بنر وسط
   ============================================ */
.middle-banner-section {
  padding: 40px 0 0;
  background: var(--bg);
}

.middle-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}

.middle-banner-content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.middle-banner-content .eyebrow {
  color: var(--gold);
  margin-bottom: 12px;
}

.middle-banner-content .eyebrow::before,
.middle-banner-content .eyebrow::after {
  background: var(--gold);
}

.middle-banner-content h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.middle-banner-content p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.8;
}

.middle-banner-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 154, 90, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #1e1e22 0%, #171719 100%);
  overflow: hidden;
}

.middle-banner-visual i {
  font-size: 140px;
  color: var(--gold);
  opacity: 0.5;
  transform: rotate(-15deg);
}

.middle-banner-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(184, 154, 90, 0.15), transparent 60%);
}

.btn-on-dark {
  background: var(--gold);
  color: #fff;
  align-self: flex-start;
}
.btn-on-dark:hover {
  background: #fff;
  color: var(--ink);
}

@media (max-width: 768px) {
  .middle-banner-section {
    padding: 24px 0 0;
  }
  .middle-banner {
    grid-template-columns: 1fr;
    min-height: 360px;
    border-radius: var(--radius);
  }
  .middle-banner-content {
    padding: 36px 26px;
  }
  .middle-banner-visual {
    min-height: 140px;
    order: -1;
  }
  .middle-banner-visual i {
    font-size: 80px;
  }
}

/* ============================================
   ۱۰. بخش SEO
   ============================================ */
.seo-intro {
  padding: 60px 0 80px;
  background: var(--bg);
}

.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;
  }

  .ww-card {
    border-radius: var(--radius-sm);
  }

  .ww-info {
    padding: 10px 10px 12px;
    gap: 4px;
  }

  .ww-name {
    font-size: 12px;
    min-height: 34px;
  }

  .ww-meta {
    font-size: 10.5px;
  }

  .ww-meta-feature {
    font-size: 10px;
  }

  .ww-price-final {
    font-size: 13px;
  }

  .ww-price-final small {
    font-size: 9.5px;
  }

  .ww-price-old {
    font-size: 10px;
  }

  .ww-price-discount-badge {
    font-size: 9px;
    padding: 1.5px 5px;
  }

  .ww-svg svg {
    width: 55%;
    height: 55%;
  }

  .ww-wishlist {
    opacity: 1;
    transform: translateY(0);
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 6px;
    left: 6px;
  }

  .ww-badges {
    top: 6px;
    right: 6px;
  }

  .ww-badge {
    font-size: 9px;
    padding: 3px 7px;
  }

  .ww-quick-add {
    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;
  }

  .ww-name {
    font-size: 11.5px;
  }

  .ww-price-final {
    font-size: 12px;
  }
}