/* Enhanced Shop Page Styles - Professional & Modern Design */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Enhanced Shop Section */
.shop {
  padding: 0;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f8fafc 100%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Modern Shop Header */
.shop-header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 0px;
  box-shadow: 0 0px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn2{
  display: flex;
  gap: 20px;
}


/* Enhanced Filter Button */
  .filter-btn {
      padding: 0.625rem 1.25rem;
      background: #86262b;
      color: #ffffff;
      text-decoration: none;
      border-radius: 1.25rem;
      font-size: 0.875rem;
      font-weight: 500;
      font-family: 'Inter', sans-serif;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      letter-spacing: 0.02em;
      border: 1px solid transparent;
      position: relative;
      overflow: hidden;
    }
    
    .filter-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.6s ease;
    }
    
    .filter-btn:hover {
      transform: translateY(-2px);
box-shadow: 0px 0px 10px 1px #86262bb1;
    }
    
    .filter-btn:hover::before {
      left: 100%;
    }

/* Enhanced Search Bar */
#searchBar {
  padding: 8px 20px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  background: #ffffff;
  color: #1a202c;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#searchBar:focus {
  outline: none;
  border-color: #86262b;
box-shadow: 0px 0px 10px 1px #86262bb1;
  transform: translateY(-1px);
}
#searchBar:hover {
  outline: none;
  border-color: #86262b;
box-shadow: 0px 0px 10px 1px #86262bb1;
  transform: translateY(-1px);
}

#searchBar::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

/* Enhanced Reset Button */
#resetFiltersBtn {
  padding:  8px 20px;
  background: transparent;
  border: 2px solid #86262b;
  color: #86262b;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;

}

#resetFiltersBtn:hover {
      background: #86262b;
  border-color: #86262b;
  color: #ffffff;
  transform: translateY(-2px);
box-shadow: 0px 0px 10px 1px #86262bb1;
}

/* Enhanced Sort Options */
.sort-options {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-options label {
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
}

.sort-options select {
  padding:  8px 20px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  background: #ffffff;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sort-options select:focus {
  outline: none;
  border-color: #86262b;
  box-shadow: 0px 0px 10px 1px #86262bb1;
  transform: translateY(-1px);
}
.sort-options select:hover {
  outline: none;
  border-color: #86262b;
  box-shadow: 0px 0px 10px 1px #86262bb1;
  transform: translateY(-1px);
}

/* Enhanced Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem;
}

/* Enhanced Product Cards */
.product-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  /* border: 1px solid #86262b; */
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
box-shadow: 0 8px 25px rgba(134, 38, 43, 0.3);
  border:none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Enhanced Product Images */
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 0px !important;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.product-card:hover img {
  transform: scale(1.2);
  border-radius: 20px;
}

/* Enhanced No Image Placeholder */
.no-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.no-image::before {
  content: '📷';
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Enhanced Product Text */
.product-card .category {
  font-size: 16px;
  color: #86262b;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-align: start;
  box-shadow: none;
  border: none;
  padding: 0px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.product-card .category:hover{
  box-shadow: none;
  transform: none;
}

.product-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1a202c;
  font-weight: 600;
  line-height: 1.4;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
}

.product-card .price {
  font-size: 1.1rem;
  color: #1a202c;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.product-card .price del {
  color: #a0aec0;
  margin-right: 0.75rem;
  font-weight: 400;
  font-size: 1rem;
}

.product-card .price strong {
  color: #2E7D32;
  font-size: 1.25rem;
}

/* Enhanced Sale Badge */
.sale-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced Button Row */
.button-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0 1.5rem 1.5rem;
  position: relative;
  z-index: 2;
}

/* Enhanced Buttons */
 .buy-now-btn {
      padding: 5px 20px;
      background: #86262b;
      color: #ffffff;
      text-decoration: none;
      border-radius: 10px;
      font-size: 0.875rem;
      font-weight: 500;
      font-family: 'Playfair Display', serif;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      letter-spacing: 0.02em;
      border: 1px solid transparent;
      position: relative;
      overflow: hidden;
    }
    
    .buy-now-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.6s ease;
    }
    
    .buy-now-btn:hover {
      background: #86262b;
      transform: translateY(-2px);
box-shadow: 0px 0px 10px 1px #86262bb1;
    }
    
    .buy-now-btn:hover::before {
      left: 100%;
    }


.add-to-cart-btn {
  background: transparent;
  color: #86262b;
  border-radius: 10px;
  font-family: 'Playfair Display', serif;
  border: 2px solid #86262b;
}

.add-to-cart-btn:hover {
  color: #ffffff;
  border-color: #86262b;
  transform: translateY(-2px);
background: #86262b;
box-shadow: 0px 0px 10px 1px #86262bb1;
}

/* Enhanced No Products Message */
#noProductsMessage {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.25rem;
  color: #a0aec0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

/* Enhanced Filter Drawer */
#filterDrawer {
  position: fixed;
  top: 0;
  left: -350px;
  width: 300px;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Playfair Display', serif;
}

#filterDrawer.open {
  left: 0;
}

#closeFilterBtn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a5568;
  padding:  0 0.3rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#closeFilterBtn:hover {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  transform: scale(1.2);
}

#filterDrawer h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2d3748;
  margin: 2rem 0 1rem 0;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-group {
  margin-bottom: 0rem;
}

.max-price{
  font-size: 18px; 
  font-weight: 600;
}
.category-group label {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #4a5568;
}

.category-group label:hover {
  background: #f7fafc;
  color: #2d3748;
}

