/* Custom additional styles for Equacom Store WordPress Theme */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* WordPress specific */
.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-light);
}

/* Entry content */
.entry-content p {
  margin-bottom: 1rem;
}

.entry-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.entry-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Search form */
.search-form {
  display: flex;
  align-items: center;
}

.search-form .search-field {
  background: var(--bg-muted);
  border: none;
  border-radius: 9999px 0 0 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  width: 200px;
}

.search-form .search-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 9999px 9999px 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
}

/* Pagination */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.nav-links .page-numbers {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-muted);
  transition: all 0.3s;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--primary);
  color: var(--white);
}

/* Widget styles */
.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li a {
  color: var(--text-light);
}

.widget ul li a:hover {
  color: var(--primary);
}

/* Lazy load */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}

/* Print */
@media print {
  .site-header, .site-footer, .whatsapp-float, .watermark {
    display: none !important;
  }
}
