/* ===========================================
   TIENDAS PAGE STYLES - OPTIMIZED
   =========================================== */

/* Base & Typography */
body {
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Archive Search Bar */
.archive-search-bar {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.archive-search-bar .position-relative {
  width: 100%;
}

.archive-search-input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.25rem;
  font-size: 1.1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fff;
}

.archive-search-input:focus {
  border-color: #0a8ccc;
  box-shadow: 0 0 0 0.2rem rgba(10, 140, 204, 0.15);
  outline: 0;
}

.archive-search-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.5rem;
  pointer-events: none;
}

/* Archive Search Autocomplete Dropdown */
.archive-search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.archive-search-autocomplete-item {
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.archive-search-autocomplete-item:last-child {
  border-bottom: none;
}

.archive-search-autocomplete-item:hover,
.archive-search-autocomplete-item.active {
  background-color: #f8f9fa;
}

.archive-search-autocomplete-item .item-title {
  font-weight: 600;
  color: #000;
  font-size: 1rem;
}

.archive-search-autocomplete-item .item-category {
  font-size: 0.85rem;
  color: #3f265f;
  text-transform: uppercase;
  font-weight: 700;
}

.archive-search-autocomplete-empty {
  padding: 1.5rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.95rem;
}

/* Filter Labels */
.filter-label {
  color: #444b58;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-style: normal;
  font-weight: 700;
  font-weight: 700;
  height: 35px;
  justify-content: center;
  line-height: normal;
  line-height: normal;
  width: 197px;
}

/* Filter Submit Button */
.btn-filter-submit {
  background-color: #f59630 !important;
  border-color: #f59630 !important;
  color: #fff !important;
}

.btn-filter-submit:hover,
.btn-filter-submit:focus,
.btn-filter-submit:active {
  background-color: #e08520 !important;
  border-color: #e08520 !important;
  color: #fff !important;
}

/* Checkbox Labels */
.terminal-checkboxes .form-check-label,
.category-checkboxes .form-check-label {
  color: #000;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  text-transform: capitalize;
}

/* Checkbox Containers */
.terminal-checkboxes .form-check,
.category-checkboxes .form-check {
  padding: 0.5rem;
  padding-left: 2rem !important;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.terminal-checkboxes .form-check:hover,
.category-checkboxes .form-check:hover {
  background-color: #f8f9fa;
}

/* Archive Banner Slider */
.archive-banner-slider {
  width: 100%;
  overflow: hidden;
  margin-top: 100px;
}

.archive-banner-slider-wrapper {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: visible;
  padding-bottom: 60px;
}

.archive-banner-slider-wrapper .splide {
  width: 100%;
  height: 500px;
}

.archive-banner-slider-wrapper .splide__track {
  width: 100%;
  height: 100%;
}

.archive-banner-slider-wrapper .splide__list {
  width: 100%;
  height: 100%;
}

.archive-banner-slider-wrapper .splide__slide {
  width: 100%;
  height: 100%;
}

.archive-banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.archive-banner-slide .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.archive-banner-slide .banner-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
}

.archive-banner-slide .banner-text-wrapper {
  max-width: 800px;
}

.archive-banner-slide .banner-text-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-align: left;
}

.archive-banner-slide .banner-text-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.9;
}

.archive-banner-slide .banner-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* Archive Banner Navigation Arrows */
.archive-banner-slider-wrapper .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 50px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-banner-slider-wrapper .splide__arrow:hover {
  background: transparent;
  transform: translateY(-50%) scale(1.2);
  color: #0a8ccc;
}

.archive-banner-slider-wrapper .splide__arrow--prev {
  left: 20px;
}

.archive-banner-slider-wrapper .splide__arrow--next {
  right: 20px;
}

.archive-banner-slider-wrapper .splide__arrow i {
  font-size: 50px !important;
  line-height: 1;
}

.archive-banner-slider-wrapper .splide__arrow svg {
  display: none !important;
}

