/* ============================================
   Shop / Product Listing Page
   ============================================ */

/* Shop Page Header Override */
.shop-page .main-header {
  position: absolute;
  top: 41px;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 10px 0;
}

.shop-page .main-header__inner {
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 10px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.shop-page .main-nav__link,
.shop-page .logo,
.shop-page .header-actions__btn {
  color: var(--color-text-primary);
}

.shop-page .main-nav__link--accent {
  background-color: #e07065;
  color: #fff;
}

.shop-page .mobile-menu-toggle span {
  background-color: var(--color-text-primary);
}

/* Banner */
.shop-banner {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background-color: #7a7a7a;
}

.shop-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shop-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.35) 100%);
}

.shop-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 140px;
}

.shop-banner__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
}

/* Main Layout */
.shop-main-section {
  padding: 48px 0 80px;
  background-color: var(--color-bg-primary);
}

.shop-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

.shop-main-section .container-fluid {
  padding-left: 50px;
  padding-right: 50px;
}

/* Sidebar Filters */
.shop-sidebar {
  display: flex;
  flex-direction: column;
}

.shop-filter {
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.shop-filter__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.shop-filter__icon {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-primary);
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.shop-filter__toggle:not(.active) .shop-filter__icon {
  transform: rotate(90deg);
}

.shop-filter__toggle:not(.active) + .shop-filter__body {
  display: none;
}

.shop-filter__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-filter__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.shop-filter__list li a:hover,
.shop-filter__list li a.active {
  color: var(--color-text-primary);
}

.shop-filter__list li a svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Price Slider */
.shop-price-slider {
  padding: 20px 0 8px;
}

.shop-price-slider__track {
  position: relative;
  height: 4px;
  background-color: #ddd;
  border-radius: 2px;
}

.shop-price-slider__range {
  position: absolute;
  top: 0;
  height: 100%;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  pointer-events: none;
}

/* Native range inputs overlaid on the track */
.shop-price-slider__input {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  cursor: pointer;
  z-index: 2;
}

.shop-price-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.shop-price-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.shop-price-slider__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: pointer;
}

.shop-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.shop-price-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.shop-price-label strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

.shop-price-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background-color: var(--color-bg-primary);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-price-btn:hover {
  background-color: var(--color-bg-secondary);
}

/* Size Filter */
.shop-size {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-size__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background-color: var(--color-bg-primary);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-size__btn:hover,
.shop-size__btn.active {
  border-color: var(--color-text-primary);
}

/* Color Filter */
.shop-color {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-color__item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.shop-color__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.shop-color__item:hover .shop-color__dot,
.shop-color__item.active .shop-color__dot {
  border-color: var(--color-text-primary);
}

.shop-color__name {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Brand Filter */
.shop-brand__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-brand__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.shop-brand__list li a:hover {
  color: var(--color-text-primary);
}

/* Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.woocommerce-ordering {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.woocommerce-ordering label {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.woocommerce-ordering select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}


.shop-results {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.shop-toolbar__right {
  display: flex;
  gap: 8px;
}

.shop-view__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-view__btn.active,
.shop-view__btn:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.shop-view__btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Product Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shop-product {
  display: flex;
  flex-direction: column;
}

.shop-product .new-arrivals__product {
  aspect-ratio: 3/4;
  margin-bottom: 12px;
}

/* List View */
.shop-grid.shop-list-view {
  grid-template-columns: 1fr;
}

.shop-grid.shop-list-view .shop-product {
  flex-direction: row;
  gap: 24px;
}

.shop-grid.shop-list-view .new-arrivals__product {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  margin-bottom: 0;
}

/* Pagination */
.shop-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-pagination ul li .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.shop-pagination ul li .page-numbers:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.shop-pagination ul li .page-numbers.current {
  background-color: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: #fff;
}
