/* Custom additional styles for Equacom Store WordPress Theme v2.0 */

/* 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.5s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][complete] { opacity: 1; }

/* Mobile menu */
.mobile-menu { display: none; background: var(--white); border-top: 1px solid var(--border); }
.mobile-menu.active { display: block; animation: fadeIn 0.3s ease; }
.mobile-menu a { display: block; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; border-bottom: 1px solid var(--border); transition: all 0.3s; }
.mobile-menu a:hover { background: var(--primary); color: var(--white); }

/* Product modal */
.product-modal-overlay { position: fixed; inset: 0; background: rgba(26,39,68,0.6); backdrop-filter: blur(4px); z-index: 150; display: none; align-items: center; justify-content: center; padding: 1rem; }
.product-modal { background: var(--white); border-radius: 1rem; max-width: 48rem; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); display: none; grid-template-columns: 1fr 1fr; animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s; }
.modal-close:hover { background: var(--danger); color: var(--white); }

@media (max-width: 768px) {
  .product-modal { grid-template-columns: 1fr; }
}

/* Hover lift effect */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }

/* Gradient text */
.gradient-text { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Print */
@media print {
  .site-header, .site-footer, .floating-contact, .watermark, .promo-overlay { display: none !important; }
}
