/* 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); }

/* Critical mobile ERP navigation */
.mp-categories-trigger,
.mp-portal-quick,
.eq-mobile-quick,
.mm-category-button { border: 0; cursor: pointer; font-family: inherit; }
.mp-categories-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: 0 .85rem; border-radius: 8px; background: var(--primary); color: var(--white); font-weight: 800; font-size: .78rem; box-shadow: 0 8px 22px rgba(230,57,70,.28); white-space: nowrap; }
.mp-portal-quick { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 .75rem; border-radius: 8px; background: var(--primary); color: var(--white) !important; font-weight: 800; font-size: .78rem; border: 1px solid var(--accent); white-space: nowrap; }
.eq-mobile-quickbar { display: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 2; padding: 1rem 1.1rem; background: var(--secondary); color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.mm-close { width: 2.25rem; height: 2.25rem; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mm-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding: .75rem 1rem; }
.mobile-menu .mm-grid a.mm-main { display: flex; align-items: center; gap: .55rem; min-height: 46px; padding: .75rem !important; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.mobile-menu .mm-grid a.mm-main:hover { background: var(--bg-muted); color: var(--primary); }
.mobile-menu .mm-grid a.mm-featured { background: var(--primary); color: var(--white); border-color: var(--accent); font-weight: 800; }
.mm-portal-feature { display: flex !important; flex-direction: column; gap: .1rem; margin: .85rem 1rem .45rem; padding: 1rem !important; border-radius: 10px; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: var(--white) !important; font-weight: 900 !important; border: 1px solid var(--accent); box-shadow: 0 14px 30px rgba(230,57,70,.28); }
.mm-portal-feature span { font-size: .75rem; opacity: .9; font-weight: 500; }
.mm-category-button { display: flex; align-items: center; justify-content: center; width: calc(100% - 2rem); margin: .75rem 1rem; min-height: 46px; border-radius: 8px; background: var(--accent); color: var(--text); font-weight: 900; }
.eq-categories-panel { display: none; position: fixed; inset: 0; z-index: 1200; }
.eq-categories-panel.active { display: block; animation: fadeIn .22s ease; }
.eq-categories-backdrop { position: absolute; inset: 0; border: 0; background: rgba(11,23,51,.72); cursor: pointer; }
.eq-categories-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(430px, 92vw); background: var(--white); color: var(--text); box-shadow: -20px 0 45px rgba(0,0,0,.25); overflow-y: auto; animation: slideEqDrawer .24s ease; }
.eq-categories-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--primary); color: var(--white); }
.eq-categories-head button { width: 2.2rem; height: 2.2rem; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); font-size: 1.45rem; cursor: pointer; }
.eq-categories-body { padding: 1rem; }
.eq-categories-body h3 { margin: 1rem 0 .6rem; font-size: .75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }
.eq-cat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.eq-cat-grid a { display: flex; align-items: center; gap: .45rem; min-height: 46px; padding: .75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-muted); font-weight: 700; font-size: .86rem; text-decoration: none; }
.eq-cat-grid-corp a { background: rgba(11,23,51,.06); border-color: rgba(11,23,51,.18); }
@keyframes slideEqDrawer { from { transform: translateX(100%); } to { transform: translateX(0); } }
html.eq-dark .eq-categories-drawer,
html.eq-dark .mobile-menu { background:#0f1424; color:#e6e8ee; }
html.eq-dark .mobile-menu .mm-grid a.mm-main,
html.eq-dark .eq-cat-grid a { background:#151a2e; color:#e6e8ee; border-color:rgba(255,255,255,.1); }
html.eq-dark .eq-cat-grid-corp a { background:#1a2138; }

/* 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; }
  .menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); }
  .marketplace-row { flex-wrap: wrap; }
  .mp-logo { order: 1; }
  .mp-actions { order: 2; margin-left: auto; }
  .mp-search { order: 3; flex-basis: 100%; min-width: 100%; }
  .mp-categories-trigger { order: 4; display: none; }
  .mp-portal-quick { display: inline-flex !important; }
  .eq-mobile-quickbar { display: flex; gap: .5rem; padding: .55rem .75rem; background: var(--secondary); border-top: 1px solid rgba(255,255,255,.08); overflow-x: auto; }
  .eq-mobile-quick { flex: 1 0 auto; min-height: 42px; padding: .65rem .85rem; border-radius: 8px; font-weight: 900; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
  .eq-mobile-cat { background: var(--accent); color: var(--text); }
  .eq-mobile-portal { background: var(--primary); color: var(--white) !important; border: 1px solid var(--accent); }
  .mobile-menu { position: fixed; inset: 0; z-index: 1100; max-height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 0; padding-bottom: 2rem; }
  .mobile-menu.active { display: block; animation: slideEqDrawer .24s ease; }
  .mobile-menu-label { position: sticky; top: 4.25rem; z-index: 1; }
  .mm-sub { padding: 0 1rem .35rem; }
  .mm-sub a { border-radius: 7px; border-bottom: 0 !important; margin-bottom: .25rem; background: var(--bg-muted); }
}

/* 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; }
}