.category-group input[type="checkbox"] {
  margin-right: 0.75rem;
  transform: scale(1.2);
  accent-color: #667eea;
}

.subcategory-group {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.subcategory-item {
  display: block;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: #718096;
}

.subcategory-item:hover {
  background: #edf2f7;
  color: #4a5568;
}

/* Enhanced Price Range */
#priceRange {
  width: 100%;
  margin: 1rem 0;
  accent-color: #86262b;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

#priceRangeValue {
  font-weight: 600;
  color: #2E7D32;
  font-size: 25px;
}

#applyFiltersBtn {
      padding:15px;
      background: #86262b;
      color: #ffffff;
      text-decoration: none;
      border-radius: 1.25rem;
      width: 100%;
      font-size: 18px;
      margin-top: 10px;
      font-weight: 700;
      font-family: 'Playfair Display', serif;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      letter-spacing: 0.02em;
      border: 1px solid transparent;
      position: relative;
      overflow: hidden;
    }
    
    #applyFiltersBtn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.6s ease;
    }
    
    #applyFiltersBtn:hover {
      transform: translateY(-2px);box-shadow: 0 8px 25px rgba(134, 38, 43, 0.3);
    }
    
    #applyFiltersBtn:hover::before {
      left: 100%;
    }
/* Responsive Design Enhancements */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0;
  }
  
  .shop-header {
    padding: 2rem 1.5rem;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .shop-header {
    padding: 1.5rem;
    flex-wrap: wrap;
  }
  
  #searchBar {
    min-width: 250px;
    flex: 1;
  }
  
  .sort-options {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .shop {
    padding: 2rem 1rem;
  }
  
  .shop-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn,
  #searchBar,
  #resetFiltersBtn {
    width: 100%;
    margin: 0;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    box-sizing: border-box;
  }

  .filter-btn,#resetFiltersBtn {
    padding: 0 1.5rem;
  }
  
  .sort-options {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .sort-options label {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .sort-options select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .product-card {
    border-radius: 16px;
  }
  
  .product-card img {
    height: 220px;
  }
  
  .no-image {
    height: 220px;
  }
  
  .product-card h4 {
    font-size: 1.1rem;
  }
  
  .product-card .price {
    font-size: 1rem;
  }
  
  .button-row {
    padding: 0 1.25rem 1.25rem;
  }
  
  .buy-now-btn,
  .add-to-cart-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  #filterDrawer {
    width: 280px;
    left: -300px;
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .shop {
    padding: 1.5rem 0.75rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }
  
  .product-card img {
    height: 200px;
  }
  
  .no-image {
    height: 200px;
    font-size: 0.9rem;
  }
  
  .product-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
   .filter-btn,#resetFiltersBtn {
    padding: 0 1.5rem;
  }
  
  .product-card .category {
    font-size: 0.8rem;
  }
  
  .product-card .price {
    font-size: 0.95rem;
  }
  
  .sale-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .shop {
    padding: 1rem 0.5rem;
  }
  
  .shop-header {
    padding: 1rem 0.75rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    gap: 0.75rem;
  }
  
  .filter-btn,
  #searchBar,
  #resetFiltersBtn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 12px;
  }
  
  .sort-options {
    gap: 0.5rem;
  }
  
  .sort-options label {
    font-size: 0.9rem;
  }
   .filter-btn,#resetFiltersBtn {
    padding: 0 1.5rem;
  }
  .sort-options select {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
    border-radius: 12px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card {
    border-radius: 20px;
    max-width: 100%;
  }
  
  .product-card img {
    height: 240px;
  }
  
  .no-image {
    height: 240px;
  }
  
  .product-card h4 {
    font-size: 1.1rem;
  }
  
  .button-row {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
  }
  
  .buy-now-btn,
  .add-to-cart-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  
  #filterDrawer {
    width: 100%;
    left: -100%;
    padding: 1rem;
  }
  
  #filterDrawer h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem 0;
  }
  
  .category-group label {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  #priceRangeValue {
    font-size: 20px;
  }
  
  #applyFiltersBtn {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .shop {
    padding: 1rem 0.5rem;
  }
  
  .shop-header {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .filter-btn,
  #searchBar,
  #resetFiltersBtn {
    padding: 0.6rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }
  
  .sort-options label {
    font-size: 0.85rem;
  }
  
  .sort-options select {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }
  
  .product-card {
    border-radius: 16px;
  }
   .filter-btn,#resetFiltersBtn {
    padding: 0 1.5rem;
  }
  
  .product-card img {
    height: 200px;
  }
  
  .no-image {
    height: 200px;
    font-size: 0.85rem;
  }
  
  .product-card h4 {
    font-size: 1rem;
  }
  
  .product-card .category {
    font-size: 0.75rem;
  }
  
  .product-card .price {
    font-size: 0.9rem;
  }
  
  .button-row {
    padding: 0 0.75rem 0.75rem;
  }
  
  .buy-now-btn,
  .add-to-cart-btn {
    padding: 0.75rem 0.875rem;
    font-size: 0.8rem;
  }
  
  #filterDrawer {
    padding: 0.75rem;
  }
  
  #filterDrawer h3 {
    font-size: 0.9rem;
  }
  
  .category-group label {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  #priceRangeValue {
    font-size: 18px;
  }
  
  #applyFiltersBtn {
    padding: 10px;
    font-size: 14px;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .product-card img {
    height: 160px;
  }
  
  .no-image {
    height: 160px;
  }
  
  #filterDrawer {
    width: 250px;
    left: -270px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Smooth Animations */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading States */
.product-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.product-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}



/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .product-card {
    border: 2px solid #000;
  }
  

}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}