﻿/* ============ TIENDA PAGE ============ */

/* Banner */
.tienda-banner-section { background: #ffffff00; }
.tienda-banner-inner { padding: 24px 0 0; }
.tienda-banner-img { display: block; width: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 12px; }

/* Breadcrumb */
.tienda-breadcrumb-row { padding: 16px 0 8px; }
.tienda-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.tienda-breadcrumb a { color: #6b7280; text-decoration: none; }
.tienda-breadcrumb a:hover { color: var(--brand); }
.tienda-breadcrumb span:last-child { color: #111827; font-weight: 600; }
.tienda-breadcrumb > span { color: #d1d5db; }

/* Layout */
.tienda-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-bottom: 60px; }

/* Sidebar */
.tienda-sidebar { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 20px; }
.tienda-filter-group { border-bottom: 1px solid #e5e7eb; padding-bottom: 16px; }
.tienda-filter-group:last-of-type { border-bottom: 0; }
.tienda-filter-group h4 { margin: 0 0 10px; color: #111827; font-size: 14px; font-weight: 700; }
.tienda-filter-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.tienda-filter-group li a { display: block; padding: 6px 8px; color: #4b5563; font-size: 13px; border-radius: 6px; text-decoration: none; transition: background .15s, color .15s; }
.tienda-filter-group li a:hover,
.tienda-filter-group li a.active { color: var(--brand); background: #eff6ff; font-weight: 600; }

/* Checkbox filters (marcas) */
.tienda-checkbox { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: #4b5563; cursor: pointer; }
.tienda-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }

/* Price range */
.tienda-price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tienda-price-range input { width: 85px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; color: #374151; }
.tienda-price-range input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,107,255,.1); }
.tienda-price-range span { color: #9ca3af; font-size: 12px; }
.tienda-filter-apply { padding: 6px 12px; color: #fff; border: 0; border-radius: 6px; background: linear-gradient(110deg, #006bff, #0d57e6 68%, #6a4dff); font-size: 12px; font-weight: 600; cursor: pointer; }
.tienda-filter-apply:hover { background: linear-gradient(110deg, #0d57e6, #5f22d3); }
.tienda-filter-clear { padding: 8px 14px; color: #ef4444; border: 1px solid #fecaca; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s; }
.tienda-filter-clear:hover { background: #fef2f2; }

/* Toolbar */
.tienda-main { display: flex; flex-direction: column; }
.tienda-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 16px; }
.tienda-count { color: #6b7280; font-size: 13px; }
.tienda-toolbar select { padding: 7px 32px 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; color: #374151; background: #fff; appearance: auto; cursor: pointer; }

/* Product Grid */
.tienda-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tienda-empty { display: none; padding: 40px 0; text-align: center; color: #9ca3af; font-size: 14px; }

/* Product Card in tienda context */
.tienda-grid .product-card { scroll-snap-align: none; }

/* Pagination */
.tienda-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 28px; }
.tienda-page-btn { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; color: #374151; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.tienda-page-btn:hover { background: #f3f4f6; }
.tienda-page-btn.active { color: #fff; border-color: var(--brand); background: var(--brand); font-weight: 700; }
.tienda-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Mobile */
@media (max-width: 1024px) {
  .tienda-grid { grid-template-columns: repeat(3, 1fr); }
  .tienda-layout { grid-template-columns: 220px 1fr; gap: 20px; }
}
@media (max-width: 767px) {
  .tienda-layout { grid-template-columns: 1fr; }
  .tienda-sidebar { display: none; position: static; }
  .tienda-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tienda-banner-img { aspect-ratio: auto; }
}
