/* 3.5.27 — measured responsive fixes for navigation, cards and footer. */

/* WCAG-sized mobile navigation target without enlarging the icon itself. */
@media (max-width:900px) {
  .menu-toggle {
    display:inline-grid;
    place-items:center;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    margin:0;
    padding:10px;
    border:0;
    border-radius:10px;
    touch-action:manipulation;
  }
  .menu-toggle .icon { width:24px; height:24px; }
}

/* Product content gets three readable lines and the fixed card grows by the
   same amount, keeping price and the explicit cart action collision-free. */
body.znp-store-theme .products>li.product-card .woocommerce-loop-product__title {
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  min-height:54px!important;
  max-height:54px!important;
  overflow:hidden!important;
}
body.znp-store-theme ul.products>li.product.product-card {
  height:331px;
  min-height:331px;
}
body.znp-store-theme .znp-home-shelf ul.products>li.product.product-card {
  height:297px;
  min-height:297px;
}
.product-carousel,.product-carousel .carousel-track {
  height:297px;
  min-height:297px;
}
.product-carousel .carousel-track>.product-card {
  height:297px;
  min-height:297px;
}

/* Mid-sized desktops keep the complete catalogue navigation in one row. */
@media (min-width:1280px) and (max-width:1500px) {
  .main-nav.znp-megamenu { height:auto; min-height:43px; }
  .znp-megamenu .znp-mega-shell { padding:4px 12px; }
  .znp-megamenu .znp-mega-row {
    flex-wrap:nowrap;
    justify-content:space-between;
    align-content:center;
    gap:2px;
    min-height:35px;
    overflow:visible;
  }
  .znp-megamenu .znp-mega-item,.znp-megamenu .znp-mega-extra {
    flex:0 1 auto;
    min-width:0;
    height:35px;
  }
  .znp-megamenu .znp-mega-category,.znp-megamenu .znp-mega-extra {
    gap:3px;
    font-size:clamp(10.5px,.82vw,12px);
    white-space:nowrap;
  }
  .znp-megamenu .znp-premium-nav-icon {
    width:clamp(21px,1.7vw,25px);
    height:clamp(21px,1.7vw,25px);
    flex-basis:clamp(21px,1.7vw,25px);
  }
  .znp-megamenu .znp-mega-toggle { width:12px; min-width:12px; }
  .znp-megamenu .znp-mega-toggle .chevron { width:9px; height:9px; }
}

/* Long addresses remain inside their own footer column on narrow screens. */
.znp-footer-column,.znp-footer-links,.znp-footer-links li { min-width:0; max-width:100%; }
@media (max-width:700px) {
  .znp-footer-links a[href^="mailto:"] {
    display:inline;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

/* The 320 px search field uses the dedicated short, editable placeholder. */
@media (max-width:359px) {
  .search input {
    padding-inline:12px 7px;
    font-size:11.5px;
  }
  .search button { width:46px; flex-basis:46px; }
}

@media (max-width:900px) {
  body.znp-store-theme .products>li.product-card .woocommerce-loop-product__title {
    line-height:17px;
    min-height:51px!important;
    max-height:51px!important;
  }
  body.znp-store-theme ul.products>li.product.product-card {
    height:337px;
    min-height:337px;
  }
  body.znp-store-theme .znp-home-shelf ul.products>li.product.product-card {
    height:327px;
    min-height:327px;
  }
  .product-carousel,.product-carousel .carousel-track,
  .product-carousel .carousel-track>.product-card {
    height:327px;
    min-height:327px;
  }
  .product-carousel .carousel-arrow { top:146px; }
}
