/* ============================================
   NADAVASAN LIGHTS - SHOP CSS
   E-Commerce & Product Showcase Styles
   ============================================ */

/* ============================================
   SHOP HERO SECTION
   ============================================ */

.shop-hero {
  position: relative;
  background: linear-gradient(180deg, 
    var(--color-bg-primary) 0%, 
    var(--color-bg-secondary) 100%);
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  text-align: center;
}

.shop-hero h1 {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, 
    var(--color-sunset-orange), 
    var(--color-sunset-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-hero p {
  font-size: var(--font-size-lg);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .shop-hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  
  .shop-hero h1 {
    font-size: var(--font-size-4xl);
  }
}

/* ============================================
   FILTERS & SEARCH SECTION
   ============================================ */

.filters-section {
  background: var(--color-bg-secondary);
  padding: var(--space-12) 0;
  margin-bottom: var(--space-16);
}

/* Search input custom styling */
.search-input {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--transition-base) var(--easing-default);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
  background: var(--color-bg-card);
}

/* Filter controls */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-group label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  display: block;
}

.filter-group select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-base) var(--easing-default);
}

.filter-group select:hover {
  border-color: var(--color-gray-400);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Price range slider */
#price {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, 
    var(--color-primary) 0%, 
    var(--color-primary) 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin: var(--space-3) 0;
}

#price::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    var(--color-sunset-orange), 
    var(--color-sunset-coral));
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast) var(--easing-default);
}

#price::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow-lg);
}

#price::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    var(--color-sunset-orange), 
    var(--color-sunset-coral));
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  transition: all var(--transition-fast) var(--easing-default);
}

#price::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow-lg);
}

#price-display {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

@media (max-width: 768px) {
  .filters-section {
    margin-bottom: var(--space-12);
  }
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.products-header h2 {
  margin-bottom: 0;
}

.sort-select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  cursor: pointer;
  min-width: 200px;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base) var(--easing-default);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  transform: translateY(-8px);
}

.product-card .card-image {
  position: relative;
  margin-bottom: var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow) var(--easing-out);
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-card .badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-base);
}

.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-snug);
}

.product-card .product-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-snug);
}

.product-card .star-rating {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-base);
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.product-price-original {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-features {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  display: grid;
  gap: var(--space-2);
  flex: 1;
}

.product-features li {
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

.product-card .btn {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .product-card img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .product-card img {
    height: 220px;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .sort-select {
    width: 100%;
    min-width: unset;
  }
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal-y {
  transform: translateY(16px);
  transition: opacity var(--transition-slow) var(--easing-out),
              transform var(--transition-slow) var(--easing-out);
}

.reveal-y.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUNDLES & OFFERS SECTION
   ============================================ */

.bundles-section {
  margin-bottom: var(--space-20);
}

.bundle-card {
  position: relative;
  overflow: hidden;
}

.bundle-card .badge {
  margin-bottom: var(--space-3);
}

.bundle-card h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3);
}

.bundle-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.bundle-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.bundle-price-current {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.bundle-price-original {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.bundle-savings {
  background: var(--color-success);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
  width: 100%;
  margin-bottom: var(--space-8);
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.comparison-table thead {
  background: linear-gradient(135deg, 
    var(--color-sunset-orange), 
    var(--color-sunset-coral));
  color: white;
}

.comparison-table thead th {
  padding: var(--space-4);
  font-weight: var(--font-weight-bold);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-table thead th:first-child {
  text-align: left;
  border-right: none;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background-color var(--transition-fast) var(--easing-default);
}

.comparison-table tbody tr:hover {
  background-color: var(--color-bg-secondary);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody td {
  padding: var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
}

.comparison-table tbody td strong {
  color: var(--color-primary);
}

.comparison-table .check-mark {
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.comparison-table .dash {
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .comparison-table {
    font-size: var(--font-size-xs);
  }
  
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: var(--space-3);
  }
}

@media (max-width: 768px) {
  .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  margin-bottom: var(--space-20);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-rating {
  color: var(--color-accent);
  font-size: var(--font-size-lg);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.testimonial-text {
  flex: 1;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.testimonial-author {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
}

.cta-section p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 768px) {
  .cta-section h2 {
    font-size: var(--font-size-4xl);
  }
}

/* ============================================
   FEATURE LIST
   ============================================ */

.feature-list {
  display: grid;
  gap: var(--space-4);
}

.feature-list li {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.feature-list strong {
  color: var(--color-text-primary);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--space-16);
}

.empty-state h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .shop-hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  .products-header {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .filters-section {
    padding: var(--space-8) 0;
  }
  
  .filter-group {
    margin-bottom: var(--space-4);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slideInUp var(--transition-slow) var(--easing-out);
}

.animate-fade-in {
  animation: fadeIn var(--transition-base) var(--easing-out);
}

/* ============================================
   LOADING STATE
   ============================================ */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.product-skeleton {
  background: linear-gradient(90deg, 
    var(--color-gray-200) 25%, 
    var(--color-gray-100) 50%, 
    var(--color-gray-200) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-lg);
}

.product-skeleton-image {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.product-skeleton-title {
  height: 24px;
  border-radius: var(--radius-base);
  margin-bottom: var(--space-3);
}

.product-skeleton-text {
  height: 16px;
  border-radius: var(--radius-base);
  margin-bottom: var(--space-2);
  width: 80%;
}
#sort{
    background: #fff;
}