/* ========================================
   SHOP.CSS - Shop Page Styles
   ======================================== */

.shop-section {
  padding-top: 120px;
  background: #f8f8f8;
  min-height: 70vh;
}

.shop-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.flix-btn {
  border-radius: 2px solid;
  border-color: #e5e5e5;
  color: #d4af37;
}

.flix-btn:hover {
  background-color: #d4af37;
  color: white;
  border-color: #d4af37;
}

/* .flix-nav{
    display: flex;
    gap: 20px;  
} */

.shop-sidebar {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  height: fit-content;
  position: sticky;
  top: 100px;
  margin-bottom: 50px;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
  background: none;
  border: none;
}

.filter-list {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px;
  list-style: none;
  margin: 0;
}

.filter-list li a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid #e5e5e5;
  border-radius: 55px;
  padding: 5px 10px;
}

.filter-list li a:hover,
.filter-list li a.active {
  color: #fff;
  border-color: #d4af37;
  background-color: #d4af37;
  transition: all 0.5s ease;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f8f8f8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-options label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.filter-options label:hover {
  color: #d4af37;
}

.filter-options input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #d4af37;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#priceRange {
  width: 100%;
  accent-color: #d4af37;
  height: 4px;
  border-radius: 2px;
  margin: 10px 0;
  cursor: pointer;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #e5e5e5;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.size-btn:hover {
  border-color: #d4af37;
}

.size-btn.active {
  border-color: #d4af37;
  background: #d4af37;
  color: #ffffff;
}

.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.color-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid #e5e5e5;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #555;
  transition: all 0.3s ease;
}

.filter-toggle:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.shop-results-count {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.shop-sort label {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}

.shop-sort select {
  padding: 10px 32px 10px 14px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  background: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
  min-width: 160px;
  color: #555;
}

.shop-sort select:hover {
  border-color: #d4af37;
}

.shop-sort select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.shop-sort::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.75rem;
  pointer-events: none;
}

.shop-products .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Tablet & Larger */
@media (max-width: 1200px) {
  .shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .shop-sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 25px;
    position: static;
    top: auto;
    height: auto;
    margin-bottom: 40px;
  }

  .shop-sidebar .filter-group {
    margin-bottom: 0;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .filter-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .shop-results-count {
    font-size: 0.85rem;
    flex: 1;
  }

  .shop-sort {
    flex: 1;
    min-width: 130px;
    margin-left: auto;
  }

  .shop-sort select {
    width: 100%;
    font-size: 0.85rem;
  }

  .shop-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
  }

  .shop-sidebar .filter-group:last-child {
    grid-column: 1 / -1;
  }
}

/* Small Tablet */
@media (max-width: 768px) {
  .shop-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

  .filter-toggle {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .shop-results-count {
    font-size: 0.8rem;
    flex-grow: 1;
  }

  .shop-sort {
    flex: 0 1 140px;
    margin-left: 0;
  }

  .shop-sort label {
    display: none;
  }

  .shop-sort select {
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 28px 8px 10px;
  }

  .shop-sidebar {
    display: none;
    grid-template-columns: 1fr;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    overflow-y: auto;
    padding: 55px 16px 16px;
    margin-bottom: 0;
  }

  .shop-sidebar.active {
    display: grid;
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .filter-list {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 6px;
  }

  .filter-list li a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .filter-toggle {
    width: 100%;
    justify-content: center;
    padding: 9px;
    font-size: 0.8rem;
  }

  .shop-results-count {
    width: 100%;
    font-size: 0.75rem;
    order: 1;
  }

  .shop-sort {
    width: 100%;
    order: 2;
  }

  .shop-sort select {
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 24px 8px 10px;
  }

  .shop-sidebar {
    padding: 50px 14px 14px;
  }

  .sidebar-close {
    top: 12px;
    right: 12px;
  }

  .filter-group h3 {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .filter-list {
    flex-direction: column;
    padding: 0;
    gap: 4px;
  }

  .filter-list li a {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 6px;
  }

  .color-options {
    gap: 8px;
  }

  .color-dot {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .shop-toolbar {
    padding: 8px;
    gap: 6px;
  }

  .filter-toggle {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .shop-results-count {
    font-size: 0.7rem;
  }

  .shop-sort select {
    font-size: 0.75rem;
    padding: 7px 20px 7px 8px;
  }

  .shop-sidebar {
    padding: 45px 10px 10px;
  }

  .filter-group h3 {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .filter-list {
    padding: 0;
    gap: 4px;
  }

  .filter-list li a {
    font-size: 0.75rem;
    padding: 6px 5px;
  }
}
