/* ============================================
   Thermio Shop & Product Styles — Light Theme
   ============================================ */

/* Shop Hero */
.shop-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.shop-hero-content .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.shop-hero-content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1e293b;
}

.shop-hero-content p {
  color: #64748b;
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}

.shop-hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stat {
  background: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2563eb;
}

.hero-stat span {
  color: #64748b;
  font-size: 13px;
}

/* Shop Page Layout */
.shop-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.recommendation-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1px solid #86efac;
  border-radius: 12px;
  margin-bottom: 24px;
}

.rec-icon { font-size: 32px; }
.rec-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rec-text strong { color: #059669; }

.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

/* Filters Sidebar — Light */
.filters-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  height: auto;
  position: static; /* No sticky behavior to keep all filters accessible while scrolling */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.filters-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #1e293b; }

.btn-link {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.btn-link:hover { text-decoration: underline; }

.filter-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-of-type { border-bottom: none; }

.filter-section h4 {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range input {
  flex: 1;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  font-size: 13px;
}

.filter-range span { color: #94a3b8; }

.power-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preset-btn {
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #2563eb;
}

.filter-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
}

.filter-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.apply-filters {
  width: 100%;
  margin-top: 8px;
}

/* Products Area */
.products-area { min-width: 0; }

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.results-count {
  font-size: 14px;
  color: #64748b;
}

.results-count span { font-weight: 700; color: #1e293b; }

.sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-options label { font-size: 13px; color: #64748b; }

.sort-options select {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
}

.view-options { display: flex; gap: 4px; }

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover, .view-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

.loading-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Product Card */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.product-card.recommended {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.product-card.list-view {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.rec-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  z-index: 2;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 2;
}

.stock-badge {
  position: absolute;
  top: 50px;
  right: 12px;
  padding: 4px 8px;
  background: #fef2f2;
  color: #ef4444;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.product-image {
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1e293b;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.product-specs .spec {
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-specs .spec strong {
  color: #1e293b;
}

.product-features {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.product-features .feature {
  font-size: 16px;
  cursor: help;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-rating .stars { color: #f59e0b; font-size: 14px; }
.product-rating .rating-text { font-size: 12px; color: #64748b; }

.product-price {
  margin-bottom: 16px;
}

.old-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 8px;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
}

.product-actions .add-to-cart {
  flex: none;
  width: 44px;
  padding: 10px;
}

/* No products */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
}

.no-products-icon { font-size: 48px; margin-bottom: 16px; }
.no-products h3 { margin: 0 0 8px; color: #1e293b; }
.no-products p { color: #64748b; margin: 0 0 20px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover, .page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.page-dots {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #94a3b8;
}

/* ============ PRODUCT PAGE ============ */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #2563eb; }
.breadcrumb span { color: #94a3b8; }

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Gallery */
.product-gallery { position: relative; }

.main-image {
  position: relative;
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
}

.thumb {
  width: 72px;
  height: 72px;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.thumb:hover, .thumb.active {
  border-color: #2563eb;
}

.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Product Info */

.product-brand-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: #dbeafe;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-info-main h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1e293b;
}

.product-model {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px;
}

.product-rating-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.product-rating-main .stars { color: #f59e0b; font-size: 18px; }
.product-rating-main .rating-value { font-weight: 700; color: #1e293b; }
.product-rating-main .reviews-link { color: #2563eb; font-size: 14px; }

.product-description {
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.6;
}

.key-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.key-spec {
  text-align: center;
  padding: 12px 16px;
  background: #f1f5f9;
  border-radius: 12px;
  min-width: 70px;
}

.key-spec .spec-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
}

.key-spec .spec-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
}

.price-section {
  margin-bottom: 16px;
}

.price-section .old-price {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-section .current-price {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
}

.price-section .price-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.stock-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.in-stock { color: #059669; }
.out-stock { color: #dc2626; }
.delivery { color: #64748b; }

.product-actions-main {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 44px;
  background: #f8fafc;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
}

.qty-btn:hover { background: #e2e8f0; }

.quantity-selector input {
  width: 50px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.btn.large {
  padding: 14px 28px;
  font-size: 15px;
}

.wishlist-btn {
  width: 48px;
  padding: 14px;
  font-size: 20px;
}

.wishlist-btn.active { color: #ef4444; }

.extra-services {
  margin-bottom: 24px;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.service-option input { width: 18px; height: 18px; accent-color: #2563eb; }
.service-option span { flex: 1; font-size: 14px; color: #475569; }
.service-option strong { color: #2563eb; font-size: 14px; }

.quick-contact {
  padding: 16px;
  background: #f0f9ff;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

.quick-contact p { margin: 0 0 12px; font-size: 14px; color: #0369a1; }

.contact-link {
  display: inline-block;
  margin-right: 16px;
  color: #0369a1;
  font-weight: 500;
  font-size: 14px;
}

/* Tabs */
.product-tabs {
  margin-bottom: 48px;
}

.tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 14px 24px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn:hover { color: #1e293b; }

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h3 { margin: 0 0 16px; font-size: 1.3rem; color: #1e293b; }
.tab-panel h4 { margin: 24px 0 12px; font-size: 1rem; color: #1e293b; }
.tab-panel p { color: #64748b; line-height: 1.7; }

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 8px 0;
  color: #475569;
}

.specs-category {
  margin-bottom: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.specs-table .spec-name {
  color: #64748b;
  width: 40%;
}

.specs-table .spec-value {
  color: #1e293b;
  font-weight: 500;
}

.download-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.download-link {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 14px;
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.included-list li {
  padding: 8px 0;
  color: #059669;
}

.optional-accessories {
  display: grid;
  gap: 12px;
}

.optional-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
}

.optional-item .opt-name { flex: 1; color: #475569; }
.optional-item .opt-price { font-weight: 600; color: #2563eb; }

.reviews-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.rating-big {
  text-align: center;
}

.rating-big .rating-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
}

.rating-big .rating-stars { color: #f59e0b; font-size: 24px; }
.rating-big .rating-count { font-size: 13px; color: #64748b; display: block; }

.rating-bars { flex: 1; }

.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #64748b;
}

.rating-bar .bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar .fill {
  height: 100%;
  background: #f59e0b;
}

.review-item {
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.reviewer-name { font-weight: 600; color: #1e293b; }
.review-date { font-size: 13px; color: #94a3b8; }
.review-stars { color: #f59e0b; }
.verified-badge { font-size: 12px; color: #059669; }

.review-item h5 { margin: 0 0 8px; font-size: 15px; color: #1e293b; }
.review-item p { margin: 0; color: #64748b; line-height: 1.6; }

.load-more { margin-top: 24px; }

/* Related Products */
.related-products {
  margin-top: 48px;
}

.related-products h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  color: #1e293b;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f8fafc;
}

.related-info {
  padding: 12px;
}

.related-info .related-brand {
  font-size: 10px;
  color: #2563eb;
  text-transform: uppercase;
  font-weight: 600;
}

.related-info h4 {
  font-size: 14px;
  margin: 4px 0;
  color: #1e293b;
}

.related-info .related-specs {
  font-size: 12px;
  color: #64748b;
}

.related-info .related-price {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .shop-hero { grid-template-columns: 1fr; padding: 32px; }
  .shop-hero-card { flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1; min-width: 140px; }
}

@media (max-width: 768px) {
  .shop-container { grid-template-columns: 1fr; }
  .filters-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 320px; transform: translateX(-110%); transition: transform .28s ease; z-index:1200; overflow:auto; }
  .filters-sidebar.open { transform: translateX(0); }
  .product-main { grid-template-columns: 1fr; gap: 32px; }
  .key-specs { flex-wrap: wrap; }
  .product-actions-main { flex-wrap: wrap; }
  .reviews-summary { flex-direction: column; gap: 24px; }
  #openFiltersBtn { display: inline-flex; }
}

@media (max-width: 480px) {
  .shop-page { padding: 16px; }
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .product-card.list-view { grid-template-columns: 1fr; }
}
