/*
Theme Name: Садовый уголок
Theme URI: https://sadoviyugolok.ru
Author: Садовый уголок
Description: Быстрая адаптивная тема интернет-магазина саженцев для WooCommerce.
Version: 1.0.3
Text Domain: sadoviy-ugolok
Requires at least: 6.2
Requires PHP: 7.4
*/

:root{--green:#244b35;--green-2:#376d4d;--leaf:#789b4a;--lime:#e7f0d7;--cream:#f7f3e9;--paper:#fff;--ink:#203127;--muted:#65736a;--line:#dfe6dd;--accent:#e59a3a;--red:#bc4e3e;--radius:20px;--shadow:0 12px 34px rgba(31,66,45,.10);--wrap:1280px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit}.container{width:min(calc(100% - 32px),var(--wrap));margin:auto}.screen-reader-text{position:absolute;left:-9999px}.skip-link:focus{left:16px;top:16px;z-index:9999;background:#fff;padding:10px}
.topbar{background:var(--green);color:#fff;font-size:13px}.topbar__inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar__links{display:flex;gap:22px;color:#e3eee7}.site-header{background:#fff;position:relative;z-index:20}.header-main{display:grid;grid-template-columns:240px minmax(260px,1fr) auto;gap:28px;align-items:center;padding:22px 0}.brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:21px;line-height:1.05}.brand__mark{width:48px;height:48px;border-radius:50%;background:var(--lime);display:grid;place-items:center;color:var(--green)}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:600;margin-top:5px;letter-spacing:.02em}.search-form{display:flex;background:#f4f6f2;border:1px solid var(--line);border-radius:14px;overflow:hidden}.search-form input{width:100%;border:0;background:transparent;padding:14px 17px;outline:0}.search-form button{border:0;background:var(--green);color:#fff;padding:0 22px;cursor:pointer}.header-actions{display:flex;gap:20px}.header-action{display:grid;justify-items:center;font-size:12px;color:var(--muted);position:relative}.header-action svg{color:var(--green);margin-bottom:3px}.cart-count{position:absolute;right:7px;top:-7px;background:var(--accent);color:#fff;border-radius:999px;min-width:19px;height:19px;display:grid;place-items:center;font-size:10px;font-weight:800}.main-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.nav-inner{display:flex;align-items:center;gap:34px;min-height:54px}.catalog-button{align-self:stretch;display:flex;align-items:center;gap:10px;background:var(--green);color:#fff;padding:0 24px;font-weight:750}.menu{display:flex;list-style:none;margin:0;padding:0;gap:30px}.menu a{font-weight:650}.menu a:hover{color:var(--green-2)}.mobile-toggle{display:none;border:0;background:none;font-size:24px}
.hero{padding:28px 0 18px}.hero__grid{display:grid;grid-template-columns:1.65fr .75fr;gap:20px}.hero__main{min-height:440px;border-radius:28px;overflow:hidden;background:linear-gradient(110deg,rgba(31,68,45,.97),rgba(54,103,73,.78)),radial-gradient(circle at 82% 20%,#b9d37c 0 17%,transparent 18%);position:relative;color:#fff;padding:58px}.hero__main:after{content:"";position:absolute;width:330px;height:330px;border:70px solid rgba(255,255,255,.09);border-radius:50%;right:-40px;bottom:-150px}.eyebrow{display:inline-flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:800;color:#dbe9c8}.hero h1{font:800 clamp(38px,5vw,66px)/1.02 Georgia,serif;max-width:690px;margin:18px 0}.hero p{font-size:18px;max-width:570px;color:#e9f1eb}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff!important;border:0;border-radius:12px;padding:14px 24px;font-weight:800;cursor:pointer}.button:hover{filter:brightness(.95);transform:translateY(-1px)}.button--light{background:#fff;color:var(--green)!important}.hero__side{display:grid;gap:20px}.promo-card{border-radius:24px;padding:28px;min-height:210px;background:var(--cream);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;position:relative;overflow:hidden}.promo-card:after{content:"✿";position:absolute;font-size:150px;color:rgba(56,105,75,.1);right:-10px;top:-45px}.promo-card--warm{background:#f4dfc5}.promo-card strong{font:750 25px/1.1 Georgia,serif;max-width:240px}.promo-card a{margin-top:16px;font-weight:800;color:var(--green)}
.benefits{padding:18px 0 48px}.benefits__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.benefit{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px}.benefit__icon{width:43px;height:43px;border-radius:12px;background:var(--lime);display:grid;place-items:center;font-size:21px}.benefit strong{display:block;font-size:14px}.benefit span{color:var(--muted);font-size:12px}
.section{padding:48px 0}.section--tint{background:var(--cream)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.section h2{font:750 clamp(29px,4vw,42px)/1.1 Georgia,serif;margin:0}.section-head p{color:var(--muted);margin:6px 0 0}.section-link{font-weight:800;color:var(--green);white-space:nowrap}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.category-card{background:#fff;border-radius:20px;padding:14px;box-shadow:0 6px 22px rgba(29,59,40,.06);transition:.2s}.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.category-card__image{aspect-ratio:1/1;border-radius:15px;overflow:hidden;background:var(--lime);display:grid;place-items:center}.category-card__image img{width:100%;height:100%;object-fit:cover}.category-card__placeholder{font-size:54px}.category-card h3{font-size:16px;margin:13px 3px 2px}.category-card span{font-size:12px;color:var(--muted);margin-left:3px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:18px;margin:0!important}.product-card,.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;border:1px solid var(--line);border-radius:20px;padding:12px!important;position:relative;transition:.2s}.product-card:hover,.woocommerce ul.products li.product:hover{box-shadow:var(--shadow);transform:translateY(-3px)}.product-card__image,.woocommerce ul.products li.product a img{aspect-ratio:1/1;border-radius:14px;background:#f2f5ef;object-fit:cover;margin:0 0 14px!important}.badge,.onsale{position:absolute!important;left:22px!important;top:22px!important;right:auto!important;min-height:auto!important;min-width:auto!important;line-height:1!important;border-radius:8px!important;background:var(--red)!important;color:#fff;padding:7px 9px!important;font-size:11px!important;font-weight:800!important;margin:0!important}.product-card h3,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:1.35;padding:0!important;margin:8px 2px!important;min-height:43px}.price,.woocommerce ul.products li.product .price{display:block!important;color:var(--green)!important;font-size:19px!important;font-weight:850!important;margin:9px 2px!important}.price del{color:#8b968f;font-size:13px;font-weight:500}.product-card .button,.woocommerce ul.products li.product .button{display:flex!important;margin:10px 0 0!important;background:var(--green)!important;border-radius:10px!important;padding:11px 14px!important;font-size:13px!important}
.story{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.story__visual{min-height:410px;border-radius:28px;background:linear-gradient(145deg,#dbe8c7,#799b53);position:relative;overflow:hidden}.story__visual:before{content:"С любовью к саду";position:absolute;right:30px;bottom:30px;background:#fff;border-radius:18px;padding:18px 24px;font:700 22px Georgia,serif;box-shadow:var(--shadow)}.story__visual:after{content:"❦";position:absolute;font-size:250px;color:rgba(255,255,255,.45);left:50px;top:40px}.story p{color:var(--muted);font-size:17px}.checks{list-style:none;padding:0;display:grid;gap:10px}.checks li:before{content:"✓";display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--lime);color:var(--green);font-weight:900;margin-right:10px}
.newsletter{background:var(--green);color:#fff;border-radius:28px;padding:42px 50px;display:flex;align-items:center;justify-content:space-between;gap:30px}.newsletter h2{color:#fff;font-size:32px}.newsletter p{color:#d9e7dd;margin:7px 0 0}.newsletter form{display:flex;min-width:min(100%,480px);background:#fff;border-radius:13px;overflow:hidden}.newsletter input{border:0;padding:15px 18px;flex:1;min-width:0}.newsletter button{border-radius:0}
.site-footer{background:#1d3628;color:#d8e3db;margin-top:60px;padding:54px 0 24px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:45px}.site-footer h3{color:#fff;font-size:15px}.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px;font-size:14px}.site-footer p{color:#aebdb3}.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:22px;font-size:12px;color:#99aa9f;display:flex;justify-content:space-between}
.content-area{padding:36px 0 70px}.woocommerce-layout{min-width:0}.woocommerce-breadcrumb{color:var(--muted);font-size:13px;margin-bottom:24px!important}.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{margin-bottom:24px}.woocommerce .quantity .qty{padding:10px;border:1px solid var(--line);border-radius:8px}.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);column-gap:54px;align-items:start}.woocommerce div.product:after{content:"";display:table;clear:both}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:auto!important;margin:0!important;min-width:0}.woocommerce div.product div.images{grid-column:1;grid-row:1}.woocommerce div.product div.summary{grid-column:2;grid-row:1;background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;position:sticky;top:20px}.woocommerce div.product .product_title{font:750 clamp(30px,3vw,42px)/1.14 Georgia,serif;margin:0 0 16px;overflow-wrap:anywhere}.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:28px!important;margin:16px 0!important}.woocommerce-product-gallery{max-width:100%}.woocommerce-product-gallery .flex-viewport,.woocommerce-product-gallery__image{border-radius:20px;overflow:hidden;background:#f4f6f2}.woocommerce-product-gallery__image img{width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:cover}.woocommerce-product-gallery .flex-control-thumbs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 0!important;padding:0!important;list-style:none}.woocommerce-product-gallery .flex-control-thumbs li{float:none!important;width:auto!important;margin:0!important}.woocommerce-product-gallery .flex-control-thumbs img{width:100%!important;aspect-ratio:1/1;object-fit:cover;border-radius:12px;opacity:.62}.woocommerce-product-gallery .flex-control-thumbs img.flex-active{opacity:1;outline:2px solid var(--green);outline-offset:2px}.woocommerce div.product form.cart{display:flex;align-items:stretch;gap:10px;margin:24px 0!important}.woocommerce div.product form.cart .quantity{float:none!important;margin:0!important}.woocommerce div.product form.cart .button{float:none!important;flex:1;background:var(--green)!important;border-radius:11px!important;min-height:48px}.woocommerce div.product .product_meta{border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:13px;display:grid;gap:7px}.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related.products,.woocommerce div.product .upsells.products{grid-column:1/-1;width:100%;min-width:0}.woocommerce div.product .woocommerce-tabs{margin-top:52px}.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;gap:8px;padding:0!important;margin:0 0 22px!important;overflow-x:auto}.woocommerce div.product .woocommerce-tabs ul.tabs:before{border-bottom-color:var(--line)!important}.woocommerce div.product .woocommerce-tabs ul.tabs li{border:1px solid var(--line)!important;background:#f5f7f3!important;border-radius:10px 10px 0 0!important;margin:0!important;white-space:nowrap}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#fff!important;border-bottom-color:#fff!important}.woocommerce div.product .woocommerce-tabs .panel{border:1px solid var(--line);border-radius:0 18px 18px 18px;padding:28px;margin:0!important;max-width:none}.woocommerce div.product .related.products,.woocommerce div.product .upsells.products{display:block!important;margin-top:54px}.woocommerce div.product .related.products>h2,.woocommerce div.product .upsells.products>h2{font:750 32px/1.2 Georgia,serif;margin:0 0 24px}.woocommerce table.shop_attributes{border:0}.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{padding:12px 14px;border-bottom:1px solid var(--line)}.woocommerce-message,.woocommerce-info{border-top-color:var(--green)!important}.woocommerce-message:before,.woocommerce-info:before{color:var(--green)!important}.page-title{font:750 42px Georgia,serif}
@media(max-width:1024px){.header-main{grid-template-columns:210px 1fr}.header-actions{display:none}.category-grid{grid-template-columns:repeat(3,1fr)}.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}.hero__grid{grid-template-columns:1fr}.hero__side{grid-template-columns:1fr 1fr}.benefits__grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.woocommerce div.product{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);column-gap:28px}.woocommerce div.product div.summary{padding:22px}}
@media(max-width:820px){.woocommerce div.product{display:block}.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%!important}.woocommerce div.product div.summary{position:static;margin-top:28px!important}.woocommerce div.product .woocommerce-tabs{margin-top:40px}.woocommerce div.product .related.products,.woocommerce div.product .upsells.products{margin-top:42px}}
@media(max-width:720px){.topbar__links,.main-nav .menu{display:none}.topbar__inner{justify-content:center}.header-main{grid-template-columns:1fr auto;padding:14px 0}.brand small{display:none}.header-main .search-form{grid-column:1/-1;grid-row:2}.mobile-toggle{display:block}.main-nav{display:none}.hero__main{padding:34px 25px;min-height:460px}.hero h1{font-size:40px}.hero__side{grid-template-columns:1fr}.promo-card{min-height:170px}.benefits__grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.category-card{padding:9px}.section{padding:36px 0}.section-head{align-items:start}.section-link{display:none}.story{grid-template-columns:1fr;gap:28px}.story__visual{min-height:300px}.newsletter{padding:30px 22px;display:block}.newsletter form{margin-top:20px;min-width:0}.footer-grid{grid-template-columns:1fr}.copyright{display:block}.product-card h3,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important}.container{width:min(calc(100% - 22px),var(--wrap))}.woocommerce div.product div.summary{padding:20px 16px}.woocommerce div.product .product_title{font-size:29px}.woocommerce div.product form.cart{flex-wrap:wrap}.woocommerce div.product form.cart .button{min-width:190px}.woocommerce div.product .woocommerce-tabs .panel{padding:20px 15px}.woocommerce div.product .related.products>h2,.woocommerce div.product .upsells.products>h2{font-size:27px}}
@media(max-width:440px){.woocommerce ul.products{grid-template-columns:1fr}.woocommerce-product-gallery .flex-control-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Gallery active thumbnail: keep the highlight inside the clipped item. */
.woocommerce-product-gallery .flex-control-thumbs img{display:block;border:3px solid transparent;border-radius:12px;box-sizing:border-box;outline:0!important;transition:opacity .2s ease,border-color .2s ease,box-shadow .2s ease}
.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:.86}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active{opacity:1;border-color:var(--green);outline:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}

/* Keep the purchase summary inside its product column; sticky positioning
   overlapped the tabs when the gallery and summary had different heights. */
.woocommerce div.product div.summary{position:static!important;top:auto!important}
