/*
Theme Name: Yonex AI
Theme URI: https://yonexest.ee/
Author: Yonex Eesti
Description: Yonex Eesti iseseisev, mobiilisõbralik WordPressi ja WooCommerce'i teema.
Version: 0.1.10
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: yonex-ai
*/

:root{--ink:#172337;--muted:#59667a;--blue:#1457a5;--pale:#f2f5f8;--line:#dde4eb;--white:#fff;--max:1220px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--white);font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #eea800;outline-offset:3px}.wrap{width:min(var(--max),calc(100% - 40px));margin-inline:auto}.site-header{position:relative;z-index:30;background:#fff;border-bottom:1px solid var(--line)}.header-inner{min-height:86px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;flex:none}.brand img{width:170px;max-height:66px;object-fit:contain}.primary-nav{margin-left:auto}.primary-nav ul{display:flex;align-items:center;gap:22px;list-style:none;margin:0;padding:0}.primary-nav a{display:block;color:var(--ink);font-size:.9rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.header-actions{display:flex;align-items:center;gap:12px}.button,.wp-block-button__link,button[type=submit],input[type=submit]{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 22px;border:1px solid var(--blue);border-radius:4px;background:var(--blue);color:white;font-weight:700;cursor:pointer}.button:hover,.wp-block-button__link:hover,button[type=submit]:hover,input[type=submit]:hover{background:#0d407d;color:#fff;text-decoration:none}.button-outline{color:var(--blue);background:#fff}.button-outline:hover{color:#fff}.menu-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:white;color:var(--ink);border:1px solid var(--line);border-radius:4px;cursor:pointer}.menu-toggle svg{width:22px;height:22px}.site-main{min-height:52vh}.page-heading{padding:45px 0 22px}.page-heading h1,.entry-title{margin:0;font-size:clamp(2rem,4vw,3.3rem);line-height:1.13}.lead{font-size:1.15rem;color:var(--muted);max-width:780px}.content-area{padding-block:34px 80px}.entry-content>*:first-child{margin-top:0}.entry-content h2{font-size:clamp(1.5rem,2.4vw,2.3rem);line-height:1.2}.entry-content h3{font-size:1.35rem}.entry-content p{max-width:75ch}.entry-content iframe{max-width:100%}.section{padding-block:60px}.section-alt{background:var(--pale)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.section-head h2{margin:0;font-size:clamp(1.6rem,3vw,2.5rem);line-height:1.2}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff}.card-media{aspect-ratio:4/3;display:block;overflow:hidden;background:var(--pale)}.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.card:hover .card-media img{transform:scale(1.035)}.card-body{padding:18px}.card h3{margin:0 0 8px;font-size:1.1rem;line-height:1.3}.card p{margin:0;color:var(--muted);font-size:.94rem}.hero{min-height:420px;display:flex;align-items:center;background:#e9eef3 center/cover no-repeat}.hero-shade{width:100%;padding:70px 0;background:transparent}.hero h1{max-width:680px;margin:0 0 16px;font-size:clamp(2.4rem,5vw,5rem);line-height:1.05}.hero p{max-width:560px;font-size:1.2rem}.category-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.category-link{display:flex;align-items:end;min-height:210px;padding:26px;border-radius:5px;background:#e9eef3 center/cover no-repeat;color:#fff;font-size:2rem;font-weight:800;text-shadow:0 2px 10px #000}.category-link:hover{color:#fff;text-decoration:none;filter:brightness(.9)}.project-card .card-media{aspect-ratio:3/4}.site-footer{background:#142845;color:#fff;padding:54px 0 24px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px}.site-footer a{color:#fff}.site-footer h2,.site-footer h3{margin:0 0 14px}.footer-logo{width:170px}.footer-links{list-style:none;padding:0;margin:0}.footer-links li{margin:6px 0}.footer-bottom{border-top:1px solid rgba(255,255,255,.25);margin-top:34px;padding-top:20px;font-size:.9rem;color:#ced8e4}.post-meta{color:var(--muted);font-size:.9rem}.pagination{margin-top:35px}.pagination .page-numbers{display:inline-block;margin-right:5px;padding:7px 12px;border:1px solid var(--line);border-radius:3px}.pagination .current{background:var(--blue);color:#fff}.search-form{display:flex;gap:8px;max-width:600px}.search-form input[type=search]{min-width:0;flex:1;padding:10px 14px;border:1px solid var(--line)}.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}.woocommerce .products ul,.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:20px 0}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none;width:auto;margin:0;border:1px solid var(--line);border-radius:5px;overflow:hidden;padding:0 0 16px}.woocommerce ul.products li.product a img{aspect-ratio:1/1;object-fit:contain;background:#fff}.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .price,.woocommerce ul.products li.product .button{margin-left:15px;margin-right:15px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;line-height:1.4}.woocommerce div.product{margin-top:25px}.woocommerce div.product div.images img{max-height:650px;object-fit:contain}.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--blue)}.woocommerce .woocommerce-breadcrumb{margin:0 0 20px;color:var(--muted)}.woocommerce .woocommerce-breadcrumb a{color:var(--blue)}.woocommerce-result-count,.woocommerce-ordering{margin-bottom:20px!important}
@media(max-width:950px){.menu-toggle{display:inline-flex}.header-inner{min-height:74px;flex-wrap:wrap;gap:10px}.brand img{width:145px}.header-actions{margin-left:auto}.primary-nav{display:none;order:3;width:100%;margin:0 0 12px}.primary-nav.is-open{display:block}.primary-nav ul{display:block}.primary-nav li{border-top:1px solid var(--line)}.primary-nav a{padding:13px 4px}.grid-four,.woocommerce .products ul,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.wrap{width:min(var(--max),calc(100% - 28px))}.header-actions .button{display:none}.hero{min-height:320px}.hero-shade{padding:46px 0}.section{padding-block:42px}.grid,.grid-four,.category-links,.footer-grid{grid-template-columns:1fr}.woocommerce .products ul,.woocommerce ul.products{gap:12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.92rem}.category-link{min-height:150px}.section-head{align-items:start;flex-direction:column}.page-heading{padding-top:30px}.content-area{padding-block:24px 54px}}
.ya-text{margin-bottom:24px}.ya-image{max-width:700px;margin:30px 0}.ya-image img{display:block}.ya-blurb{padding:18px;border:1px solid var(--line);margin-bottom:12px}.entry-content details{padding:15px;border-bottom:1px solid var(--line)}.entry-content summary{cursor:pointer;font-weight:700}.ya-map{display:block;width:min(100%,640px);height:360px;border:0;margin:20px 0 35px}.woocommerce .product-shop-link{margin:20px 0}.entry-content .grid{margin-block:24px}
.category-link{background-color:#143659}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:100%!important;min-width:0;float:none!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{overflow-wrap:anywhere}
@media(max-width:640px){.site-header .header-actions .button{display:inline-flex!important;padding:8px 12px;font-size:.9rem}.woocommerce div.product .woocommerce-tabs table{display:block;max-width:100%;overflow-x:auto}}@media(max-width:360px){.site-header .header-actions .button{display:none!important}}
.catalog-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:34px}.catalog-sidebar{align-self:start;border:1px solid var(--line);border-radius:5px;padding:16px}.catalog-sidebar summary{font-weight:700;cursor:pointer}.catalog-sidebar .widget-title{font-size:1rem}.catalog-sidebar ul{list-style:none;margin:0;padding-left:12px}.catalog-sidebar li{margin:5px 0}.catalog-sidebar a{font-size:.9rem}.catalog-main{min-width:0}@media(max-width:950px){.catalog-layout{grid-template-columns:1fr;gap:18px}}
.header-search{position:relative}.header-search summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;cursor:pointer}.header-search summary::-webkit-details-marker{display:none}.header-search svg{width:22px;height:22px}.header-search .search-form{position:absolute;right:0;top:50px;z-index:50;width:min(330px,calc(100vw - 28px));max-width:none;padding:12px;border:1px solid var(--line);border-radius:5px;background:#fff;box-shadow:0 8px 28px #0002}.header-search .search-form input[type=submit]{padding-inline:12px}@media(max-width:640px){.header-inner{gap:4px}.header-actions{gap:3px}.brand img{width:140px}}
.woocommerce div.product .summary .woocommerce-tabs{clear:none;margin:28px 0 0;width:100%}.woocommerce div.product .summary .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}.woocommerce div.product .summary .woocommerce-tabs ul.tabs::before{display:none}.woocommerce div.product .summary .woocommerce-tabs ul.tabs li{margin:0;border-radius:4px 4px 0 0}.woocommerce div.product .summary .woocommerce-tabs .panel{margin:0;padding:20px 0 0;overflow-wrap:anywhere}.woocommerce div.product .summary .woocommerce-tabs .panel h2:first-child{margin-top:0}
.woocommerce div.product .related,.woocommerce div.product .upsells{clear:both;width:100%;padding-top:42px}
.woocommerce div.product .summary a.product-shop-link{max-width:100%;background:#7fbd32;color:#13200d;border-color:#6ca62a;font-weight:800;text-align:center;white-space:normal}.woocommerce div.product .summary a.product-shop-link:hover{background:#6cab27;color:#13200d;border-color:#5e9822}
.hero h1,.hero p{color:#fff;text-shadow:0 2px 5px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.7)}
.woocommerce div.product{display:flow-root}
.category-link{min-height:260px;background-position:center;background-size:cover}@media(max-width:640px){.category-link{min-height:190px}}
.category-link:nth-child(2){background-position:center 6%}
.ya-carousel-controls{display:flex;justify-content:flex-end;gap:8px;margin:-6px 0 12px}.ya-carousel-controls button{width:42px;height:42px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font-size:1.5rem;line-height:1;cursor:pointer}.ya-carousel-controls button:hover{border-color:var(--blue);color:var(--blue)}.ya-carousel-controls button:disabled{opacity:.4;cursor:default}.ya-product-carousel .woocommerce ul.products{display:flex!important;flex-wrap:nowrap!important;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:thin;margin:0;padding:0 0 14px}.ya-product-carousel .woocommerce ul.products li.product{flex:0 0 clamp(200px,22vw,240px);width:auto!important;min-width:0;margin:0!important;scroll-snap-align:start}.ya-product-carousel .woocommerce ul.products li.product a img{margin-bottom:0}@media(max-width:640px){.ya-product-carousel .woocommerce ul.products li.product{flex-basis:72%}}
.ya-product-carousel{position:relative}.ya-carousel-controls{position:absolute;z-index:2;top:clamp(79px,calc(11vw - 21px),99px);left:8px;right:8px;display:flex;justify-content:space-between;margin:0;pointer-events:none}.ya-carousel-controls button{border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 2px 12px rgba(0,0,0,.18);pointer-events:auto}.ya-carousel-controls button:disabled{opacity:.55}@media(max-width:640px){.ya-carousel-controls{top:calc(36vw - 31px);left:7px;right:7px}}
.ya-news-carousel{position:relative}.ya-news-carousel .grid{display:flex;flex-wrap:nowrap;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:thin;margin:0;padding:0 0 14px}.ya-news-carousel .card{flex:0 0 clamp(260px,31vw,380px);min-width:0;scroll-snap-align:start}.ya-news-carousel .ya-carousel-controls{top:clamp(76px,calc(11.625vw - 21px),122px)}@media(max-width:640px){.ya-news-carousel .card{flex-basis:82%}.ya-news-carousel .ya-carousel-controls{top:calc(30.75vw - 30px)}}
.ya-product-carousel .woocommerce ul.products,.ya-news-carousel .grid{scrollbar-width:none;-ms-overflow-style:none;padding-bottom:0}.ya-product-carousel .woocommerce ul.products::-webkit-scrollbar,.ya-news-carousel .grid::-webkit-scrollbar{display:none;width:0;height:0}
