/* Contenedor para precios en la tarjeta de producto */
.shop-precio-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.shop-product-price.oferta {
  color: #fff;
  border: 2px solid #FFC107;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
  background: #FFC107;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(155, 111, 199, 0.12);
  margin-top: 2px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
/* Estilos para la página de tienda */

.shop-main {
  min-height: 100vh;
  padding-bottom: 40px;
  background: #E8D9F3;
}

/* Hero de tienda */
.shop-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #7c4fa3 100%);
  padding: 60px 32px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.shop-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.shop-hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin: 0;
}

/* Contenedor principal */
.shop-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar de filtros */
.shop-sidebar {
  position: sticky;
  top: 100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 238, 255, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(155, 111, 199, 0.15), 0 2px 8px rgba(155, 111, 199, 0.1);
  width: 300px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(155, 111, 199, 0.1);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(155, 111, 199, 0.1);
}

.shop-sidebar::-webkit-scrollbar {
  width: 8px;
}

.shop-sidebar::-webkit-scrollbar-track {
  background: rgba(155, 111, 199, 0.05);
  border-radius: 10px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  transition: background 0.2s;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.filter-title::before {
  content: '⚙';
  font-size: 1.6rem;
  color: var(--accent);
}

.btn-clear-filters {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-clear-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-clear-filters:hover::before {
  left: 100%;
}

.btn-clear-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 111, 199, 0.4);
}

.btn-clear-filters:active {
  transform: translateY(0);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.filter-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label::before {
  content: '●';
  color: var(--accent);
  font-size: 0.6rem;
}

.filter-search {
  padding: 12px 16px;
  border: 2px solid rgba(155, 111, 199, 0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(155, 111, 199, 0.05);
}

.filter-search:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(155, 111, 199, 0.15);
  transform: translateY(-1px);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
}

.filter-checkbox:hover {
  background: rgba(155, 111, 199, 0.08);
}

.filter-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
  border-radius: 4px;
}

.filter-checkbox:hover span {
  color: var(--accent);
  font-weight: 500;
}

/* Filtro de precio */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.price-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid rgba(155, 111, 199, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.price-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 111, 199, 0.1);
}

.price-separator {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}

.price-range-container {
  margin-top: 16px;
  width: 100%;
  overflow: hidden;
}

.price-range-wrapper {
  padding: 12px 0;
  position: relative;
  width: 100%;
}

.price-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(to right, 
    var(--accent) 0%, 
    var(--accent) var(--range-progress, 100%), 
    #e8d9f3 var(--range-progress, 100%), 
    #e8d9f3 100%);
}

.price-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: grab;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(155, 111, 199, 0.4);
  border: 3px solid var(--accent);
}

.price-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(155, 111, 199, 0.5);
}

.price-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.price-range::-moz-range-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, 
    var(--accent) 0%, 
    var(--accent) var(--range-progress, 100%), 
    #e8d9f3 var(--range-progress, 100%), 
    #e8d9f3 100%);
}

.price-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: grab;
  border: 3px solid var(--accent);
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(155, 111, 199, 0.4);
}

.price-range::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.6);
}

.price-range::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* Área de productos */
.shop-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  position: relative;
  overflow-anchor: none;
}

/* Toolbar */
.shop-toolbar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.results-count {
  font-weight: 600;
  color: var(--text);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid rgba(155, 111, 199, 0.3);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: var(--accent);
}

.view-toggle {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(155, 111, 199, 0.3);
  border-radius: 8px;
  padding: 4px;
  background: var(--panel);
}

.view-btn {
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn:hover {
  background: white;
  color: var(--accent);
}

.view-btn.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 2px 6px rgba(155, 111, 199, 0.15);
}

/* Grid de productos */
.products-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  transition: opacity 0.2s;
  min-height: 600px;
  will-change: contents;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

/* Tarjeta de producto */
.shop-product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 111, 199, 0.2);
}

.products-grid.list-view .shop-product-card {
  flex-direction: row;
  cursor: default;
}

.products-grid.list-view .shop-product-card:hover {
  transform: none;
}

.shop-product-image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #ffffff;
  overflow: hidden;
}

