/* =========================
   SHOP PAGE STYLES
========================= */
/* BENEFITS BANNER */
.shop-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.benefit-icon {
  font-size: 24px;
  color: var(--primary);
}

.benefit-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* TOOLBAR */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.filters-left,
.filters-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  display: none;
}

.select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
}

.select:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.results-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* GRID aki*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* CARD */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
}

.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);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.badge.popular {
  background: #f59e0b;
}

.badge.new {
  background: #3b82f6;
}

.badge.top {
  background: #ef4444;
}

.product-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* INFO */
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
  min-height: 2.8em;
}

.product-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
}

.product-reviews {
  color: var(--muted);
  margin-left: 4px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  gap: 12px;
}

.price-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* BOTÓN */
.btn-small {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-small:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(34, 197, 94, 0.3);
}

/* hasta aki PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.pagination-btn {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text);
}

.pagination-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* SIDEBAR FILTERS (Desktop) */
.filters-sidebar {
  display: none;
  width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.95rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.filter-option label {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.filter-option input[type="checkbox"]:checked + label {
  color: var(--primary);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .shop-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .shop-hero {
    padding: 40px 0 30px;
  }

  .shop-hero h1 {
    font-size: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .shop-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-item {
    flex-direction: row;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .filters-left,
  .filters-right {
    width: 100%;
  }

  .select {
    flex: 1;
  }

  .filter-label {
    display: block;
    width: 100%;
  }

  .results-count {
    display: none;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    font-size: 0.9rem;
  }

  .product-footer {
    gap: 8px;
  }

  .btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}
/* WHY US SECTION */
.why-us {
  text-align: center;
  margin-bottom: 80px;
}

.why-us h2 {
  margin-bottom: 40px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-us-item {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.why-us-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.why-us-item h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.why-us-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