/* Archive Banner Pagination */
.archive-banner-slider-wrapper .splide__pagination {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.archive-banner-slider-wrapper .splide__pagination__page {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #3f265f;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.archive-banner-slider-wrapper .splide__pagination__page:hover {
  background: #3f265f;
  transform: scale(1.2);
}

.archive-banner-slider-wrapper .splide__pagination__page.is-active {
  background: #3f265f !important;
  border: 2px solid #3f265f !important;
  width: 16px;
  height: 16px;
}

/* Single Slide - Centrado cuando hay un solo banner */
.archive-banner-slider-wrapper.single-slide .splide__track {
  display: flex;
  justify-content: center;
  align-items: center;
}

.archive-banner-slider-wrapper.single-slide .splide__list {
  display: flex;
  justify-content: center;
  align-items: center;
}

.archive-banner-slider-wrapper.single-slide .splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .archive-banner-slider-wrapper {
    height: 300px;
    padding-bottom: 0;
  }

  .archive-banner-slider-wrapper .splide {
    height: 300px;
  }

  .archive-banner-slide .banner-text-title {
    font-size: 2rem;
  }

  .archive-banner-slide .banner-text-subtitle {
    font-size: 1.1rem;
  }

  /* Ocultar flechas en mobile */
  .archive-banner-slider-wrapper .splide__arrow {
    display: none !important;
  }

  /* Posicionar bullets dentro del banner en mobile */
  .archive-banner-slider-wrapper .splide__pagination {
    display: flex !important;
    bottom: 15px;
    z-index: 100;
    gap: 10px;
  }

  .archive-banner-slider-wrapper .splide__pagination__page {
    width: 12px;
    height: 12px;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #3f265f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .archive-banner-slider-wrapper .splide__pagination__page.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
  }
}

@media (max-width: 576px) {
  .archive-banner-slider-wrapper {
    height: 250px;
    padding-bottom: 0;
  }

  .archive-banner-slider-wrapper .splide {
    height: 250px;
  }

  .archive-banner-slide .banner-text-title {
    font-size: 1.5rem;
  }

  .archive-banner-slide .banner-text-subtitle {
    font-size: 1rem;
  }

  .archive-banner-slider-wrapper .splide__pagination {
    bottom: 0;
    gap: 8px;
    background: #fff;
    height: 33px;
    width: 100%;
  }

  .archive-banner-slider-wrapper .splide__pagination__page {
    width: 10px;
    height: 10px;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
}

/* Breadcrumb Styles */
.breadcrumb-section {
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item a {
  color: var(--bs-primary);
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #0056b3;
}

/* Filters Sidebar */
.filters-sidebar {
  top: 1rem;
}

.filters-sidebar .card {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.filters-sidebar .card-header {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* Acordeón de Filtros */
#filtersAccordion .accordion-item {
  background-color: transparent;
  margin-bottom: 0.5rem;
}

#filtersAccordion .accordion-button {
  padding: 0.75rem 0;
  background-color: transparent;
  color: #444b58;
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
  border: none;
  color: #000;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  text-transform: capitalize;
}

#filtersAccordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #000;
}

#filtersAccordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

#filtersAccordion .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
}

#filtersAccordion .accordion-body {
  padding: 0.5rem 0 1rem 0;
}

/* Sub-acordeón de Categorías */
#categoriesSubAccordion .accordion-item {
  background-color: transparent;
  margin-bottom: 0.25rem;
}

#categoriesSubAccordion .category-accordion-btn {
  padding: 0.5rem 0;
  background-color: transparent;
  color: #495057;
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
  border: none;
  display: flex;
  align-items: center;
}

#categoriesSubAccordion .category-accordion-btn:not(.collapsed) {
  background-color: transparent;
  color: #0a8ccc;
}

#categoriesSubAccordion .category-accordion-btn:focus {
  box-shadow: none;
  border: none;
}

#categoriesSubAccordion .category-accordion-btn::after {
  width: 0.875rem;
  height: 0.875rem;
  background-size: 0.875rem;
  margin-left: auto;
}

#categoriesSubAccordion .accordion-body {
  padding: 0.5rem 0 0.5rem 0;
}

#categoriesSubAccordion .category-name {
  flex: 1;
  color: #000;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  text-transform: capitalize;
}

.form-label {
  color: #495057;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-range::-webkit-slider-thumb {
  background-color: var(--bs-primary);
}

.form-range::-moz-range-thumb {
  background-color: var(--bs-primary);
}

/* Results Header */
.results-header {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.results-info {
  font-size: 0.95rem;
}

/* Store Grid Layout */
.stores-grid {
  min-height: 400px;
}

.stores-grid .row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.stores-grid .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Store Cards */
.store-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  position: relative;
}

.store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Store Image */
.store-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f8f9fa;
}

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

.store-card:hover .store-image img {
  transform: scale(1.05);
}

/* Store Badges */
.store-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.store-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.store-favorite {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.store-favorite:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-favorite.active {
  color: #dc3545;
  background: white;
}

/* Store Content */
.store-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.store-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
  line-height: 1.3;
}