.products-grid.list-view .shop-product-image {
  width: 250px;
  padding-top: 0;
  height: 200px;
  flex-shrink: 0;
}

.shop-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}

.shop-product-image img.active {
  opacity: 1;
}

.shop-product-card:hover .shop-product-image img {
  transform: scale(1.05);
}

/* Controles de navegación de imágenes */
.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(155, 111, 199, 0.9);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.shop-product-card:hover .img-nav {
  opacity: 1;
}

.img-nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.img-prev {
  left: 8px;
}

.img-next {
  right: 8px;
}

/* Indicadores de imagen */
.image-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  align-items: flex-start;
}

.product-badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.product-badge.nuevo {
  background: #4CAF50;
  color: white;
}

.product-badge.oferta {
  background: #FF5722;
  color: white;
}

.product-badge.destacado {
  background: #FFC107;
  color: #333;
}

.product-badge.agotado {
  background: #9E9E9E;
  color: white;
}

.shop-product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 175px;
  overflow: hidden;
}

.products-grid.list-view .shop-product-content {
  flex-direction: column;
  justify-content: space-between;
}

.shop-product-category {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: 1.4em;
  margin-bottom: 4px;
}

.shop-product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.shop-product-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-grid.list-view .shop-product-description {
  -webkit-line-clamp: 3;
}

.shop-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.spec-tag {
  padding: 4px 8px;
  background: var(--panel);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.shop-product-footer {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--panel);
  gap: 12px;
}

.shop-product-footer > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.2;
}

.price-original {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}

.shop-product-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.btn-add-cart,
.btn-view-details {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  min-height: 42px;
}

.btn-view-details {
  background: white;
  color: #9b6fc7;
  border: 2px solid #9b6fc7;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}

.btn-view-details:hover:not(:disabled) {
  background: #9b6fc7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.3);
}

.btn-view-details:active:not(:disabled) {
  transform: translateY(0);
}

.btn-add-cart {
  background: #9b6fc7;
  color: white;
  border: 2px solid #9b6fc7;
}

.btn-add-cart:hover:not(:disabled) {
  background: #8555b3;
  border-color: #8555b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.3);
}

.btn-add-cart:active:not(:disabled) {
  transform: translateY(0);
}

.btn-add-cart:disabled,
.btn-view-details:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Estado sin resultados */
.no-results {
  position: absolute;
  left: 50%;
  top: 300px;
  transform: translateX(-50%);
  text-align: center;
  padding: 80px 32px;
  color: var(--muted);
  opacity: 1;
  transition: opacity 0.2s;
  pointer-events: all;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  background: var(--bg);
}

.no-results.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.no-results svg {
  margin: 0 auto 24px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  color: var(--text);
}

.no-results p {
  font-size: 1rem;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--card);
  margin-top: 60px;
  padding: 40px 32px 24px;
  border-top: 1px solid rgba(155, 111, 199, 0.1);
}

/* Forzar texto blanco en el footer de la página de tienda */
body.tienda-page .footer,
body.tienda-page .footer-section p,
body.tienda-page .footer-section ul li a,
body.tienda-page .footer-section h4,
body.tienda-page .footer-bottom {
  color: #ffffff !important;
}

body.tienda-page .footer-section ul li a {
  color: rgba(255,255,255,0.9) !important;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #fff;
}

.footer-section p {
  margin: 8px 0;
  color: #fff;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(155, 111, 199, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
}

/* Paginación */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 24px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  padding: 10px 20px;
  background: var(--card);
  border: 1px solid rgba(155, 111, 199, 0.3);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:not(.disabled):hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--panel);
}

.pagination-info {
  padding: 10px 16px;
  background: var(--panel);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid rgba(155, 111, 199, 0.3);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-number.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(155, 111, 199, 0.3);
}

