/*
Theme Name: SURILAMA Atelier
Theme URI: https://surilama.ru/
Author: SURILAMA
Description: Лёгкая адаптивная тема авторской мастерской шерстяных изделий. WooCommerce. Заявки на изготовление обрабатывает плагин SURILAMA Atelier.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: surilama
*/
:root{--cream:#fbf8f4;--canvas:#f4eee7;--sand:#ebe0d4;--coffee:#755943;--deep:#3f3028;--text:#43382f;--soft:#786b5e;--line:#e6dcd1;--max:1260px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.6}h1,h2,h3,.logo{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.13}h1,h2,h3{color:var(--deep)}h1{font-size:clamp(43px,5.3vw,82px)}h2{font-size:clamp(29px,3vw,43px);margin:0 0 16px}h3{font-size:23px}p{margin:0 0 16px}a{color:inherit;text-decoration:none}a:hover{color:var(--coffee)}img{max-width:100%;height:auto}button,input,textarea{font:inherit}button,a,input,textarea{outline-offset:3px}.container{max-width:var(--max);margin:auto;padding-inline:26px}.skip-link{position:absolute;top:-100px;left:10px;background:white;z-index:1000;padding:12px}.skip-link:focus{top:10px}.topline{background:#efe4d8;color:#725f51;font-size:11px;letter-spacing:.025em}.topbar-inner{min-height:32px;display:flex;align-items:center;justify-content:center;gap:40px}.site-header{background:rgba(253,250,247,.98);position:relative;z-index:5;border-bottom:1px solid #eee7df}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:83px}.logo{font-size:34px;letter-spacing:1.3px;white-space:nowrap;color:#634b3a}.logo span{font-weight:400}.logo small{font-size:14px;letter-spacing:0}.primary-nav{flex:1}.menu-list{display:flex;align-items:center;justify-content:center;gap:25px;margin:0;padding:0;list-style:none}.menu-list a{font-size:13px}.head-actions{display:flex;gap:15px;font-size:27px;line-height:1}.menu-button{display:none;border:1px solid var(--line);border-radius:5px;color:var(--deep);background:transparent;padding:9px 12px;cursor:pointer}.hero{min-height:435px;background:linear-gradient(90deg,rgba(250,244,236,.97) 0%,rgba(250,244,236,.91) 24%,rgba(250,244,236,.3) 46%,transparent 70%),url('assets/images/hero-editorial.webp') center center/cover no-repeat}.hero-content{min-height:435px;display:flex;align-items:center}.hero-text{max-width:440px;padding-block:52px}.hero-text h1{margin:17px 0 13px}.hero-text>p:not(.eyebrow){font-family:Georgia,serif;font-style:italic;font-size:18px;line-height:1.5}.eyebrow{letter-spacing:.27em;font-size:11px;font-weight:600;color:#7c624e;margin-bottom:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:12px 24px;border-radius:3px;min-height:44px;cursor:pointer;font-family:Georgia,serif;font-size:16px;border:1px solid var(--coffee);transition:background .15s}.btn-primary{background:var(--coffee);color:#fff}.btn-primary:hover{background:#523e30;color:#fff}.btn-outline{background:transparent;color:var(--coffee)}.btn-outline:hover{background:var(--sand)}.categories{padding-block:20px 28px}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.category{position:relative;min-height:197px;display:block;overflow:hidden;background:#e7dbce}.category img{width:100%;height:197px;object-fit:cover;display:block;transition:transform .2s}.category:hover img{transform:scale(1.03)}.category::after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(50,37,27,.49));pointer-events:none}.category span{position:absolute;bottom:15px;left:20px;right:15px;z-index:1;color:white;font:24px Georgia,serif;display:flex;justify-content:space-between;align-items:center}.category b{font:24px Georgia,serif}.section{padding-block:34px 44px}.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:20px}.section-title a{white-space:nowrap;font-size:13px}.products-demo{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.demo img{aspect-ratio:4/5;object-fit:cover;background:#efe8df;border-radius:4px;width:100%;display:block}.demo strong{display:block;font-weight:500;font-size:14px;line-height:1.4;margin-top:10px}.demo p{color:var(--soft);font-size:12px;margin:5px 0}.sample-link{color:var(--coffee);font-size:12px;text-decoration:underline;text-underline-offset:3px}.fineprint{font-size:12px;color:#817467;margin-top:18px}.atelier-banner{background:var(--canvas);border-block:1px solid #f0e8e0}.atelier-content{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;padding-block:44px}.atelier-content>div:first-child{max-width:520px}.atelier-content h2{font-size:clamp(28px,3vw,44px)}.atelier-steps{display:grid;grid-template-columns:1fr 1fr;gap:16px}.atelier-steps>div{background:#fcf8f3;padding:24px 20px;display:flex;align-items:center;gap:15px;font-family:Georgia,serif;font-size:17px;min-height:84px}.atelier-steps b{font-family:Arial,sans-serif;color:#9a7860;font-size:14px}.toy-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8%;align-items:center}.toy-section>img{width:100%;height:390px;object-fit:cover;object-position:center 37%;border-radius:5px}.toy-section>div{max-width:460px}.materials{background:#f4ede5;padding-block:40px}.materials-layout{display:grid;grid-template-columns:1fr 2fr;gap:45px;align-items:center}.material-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.material{position:relative;min-height:160px;overflow:hidden}.material img{width:100%;height:180px;object-fit:cover;display:block}.material:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,rgba(255,249,240,.88))}.material strong{position:absolute;bottom:13px;left:0;right:0;z-index:1;text-align:center;font:22px Georgia,serif}.values{display:flex;justify-content:space-between;gap:25px;padding-block:22px;color:#715e50;font-size:13px}.values span:before{content:'✧';margin-right:10px;color:#ad8d74}.site-footer{background:#f6f0ea;border-top:1px solid var(--line)}.footer-main{display:grid;grid-template-columns:2fr 1fr 1fr 1.6fr;gap:35px;padding-block:34px}.footer-main .logo{font-size:30px}.footer-main h3{font:17px Georgia,serif;margin:0 0 14px}.footer-main p,.footer-main a:not(.logo){font-size:12px;color:#75685d}.footer-main div:not(:first-child) a{display:block;margin:5px 0}.footer-bottom{border-top:1px solid var(--line);padding-block:12px;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#8a7a6e}.content-page{max-width:900px;padding-block:45px 70px;min-height:35vh}.content-page h1{font-size:clamp(32px,4vw,54px)}.shop-content{padding-block:35px 70px;min-height:45vh}.request-form{background:#f8f2ec;padding:28px;max-width:820px;margin-block:24px}.request-form label{display:block;font-size:14px;font-weight:600;margin-bottom:18px}.request-form input:not([type=checkbox]),.request-form textarea{display:block;width:100%;margin-top:7px;border:1px solid #d8c8bb;background:white;padding:12px;color:var(--text);border-radius:3px}.form-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.request-form .privacy{display:flex;gap:10px;font-size:12px;font-weight:400}.privacy input{align-self:flex-start;margin-top:5px}.privacy a{text-decoration:underline}.request-form .honey{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.notice{border-left:4px solid #9c674b;padding:12px 18px;background:#faece5}.notice.success{border-color:#6c8c6c;background:#eff6ec}
/* WooCommerce visual adaptation. Core WooCommerce handles purchases, taxes, stock, and checkout. */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;clear:both}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none!important;width:auto!important;margin:0!important}.woocommerce ul.products li.product img{aspect-ratio:4/5;object-fit:cover;border-radius:4px;background:#eee4d9}.woocommerce ul.products li.product .woocommerce-loop-product__title{font:17px Georgia,serif;color:var(--deep);padding:9px 0 0}.woocommerce ul.products li.product .price{color:var(--coffee);font-size:14px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--coffee);color:white;border-radius:3px;font-weight:400}.woocommerce a.button:hover,.woocommerce button.button:hover{background:#49392e;color:white}.woocommerce div.product .product_title{font:clamp(30px,3vw,47px) Georgia,serif}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--coffee)}.woocommerce span.onsale{background:#886b53}.woocommerce .quantity .qty{min-height:37px}.woocommerce-message,.woocommerce-info{border-top-color:var(--coffee)}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{padding:12px;border:1px solid var(--line)}
@media(max-width:1000px){.container{padding-inline:20px}.menu-list{gap:13px}.menu-list a{font-size:12px}.header-inner{gap:14px}.logo{font-size:29px}.category span{font-size:20px}.products-demo{grid-template-columns:repeat(3,1fr)}.footer-main{grid-template-columns:repeat(2,1fr)}.hero{background-position:58% center}.materials-layout{grid-template-columns:1fr;gap:18px}.atelier-content{gap:25px}}
@media(max-width:700px){.topbar-inner{gap:14px;font-size:10px;flex-wrap:wrap;min-height:32px}.topbar-inner span:last-child{display:none}.header-inner{min-height:69px}.logo{font-size:27px}.menu-button{display:block;margin-left:auto}.primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fffaf5;border-top:1px solid var(--line);box-shadow:0 12px 15px #0001}.primary-nav.is-open{display:block}.menu-list{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:10px 20px}.menu-list li a{display:block;padding:11px 5px;font-size:15px}.head-actions{gap:8px;font-size:25px}.hero,.hero-content{min-height:540px}.hero{background-image:linear-gradient(180deg,rgba(253,247,240,.96),rgba(251,246,240,.93) 41%,rgba(246,239,232,.22) 62%,transparent 82%),url('assets/images/hero-editorial.webp');background-position:62% bottom;background-size:auto 66%,auto 66%;background-repeat:no-repeat;background-color:#f6eee5}.hero-content{align-items:flex-start}.hero-text{padding:34px 0 0;max-width:430px}.hero-text h1{font-size:clamp(44px,9vw,67px);margin-block:9px}.hero-text>p:not(.eyebrow){font-size:16px;max-width:330px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.category,.category img{min-height:160px;height:160px}.category span{font-size:20px;left:12px;bottom:10px}.section{padding-block:28px}.products-demo{grid-template-columns:repeat(2,1fr);gap:13px}.demo strong{font-size:13px}.atelier-content{grid-template-columns:1fr;padding-block:30px}.atelier-steps{gap:8px}.atelier-steps>div{font-size:14px;padding:15px 12px;min-height:60px}.toy-section{grid-template-columns:1fr;gap:20px}.toy-section>img{height:340px}.material-grid{gap:8px}.material img{height:135px}.material{min-height:135px}.material strong{font-size:17px}.values{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;font-size:12px}.footer-main{grid-template-columns:repeat(2,1fr);gap:18px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px}.form-cols{grid-template-columns:1fr;gap:0}.request-form{padding:16px}}
@media(max-width:380px){.topbar-inner span:nth-child(2){display:none}.logo{font-size:24px}.head-actions a:first-child{display:none}.category span{font-size:17px}.material strong{font-size:14px}.atelier-steps{grid-template-columns:1fr 1fr}.footer-main{grid-template-columns:1fr 1fr}}

/* v1.1: author item details and responsive WooCommerce refinements */
.surilama-maker-story{margin:24px 0;padding:22px 24px;background:#f5eee6;border-left:3px solid #a38771}.surilama-maker-story h2{font-size:26px;margin-bottom:10px}.surilama-piece-label{display:inline-block;font-size:12px;letter-spacing:.04em;color:#735642;background:#f0e3d7;padding:5px 10px;margin-bottom:12px}.surilama-ateliers-actions{margin:15px 0}.surilama-ateliers-actions .btn{margin-top:8px}.woocommerce .woocommerce-breadcrumb{font-size:12px;color:#827367}.woocommerce div.product div.images img{border-radius:4px}.woocommerce div.product .woocommerce-tabs{margin-top:28px}.request-form input:focus-visible,.request-form textarea:focus-visible{outline:2px solid #755943}.surilama-admin-note{font-size:13px;color:#6f5b4d}
@media(max-width:700px){.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:100%}.woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{float:none;margin-bottom:15px}.woocommerce ul.products{margin-top:18px}.woocommerce .woocommerce-tabs ul.tabs{padding:0!important}.woocommerce .woocommerce-tabs ul.tabs li{margin:2px!important}.surilama-maker-story{padding:18px}.surilama-maker-story h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.category img,.btn{transition:none}}

/* v1.2: compact individual order form and easier shopping on small screens */
.request-form .form-cols-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.request-form label{min-width:0}.request-form input:not([type=checkbox]),.request-form textarea{min-width:0;border-radius:4px;transition:border-color .15s}
.request-form input:not([type=checkbox]):focus,.request-form textarea:focus{border-color:var(--coffee)}
.woocommerce div.product .summary{line-height:1.65}
.woocommerce div.product .woocommerce-product-details__short-description{font-size:15px;color:var(--soft);margin:18px 0}
.woocommerce div.product .product_meta{font-size:12px;color:var(--soft);margin-top:20px}
.woocommerce div.product .woocommerce-product-gallery{margin-bottom:26px}
.woocommerce .woocommerce-product-gallery__image img{background:#f3ede6}
.woocommerce div.product form.cart{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.woocommerce div.product form.cart .quantity{margin:0!important}
.woocommerce div.product form.cart .single_add_to_cart_button{min-height:44px;padding-inline:24px}
.woocommerce ul.products li.product a.button{min-height:40px;display:inline-flex;align-items:center}
.surilama-ateliers-actions .btn{min-height:46px}
@media(max-width:850px){.request-form .form-cols-three{grid-template-columns:1fr 1fr}.request-form .form-cols-three label:last-child{grid-column:1/-1}}
@media(max-width:700px){.request-form .form-cols-three{grid-template-columns:1fr;gap:0}.request-form .form-cols-three label:last-child{grid-column:auto}.woocommerce div.product .summary{clear:both}.woocommerce div.product form.cart .single_add_to_cart_button{flex:1}.woocommerce div.product .woocommerce-tabs{clear:both}.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap}}
@media(max-width:420px){.request-form{margin-inline:-3px}.woocommerce ul.products{gap:10px}.woocommerce ul.products li.product a.button{font-size:12px;padding-inline:9px}}

/* v1.3 – informative product cards and simple catalog navigation */
.surilama-product-facts{clear:both;margin:24px 0;border-top:1px solid var(--line);padding-top:18px}
.surilama-product-facts h2{font-size:24px;margin-bottom:12px}
.surilama-product-facts dl{margin:0;display:grid;grid-template-columns:minmax(105px,150px) minmax(0,1fr);gap:9px 15px}
.surilama-product-facts dt{font-weight:600;color:var(--soft);font-size:13px}
.surilama-product-facts dd{margin:0;font-size:14px;white-space:pre-line;overflow-wrap:anywhere}
.surilama-shop-categories{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 28px}
.surilama-shop-categories a{display:inline-flex;align-items:center;min-height:40px;padding:7px 14px;border:1px solid var(--line);border-radius:30px;font-size:13px;background:#fffaf6}
.surilama-shop-categories a:hover,.surilama-shop-categories a:focus-visible{border-color:var(--coffee);color:var(--deep)}
@media(max-width:700px){.surilama-shop-categories{gap:7px}.surilama-shop-categories a{padding:7px 11px;font-size:12px}.surilama-product-facts dl{grid-template-columns:95px minmax(0,1fr)}}

/* v1.4: clear cart and catalog navigation, tidy product action links */
.head-actions{align-items:center;gap:17px;font-size:13px}
.head-actions .catalog-link{font-size:13px;color:var(--deep);white-space:nowrap}
.head-actions .cart-link{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.head-actions .cart-link svg{display:block}
.woocommerce ul.products li.product .sample-link{display:inline-block;margin-top:9px;min-height:28px;line-height:1.5}
.woocommerce div.product .surilama-ateliers-actions .fineprint{max-width:36ch}
@media(max-width:700px){.head-actions{gap:5px}.head-actions .catalog-link{display:none}.head-actions .cart-link{min-width:42px;min-height:42px}}

/* v1.5: clear typography, readable CTAs, retina-aware images and responsive layouts */
:root{--max:1360px}
body{font-size:17px;line-height:1.67}
h1{font-size:clamp(52px,5.8vw,88px)}
h2{font-size:clamp(34px,3.25vw,48px);line-height:1.16}
h3{font-size:clamp(22px,2vw,27px)}
.topline{font-size:13px}.topbar-inner{min-height:36px}
.logo{font-size:38px}.logo small{font-size:16px}
.menu-list a{font-size:16px;line-height:1.5}
.header-inner{min-height:92px;gap:20px}
.hero,.hero-content{min-height:525px}
.hero{background-position:center center}
.hero-text{max-width:530px;padding-block:60px}
.hero-text>p:not(.eyebrow){font-size:21px;line-height:1.52;max-width:410px}
.eyebrow{font-size:13px;letter-spacing:.19em}
.btn{font-size:18px;min-height:50px;padding:13px 25px}
.category,.category img{height:240px;min-height:240px}
.category span{font-size:27px;line-height:1.18}
.category img,.demo img,.toy-section>img,.material img{image-rendering:auto}
.section{padding-block:46px 58px}
.section-title a{font-size:16px}
.products-demo{gap:20px}
.demo strong{font-size:18px;line-height:1.38}
.demo p{font-size:15px;line-height:1.5}
.sample-link{font-size:15px;display:inline-block;padding-block:5px}
.fineprint{font-size:14px;line-height:1.55}
.atelier-content{padding-block:58px}
.atelier-content h2{font-size:clamp(35px,3.3vw,49px)}
.atelier-steps>div{font-size:19px}
.toy-section>img{height:460px;object-fit:contain;background:#efe7df}
.materials{padding-block:53px}
.material img{height:205px}
.material strong{font-size:25px}
.values{font-size:15px;line-height:1.5}
.footer-main h3{font-size:20px}
.footer-main p,.footer-main a:not(.logo){font-size:14px;line-height:1.6}
.footer-bottom{font-size:13px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:20px}
.woocommerce ul.products li.product .price{font-size:17px}
.woocommerce div.product .woocommerce-product-details__short-description{font-size:17px}
.request-form label{font-size:16px}
.surilama-product-facts dt,.surilama-product-facts dd{font-size:15px}
@media(max-width:1100px){
 .logo{font-size:32px}.logo small{font-size:14px}
 .menu-list{gap:14px}.menu-list a{font-size:14px}
 .hero,.hero-content{min-height:470px}
 .products-demo{grid-template-columns:repeat(3,minmax(0,1fr))}
 .category,.category img{height:205px;min-height:205px}.category span{font-size:22px}
}
@media(max-width:850px){
 .menu-button{display:block;margin-left:auto;font-size:16px;min-height:46px}
 .primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fffaf5;border-top:1px solid var(--line);box-shadow:0 12px 15px #0001}
 .primary-nav.is-open{display:block}
 .menu-list{flex-direction:column;align-items:stretch;gap:0;padding:10px 20px}
 .menu-list li a{font-size:17px;display:block;padding:12px 5px}
 .header-inner{min-height:76px}
 .hero,.hero-content{min-height:480px}
 .hero{background-position:62% center}
 .hero-text{max-width:420px}
 .hero-text>p:not(.eyebrow){font-size:19px}
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .category,.category img{height:205px;min-height:205px}
 .materials-layout{grid-template-columns:1fr}
 .atelier-content{grid-template-columns:1fr}
}
@media(max-width:700px){
 body{font-size:16px;line-height:1.6}
 .container{padding-inline:18px}
 .topbar-inner{font-size:12px;gap:12px}
 .logo{font-size:28px}.logo small{font-size:12px}
 .hero,.hero-content{min-height:565px}
 .hero{background-image:linear-gradient(180deg,rgba(253,247,240,.99),rgba(251,246,240,.96) 38%,rgba(246,239,232,.35) 66%,transparent 90%),url('assets/images/hero-editorial.webp');background-position:62% bottom;background-size:auto 63%,auto 63%;background-repeat:no-repeat;background-color:#f6eee5}
 .hero-content{align-items:flex-start}
 .hero-text{padding-top:35px}
 .hero-text h1{font-size:clamp(47px,10vw,66px)}
 .hero-text>p:not(.eyebrow){font-size:18px;line-height:1.47;max-width:345px}
 .eyebrow{font-size:12px}
 .btn{font-size:17px;min-height:49px}
 h2{font-size:clamp(31px,7vw,38px)}
 .category,.category img{height:190px;min-height:190px}
 .category span{font-size:23px;left:13px;bottom:13px}
 .section{padding-block:35px 43px}
 .section-title{align-items:center}
 .section-title a{font-size:14px}
 .products-demo{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .demo strong{font-size:16px}
 .demo p,.sample-link{font-size:14px}
 .atelier-content{padding-block:38px}
 .atelier-steps>div{font-size:16px;min-height:72px}
 .toy-section>img{height:400px;object-fit:contain}
 .material img{height:175px}
 .material strong{font-size:19px}
 .values{font-size:14px;gap:12px}
 .footer-main p,.footer-main a:not(.logo){font-size:14px}
 .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:17px}
 .woocommerce ul.products li.product .price{font-size:16px}
}
@media(max-width:390px){
 .logo{font-size:25px}.logo small{font-size:11px}
 .category span{font-size:19px}
 .section-title a{font-size:13px}
 .hero-text h1{font-size:46px}
 .hero-text>p:not(.eyebrow){font-size:17px}
 .material strong{font-size:17px}
 .demo strong{font-size:15px}
 .demo p,.sample-link{font-size:13px}
}