.store-category {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Rating System */
.store-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rating-stars {
  color: #ffc107;
  font-size: 0.875rem;
  display: flex;
  gap: 1px;
}

.rating-stars .bi-star {
  color: #e9ecef;
}

.rating-stars .bi-star-fill,
.rating-stars .bi-star-half {
  color: #ffc107;
}

.rating-score {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.rating-count {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Store Schedule */
.store-schedule {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.store-schedule .current-status {
  font-weight: 600;
}

.store-schedule .current-status.open {
  color: #198754;
}

.store-schedule .current-status.closed {
  color: #dc3545;
}

/* Promotions */
.store-promotions {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.promotion-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

/* Store Actions */
.store-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.btn-store-action {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-store-action:hover {
  transform: translateY(-2px);
}

/* List View Styles */
.list-view .store-card {
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.list-view .store-card .row {
  align-items: center;
  height: auto;
}

.list-view .store-image {
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem;
}

.list-view .store-content {
  padding: 1.5rem;
  height: auto;
}

.list-view .store-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.list-view .store-rating {
  margin-bottom: 0.5rem;
}

.list-view .store-actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

.list-view .btn-store-action {
  flex: none;
  min-width: 120px;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.loading-state .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

.empty-state i {
  font-size: 4rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-state h4 {
  color: #495057;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.empty-state p {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  justify-content: center;
}

.page-link {
  color: var(--bs-primary);
  border-color: #dee2e6;
  padding: 0.75rem 1rem;
  margin: 0 0.125rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.page-link:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

/* Footer Styles - Idéntico al home.html */
.footer {
  background: #111827 !important;
  color: #d1d5db;
}

.footer-brand h5 {
  color: #ffffff;
}

.footer-description {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #1f2937;
  color: #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--bs-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.15s ease;
}

.footer-links a:hover {
  color: #3b82f6;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-item i {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  color: #ffffff;
}

.footer-divider {
  border-color: #374151;
  margin: 2rem 0;
}

.legal-link {
  text-decoration: none;
  transition: all 0.15s ease;
}

.legal-link:hover {
  color: #3b82f6;
}

/* Button Styles */
.btn {
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  padding: 0.75rem 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bs-primary), #0056b3);
  color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--bs-primary), #0056b3);
  border-color: var(--bs-primary);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .store-card {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .store-image {
    height: 180px;
  }

  .store-content {
    padding: 1rem;
  }

  .results-header {
    text-align: center;
    padding: 0.75rem;
  }

  .results-header .row > div:first-child {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  body {
  }

  .page-header {
    padding: 1.5rem 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .store-image {
    height: 160px;
  }

  .store-content {
    padding: 0.875rem;
  }

  .store-actions {
    flex-direction: column;
    gap: 0.375rem;
  }

  .btn-store-action {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .footer {
    text-align: center;
  }

  .footer .row > div {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .store-actions {
    flex-direction: column;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .page-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

/* Custom Scrollbar */
.filters-sidebar::-webkit-scrollbar {
  width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Toast Positioning */
.toast-container {
  z-index: 1100;
}

/* Back to Top Button */
#backToTop {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--bs-primary);
  border: none;
  color: #ffffff;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #0056b3;
}

/* Print Styles */
@media print {
  .filters-sidebar,
  .pagination,
  .page-header,
  .navbar,
  .btn,
  .breadcrumb-section,
  .results-header,
  .footer {
    display: none !important;
  }

  .store-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }

  .store-image {
    height: auto;
    max-height: 150px;
  }

  .stores-grid .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Utility Classes */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge Styles */
.badge {
  font-weight: 500;
  letter-spacing: 0.025em;
}

.badge.bg-success {
  background-color: #198754 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

/* Enhanced Card Hover Effects */
.store-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(13, 110, 253, 0.02),
    rgba(13, 110, 253, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 15px;
}

.store-card:hover::before {
  opacity: 1;
}

/* Loading Animation for Images */
.store-image img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.store-image img.loaded {
  opacity: 1;
}

/* Interactive Elements */
.form-check-input {
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-indicator.open {
  background-color: #198754;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.3);
}

.status-indicator.closed {
  background-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

/* =========================================
   HOME STORE CARD STYLES
   ========================================= */

.home-store-card {
  border-radius: 30px;
  border: 0 !important;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
 /* width: 445px;
  height: 375px;*/
  display: flex;
  flex-direction: column;
}

.home-store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.home-store-card .card-img-top {
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  height: 210px;
  /*object-fit: cover;*/
  width: 100%;
  max-width: 400px !important;
}

.home-store-card .terminal-badge {
  position: absolute;
  top: 1rem;
  right: 0.5rem;
  z-index: 2;
}

.home-store-card .terminal-badge span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0a8ccc;
  border-radius: 20px;
  padding: 0.5rem;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  color: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.home-store-card .terminal-badge img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.home-store-card .card-body {
  padding: 1.25rem;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-store-card .card-body .categoria-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  color: var(--Color_Primary, #3f265f);
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.home-store-card .card-body .estado-badge {
  display: flex;
  width: 108px;
  height: 30px;
  padding: 4px 6px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: 21px;
  background: #3991a1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.home-store-card .card-body .estado-badge.cerrado {
  background: #dc3545;
}

.home-store-card .card-body .estado-badge.abierto {
  background: #3991a1;
}

.home-store-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
  font-family: Manrope;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.home-store-card .card-subtitle {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-store-card .card-subtitle .stars {
  color: #ffb800;
  font-size: 14px;
}

.home-store-card .card-subtitle i {
  font-size: 12px;
}

.home-store-card .card-text {
  font-size: 13px;
  color: #495057;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Responsive para tarjetas */
@media (max-width: 1400px) {
  .home-store-card {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1200px) {
  .home-store-card {
    width: 100%;
    height: auto;
  }

   .home-store-card .card-img-top {
    height: 180px;
    width: 100%;
    max-width: 342px !important;
  }
}

@media (max-width: 768px) {
  .home-store-card {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 350px;
    margin: 0 auto;
  }
}

/* ===========================================
   MOBILE FILTER BAR
   =========================================== */

.mobile-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-filter-mobile {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #3f265f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(63, 38, 95, 0.3);
}

.btn-filter-mobile:hover {
  background: #2d1a45;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 38, 95, 0.4);
}

.btn-filter-mobile i {
  font-size: 18px;
}

.results-count-mobile {
  display: flex;
  align-items: center;
  font-size: 15px;
}

.results-count-mobile .fw-bold {
  color: #3f265f;
  font-size: 20px;
  font-weight: 700;
}

/* Offcanvas filters styling for mobile */
@media (max-width: 991px) {
  .offcanvas.offcanvas-start#filtersOffcanvas {
    width: 370px;
    background: #fff;
  }

  .offcanvas-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem;
  }

  .offcanvas-title {
    font-weight: 700;
    font-size: 1.25rem;
  }

  .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
  }

  .offcanvas-body {
    padding: 1.5rem;
  }

  .offcanvas-body .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
  }

  .offcanvas-body .form-check {
    padding: 8px 30px;
  }

  .offcanvas-body .form-check-input:checked {
    background-color: #3f265f;
    border-color: #3f265f;
  }

  .offcanvas-body .btn-filter-submit {
    background: #3f265f;
    border: none;
    padding: 12px;
    font-weight: 600;
  }

  .offcanvas-body .btn-filter-submit:hover {
    background: #2d1a45;
  }
}

@media (max-width: 550px) {
  .offcanvas.offcanvas-start#filtersOffcanvas {
    width: 20rem;
    background: #fff;
  }
}

/* ===========================================
   FILTER ACTIONS - Desktop & Mobile
   =========================================== */

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.filter-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.filter-actions .btn-primary {
  background: #3f265f;
  border: none;
}

.filter-actions .btn-primary:hover {
  background: #2d1a45;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 38, 95, 0.3);
}

.filter-actions .btn-outline-secondary {
  color: #6c757d;
  border: 2px solid #dee2e6;
  background: #fff;
}

.filter-actions .btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-2px);
}

/* Desktop: Sticky filter buttons */
@media (min-width: 992px) {
  /* Hacer que el card tenga una altura máxima y scroll interno */
  .filters-sidebar .card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
  }

  .filters-sidebar .card-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 18px;
  }

  .filters-sidebar .filter-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  /* Contenedor de filtros con scroll */
  .filters-sidebar #filtersAccordion {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding-right: 5px;
  }

  /* Estilo de scrollbar */
  .filters-sidebar #filtersAccordion::-webkit-scrollbar {
    width: 6px;
  }

  .filters-sidebar #filtersAccordion::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .filters-sidebar #filtersAccordion::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }

  .filters-sidebar #filtersAccordion::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /* Botones fijos en la parte inferior */
  .filters-sidebar .filter-actions {
    position: relative;
    background: #fff;
    padding: 15px 0 0;
    margin-top: 15px;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
  }
}

/* Skeleton Loader Styles */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-store-card {
  width: 100%;
  height: 380px;
  margin-bottom: 24px;
  border-radius: 12px;
}

.skeleton-store-card-inner {
  padding: 20px;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.skeleton-title {
  width: 70%;
  height: 24px;
  margin-bottom: 12px;
}

.skeleton-text {
  width: 100%;
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text-short {
  width: 50%;
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-badge {
  width: 80px;
  height: 24px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Mobile specific adjustments */
@media (max-width: 991px) {
  .offcanvas-body .filter-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 15px 0 0;
    margin-top: 30px;
    border-top: 1px solid #dee2e6;
  }

  .skeleton-store-card {
    height: 350px;
  }
}
