/* Shop Page Premium Styles */

/* Hero Section */
.shop-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-color) 0%, rgba(212, 175, 55, 0.05) 100%);
  padding: 100px 0;
  text-align: center;
}

.shop-hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  animation: float 12s infinite alternate ease-in-out;
  pointer-events: none;
}

.shop-shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(212, 175, 55, 0.15);
  top: -100px;
  left: -100px;
}

.shop-shape-2 {
  width: 500px;
  height: 500px;
  background: rgba(212, 175, 55, 0.1);
  bottom: -150px;
  right: -100px;
  animation-delay: -6s;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

.floating-furniture {
  position: absolute;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.parallax-img {
  transition: transform 0.1s ease-out;
}

.ff-1 { top: 10%; left: 10%; width: 150px; animation: floatObj 8s infinite alternate ease-in-out; }
.ff-2 { bottom: 10%; right: 10%; width: 200px; animation: floatObj 10s infinite alternate-reverse ease-in-out; }
.ff-3 { top: 20%; right: 20%; width: 120px; animation: floatObj 9s infinite alternate ease-in-out; }

@keyframes floatObj {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(5deg); }
}

/* Filter Panel Glassmorphism */
.filter-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: sticky;
  top: 100px;
}

@media (max-width: 991.98px) {
  .filter-panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: static !important;
    padding: 1.5rem 0 !important;
  }
  
  /* Larger tap targets for mobile */
  .form-check {
    margin-bottom: 1.25rem !important;
    display: flex;
    align-items: center;
    min-height: 24px;
    padding-left: 0; /* Reset Bootstrap's default padding */
  }
  
  .form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0;
    margin-left: 0 !important; /* Reset Bootstrap's negative margin */
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .form-check-label {
    font-size: 1.05rem;
    cursor: pointer;
    flex-grow: 1;
    padding-top: 2px;
  }
  
  /* Tappable range slider */
  .price-range-slider {
    height: 2rem;
  }
  
  .price-range-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
  
  .price-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
}

/* Dark mode adjustment for filter panel */
[data-theme="dark"] .filter-panel {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.filter-panel:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

/* Range Slider */
.price-range-slider {
  width: 100%;
  accent-color: var(--accent-color);
}

/* Product Card Improvements (Overrides for Shop Page) */
.product-img-wrapper {
  overflow: hidden;
}

.product-actions-overlay {
  right: -50px;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.product-card:hover .product-actions-overlay {
  right: 15px;
}

@media (max-width: 767px) {
  .product-actions-overlay {
    right: 10px;
  }
}

.product-info {
  padding: 1.5rem;
}

@media (max-width: 767px) {
  .product-info {
    padding: 10px;
  }
}

.product-title a {
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: var(--accent-color);
}

.product-price {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Custom Checkbox */
.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Button Glow Effect */
.btn-glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
}

.btn-glow:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
