/* Modern Store Interface */
:root {
  --store-bg: #0a0b0f;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --hover-card: rgba(255, 255, 255, 0.06);
  --text-muted: #9ca3af;
  --accent-primary: #fe2c55;
  --accent-gradient: linear-gradient(135deg, #fe2c55, #ff6b9d);
}

.store-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.store-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.store-title p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.store-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-tab {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: #e5e7eb;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-tab:hover {
  background: var(--hover-card);
  border-color: rgba(255, 255, 255, 0.15);
}

.store-tab.active {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(254, 44, 85, 0.3);
}

.store-tab .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 800;
}

.store-tab.active .badge {
  background: rgba(255, 255, 255, 0.3);
}

.store-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
}

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

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.search-box .clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-box .clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sort-select {
  min-width: 200px;
}

.sort-select select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-select select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.price-filter {
  display: grid;
  gap: 10px;
}

.price-label {
  font-size: 13px;
  color: var(--text-muted);
}

.price-label .value {
  color: var(--accent-primary);
  font-weight: 800;
}

.dual-range {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.dual-range .track {
  position: absolute;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.dual-range .highlight {
  position: absolute;
  height: 6px;
  border-radius: 3px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(254, 44, 85, 0.4);
}

.dual-range input[type="range"] {
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.4);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s ease;
}

.dual-range input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.4);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s ease;
}

.dual-range input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-filters label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.quick-filters input[type="checkbox"] {
  cursor: pointer;
}

.category-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: #e5e7eb;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: var(--hover-card);
  border-color: rgba(255, 255, 255, 0.15);
}

.category-chip.active {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.product-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 100, 100, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.product-badge.sale {
  background: rgba(255, 159, 28, 0.95);
}

.product-badge.new {
  background: rgba(34, 197, 94, 0.95);
}

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-category {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.product-rating .stars {
  color: #ffc107;
}

.product-rating .count {
  color: var(--text-muted);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.product-price {
  font-size: 24px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-original-price {
  font-size: 16px;
  color: #888;
  text-decoration: line-through;
}

.product-footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.btn-add-cart {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.4);
}

.btn-wishlist {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wishlist:hover {
  background: var(--hover-card);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-wishlist.active {
  background: rgba(254, 44, 85, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #e5e7eb;
}

.empty-state p {
  margin: 0 0 24px;
}

.cart-summary {
  position: sticky;
  top: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}

.cart-summary h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-line .label {
  color: var(--text-muted);
}

.cart-line .value {
  font-weight: 700;
}

.cart-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.cart-total .value {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-primary);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.4);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .filter-panel {
    grid-template-columns: 1fr;
  }
  
  .store-shell {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .store-shell {
    padding: 24px 16px;
    gap: 16px;
  }
  
  .store-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .store-title h2 {
    font-size: 26px;
  }
  
  .store-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  .store-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .search-box,
  .sort-select {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .product-card {
    flex-direction: column;
  }
  
  .product-image {
    height: 200px;
    width: 100%;
  }
  
  .product-info {
    flex-direction: column;
  }
  
  .cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--card-border);
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .cart-sidebar.hidden {
    display: none;
  }
}

@media (max-width: 640px) {
  .store-shell {
    padding: 16px 12px;
  }
  
  .store-title h2 {
    font-size: 22px;
  }
  
  .store-tabs {
    flex-wrap: nowrap;
    gap: 8px;
  }
  
  .store-tab {
    padding: 10px 16px;
    flex-shrink: 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  
  .product-image {
    height: 160px;
  }
  
  .product-title {
    font-size: 13px;
  }
  
  .product-price {
    font-size: 12px;
  }
  
  .btn-checkout {
    padding: 12px;
    font-size: 14px;
  }
  
  .filter-panel {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--store-bg);
    z-index: 999;
    transition: left 0.3s ease;
    padding: 20px 16px;
  }
  
  .filter-panel.open {
    left: 0;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .store-title h2 {
    font-size: 20px;
  }
}

