/* ===========================
   STORE PAGE SPECIFIC STYLES
   =========================== */

/* Search & Filter Section */
.store-controls {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.filter-controls {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid #e5e7eb;
  background: var(--white);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  color: var(--dark-text);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--secondary-green);
  background: var(--light-green);
  color: var(--primary-green);
}

.sort-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  background: var(--white);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--secondary-green);
  outline: none;
}

/* Product Card 2026 */
.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(45, 106, 79, 0.06);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--light-green) 0%, var(--sage) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  group: "image";
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 106, 79, 0.1);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
  color: var(--white);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.product-badge.popular {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.product-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-header {
  margin-bottom: var(--spacing-md);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.3px;
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
  font-size: 0.85rem;
}

.product-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.product-reviews-count {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover,
.color-swatch.active {
  transform: scale(1.2);
  border-color: var(--dark-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Price & Stock */
.product-footer {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(45, 106, 79, 0.06);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-green);
  letter-spacing: -0.5px;
}

.price-original {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.discount-badge {
  background: #ef4444;
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-indicator {
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.stock-dot.low {
  background: #f59e0b;
}

.stock-dot.out {
  background: #ef4444;
}

.popularity-bar {
  background: #e5e7eb;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.popularity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-green), var(--accent-green));
  width: 75%;
  border-radius: 2px;
}

.popularity-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Buttons */
.product-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.btn-add-cart {
  flex: 1;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.3);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.btn-wishlist {
  width: 40px;
  height: 40px;
  border: 2px solid #e5e7eb;
  background: var(--white);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-wishlist:hover {
  border-color: var(--secondary-green);
  background: var(--light-green);
}

.btn-wishlist.active {
  background: #fef3c7;
  border-color: #f59e0b;
  animation: heartBeat 0.3s ease-in-out;
}

/* Cart Notifications */
.cart-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(45, 106, 79, 0.3);
  z-index: 9999;
  animation: slideInUp 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.cart-notification::before {
  content: '✓';
  font-size: 1.25rem;
  font-weight: 700;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
  color: var(--dark-text);
  margin-bottom: var(--spacing-md);
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .store-controls {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-controls {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }

  .filter-btn {
    white-space: nowrap;
  }

  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-card {
    border-radius: var(--radius-lg);
  }

  .product-content {
    padding: var(--spacing-md);
  }

  .gallery-grid-4,
  .gallery-grid-3 {
    grid-template-columns: 1fr;
  }

  .cart-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .price-current {
    font-size: 1.25rem;
  }

  .product-title {
    font-size: 1rem;
  }
}
