/* Breakpoints: 375 / 768 / 1024 / 1440 */
@media (max-width:767px){
  .ev-filter-pills{gap:8px}
  .ev-card{padding:16px}
  .ev-brand-pill{padding:8px 16px;font-size:13px}
}
/* Shop/archive on phones: two products per row */
@media (max-width:767px){
  body.post-type-archive-product .ev-grid,
  body.woocommerce-shop .ev-grid,
  .ev-grid:has(.ev-card-shop){gap:12px}
  body.post-type-archive-product .ev-grid>*,
  body.woocommerce-shop .ev-grid>*,
  .ev-grid:has(.ev-card-shop)>*{flex:0 1 calc(50% - 6px)}
  .ev-card-shop{padding:10px;border-radius:16px;min-width:0}
  .ev-card-shop h3{font-size:13px;line-height:1.3;margin:10px 0 4px}
  .ev-card-shop .price{font-size:15px;font-weight:800}
  .ev-card-shop .price .amount,
  .ev-card-shop .price del{font-size:12px}
  .ev-card-shop .ev-card-media{margin:0 -4px}
  .ev-card-shop .ev-wish{width:36px;height:36px;top:6px;right:6px}
  .ev-card-shop .ev-wish svg{width:17px;height:17px}
  .ev-card-shop .ev-card-foot{gap:4px}
  .ev-card-shop .ev-card-wa{width:36px;height:36px;flex:0 0 36px}
  .ev-card-wa svg{width:18px;height:18px}
  .ev-card-shop .ev-card-foot{align-items:stretch;min-height:44px}
  .ev-card-shop .ev-compare-pick{font-size:12px;gap:4px;white-space:nowrap;padding:4px 0}
  .ev-card-foot .ev-compare-pick input{width:16px;height:16px}
  .ev-shop-h1{font-size:30px !important}
}
@media (min-width:768px) and (max-width:1023px){
  .container{padding-left:24px;padding-right:24px}
}
@media (min-width:1024px) and (max-width:1439px){
  .container{padding-left:32px;padding-right:32px}
}

/* Phones: keep the header icons (search, wishlist, theme, cart, account) on one line */
@media (max-width:767px){
  .ev-header-icons{gap:0}
  .ev-header-icons a,.ev-icon-btn,.ev-theme-toggle{width:36px;height:36px}
  .ev-header-icons svg{width:20px;height:20px}
}

/* Light/dark button: header on desktop, menu drawer on phones */
.ev-theme-toggle-drawer{display:none}
@media (max-width:1023px){
  .ev-theme-toggle-head{display:none}
  .ev-theme-toggle-drawer{display:flex;width:100%;height:46px;justify-content:center;align-items:center;gap:10px;margin-top:12px;border:1px solid var(--ev-border);border-radius:999px;padding:0 16px;font:inherit;font-size:14px;font-weight:600;color:var(--ev-text);background:var(--ev-bg);cursor:pointer;box-sizing:border-box}
}
@media (max-width:767px){
  .ev-menu-btn{padding:8px 10px}
  .ev-header-icons a,.ev-icon-btn{width:34px;height:34px}
  .ev-header .container.ev-header-row{gap:8px}
}
@media (max-width:379px){
  .ev-header-icons a,.ev-icon-btn{width:32px;height:32px}
  .ev-menu-btn{padding:8px 8px}
}
@media (max-width:1023px){
  .ev-theme-toggle-drawer{margin:12px 0 18px}
}