.pagination-dots {
  padding: 0 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 1.2rem;
  user-select: none;
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================ */

/* Mobile "volver al inicio" button */
.mobile-back-home {
  display: none;
}

/* Mobile filter toggle button */
.mobile-filter-toggle {
  display: none;
}

/* MOBILE (320px - 767px) */
@media (max-width: 767px) {
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 16px;
    background: var(--panel, #1a1a2e);
    color: var(--accent, #c9a84c);
    border: 1px solid var(--accent, #c9a84c);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }

  .mobile-filter-toggle:hover,
  .mobile-filter-toggle:active {
    background: var(--accent, #c9a84c);
    color: #000;
  }

  .mobile-back-home {
    display: flex;
    justify-content: center;
    padding: 14px 20px 4px;
  }

  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #fff;
    color: #6b21a8;
    border: 2px solid #6b21a8;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-back-btn:hover,
  .mobile-back-btn:active {
    background: #6b21a8;
    color: #fff;
  }

  .shop-hero {
    padding: 40px 20px;
    min-height: 300px;
    background: linear-gradient(rgba(80,30,120,0.25), rgba(80,30,120,0.25)),
          url('../images/tienda-hero-mobile.png') center/cover no-repeat;
  }

  .shop-hero-content h1,
  .shop-hero-content p {
    display: none;
  }
  
  .shop-hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  
  .shop-hero-content p {
    font-size: 0.95rem;
  }
  
  .shop-container {
    display: block;
    padding: 20px;
    grid-template-columns: 1fr;
  }
  
  .shop-sidebar {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    padding: 16px;
    margin-left: 0;
    display: none;
  }
  
  .shop-sidebar.active {
    display: block;
  }
  
  .shop-content {
    width: 100%;
  }
  
  /* Filters */
  .filter-section {
    gap: 16px;
  }
  
  .filter-title {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
  }
  
  .filter-options {
    gap: 8px;
  }
  
  .filter-checkbox {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
  
  .price-inputs {
    gap: 8px;
  }
  
  .price-input {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  
  /* Toolbar */
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .toolbar-info {
    flex-direction: column;
    gap: 12px;
    order: -1;
  }
  
  .results-count {
    font-size: 0.9rem;
  }
  
  .toolbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .sort-label {
    flex-direction: column;
    gap: 6px;
  }
  
  .sort-select {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  
  .view-toggle {
    width: 100%;
  }
  
  /* Products Grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 300px;
  }
  
  .products-grid.list-view {
    grid-template-columns: 1fr;
  }
  
  .products-grid.list-view .shop-product-card {
    flex-direction: column;
  }
  
  .products-grid.list-view .shop-product-image {
    width: 100%;
    padding-top: 75%;
    height: 0;
  }
  
  /* Product Card */
  .shop-product-card {
    overflow: visible;
  }
  
  .shop-product-image {
    height: 200px;
    padding-top: 0;
  }
  
  .shop-product-content {
    padding: 16px;
    gap: 6px;
  }
  
  .shop-product-name {
    font-size: 1rem;
    margin: 0 0 4px 0;
  }
  
  .shop-product-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    margin: 0 0 4px 0;
  }
  
  .shop-product-specs {
    gap: 6px;
    margin-top: 4px;
  }
  
  .spec-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .shop-product-footer {
    padding: 12px 16px;
    gap: 10px;
  }
  
  .shop-product-price {
    font-size: 1.2rem;
  }
  
  .price-original {
    font-size: 0.8rem;
  }
  
  .shop-product-actions {
    gap: 8px;
  }
  
  .btn-add-cart,
  .btn-view-details {
    flex: 1;
    padding: 9px 10px;
    font-size: 0.8rem;
    min-height: 38px;
  }
  
  /* Pagination */
  .pagination-wrapper {
    padding: 16px;
    margin-top: 24px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .pagination-btn,
  .pagination-info,
  .pagination-number {
    width: 100%;
    min-height: 40px;
  }
  
  .pagination-numbers {
    width: 100%;
    justify-content: center;
    order: -1;
  }
  
  .pagination-info {
    order: -2;
    width: 100%;
    text-align: center;
  }
  
  .pagination-number {
    flex: 1;
    min-width: auto;
    font-size: 0.85rem;
  }
}

/* TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .shop-hero {
    padding: 50px 30px;
    min-height: 350px;
  }
  
  .shop-hero-content h1 {
    font-size: 2.2rem;
  }
  
  .shop-hero-content p {
    font-size: 1.05rem;
  }
  
  .shop-container {
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 30px;
  }
  
  .shop-sidebar {
    position: sticky;
    top: 80px;
    padding: 20px;
    margin-left: 0;
    display: block;
  }
  
  /* Filters */
  .filter-section {
    gap: 20px;
  }
  
  .filter-title {
    font-size: 1.2rem;
  }
  
  .filter-options {
    gap: 10px;
  }
  
  /* Toolbar */
  .shop-toolbar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .toolbar-info {
    flex-wrap: wrap;
  }
  
  .toolbar-actions {
    flex-wrap: wrap;
  }
  
  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .products-grid.list-view {
    grid-template-columns: 1fr;
  }
  
  .products-grid.list-view .shop-product-card {
    flex-direction: row;
  }
  
  .products-grid.list-view .shop-product-image {
    width: 250px;
    height: 200px;
    padding-top: 0;
  }
  
  /* Product Card */
  .shop-product-content {
    padding: 18px;
  }
  
  .shop-product-name {
    font-size: 1.1rem;
  }
  
  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .pagination-number {
    min-width: 38px;
    height: 38px;
  }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
  .shop-hero {
    padding: 60px 40px;
  }
  
  .shop-hero-content h1 {
    font-size: 2.8rem;
  }
  
  .shop-container {
    grid-template-columns: 300px 1fr;
    gap: 28px;
    padding: 40px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  .products-grid.list-view {
    grid-template-columns: 1fr;
  }
  
  .products-grid.list-view .shop-product-card {
    flex-direction: row;
  }
  
  .products-grid.list-view .shop-product-image {
    width: 250px;
    height: auto;
    padding-top: 75%;
  }
}

/* Modal de detalle de producto */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.product-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-images {
  position: relative;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.modal-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  object-fit: cover;
}

.modal-thumbnail:hover {
  border-color: var(--accent);
  opacity: 0.8;
}

.modal-thumbnail.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-category {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
}

.modal-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.modal-specs h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.modal-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-specs li {
  padding: 10px 16px;
  background: #f5eeff;
  margin-bottom: 8px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  color: #666;
}

.modal-price-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.modal-price-original {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
}

.modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.modal-stock {
  display: flex;
  align-items: center;
}

.stock-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.stock-badge.disponible {
  background: #e8f5e9;
  color: #2e7d32;
}

.stock-badge.consultar {
  background: #fff3e0;
  color: #e65100;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-modal-cart,
.btn-modal-contact {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-modal-cart {
  background: var(--accent);
  color: white;
}

.btn-modal-cart:hover {
  background: #7c4fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 111, 199, 0.3);
}

.btn-modal-contact {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-modal-contact:hover {
  background: #f5eeff;
}

/* Responsive modal */
/* MOBILE (320px - 767px) */
@media (max-width: 767px) {
  .product-modal-overlay {
    padding: 12px;
    align-items: flex-start;
    padding-top: 60px;
  }
  
  .product-modal-content {
    border-radius: 12px;
    max-height: 90vh;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .modal-main-image {
    aspect-ratio: 3/4;
    margin-bottom: 16px;
  }
  
  .modal-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
  
  .modal-description {
    font-size: 1rem;
  }
  
  .modal-price {
    font-size: 1.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-modal-cart,
  .btn-modal-contact {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-modal-overlay {
    padding: 16px;
  }
  
  .product-modal-content {
    border-radius: 16px;
  }
  
  .modal-grid {
    grid-template-columns: 1fr 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  
  .modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  
  .modal-main-image {
    margin-bottom: 16px;
  }
  
  .modal-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
  }
  
  .modal-title {
    font-size: 1.6rem;
  }
  
  .modal-price {
    font-size: 1.8rem;
  }
  
  .modal-actions {
    gap: 12px;
  }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
  .product-modal-overlay {
    padding: 20px;
  }
  
  .product-modal-content {
    border-radius: 20px;
  }
  
  .modal-grid {
    grid-template-columns: 1fr 1fr;
    padding: 40px;
    gap: 40px;
  }
  
  .modal-close {
    top: 20px;
    right: 20px;
  }
  
  .modal-main-image {
    margin-bottom: 20px;
  }
  
  .modal-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
  }
  
  .modal-title {
    font-size: 2rem;
  }
  
  .modal-price {
    font-size: 2rem;
  }
}
