/* ZDP Mobile 2.2 — scoped responsive refinements, desktop unaffected */
@media (max-width:980px){
  .zdp-header__main{grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .zdp-search{min-width:0}
  .zdp-header__actions{flex-shrink:0}
  .woocommerce ul.products li.product{display:flex;flex-direction:column;min-width:0}
  .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link{display:block;flex:1 0 auto;min-width:0}
  .woocommerce ul.products li.product .button{align-self:stretch;text-align:center;display:flex;justify-content:center;align-items:center;min-height:44px;line-height:1.25;white-space:normal}
  .woocommerce ul.products li.product .price{margin:8px 0 12px;line-height:1.35}
  .woocommerce ul.products li.product img{object-fit:contain}
}
.zdp-mobile-dock{display:none}
@media (max-width:760px){
  html{scroll-padding-top:12px}
  body{padding-bottom:calc(67px + env(safe-area-inset-bottom,0px));overflow-x:clip}
  body.woocommerce-checkout{padding-bottom:0}
  .container{width:calc(100% - 28px);max-width:var(--zdp-max)}
  .zdp-topbar__inner{min-height:32px;font-size:12px}
  .zdp-topbar strong{font-weight:800;letter-spacing:.015em}
  .zdp-header{position:relative;backdrop-filter:none}
  .zdp-header__main{padding:8px 0 0;min-height:auto;column-gap:8px}
  .zdp-header__main .zdp-search{grid-column:1/-1;grid-row:2;margin:2px 0 10px;max-width:100%}
  .zdp-brand img,.custom-logo-link.zdp-brand img{max-height:42px;max-width:min(43vw,174px);object-fit:contain}
  .custom-logo-link.zdp-brand{min-height:45px}
  .zdp-iconlink{height:43px;min-width:43px;padding:0 8px;border-radius:12px;font-size:17px}
  .zdp-iconlink span[aria-hidden="true"]{line-height:1}
  .zdp-cart-count{font-size:11px;min-width:19px;height:19px}
  .zdp-search{border-radius:13px;box-shadow:none}
  .zdp-search input{padding:12px 11px;font-size:16px;min-width:0}
  .zdp-search input::placeholder{color:#5b6a60;text-overflow:ellipsis}
  .zdp-search button{padding:0 13px;font-size:13px;min-height:44px}
  .zdp-nav__inner{min-height:0;padding:7px 0}
  .zdp-menu-toggle{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 13px}
  .zdp-menu-toggle__icon{font-size:18px;line-height:1}
  .zdp-nav ul{padding:8px 0 1px;gap:6px}
  .zdp-nav li a{min-height:46px;display:flex;align-items:center;font-size:15px;padding:11px 15px}
  .zdp-mobile-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:45;padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.98);border-top:1px solid #dce6dc;box-shadow:0 -4px 18px rgba(11,43,28,.08)}
  .zdp-mobile-dock a{min-height:56px;display:flex;flex-direction:column;gap:1px;align-items:center;justify-content:center;border-radius:11px;color:#244c34;font-size:11px;line-height:1.2;font-weight:750;text-align:center}
  .zdp-mobile-dock a:focus-visible,.zdp-mobile-dock a:hover{outline:2px solid #e0bd41;outline-offset:-2px;background:#f5f8f0}
  .zdp-mobile-dock__icon{font-size:21px;line-height:1.25}
  .woocommerce-checkout .zdp-mobile-dock{display:none}
  .zdp-hero{padding:12px 0 8px}
  .zdp-hero__card{min-height:0;grid-template-columns:minmax(0,1fr);border-radius:20px}
  .zdp-hero__copy{padding:25px 20px 6px}
  .zdp-eyebrow{font-size:11px;letter-spacing:.12em}
  .zdp-hero h1{font-size:clamp(30px,8.8vw,39px);line-height:1.08;letter-spacing:-.04em;margin:8px 0 11px}
  .zdp-hero p{font-size:14px;line-height:1.5;margin:0 0 18px}
  .zdp-hero__mini{display:none}
  .zdp-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .zdp-btn{width:auto;min-height:46px;padding:8px 9px;font-size:12px;line-height:1.3;text-align:center}
  .zdp-hero__visual{min-height:220px;padding:6px 16px 70px}
  .zdp-hero__visual:before{width:220px;height:220px}
  .zdp-hero__product{width:min(220px,57vw);max-height:205px}
  .zdp-hero__product img{max-height:205px;object-fit:contain}
  .zdp-hero__sunflower{font-size:118px}
  .zdp-hero__label{left:12px;right:12px;bottom:10px;max-width:none;padding:8px 11px;font-size:12px;text-align:center}
  .zdp-hero__label strong{font-size:12.5px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .zdp-hero__label span{display:block;font-size:12px}
  .zdp-trust{padding:10px 0 0}
  .zdp-trust__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .zdp-trust__item{min-width:0;padding:10px;border-radius:14px;gap:8px}
  .zdp-trust__icon{flex:0 0 28px;width:28px;height:28px;font-size:16px;border-radius:9px}
  .zdp-trust__item strong{font-size:12px;line-height:1.25}
  .zdp-trust__item span{font-size:11px;line-height:1.35;display:block;margin-top:3px;color:#526359}
  .zdp-section{padding:29px 0}
  .zdp-section--compact{padding-top:30px;padding-bottom:30px}
  .zdp-section__head{margin-bottom:17px;gap:8px}
  .zdp-section__head h2{font-size:clamp(26px,6.8vw,32px);line-height:1.14}
  .zdp-section__head p{font-size:14px;line-height:1.48}
  .zdp-section__link{font-size:13px;white-space:normal}
  .zdp-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .zdp-category{min-width:0;min-height:122px;padding:14px;border-radius:16px}
  .zdp-category__icon{font-size:28px}
  .zdp-category strong{font-size:14px;line-height:1.25}
  .zdp-category span{font-size:11px;line-height:1.35}
  .zdp-category:last-child:nth-child(odd){grid-column:1/-1;min-height:80px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px}
  .woocommerce ul.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:0}
  .woocommerce ul.products li.product{padding:8px;border-radius:15px;min-width:0;overflow:hidden}
  .woocommerce ul.products li.product a img{aspect-ratio:1/1;border-radius:11px;margin:0 0 6px!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.35!important;min-height:52px;padding:3px 1px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .woocommerce ul.products li.product .price{font-size:14px!important;line-height:1.35!important;padding:0 1px;margin:7px 0 10px}
  .woocommerce ul.products li.product .button{font-size:12px!important;padding:10px 5px!important;border-radius:10px!important}
  .woocommerce ul.products li.product .onsale{top:8px!important;left:8px!important;padding:5px 8px!important;font-size:11px}
  .zdp-info-card{padding:20px;border-radius:17px}
  .zdp-info-card h3{font-size:19px}
  .zdp-story__visual{min-height:230px;padding:24px}
  .zdp-story__visual h3{font-size:28px}
  .zdp-story__copy{padding:24px;border-radius:18px}
  .zdp-story__copy h2{font-size:29px}
  .zdp-blog-card{padding:18px;min-height:140px}
  .zdp-footer__grid{gap:20px;padding:35px 0 25px}
  .zdp-footer__bottom{gap:5px;font-size:12px}
  .zdp-content-wrap,.zdp-shop-wrap{padding-top:20px;padding-bottom:38px}
  .zdp-content-card{padding:19px;border-radius:17px}
  .zdp-content-card h1,.zdp-archive-title{font-size:29px;overflow-wrap:anywhere}
  .zdp-content-card table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .woocommerce div.product{padding:14px;border-radius:16px;min-width:0}
  .woocommerce div.product .product_title{font-size:clamp(25px,7vw,34px);line-height:1.12}
  .woocommerce div.product .woocommerce-product-gallery{max-width:100%;float:none}
  .woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:8px}
  .woocommerce div.product form.cart .quantity{margin:0}
  .woocommerce div.product form.cart .single_add_to_cart_button{min-height:46px;flex:1 1 160px}
  .woocommerce table.shop_table{font-size:14px}
  .woocommerce .cart-collaterals .cart_totals,.woocommerce .cart-collaterals .cross-sells{float:none;width:100%}
  .woocommerce .checkout_coupon,.woocommerce .woocommerce-form-coupon{max-width:100%}
  .woocommerce-checkout #customer_details,.woocommerce-checkout #order_review{max-width:100%}
  .woocommerce form .form-row input.input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea{min-height:44px;font-size:16px}
  input,textarea,select{max-width:100%}
}
@media (max-width:360px){
  .zdp-btns{grid-template-columns:1fr}
  .zdp-hero__visual{min-height:200px}
  .zdp-category{padding:11px}
  .zdp-category strong{font-size:13px}
  .zdp-header__main{column-gap:4px}
  .zdp-brand img,.custom-logo-link.zdp-brand img{max-width:42vw}
  .zdp-search button{padding:0 9px}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .woocommerce ul.products li.product .button{font-size:11px!important}
}
@media (prefers-reduced-motion:reduce){.zdp-btn,.zdp-category,.woocommerce ul.products li.product{transition:none!important;transform:none!important}}

/* ZDP mobile catalog: override the fixed desktop sidebar grid supplied by DM Catalog Navigation.
   Keep filter toggle and sidebar behaviour owned by the plugin. */
@media (max-width: 980px) {
  .zdp-shop-wrap .dm-catalog-layout {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    column-gap:0!important;
    row-gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .zdp-shop-wrap .dm-catalog-layout > .dm-catalog-main {
    display:block!important;
    flex:1 1 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    grid-column:1/-1!important;
    float:none!important;
    clear:both;
  }
  .zdp-shop-wrap .dm-catalog-layout > .dm-catalog-sidebar {
    order:1;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    grid-column:1/-1!important;
  }
  .zdp-shop-wrap .dm-catalog-layout > .dm-mobile-toggle {order:0;align-self:stretch;max-width:100%;width:100%;min-height:45px;}
  .zdp-shop-wrap .dm-catalog-layout > .dm-catalog-main {order:2;}
  .zdp-shop-wrap .dm-catalog-main ul.products {
    float:none!important;
    clear:both!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:12px!important;
    margin:0 0 24px!important;
  }
  .zdp-shop-wrap .dm-catalog-main ul.products li.product {
    display:flex!important;
    flex-direction:column!important;
    float:none!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:10px!important;
  }
  .zdp-shop-wrap .dm-catalog-main ul.products li.product > a.woocommerce-LoopProduct-link {
    flex:1 1 auto;display:block;min-width:0;max-width:100%;
  }
  .zdp-shop-wrap .dm-catalog-main ul.products li.product .button {
    margin-top:auto!important;white-space:normal!important;overflow-wrap:break-word;
    display:flex!important;justify-content:center;align-items:center;min-height:44px;
  }
}
@media (max-width:760px) {
  .zdp-shop-wrap .dm-catalog-layout{gap:10px!important}
  .zdp-shop-wrap .dm-catalog-main{overflow:visible}
  .zdp-shop-wrap .dm-catalog-main .woocommerce-result-count {
    float:none!important;display:block!important;margin:0 0 7px!important;
    padding:0!important;max-width:100%;font-size:13px;line-height:1.4;text-align:left;
  }
  .zdp-shop-wrap .dm-catalog-main .woocommerce-ordering {
    float:none!important;display:block!important;margin:0 0 14px!important;
    width:100%!important;max-width:100%;
  }
  .zdp-shop-wrap .dm-catalog-main .woocommerce-ordering select {
    width:100%!important;max-width:100%;min-height:44px;
    padding:8px 12px;background:#fff;border:1px solid #d8dfd5;
    border-radius:11px;color:#203d2a;font-size:15px;
  }
  .zdp-shop-wrap .dm-catalog-main ul.products {gap:10px!important}
  .zdp-shop-wrap .dm-catalog-main ul.products li.product {padding:9px!important;border-radius:15px}
  .zdp-shop-wrap .dm-catalog-main ul.products li.product a img {
    display:block;max-width:100%;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;
  }
}
@media (max-width:360px) {
  .zdp-shop-wrap .dm-catalog-main ul.products{gap:7px!important}
  .zdp-shop-wrap .dm-catalog-main ul.products li.product{padding:7px!important}
}
