/*
Theme Name: ZiarnoDlaPtakow 2.0
Theme URI: https://ziarnodlaptakow.pl/
Author: ZiarnoDlaPtakow.pl
Description: Lekki motyw WooCommerce dla Ziarnodlaptakow.pl. Projektuje nową stronę główną bez modyfikowania produktów, zamówień ani danych katalogowych.
Version: 2.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ziarnodlaptakow
*/
:root{--zdp-green:#183f2b;--zdp-green2:#2f6849;--zdp-green3:#e8f1eb;--zdp-yellow:#f4c641;--zdp-yellow2:#fff4c5;--zdp-cream:#fbf8ef;--zdp-paper:#fff;--zdp-ink:#1b241e;--zdp-muted:#657168;--zdp-line:#e4e7df;--zdp-warm:#8a5a24;--zdp-danger:#a33b35;--zdp-radius:22px;--zdp-shadow:0 12px 34px rgba(25,48,35,.09);--zdp-max:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--zdp-cream);color:var(--zdp-ink);font:16px/1.62 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.container{width:min(var(--zdp-max),calc(100% - 40px));margin-inline:auto}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{clip:auto;width:auto;height:auto;z-index:99999;top:8px;left:8px;background:#fff;padding:10px 14px}
.zdp-topbar{background:var(--zdp-green);color:#fff;font-size:14px}.zdp-topbar__inner{min-height:38px;display:flex;align-items:center;justify-content:center;gap:28px;text-align:center}.zdp-topbar strong{color:#ffdf70}.zdp-header{position:sticky;top:0;z-index:50;background:rgba(251,248,239,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(24,63,43,.09)}.zdp-header__main{min-height:82px;display:grid;grid-template-columns:230px 1fr auto;gap:24px;align-items:center}.zdp-brand{display:flex;align-items:center;gap:11px;font-weight:850;letter-spacing:-.03em;font-size:20px;color:var(--zdp-green)}.zdp-brand img{max-height:52px;width:auto}.zdp-brand__mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--zdp-yellow2);font-size:27px}.zdp-search{display:flex;background:#fff;border:1px solid var(--zdp-line);border-radius:999px;overflow:hidden;box-shadow:0 3px 12px rgba(25,48,35,.04)}.zdp-search input{width:100%;border:0;outline:0;padding:14px 18px;background:transparent;font-size:15px}.zdp-search button{border:0;background:var(--zdp-green);color:#fff;padding:0 22px;cursor:pointer;font-weight:700}.zdp-header__actions{display:flex;align-items:center;gap:8px}.zdp-iconlink{height:46px;min-width:46px;padding:0 13px;border-radius:14px;background:#fff;border:1px solid var(--zdp-line);display:flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:14px}.zdp-cart-count{min-width:21px;height:21px;border-radius:20px;background:var(--zdp-yellow);display:grid;place-items:center;font-size:12px;color:#3f3310}.zdp-nav{border-top:1px solid rgba(24,63,43,.06)}.zdp-nav__inner{display:flex;align-items:center;gap:18px;min-height:52px}.zdp-nav ul{display:flex;gap:7px;align-items:center;margin:0;padding:0;list-style:none;flex:1}.zdp-nav li a{display:block;padding:10px 13px;border-radius:12px;font-weight:680;font-size:15px}.zdp-nav li a:hover{background:var(--zdp-green3);color:var(--zdp-green)}.zdp-nav__badge{background:var(--zdp-yellow2);color:#634d0b;padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px}.zdp-menu-toggle{display:none;border:0;background:var(--zdp-green);color:#fff;border-radius:12px;padding:10px 13px;font-weight:800}
.zdp-hero{padding:34px 0 18px}.zdp-hero__card{min-height:500px;border-radius:34px;overflow:hidden;background:linear-gradient(118deg,#f7f2df 0%,#fffaf0 48%,#e7f0e8 100%);border:1px solid #e7e1cf;display:grid;grid-template-columns:1.04fr .96fr;box-shadow:var(--zdp-shadow);position:relative}.zdp-hero__copy{padding:68px 60px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}.zdp-eyebrow{color:var(--zdp-green2);font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.zdp-hero h1{font-family:Georgia,"Times New Roman",serif;color:var(--zdp-green);font-size:clamp(42px,5.2vw,72px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 20px;max-width:780px}.zdp-hero p{font-size:19px;color:#48554c;max-width:660px;margin:0 0 28px}.zdp-btns{display:flex;gap:12px;flex-wrap:wrap}.zdp-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 21px;border-radius:14px;font-weight:800;border:1px solid transparent;transition:.2s}.zdp-btn--primary{background:var(--zdp-green);color:#fff}.zdp-btn--primary:hover{background:#0f2e1e;transform:translateY(-1px)}.zdp-btn--light{background:#fff;border-color:#d9ded7;color:var(--zdp-green)}.zdp-hero__visual{position:relative;display:grid;place-items:center;min-height:470px;padding:34px}.zdp-hero__visual:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle at center,var(--zdp-yellow2),rgba(255,244,197,0) 68%)}.zdp-hero__product{position:relative;width:min(430px,90%);aspect-ratio:1/1;border-radius:50%;display:grid;place-items:center}.zdp-hero__product img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(35,54,38,.18));position:relative;z-index:2}.zdp-hero__sunflower{font-size:180px;filter:drop-shadow(0 15px 18px rgba(83,71,25,.18));position:relative;z-index:2}.zdp-hero__label{position:absolute;right:26px;bottom:38px;z-index:3;background:#fff;padding:13px 16px;border-radius:14px;box-shadow:var(--zdp-shadow);max-width:250px;font-size:13px}.zdp-hero__label strong{display:block;color:var(--zdp-green);font-size:15px}.zdp-hero__mini{display:flex;gap:16px;flex-wrap:wrap;margin-top:26px;color:#4f5b52;font-size:14px;font-weight:700}.zdp-hero__mini span{display:flex;align-items:center;gap:7px}.zdp-hero__mini b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dfe4dc;color:var(--zdp-green)}
.zdp-trust{padding:12px 0 18px}.zdp-trust__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.zdp-trust__item{background:#fff;border:1px solid var(--zdp-line);padding:18px;border-radius:18px;display:flex;gap:12px;align-items:flex-start}.zdp-trust__icon{width:38px;height:38px;border-radius:12px;background:var(--zdp-green3);display:grid;place-items:center;font-size:20px;flex:0 0 auto}.zdp-trust__item strong{display:block;color:var(--zdp-green);font-size:15px}.zdp-trust__item span{color:var(--zdp-muted);font-size:13px}
.zdp-section{padding:58px 0}.zdp-section--soft{background:#f3f0e5;border-block:1px solid #e9e3d3}.zdp-section__head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px}.zdp-section__head h2{font-family:Georgia,"Times New Roman",serif;color:var(--zdp-green);font-size:clamp(30px,3vw,44px);line-height:1.12;margin:0 0 7px}.zdp-section__head p{margin:0;color:var(--zdp-muted);max-width:740px}.zdp-section__link{font-weight:800;color:var(--zdp-green);white-space:nowrap}.zdp-category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.zdp-category{background:#fff;border:1px solid var(--zdp-line);border-radius:22px;min-height:180px;padding:24px;display:flex;flex-direction:column;justify-content:space-between;transition:.2s}.zdp-category:hover{transform:translateY(-3px);box-shadow:var(--zdp-shadow);border-color:#cbd7cd}.zdp-category__icon{font-size:38px}.zdp-category strong{font-size:18px;color:var(--zdp-green)}.zdp-category span{color:var(--zdp-muted);font-size:13px}.zdp-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.zdp-info-card{border-radius:24px;background:#fff;border:1px solid var(--zdp-line);padding:28px}.zdp-info-card h3{margin:8px 0 8px;color:var(--zdp-green);font-size:21px}.zdp-info-card p{margin:0;color:var(--zdp-muted)}.zdp-info-card__num{font-size:12px;font-weight:900;letter-spacing:.1em;color:#82680d;background:var(--zdp-yellow2);border-radius:999px;padding:5px 9px;display:inline-block}.zdp-story{display:grid;grid-template-columns:.95fr 1.05fr;gap:26px;align-items:stretch}.zdp-story__visual{min-height:360px;border-radius:28px;background:linear-gradient(145deg,var(--zdp-green),#315f47);color:#fff;padding:38px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;position:relative}.zdp-story__visual:before{content:"🌻";position:absolute;right:18px;top:10px;font-size:180px;opacity:.2;transform:rotate(12deg)}.zdp-story__visual h3{font-family:Georgia,serif;font-size:36px;line-height:1.15;margin:0 0 12px;max-width:520px}.zdp-story__visual p{max-width:520px;margin:0;color:#e5f1e9}.zdp-story__copy{border-radius:28px;background:#fff;border:1px solid var(--zdp-line);padding:38px}.zdp-story__copy h2{font-family:Georgia,serif;color:var(--zdp-green);font-size:38px;line-height:1.12;margin:0 0 18px}.zdp-checks{list-style:none;padding:0;margin:22px 0 0}.zdp-checks li{padding:10px 0 10px 34px;border-bottom:1px solid #eef0eb;position:relative}.zdp-checks li:before{content:"✓";position:absolute;left:0;top:10px;width:22px;height:22px;border-radius:50%;background:var(--zdp-green3);color:var(--zdp-green);display:grid;place-items:center;font-weight:900}.zdp-blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.zdp-blog-card{background:#fff;border:1px solid var(--zdp-line);border-radius:20px;padding:22px;min-height:168px;display:flex;flex-direction:column;justify-content:space-between}.zdp-blog-card small{color:var(--zdp-muted)}.zdp-blog-card h3{font-size:18px;line-height:1.35;margin:10px 0;color:var(--zdp-green)}.zdp-blog-card a{font-weight:800;font-size:14px;color:var(--zdp-green2)}
/* WooCommerce */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:#fff;border:1px solid var(--zdp-line);border-radius:22px;padding:13px 13px 17px;overflow:hidden;transition:.2s}.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--zdp-shadow)}.woocommerce ul.products li.product a img{border-radius:15px;background:#f8f8f5;aspect-ratio:1/1;object-fit:contain;margin:0 0 13px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:1.35!important;color:var(--zdp-green);padding:.3em 4px!important;min-height:48px}.woocommerce ul.products li.product .price{font-size:17px!important;color:#17251c!important;font-weight:850!important;padding:0 4px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--zdp-green)!important;color:#fff!important;border-radius:12px!important;padding:12px 15px!important;font-weight:800!important}.woocommerce span.onsale{background:var(--zdp-yellow)!important;color:#3d310a!important;min-width:auto!important;min-height:auto!important;padding:6px 10px!important;line-height:1.1!important;border-radius:999px!important;top:14px!important;left:14px!important}.woocommerce div.product{background:#fff;border:1px solid var(--zdp-line);border-radius:26px;padding:24px}.woocommerce div.product .product_title{color:var(--zdp-green);font-family:Georgia,serif}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--zdp-green);font-weight:900}.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:16px;background:#fff;border-top-color:var(--zdp-green)!important}.woocommerce-message:before,.woocommerce-info:before{color:var(--zdp-green)!important}.zdp-shop-wrap{padding:38px 0 64px}.woocommerce .quantity .qty{min-height:42px;border:1px solid var(--zdp-line);border-radius:10px}
.zdp-content-wrap{padding:44px 0 70px}.zdp-content-card{max-width:960px;margin:auto;background:#fff;border:1px solid var(--zdp-line);border-radius:26px;padding:clamp(24px,5vw,56px)}.zdp-content-card h1{font-family:Georgia,serif;color:var(--zdp-green);font-size:42px;line-height:1.1;margin-top:0}.zdp-content-card h2{color:var(--zdp-green);margin-top:36px;line-height:1.2}.zdp-content-card h3{color:#31543f}.zdp-content-card a{text-decoration:underline;text-decoration-color:#a4b6a8;text-underline-offset:3px}.zdp-content-card table{width:100%;border-collapse:collapse}.zdp-content-card th,.zdp-content-card td{padding:12px;border-bottom:1px solid var(--zdp-line);text-align:left}.zdp-archive-title{font-family:Georgia,serif;color:var(--zdp-green);font-size:42px;margin:0 0 28px}
.zdp-footer{background:#132d20;color:#dbe7df;margin-top:28px}.zdp-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:28px;padding:54px 0 42px}.zdp-footer h3{font-size:14px;text-transform:uppercase;letter-spacing:.09em;color:#fff;margin:0 0 15px}.zdp-footer p{color:#b9c9bf;max-width:420px}.zdp-footer ul{list-style:none;margin:0;padding:0}.zdp-footer li{margin:8px 0}.zdp-footer a:hover{color:#fff}.zdp-footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0 24px;display:flex;justify-content:space-between;gap:16px;font-size:13px;color:#a9bbaf}.zdp-footer .zdp-brand{color:#fff}.zdp-footer .zdp-brand__mark{background:rgba(255,255,255,.08)}
@media(max-width:1000px){.zdp-header__main{grid-template-columns:200px 1fr auto}.zdp-hero__card{grid-template-columns:1fr}.zdp-hero__copy{padding:48px}.zdp-hero__visual{min-height:360px}.zdp-trust__grid{grid-template-columns:repeat(2,1fr)}.zdp-category-grid{grid-template-columns:repeat(3,1fr)}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.zdp-footer__grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.container{width:min(100% - 26px,var(--zdp-max))}.zdp-topbar__inner{min-height:34px;font-size:12px}.zdp-topbar__inner span:nth-child(n+2){display:none}.zdp-header{position:relative}.zdp-header__main{grid-template-columns:1fr auto;min-height:70px;gap:12px}.zdp-header__main .zdp-search{grid-column:1/-1;grid-row:2;margin-bottom:12px}.zdp-iconlink .zdp-iconlabel{display:none}.zdp-menu-toggle{display:block}.zdp-nav__inner{align-items:flex-start;flex-wrap:wrap;padding:9px 0}.zdp-nav ul{display:none;flex-direction:column;align-items:stretch;width:100%;order:3;padding:8px 0}.zdp-nav.is-open ul{display:flex}.zdp-nav li a{background:#fff;border:1px solid var(--zdp-line)}.zdp-nav__badge{margin-left:auto}.zdp-hero{padding-top:18px}.zdp-hero__card{border-radius:24px}.zdp-hero__copy{padding:35px 25px 20px}.zdp-hero h1{font-size:42px}.zdp-hero p{font-size:16px}.zdp-hero__visual{min-height:310px;padding:18px}.zdp-hero__visual:before{width:300px;height:300px}.zdp-hero__label{right:14px;bottom:18px;max-width:220px}.zdp-trust__grid{grid-template-columns:1fr}.zdp-section{padding:42px 0}.zdp-section__head{align-items:flex-start;flex-direction:column}.zdp-category-grid{grid-template-columns:repeat(2,1fr)}.zdp-category{min-height:150px;padding:19px}.zdp-info-grid,.zdp-blog-grid,.zdp-story{grid-template-columns:1fr}.zdp-story__visual{min-height:300px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.woocommerce ul.products li.product{padding:9px}.zdp-footer__grid{grid-template-columns:1fr;padding-top:40px}.zdp-footer__bottom{flex-direction:column}.zdp-content-card{border-radius:18px;padding:22px}.zdp-content-card h1{font-size:34px}}
@media(max-width:420px){.zdp-category-grid{grid-template-columns:1fr 1fr}.woocommerce ul.products{grid-template-columns:1fr 1fr}.zdp-hero__copy{padding:30px 20px 18px}.zdp-btn{width:100%}.zdp-header__actions{gap:5px}.zdp-iconlink{min-width:42px;height:42px;padding:0 10px}}


/* Aktualizacja 2.0.1 — poprawki po wdrożeniu */

body{overflow-x:hidden}
.admin-bar .zdp-header{top:32px}
.custom-logo-link.zdp-brand{display:flex;align-items:center;min-height:64px}
.custom-logo-link.zdp-brand img,.zdp-brand img,.custom-logo-link img.custom-logo{max-height:68px;width:auto;max-width:100%}
.zdp-nav ul{flex-wrap:wrap}
.zdp-footer__bottom{align-items:center;flex-wrap:wrap}
@media(max-width:1180px){
  .zdp-topbar__inner{gap:16px}
  .zdp-header__main{grid-template-columns:minmax(170px,220px) minmax(0,1fr) auto;gap:14px}
  .zdp-search input{padding:12px 16px}
  .zdp-iconlink .zdp-iconlabel{display:none}
  .zdp-nav li a{padding:10px 10px;font-size:14px}
  .zdp-nav__badge{display:none}
  .zdp-hero__card{min-height:440px}
  .zdp-hero__copy{padding:52px 46px}
}
@media(max-width:980px){
  .zdp-header__main{grid-template-columns:1fr auto;min-height:auto;padding:12px 0 0}
  .zdp-header__main .zdp-search{grid-column:1/-1;grid-row:2;margin-bottom:12px}
  .zdp-nav__inner{gap:10px;min-height:48px}
  .zdp-nav ul{gap:4px}
}
@media(max-width:782px){
  .admin-bar .zdp-header{top:46px}
}


/* FINAL 2.1.0 */
.zdp-section--compact{padding-top:44px;padding-bottom:44px}
.zdp-footer small{color:#92a79a;display:block;line-height:1.45}
/* Gdy stary builder/plugin nadal próbuje dołożyć dawny nagłówek lub stopkę,
   aktywny motyw pozostawia tylko warstwę ZDP. */
body #masthead:not(.zdp-header),body header.site-header:not(.zdp-header){display:none!important}
body #colophon:not(.zdp-footer),body footer.site-footer:not(.zdp-footer),body .footer-main:not(.zdp-footer),body .footer-wrap:not(.zdp-footer){display:none!important}
@media(max-width:1180px){
  .zdp-brand img,.custom-logo-link.zdp-brand img{max-height:58px}
  .zdp-header__main{grid-template-columns:minmax(150px,205px) minmax(0,1fr) auto}
  .zdp-nav__inner{min-height:48px}
  .zdp-hero h1{font-size:clamp(40px,4.6vw,62px)}
}
@media(max-width:980px){
  .zdp-header__main{padding-bottom:0}
  .zdp-brand img,.custom-logo-link.zdp-brand img{max-height:54px}
  .zdp-nav li a{padding:9px 9px}
}
@media(max-width:760px){
  .zdp-brand img,.custom-logo-link.zdp-brand img{max-height:48px;max-width:180px}
  .zdp-search button{padding:0 17px}
  .zdp-hero__label{max-width:210px}
}
