/*
Theme Name: Miękka Grzywa Naturalna
Theme URI: https://miekkagrzywa.pl
Author: DE&A Systems
Description: Edytowalny motyw sklepu Miękka Grzywa: edytor blokowy, personalizacja, WooCommerce.
Version: 3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: miekka-grzywa
*/

:root{--bg:#faf9f6;--ink:#302d27;--muted:#746f65;--forest:#4b5142;--rose:#c98e79;--line:#e9e5dd;--cream:#f2ede5;--card:#f3f0ea;--white:#fff;--max:1420px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.6 'DM Sans',Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--rose);outline-offset:4px}img{display:block;max-width:100%}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.shell{width:min(calc(100% - 88px),var(--max));margin:auto}.topline{background:#4a5144;color:#f7f4ed;text-align:center;font-size:11px;letter-spacing:.12em;padding:9px 15px}.header{position:sticky;top:0;z-index:30;background:#faf9f6f5;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-row{height:83px;display:flex;align-items:center;gap:30px;justify-content:space-between}.brand{display:flex;align-items:center;gap:9px;white-space:nowrap;font:500 26px 'Playfair Display',Georgia,serif}.brand img{width:51px;height:51px;object-fit:contain}.brand small{font:18px 'DM Sans';color:#b78169}.links{display:flex;align-items:center;gap:clamp(12px,2vw,32px);font-size:12px;font-weight:600}.links a{transition:color .2s}.links a:hover{color:#bd806c}.icons{display:flex;align-items:center;gap:10px}.icon-btn{border:0;background:transparent;position:relative;padding:8px;display:grid;place-items:center}.icon-btn:hover{color:#ba806d}.counter{position:absolute;top:0;right:0;background:#a87963;color:white;border-radius:20px;min-width:17px;height:17px;font-size:10px;display:grid;place-items:center}.hamburger{display:none}.mobile-menu{display:none}.searchbox{display:none;position:absolute;right:max(25px,calc((100vw - var(--max))/2));top:100%;width:min(390px,calc(100vw - 30px));padding:18px;background:white;border:1px solid var(--line);box-shadow:0 18px 50px #3a2e1d20}.searchbox.open{display:block}.searchbox input{width:100%;border:1px solid var(--line);border-radius:8px;padding:13px}.hero{display:grid;grid-template-columns:minmax(330px,43%) minmax(0,57%);min-height:650px;background:#eae6db}.hero-copy{padding:clamp(52px,7vw,108px) clamp(28px,6vw,110px) 55px max(44px,calc((100vw - var(--max))/2));display:flex;flex-direction:column;justify-content:center;align-items:flex-start;position:relative;overflow:hidden}.hero-copy:after{content:'✳';position:absolute;bottom:22px;right:40px;color:#c8bca8;font-size:78px;font-weight:400;opacity:.4}.kicker{font-size:11px;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:#8b806f}.hero h1{font:500 clamp(54px,5.5vw,96px)/1.06 'Playfair Display',Georgia,serif;letter-spacing:-.06em;margin:25px 0 22px}.hero h1 em{font-style:italic;color:#a77762}.hero-desc{max-width:380px;font-size:16px;line-height:1.85;color:#655f55;margin:0 0 33px}.button{display:inline-flex;align-items:center;justify-content:center;gap:13px;border-radius:999px;background:var(--forest);color:#fff;border:1px solid var(--forest);padding:15px 26px;font-weight:600;font-size:12px;transition:transform .2s,background .2s}.button:hover{background:#303b30;transform:translateY(-2px)}.button.light{background:#fffaf2;border-color:#fffaf2;color:#3b332b}.hero-photo{overflow:hidden;position:relative;background:#50483c}.hero-photo img{height:100%;width:100%;object-fit:cover;object-position:77% center;transform:scale(1.08);transform-origin:right center}.hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#28201612,transparent 25%)}.photo-note{position:absolute;right:38px;bottom:30px;z-index:2;color:#fff;text-shadow:0 2px 10px #0009;font:italic 20px 'Playfair Display',serif}.trust{border-bottom:1px solid var(--line);background:#fffdf9}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:23px 0}.trust-item{display:flex;align-items:center;justify-content:center;gap:12px;color:#5c5a50;font-size:12px;border-right:1px solid var(--line)}.trust-item:last-child{border:0}.trust-item svg{width:25px;height:25px;color:#8a8c75}.section{padding:100px 0 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:32px}.section-head h2{font:500 clamp(32px,3.5vw,50px)/1.2 'Playfair Display',Georgia,serif;letter-spacing:-.035em;margin:11px 0 0}.section-head p{color:var(--muted);margin:10px 0 0;font-size:14px}.text-link{font-size:12px;font-weight:700;border-bottom:1px solid #9b8c7c;padding-bottom:5px;white-space:nowrap}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.category{position:relative;aspect-ratio:1/1.1;border-radius:12px;overflow:hidden;background:#e5ded3}.category img{width:100%;height:100%;object-fit:cover;transition:transform .45s}.category:hover img{transform:scale(1.045)}.category:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#261b17b9)}.category-label{position:absolute;z-index:2;bottom:22px;left:22px;right:20px;display:flex;justify-content:space-between;align-items:center;color:white;font:500 clamp(21px,2vw,29px) 'Playfair Display',serif}.category-label b{display:grid;place-items:center;background:#fffef5;color:#41392e;border-radius:50%;width:36px;height:36px;font:20px 'DM Sans'}.products-wrap{padding-bottom:30px}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:26px}.filter{padding:9px 18px;background:transparent;border:1px solid #d8d3c9;border-radius:40px;font-size:12px}.filter.active,.filter:hover{background:var(--forest);color:#fff;border-color:var(--forest)}.products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.product{min-width:0}.product-image{position:relative;aspect-ratio:1/1.12;overflow:hidden;background:#f0eae3;border-radius:10px}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.product:hover .product-image img{transform:scale(1.045)}.favorite{position:absolute;top:13px;right:13px;background:#fffefaed;border:0;width:35px;height:35px;border-radius:50%;font-size:22px;line-height:1;color:#554c44}.favorite.liked{color:#bd796c}.product-name{font-weight:600;font-size:14px;margin:15px 0 3px}.product-desc{font-size:11px;color:#80786f;margin:0 0 8px}.price{font-size:16px;font-weight:700}.add{width:100%;border:1px solid #6c705e;border-radius:7px;background:#6c705e;color:white;padding:11px;margin-top:13px;font-size:12px}.add:hover{background:#454b3e}.demo-note{font-size:11px;color:#8a8175;margin:20px 0 0}.feature-story{margin-top:100px;background:#e8e5db;display:grid;grid-template-columns:1fr 1fr;min-height:460px}.feature-story .image{overflow:hidden}.feature-story .image img{height:100%;width:100%;object-fit:cover;object-position:75% center}.story-text{padding:70px clamp(35px,6vw,100px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.story-text h2{font:500 clamp(34px,4vw,58px)/1.15 'Playfair Display',serif;letter-spacing:-.04em;margin:17px 0 21px}.story-text p{max-width:470px;color:#655e55;font-size:14px;line-height:1.9;margin:0 0 25px}.editorial{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.editorial a{position:relative;min-height:370px;overflow:hidden;border-radius:11px;background:#dfd2c5}.editorial img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.editorial a:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#231a16a8,transparent 80%)}.editorial-text{position:absolute;z-index:2;left:35px;bottom:33px;color:#fff}.editorial-text h3{font:500 clamp(28px,3vw,41px)/1.15 'Playfair Display',serif;margin:0 0 11px}.editorial-text span{font-size:12px}.newsletter{background:#e7e9df;padding:58px 0;margin-top:95px}.newsletter-row{display:flex;justify-content:space-between;gap:35px;align-items:center}.newsletter h2{font:500 clamp(29px,3vw,42px) 'Playfair Display',serif;margin:10px 0}.newsletter p{font-size:13px;color:#5d6557;margin:0}.newsletter .button{white-space:nowrap}.footer{background:#343d34;color:#f5f3e9;padding:67px 0 24px}.footer-grid{display:grid;grid-template-columns:2.2fr 1fr 1fr 1.2fr;gap:50px}.footer h3{font:500 30px 'Playfair Display',serif;margin:0 0 13px}.footer h4{font-size:12px;letter-spacing:.1em;margin:0 0 18px}.footer p,.footer a{font-size:12px;line-height:2.1;color:#d4d9cf;display:block}.footer-bottom{border-top:1px solid #586054;margin-top:45px;padding-top:20px;font-size:11px;color:#bac1b5}.shade{position:fixed;inset:0;background:#191b19a6;z-index:39;display:none}.shade.open{display:block}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(440px,100%);background:#fcfaf6;z-index:40;transform:translateX(102%);transition:transform .25s;display:flex;flex-direction:column;box-shadow:0 0 80px #0003}.drawer.open{transform:translateX(0)}.drawer-header{padding:25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.drawer-header h2{font:500 27px 'Playfair Display',serif;margin:0}.drawer-content{flex:1;overflow:auto;padding:22px 25px}.drawer-footer{border-top:1px solid var(--line);padding:24px}.cart-item{display:flex;gap:14px;border-bottom:1px solid var(--line);padding:14px 0}.cart-item img{width:80px;height:87px;object-fit:cover;border-radius:8px}.cart-item h3{font-size:13px;margin:0 0 5px}.quantity{display:flex;align-items:center;gap:11px;margin-top:10px}.quantity button{border:1px solid var(--line);background:white;width:28px;height:28px;border-radius:6px}.sum{display:flex;justify-content:space-between;font-weight:700;margin-bottom:17px}.checkout{width:100%;background:#c5c1b7;border:0;border-radius:8px;color:white;padding:14px;cursor:not-allowed}.empty{font-size:13px;color:#746d63;line-height:1.9}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,100px);transition:transform .25s;background:#424b3e;color:#fff;padding:13px 22px;border-radius:50px;z-index:50;font-size:12px;box-shadow:0 10px 30px #0003}.toast.show{transform:translate(-50%,0)}
@media(max-width:1200px){.links{gap:14px}.brand{font-size:22px}.products{grid-template-columns:repeat(4,1fr)}.hero{min-height:590px}.hero h1{font-size:clamp(51px,6vw,75px)}}@media(max-width:900px){.shell{width:min(calc(100% - 40px),var(--max))}.links{display:none}.hamburger{display:grid}.header-row{height:70px}.mobile-menu.open{display:flex;flex-direction:column;gap:0;padding:10px 20px 20px;border-top:1px solid var(--line)}.mobile-menu a{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.hero{grid-template-columns:1fr 1fr;min-height:530px}.hero-copy{padding:45px 30px}.hero h1{font-size:56px}.categories{gap:12px}.category-label{font-size:21px;left:14px;right:12px;bottom:15px}.products{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:2fr 1fr 1fr;gap:25px}.footer-grid>div:last-child{grid-column:1/-1}}@media(max-width:650px){.topline{font-size:9px}.shell{width:calc(100% - 34px)}.brand{font-size:20px}.brand img{width:40px;height:40px}.icons{gap:0}.icons .account-icon{display:none}.hero{display:flex;flex-direction:column-reverse;min-height:0}.hero-photo{height:380px}.hero-photo img{object-position:76% center;transform:scale(1.1)}.photo-note{font-size:15px;right:18px;bottom:15px}.hero-copy{padding:35px 22px 42px}.hero-copy:after{font-size:45px}.hero h1{font-size:clamp(51px,12vw,70px);margin:13px 0 13px}.hero-desc{font-size:13px;margin-bottom:22px}.button{padding:13px 20px}.trust-grid{grid-template-columns:1fr 1fr;row-gap:20px;padding:24px 0}.trust-item{font-size:10px;gap:7px;justify-content:flex-start;padding-left:10px}.trust-item:nth-child(2){border-right:0}.trust-item svg{width:20px;height:20px}.section{padding-top:63px}.section-head{align-items:start}.section-head h2{font-size:34px}.section-head p{font-size:12px}.text-link{font-size:11px}.categories{grid-template-columns:repeat(2,1fr);gap:11px}.category{aspect-ratio:1/1.12}.category-label{font-size:20px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.product-name{font-size:12px}.price{font-size:14px}.add{font-size:11px}.feature-story{display:flex;flex-direction:column;margin-top:68px}.feature-story .image{height:310px}.story-text{padding:42px 23px}.story-text h2{font-size:37px}.editorial{grid-template-columns:1fr}.editorial a{min-height:320px}.newsletter{margin-top:65px}.newsletter-row{flex-direction:column;align-items:start}.footer-grid{grid-template-columns:1fr 1fr;gap:35px}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}.footer{padding-top:50px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* Integracja z WooCommerce */
.woocommerce-page .site-content,.site-content{max-width:1220px;margin:52px auto 90px;padding:0 24px;min-height:45vh}
.woocommerce-page .site-content h1,.site-content h1{font-family:'Playfair Display',serif;font-size:clamp(32px,4vw,54px);font-weight:500}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;overflow:hidden}
.woocommerce ul.products li.product img{border-radius:9px;aspect-ratio:1/1;object-fit:cover}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:'Playfair Display',serif;font-size:21px!important;color:var(--ink)}
.woocommerce ul.products li.product .price{color:var(--forest);font-size:16px;font-weight:700}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--forest);color:white;border-radius:5px;padding:13px 20px}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#343b30;color:white}
.woocommerce .quantity .qty{padding:8px;min-width:65px}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--forest)}
.woocommerce .woocommerce-message::before,.woocommerce .woocommerce-info::before{color:var(--forest)}
.woocommerce div.product .product_title{font-family:'Playfair Display',serif}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce .select2-container .select2-selection--single{border:1px solid #cfc9bd;border-radius:5px;padding:12px;background:white;height:auto}
.woocommerce-cart .wc-block-cart,.woocommerce-checkout .wc-block-checkout{font-family:'DM Sans',sans-serif}
.mg-product-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.mg-product-card>a:first-child{display:block;aspect-ratio:1/1;background:var(--cream);overflow:hidden}
.mg-product-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.mg-product-card:hover img{transform:scale(1.035)}
.mg-product-card .mg-product-info{padding:16px 18px 20px;display:flex;flex-direction:column;gap:5px;flex:1}
.mg-product-card h3{font:500 21px/1.25 'Playfair Display',serif;margin:0}
.mg-product-card .mg-price{font-weight:700;color:var(--forest)}
.mg-product-card .mg-cta{margin-top:auto;display:inline-block;font-size:13px;border-bottom:1px solid var(--forest);align-self:start;padding-top:12px}
.mg-empty{grid-column:1/-1;padding:35px;background:#f2ede5;border-radius:12px;text-align:center}
.mg-search{display:flex;gap:8px;align-items:center}
.mg-search input{min-width:0;flex:1;border:1px solid #ddd6cb;border-radius:4px;padding:11px 12px}
.mg-search button{background:var(--forest);color:white;border:0;padding:11px 18px;border-radius:4px}
.mg-cart-link{position:relative;display:flex;align-items:center}
.mg-cart-count{position:absolute;right:-8px;top:-7px;background:var(--forest);color:white;font-size:10px;line-height:17px;min-width:17px;text-align:center;border-radius:50%}
.mg-head-icons{display:flex;align-items:center;gap:12px}
.mg-category-link{cursor:pointer}
.mg-mobile-nav{display:none}
@media(max-width:850px){.mg-mobile-nav{display:block}.mg-desktop-nav{display:none}.mg-head-icons{gap:5px}}

/* Miękka Grzywa 1.1: zdjęcie HERO to osobny zasób, bez banera i napisów. */
.hero.hero--photo-only{display:block;position:relative;width:100%;height:clamp(440px,44vw,720px);min-height:0;overflow:hidden;background:#dbc8a6;isolation:isolate}
.hero--photo-only .hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;transform:none;max-width:none}
.hero--photo-only:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,29,20,.30),transparent 44%);z-index:0;pointer-events:none}
.hero--photo-only .hero-actions{position:absolute;z-index:1;left:max(5vw,calc((100vw - var(--max))/2));bottom:clamp(35px,6vw,90px);display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:calc(100% - 34px)}
.hero--photo-only .hero-actions .button{font-size:14px;min-height:49px;padding:14px 24px;box-shadow:0 5px 22px #0002}
.hero--photo-only .hero-actions .hero-primary{background:#4b5142;color:#fff;border-color:#4b5142}
.hero--photo-only .hero-actions .hero-secondary{background:#fffcf1ed;color:#3b4034;border-color:#fffcf1ed}
@media(max-width:650px){.hero.hero--photo-only{height:clamp(440px,110vw,610px)}.hero--photo-only .hero-bg{object-position:67% center}.hero--photo-only:after{background:linear-gradient(0deg,rgba(25,25,21,.43),transparent 42%)}.hero--photo-only .hero-actions{left:17px;right:17px;bottom:24px;max-width:none;gap:9px}.hero--photo-only .hero-actions .button{font-size:12px;padding:12px 16px;min-height:44px}}

/* 2.0 — Edytor wizualny Gutenberg. Sekcje, fotografie i przyciski to natywne bloki WP. */
:root{--mg-radius:14px;--mg-content-width:1200px;--mg-headline-scale:1}
.mg-builder-page{overflow:hidden}.mg-builder-page .entry-content{margin:0;max-width:none}
.mg-builder-page .entry-content>*:not(.alignfull):not(.alignwide){max-width:var(--mg-content-width);margin-left:auto;margin-right:auto}
.mg-builder-page .entry-content>.alignwide{width:min(calc(100% - 60px),var(--mg-content-width));max-width:none;margin-left:auto;margin-right:auto}
.mg-builder-page .entry-content>.alignfull{width:100%;max-width:none;margin-left:0;margin-right:0}
.mg-builder-page .wp-block-group{box-sizing:border-box}
.mg-builder-page .wp-block-cover{isolation:isolate}
.mg-builder-page .mg-hero-cover{min-height:clamp(480px,49vw,720px);display:flex;align-items:flex-end}
.mg-builder-page .mg-hero-cover .wp-block-cover__inner-container{width:min(calc(100% - 90px),var(--mg-content-width));margin:0 auto;padding-bottom:clamp(30px,6vw,85px)}
.mg-builder-page .mg-hero-cover .wp-block-cover__image-background{object-position:center 50%}
.mg-builder-page .mg-hero-cover .wp-block-buttons{gap:12px}
.mg-builder-page .wp-block-button__link{background:var(--forest);color:#fff;border-radius:999px;padding:13px 25px;font-weight:600;font-size:14px;text-decoration:none;transition:transform .2s}
.mg-builder-page .wp-block-button__link:hover{transform:translateY(-2px);filter:brightness(.93)}
.mg-builder-page .is-style-outline>.wp-block-button__link{background:#fffdf5ee;color:var(--forest);border:1px solid var(--forest)}
.mg-builder-page .mg-section{padding-top:clamp(55px,7vw,95px);padding-bottom:clamp(55px,7vw,95px)}
.mg-builder-page h1,.mg-builder-page h2,.mg-builder-page h3{font-family:'Playfair Display',Georgia,serif;font-weight:500;line-height:1.16}
.mg-builder-page h1{font-size:calc(clamp(44px,5.5vw,88px) * var(--mg-headline-scale))}
.mg-builder-page h2{font-size:calc(clamp(30px,3.6vw,50px) * var(--mg-headline-scale))}
.mg-builder-page h3{font-size:calc(clamp(23px,2.4vw,33px) * var(--mg-headline-scale))}
.mg-builder-page .mg-category-grid .wp-block-cover{min-height:330px;border-radius:var(--mg-radius);overflow:hidden}
.mg-builder-page .mg-category-grid .wp-block-cover__inner-container{align-self:end}
.mg-builder-page .mg-category-grid a{color:#fff;text-decoration:none}
.mg-builder-page .mg-category-grid .wp-block-heading{font-size:clamp(21px,2.1vw,29px)}
.mg-builder-page .mg-story-image img{width:100%;height:auto;object-fit:cover;border-radius:var(--mg-radius)}
.mg-builder-page .mg-muted-section{background:var(--cream)}
.mg-builder-page .mg-olive-section{background:#e7e9df}
.mg-builder-page .wp-block-columns{gap:clamp(18px,3vw,42px)}
.mg-builder-page .woocommerce ul.products{margin-top:32px}
.mg-builder-page .wp-block-separator{border-color:var(--line)}
.mg-builder-page .wp-block-image img{border-radius:var(--mg-radius)}
.mg-builder-page .mg-section p{max-width:700px}
.mg-builder-page .wp-block-cover .has-background-dim{z-index:0}
.mg-builder-page .wp-block-cover__inner-container{z-index:1}
.mg-builder-page .wp-block-cover__image-background{z-index:-1}
.mg-header-nav .menu{list-style:none;display:flex;gap:clamp(12px,2vw,32px);align-items:center;margin:0;padding:0}
.mg-header-nav .menu-item{position:relative}.mg-header-nav .sub-menu{display:none;position:absolute;left:0;top:100%;min-width:210px;background:var(--bg);box-shadow:0 10px 25px #0002;padding:14px;list-style:none;z-index:99}
.mg-header-nav .menu-item:hover>.sub-menu,.mg-header-nav .menu-item:focus-within>.sub-menu{display:block}
.mg-header-nav .sub-menu a{display:block;padding:8px}
.mg-mobile-list .menu{list-style:none;padding:0;margin:0}.mg-mobile-list .menu a{display:block;padding:12px 0;border-bottom:1px solid var(--line)}
.mg-mobile-list .sub-menu{list-style:none;padding-left:18px}
.mg-footer-menu .menu{list-style:none;padding:0;margin:0}
.mg-footer-menu .menu a{display:block;font-size:12px;line-height:2.1;color:#d4d9cf}
.brand .custom-logo{max-width:55px;max-height:55px;width:auto;height:auto;object-fit:contain}
@media(max-width:900px){.mg-header-nav{display:none}.mg-builder-page .mg-category-grid{flex-wrap:wrap!important}.mg-builder-page .mg-category-grid>.wp-block-column{flex-basis:calc(50% - 16px)!important}}
@media(max-width:650px){.mg-builder-page .entry-content>.alignwide{width:calc(100% - 32px)}.mg-builder-page .mg-hero-cover{min-height:560px}.mg-builder-page .mg-hero-cover .wp-block-cover__inner-container{width:calc(100% - 34px);padding-bottom:28px}.mg-builder-page .mg-category-grid>.wp-block-column{flex-basis:calc(50% - 10px)!important}.mg-builder-page .mg-category-grid .wp-block-cover{min-height:240px}.mg-builder-page .mg-section{padding-left:18px!important;padding-right:18px!important}.mg-builder-page .wp-block-columns:not(.mg-category-grid){flex-direction:column}.mg-builder-page .wp-block-buttons{gap:9px}.mg-builder-page .wp-block-button__link{font-size:12px;padding:12px 16px}}

/* 2.1: główne kategorie → podkategorie → produkty */
.brand img{width:auto;max-width:200px;height:61px;object-fit:contain}
.mg-catalog-hub{padding:10px 0 45px}.mg-catalog-hub>h2,.mg-taxonomy>h1{font:500 clamp(32px,4vw,55px)/1.2 'Playfair Display',serif;margin:10px 0 10px}.mg-catalog-hub>p:not(.kicker),.mg-taxonomy>p{color:var(--muted)}
.mg-cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin:34px 0 0}.mg-cat-tile{display:flex;flex-direction:column;position:relative;overflow:hidden;border-radius:var(--mg-radius,14px);background:#f1ede5;border:1px solid #e9e2d7;transition:transform .2s,box-shadow .2s;min-width:0}.mg-cat-tile[href]:hover{transform:translateY(-3px);box-shadow:0 14px 40px #40332219}.mg-cat-media{height:210px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#ece8df,#dcdcca)}.mg-cat-photo{width:100%;height:100%;object-fit:cover}.mg-cat-placeholder{font:normal 90px/1 Georgia,serif;color:#9ba38e;opacity:.65}.mg-cat-info{padding:19px 48px 23px 20px;display:flex;flex-direction:column;gap:4px}.mg-cat-info strong{font:500 25px/1.2 'Playfair Display',serif}.mg-cat-info small{color:#6b695e;font-size:12px}.mg-cat-arrow{position:absolute;right:19px;bottom:20px;font-size:22px;color:#5b6553}.mg-cat-soon{padding:0 20px 12px;font-size:10px;color:#80796c}.mg-taxonomy{padding-top:55px;padding-bottom:90px;min-height:65vh}.mg-breadcrumb{font-size:12px;color:#74766b;margin-bottom:28px}.mg-breadcrumb a{text-decoration:underline;text-underline-offset:3px}.mg-breadcrumb span{padding:0 8px}.mg-subcat-grid{margin-top:28px}.mg-tax-products{margin-top:32px}.mg-back{margin-top:35px}.mg-back a{font-weight:600;color:#4b5142}
@media(max-width:900px){.mg-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand img{max-width:165px;height:50px}}
@media(max-width:560px){.mg-cat-grid{gap:10px}.mg-cat-media{height:145px}.mg-cat-info{padding:13px 25px 17px 13px}.mg-cat-info strong{font-size:19px}.mg-cat-info small{font-size:11px}.mg-cat-arrow{right:9px;bottom:10px;font-size:16px}.mg-taxonomy{padding-top:30px}.brand img{max-width:130px;height:42px}}

/* Miękka Grzywa 2.2 — kontrola rozmiaru i zdjęć na wszystkich poziomach kategorii. */
.mg-cat-tile{border-radius:var(--mg-tile-radius,var(--mg-radius,14px));background:var(--mg-tile-tile,#f1ede5)}
.mg-cat-tile .mg-cat-media{height:var(--mg-tile-height,210px);background:var(--mg-tile-background,#f1ede5)}
.mg-cat-tile .mg-cat-photo{width:100%;height:100%;object-fit:var(--mg-tile-fit,contain);object-position:var(--mg-tile-position,center)}
.mg-cat-tile .mg-cat-info{padding:var(--mg-tile-padding,20px);padding-right:40px}
.mg-cat-tile .mg-cat-info strong{font-size:var(--mg-tile-font,25px);color:var(--mg-tile-text,#302d27)}
.mg-cat-tile .mg-cat-info small{font-size:var(--mg-tile-desc,12px)}
@media(max-width:700px){.mg-catalog-hub .mg-cat-grid,.mg-taxonomy .mg-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){.mg-cat-tile .mg-cat-info strong{font-size:min(var(--mg-tile-font,25px),20px)}}

/* Miękka Grzywa 2.3: niezależne zdjęcie i edytowalna nakładka sekcji historii. */
.feature-story .image{position:relative;isolation:isolate}
.feature-story .image::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:#343d34;opacity:0}
.feature-story .image img{display:block;object-position:50% center}

/* 2.4 — autorska sekcja bohaterów, niezależne zdjęcia i bajki. */
.mg-characters .section-head{margin-bottom:30px}.mg-characters .section-head p{max-width:640px}
.mg-character-grid{display:grid;grid-template-columns:repeat(var(--mg-character-columns,3),minmax(0,1fr));gap:22px}
.mg-character-card{background:#f5f1e9;border:1px solid #e5dfd2;border-radius:15px;overflow:hidden;box-shadow:0 7px 30px #483d2b0c;transition:transform .2s,box-shadow .2s}
.mg-character-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px #483d2b18}
.mg-character-image{display:block;aspect-ratio:1/1;overflow:hidden;background:#e7e0d2}
.mg-character-image img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .3s}
.mg-character-card:hover img{transform:scale(1.035)}.mg-character-placeholder{height:100%;display:grid;place-items:center;font-size:100px;color:#b8b39c}
.mg-character-info{padding:23px}.mg-character-eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#797e65}
.mg-character-info h3{font:500 clamp(25px,2.4vw,35px)/1.2 'Playfair Display',serif;margin:8px 0 10px}
.mg-character-info p{color:#67665b;line-height:1.65;min-height:3em;margin:0 0 17px}
.mg-character-read{font-weight:600;color:#4c5943;text-decoration:underline;text-underline-offset:4px}
.mg-character-video-label{display:block;margin-top:12px;color:#787d69;font-size:12px}
.mg-characters-empty{padding:35px;border:1px dashed #c7c6b9;border-radius:14px;background:#f5f1e9;color:#626655}
.mg-character-single{padding-top:42px;padding-bottom:100px}.mg-character-back{margin-bottom:30px}.mg-character-back a{color:#56604b}
.mg-character-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,5vw,90px);align-items:center}
.mg-character-portrait{background:#ece8df;border-radius:16px;overflow:hidden;min-height:280px}
.mg-character-portrait img{width:100%;height:auto;max-height:620px;object-fit:contain;display:block}
.mg-character-heading h1{font:500 clamp(48px,5vw,80px)/1.1 'Playfair Display',serif;margin:12px 0 22px}
.mg-character-heading p{font-size:17px;line-height:1.7;color:#646358}.mg-character-heading .button{margin-top:18px;display:inline-block}
.mg-character-tagline{font-style:italic;color:#7b826e!important}
.mg-character-story{max-width:780px;margin:85px auto}.mg-character-prose{font-size:18px;line-height:1.9;color:#49483e}.mg-character-prose p{margin:0 0 22px}
.mg-character-gallery,.mg-character-film{margin:75px 0}.mg-character-gallery h2,.mg-character-film h2{font:500 clamp(30px,3vw,46px)/1.2 'Playfair Display',serif;margin-bottom:24px}
.mg-character-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.mg-character-photos img{width:100%;height:280px;object-fit:contain;background:#eee9df;border-radius:12px}
.mg-character-video,.mg-character-embed iframe{width:100%;max-width:100%;aspect-ratio:16/9;border:0;border-radius:14px;background:#171717}
.mg-character-embed{max-width:1050px}
@media(max-width:900px){.mg-character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-character-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.mg-character-grid{grid-template-columns:1fr}.mg-character-hero{grid-template-columns:1fr}.mg-character-single{padding-top:25px}.mg-character-story{margin:45px 0}.mg-character-photos{grid-template-columns:1fr}.mg-character-photos img{height:auto;max-height:460px}.mg-character-info p{min-height:0}}

/* Miękka Grzywa 2.5 — sekcje własne */
.mg-custom-home-section{padding-top:48px;padding-bottom:48px}.mg-custom-home-inner{max-width:1100px;margin:0 auto}.mg-custom-home-inner img{max-width:100%;height:auto}

/* 2.8: strony kategorii, stada, wideo */
.mg-landing-intro{padding:26px 0 10px;max-width:960px}.mg-landing-intro h2{font-size:clamp(28px,3vw,45px);margin:0 0 12px}.mg-landing-intro p{line-height:1.75}
.mg-landing-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0 40px}.mg-landing-tile{display:block;background:#f5f1e9;border:1px solid #e7e0d6;border-radius:15px;overflow:hidden;text-decoration:none;color:inherit}.mg-landing-tile img{display:block;width:100%;height:230px;object-fit:cover}.mg-landing-tile-body{padding:18px}.mg-landing-tile h3{margin:0 0 8px;font-size:22px}.mg-landing-tile p{margin:0;line-height:1.5}
.mg-landing-video{padding:34px 0}.mg-landing-video h2{margin:0 0 20px;font-size:clamp(27px,3vw,40px)}.mg-landing-video video,.mg-landing-video iframe{display:block;width:100%;max-width:100%;aspect-ratio:16/9;border:0;border-radius:15px}.mg-landing-video .mg-character-embed{max-width:950px}
.mg-landing-cta{padding:25px 0 45px}.mg-landing-cta .button{display:inline-block}.mg-home-videos{padding-top:65px;padding-bottom:70px}.mg-home-videos .section-head{margin-bottom:24px}.mg-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.mg-video-item{min-width:0}.mg-video-item h3{margin:12px 0}.mg-video-item video,.mg-video-item iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;background:#171717}
@media(max-width:750px){.mg-landing-tiles,.mg-video-grid{grid-template-columns:1fr}.mg-landing-tile img{height:auto;max-height:300px}}

/* 2.9: widoczna sekcja filmów, także przed publikacją nagrań */
.mg-video-placeholder{grid-column:1/-1;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px dashed #cfc6b8;border-radius:16px;background:#f5f1e9;text-align:center;padding:32px;color:#5a584f}.mg-video-placeholder p{margin:0;line-height:1.5}.mg-video-play{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#e5ddcf;color:#595749;font-size:21px;padding-left:3px}
