/**
 * Mini El Rosado – Additional Components CSS
 */

/* ===================================================================
   STORE ARCHIVE PAGE
=================================================================== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.store-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.store-card__header {
  background: var(--color-primary);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-card__header-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.store-card__header h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin: 0;
}

.store-card__body {
  padding: var(--space-md);
}

.store-card__detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-gray-700);
}

.store-card__detail svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.store-card__footer {
  padding: 0 var(--space-md) var(--space-md);
}

/* ===================================================================
   PAGINATION
=================================================================== */
.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gray-700);
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.nav-links .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--color-gray-500);
}

/* ===================================================================
   ENTRY CONTENT (WP default blocks)
=================================================================== */
.entry-content {
  max-width: 800px;
  margin-inline: auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  background: var(--color-off-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-gray-700);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.entry-content th {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
}

.entry-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.entry-content tr:nth-child(even) td {
  background: var(--color-off-white);
}

/* ===================================================================
   FILTER BAR
=================================================================== */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* ===================================================================
   404 PAGE
=================================================================== */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--color-gray-100);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0;
  display: block;
}

/* ===================================================================
   SEARCH RESULTS
=================================================================== */
.search-results-header {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
}

.search-results-header h1 {
  color: var(--color-secondary);
}

/* ===================================================================
   WP ADMIN BAR OFFSET
=================================================================== */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ===================================================================
   ACCESSIBILITY
=================================================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 0; }

/* Focus visible styles */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* ===================================================================
   LOADING SPINNER
=================================================================== */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(212,0,26,0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================================
   TOAST NOTIFICATION
=================================================================== */
.toast {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 9998;
  transform: translateY(24px);
  opacity: 0;
  transition: all var(--transition-base);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { background: var(--color-success); }
.toast--error   { background: #c0392b; }
