// filepath: c:\Users\akki\Desktop\New folder (2)\jewelry-shop\src\css\shop.css
/* Shop Page Styles */
.shop-main {
  min-height: 100vh;
  background: var(--bg);
}

.shop-header {
  background: linear-gradient(135deg, rgba(140, 95, 58, 0.1), rgba(184, 134, 91, 0.1));
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.shop-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.shop-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 20px;
}

/* Sidebar Filters */
.filters-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.filter-checkbox:hover {
  color: #222;
}

.filter-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.filter-checkbox input:checked + span {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Price Range */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-range input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(140, 95, 58, 0.2);
}

.price-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.full-width {
  width: 100%;
}

/* Shop Content */
.shop-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Category Navigation */
.category-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.cat-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: transparent;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
}

/* Shop Controls */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.sort-container label {
  color: #333;
  font-weight: 600;
}

.sort-container select {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-container select:focus {
  outline: none;
  border-color: var(--accent);
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s ease;
}

.view-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.view-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
}

/* Products Container */
.products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.products-container.list-view {
  grid-template-columns: 1fr;
}

.products-container.list-view .product {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

.products-container.list-view .product img {
  height: 180px;
}

.products-container.list-view .product-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Product Card */
.product {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff6b6b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-badge.new {
  background: #4ecdc4;
}

.product-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #222;
  font-weight: 600;
}

.product-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  color: #ffc107;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1rem;
}

.old-price {
  text-decoration: line-through;
  color: #ccc;
  font-size: 0.85rem;
}

.discount {
  background: #ffeaa7;
  color: #d63031;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-btn {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-controls {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .sort-container {
    width: 100%;
  }

  .sort-container select {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .shop-header h1 {
    font-size: 1.8rem;
  }

  .category-nav {
    gap: 8px;
    padding-bottom: 12px;
  }

  .cat-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .products-container {
    grid-template-columns: 1fr;
  }

  .products-container.list-view {
    grid-template-columns: 1fr;
  }

  .products-container.list-view .product {
    grid-template-columns: 120px 1fr;
  }

  .products-container.list-view .product img {
    height: 120px;
  }
}