/*
Theme Name: Trend Market
Description: Быстрая тема каталога дверей для WooCommerce.
Version: 0.3.4
Requires PHP: 8.0
Text Domain: trend-market
*/
:root{--brand:#032a58;--gold:#e6b14a;--ink:#20242b;--muted:#68707d;--line:#e9e9ed;--bg:#f6f7f9;--container:1280px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fff;font:16px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.wrap{max-width:var(--container);margin:auto;padding:0 20px}.topline{background:var(--bg);font-size:13px;color:var(--muted)}.topline .wrap{display:flex;gap:20px;align-items:center;min-height:36px}.topline a:hover,.text-link:hover{color:#9a6e19}.topline .push{margin-left:auto}.masthead{border-bottom:1px solid var(--line);background:white;position:sticky;top:0;z-index:20}.masthead-inner{min-height:82px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;min-width:132px}.brand img{max-width:140px;max-height:46px;width:auto;height:auto}.brand-fallback{font-size:24px;font-weight:800;letter-spacing:-.04em}.catalog-toggle,.primary-button,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border:0;border-radius:12px;background:var(--brand);color:#242424;padding:12px 17px;font-weight:700}.search{display:flex;align-items:center;flex:1;min-width:160px;border:2px solid var(--brand);border-radius:12px;overflow:hidden}.search input{width:100%;border:0;outline:0;padding:12px 15px}.search button{border:0;background:var(--brand);align-self:stretch;padding:0 18px;font-weight:700}.header-actions{display:flex;align-items:center;gap:16px}.header-actions a{display:flex;align-items:center;flex-direction:column;font-size:12px;line-height:1.2;gap:4px}.header-actions svg,.bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.header-phone{white-space:nowrap;font-weight:700}.menu-row{border-bottom:1px solid var(--line)}.menu-row .wrap{display:flex;gap:26px;align-items:center;min-height:46px}.primary-menu{list-style:none;margin:0;padding:0;display:flex;gap:26px}.menu-row a{font-size:14px;font-weight:600}.menu-row a:hover{color:#a37520}.hero{padding:28px 0 8px}.hero-layout{display:grid;grid-template-columns:240px 1fr;gap:20px}.category-rail{border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff}.category-rail h2{font-size:17px;margin:4px 8px 10px}.category-rail a{display:flex;justify-content:space-between;padding:9px 8px;border-radius:9px;font-size:14px}.category-rail a:hover{background:var(--bg)}.hero-banner{border-radius:22px;padding:38px 44px;background:linear-gradient(115deg,#24272c 0%,#3c4148 62%,#79603c 100%);color:white;min-height:330px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.eyebrow{font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--brand)}.hero-banner h1{font-size:clamp(29px,4vw,48px);line-height:1.1;max-width:620px;margin:12px 0}.hero-banner p{max-width:530px;color:#e8e8e8}.hero-banner .primary-button{margin-top:10px}.section{padding:28px 0}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:15px;margin-bottom:20px}.section h2,.section-head h2{font-size:clamp(23px,2.5vw,30px);line-height:1.2;margin:0}.tile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.tile{border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--bg);min-height:120px;display:flex;flex-direction:column;justify-content:space-between;font-weight:700}.tile:hover{border-color:var(--brand);background:#fffaf0}.tile span:last-child{font-size:22px;align-self:flex-end;color:#ad812c}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.benefit{border:1px solid var(--line);border-radius:16px;padding:20px}.benefit strong{display:block;margin-bottom:5px}.benefit p{color:var(--muted);margin:0;font-size:14px}.page-content{padding:28px 0 65px}.site-footer{background:#24272c;color:white;padding:42px 0}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:24px}.site-footer h3{font-size:15px;margin:0 0 12px}.site-footer p,.site-footer a{color:#c9ccd1;font-size:14px}.site-footer a{display:block;margin:8px 0}.footer-bottom{margin-top:32px;border-top:1px solid #474a50;padding-top:18px;color:#b9bec5;font-size:13px}.bottom-nav{display:none}.woocommerce .woocommerce-breadcrumb{margin:0 0 20px;color:var(--muted)}.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:12px;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column}.woocommerce ul.products li.product img{aspect-ratio:1/1;object-fit:contain;background:#fafafa;border-radius:10px;margin:0 0 12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;line-height:1.4;min-height:58px;color:var(--ink)}.woocommerce ul.products li.product .price{font-size:19px;font-weight:800;color:var(--ink);margin:8px 0}.woocommerce ul.products li.product .button{margin-top:auto;text-align:center;font-size:13px;padding:10px}.woocommerce .quantity .qty{min-height:44px;border:1px solid var(--line);border-radius:8px}.woocommerce div.product div.images img{border-radius:16px;background:#fafafa}.woocommerce div.product .product_title{font-size:clamp(25px,3vw,36px)}.woocommerce div.product p.price{color:var(--ink);font-weight:800;font-size:30px}.woocommerce-message{border-top-color:var(--brand)}.woocommerce-message:before{color:#a57826}.woocommerce .widget_price_filter .ui-slider .ui-slider-range,.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{background-color:var(--brand)}.shop-shell{display:grid;grid-template-columns:240px minmax(0,1fr);gap:25px}.shop-sidebar .widget{margin:0 0 24px}.shop-sidebar .widget-title{font-size:17px}.shop-main .woocommerce-ordering{margin-bottom:18px}.shop-main .woocommerce-result-count{color:var(--muted)}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}@media(max-width:980px){.header-phone,.menu-row{display:none}.hero-layout{grid-template-columns:1fr}.category-rail{display:none}.tile-grid{grid-template-columns:repeat(3,1fr)}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){body{padding-bottom:65px}.topline{display:none}.masthead-inner{min-height:66px;gap:10px;flex-wrap:wrap;padding-top:9px;padding-bottom:9px}.brand{min-width:100px}.brand img{max-width:105px}.catalog-toggle,.header-actions{display:none}.search{order:3;flex-basis:100%}.search input{padding:8px 12px}.search button{padding:0 12px;font-size:13px}.hero{padding-top:14px}.hero-banner{min-height:270px;padding:26px}.tile-grid,.benefits{grid-template-columns:repeat(2,1fr)}.tile{min-height:100px;padding:15px}.footer-grid{grid-template-columns:repeat(2,1fr)}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:7px 4px max(8px,env(safe-area-inset-bottom))}.bottom-nav a{display:flex;flex-direction:column;align-items:center;font-size:11px;gap:2px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.woocommerce ul.products li.product{padding:8px}.shop-shell{display:block}.shop-sidebar{display:none}.shop-sidebar.is-open{display:block;padding:15px;border:1px solid var(--line);border-radius:16px;margin-bottom:20px}.filter-toggle{display:inline-block!important;margin:0 0 15px}.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:78px}.section{padding:22px 0}}@media(min-width:681px){.filter-toggle{display:none!important}}

/* TREND visual identity */
.brand{flex-direction:column;align-items:flex-start;gap:5px;min-width:218px}.brand img{width:115px;max-height:29px}.brand small{font-size:10px;line-height:1.25;color:var(--muted);font-weight:500;white-space:nowrap}.catalog-toggle,.primary-button,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{color:#fff}.search{border-color:var(--brand)}.search button{color:#fff}.hero-banner{background:linear-gradient(115deg,#032a58 0%,#123d6e 66%,#284c6d 100%)}.eyebrow{color:var(--gold)}.tile:hover{border-color:var(--brand);background:#f2f7fd}.tile span:last-child{color:var(--brand)}.footer-brand{display:inline-block!important;margin:0 0 12px!important}.footer-brand img{width:115px;height:29px}.site-footer{background:#032a58}.site-footer p{max-width:295px}.woocommerce-message{border-top-color:var(--gold)}.woocommerce-message:before{color:var(--gold)}.woocommerce .widget_price_filter .ui-slider .ui-slider-range,.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{background-color:var(--brand)}@media(max-width:680px){.brand{min-width:unset}.brand small{font-size:9px}.brand img{width:105px}.masthead-inner{gap:9px}}

/* Wood texture, VK and contacts */
.catalog-toggle,.primary-button,.button,.search button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background-color:var(--brand);background-image:url('assets/wood-strong.png');background-repeat:repeat;background-size:260px 260px;transition:background-color .2s ease,transform .2s ease}.catalog-toggle:hover,.primary-button:hover,.button:hover,.search button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background-color:#0a3b73;color:#fff;transform:translateY(-1px)}.hero-banner{background-color:var(--brand);background-image:url('assets/wood-strong.png'),linear-gradient(115deg,#032a58 0%,#123d6e 66%,#284c6d 100%);background-repeat:repeat,no-repeat;background-size:600px 600px,cover}.site-footer{background-color:var(--brand);background-image:url('assets/wood.png');background-repeat:repeat;background-size:843px 843px}.vk-link img,.footer-vk img{width:28px;height:28px;display:block}.footer-vk{display:flex!important;align-items:center;gap:9px;margin-top:12px!important}.footer-vk span{color:#fff}.contacts-hero{color:#fff;padding:44px 0;background-color:var(--brand);background-image:url('assets/wood.png');background-repeat:repeat;background-size:843px 843px}.contacts-hero h1{font-size:clamp(32px,5vw,52px);line-height:1.08;margin:7px 0 12px}.contacts-hero p{max-width:680px;margin:0;color:#dce7f4;font-size:18px}.contacts-kicker{color:var(--gold);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.contacts-content{padding-top:34px;padding-bottom:65px}.contacts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.contact-card{display:flex;align-items:center;gap:16px;min-height:112px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(3,42,88,.07);transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}.contact-card[href]:hover{transform:translateY(-2px);border-color:#b7cbe0;box-shadow:0 12px 32px rgba(3,42,88,.11)}.contact-card small,.contact-card strong{display:block}.contact-card small{margin-bottom:4px;color:var(--muted);font-size:13px}.contact-card strong{font-size:17px;overflow-wrap:anywhere}.contact-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;color:#fff;border-radius:14px;background-color:var(--brand);background-image:url('assets/wood-strong.png');background-size:180px}.contact-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.contact-card-vk img{flex:0 0 46px;width:46px;height:46px}.contacts-hours{margin-top:18px;padding:15px 18px;border-radius:13px;background:#f2f6fb}.contacts-map{margin-top:38px}.map-frame{height:400px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--bg)}.map-frame>ymaps,.map-frame iframe{width:100%!important}.contacts-extra{margin-top:32px}.contacts-extra:empty{display:none}@media(max-width:980px){.vk-link span{display:none}}@media(max-width:680px){.contacts-hero{padding:30px 0}.contacts-hero p{font-size:16px}.contacts-grid{grid-template-columns:1fr}.contact-card{min-height:96px;padding:16px}.contact-card strong{font-size:15px}.map-frame{height:360px}.footer-vk{display:flex!important}}

/* Softer wood pattern and full-width navigation */
.catalog-toggle,.primary-button,.button,.search button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background-image:url('assets/wood.png');background-size:420px 420px}.hero-banner{background-image:url('assets/wood.png'),linear-gradient(115deg,#032a58 0%,#123d6e 66%,#284c6d 100%);background-size:843px 843px,cover}.hero-banner .primary-button{background-color:var(--gold);background-image:none;color:#20242b}.hero-banner .primary-button:hover{background-color:#f0bf60;color:#20242b}.menu-row{border-bottom:0;background-color:var(--brand);background-image:url('assets/wood.png');background-repeat:repeat;background-size:843px 843px;color:#fff}.menu-row .wrap{width:100%;max-width:none;padding-left:32px;padding-right:32px}.primary-menu{width:100%;justify-content:space-around;gap:12px}.primary-menu>li{flex:1;text-align:center}.menu-row .wrap>a{flex:1;text-align:center}.menu-row a:hover{color:var(--gold)}.contact-icon{background-image:url('assets/wood.png');background-size:250px}@media(max-width:980px){.menu-row{display:none}}

/* Header contact details and contained navigation */
.menu-row .wrap{width:100%;max-width:var(--container);padding-left:20px;padding-right:20px}.top-address{display:inline-flex;align-items:center;gap:6px}.top-address svg{width:16px;height:16px;fill:none;stroke:var(--brand);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header-contact{display:flex;flex-direction:column;align-items:flex-end;gap:1px;white-space:nowrap}.header-phone{font-size:17px;font-weight:800;line-height:1.25}.header-email{font-size:11px!important;color:var(--muted);line-height:1.25}.header-email:hover{color:var(--brand)}.header-cart svg{width:27px;height:27px;stroke-width:1.7}.header-cart:hover{color:var(--brand)}

/* Mobile header and menu */
.mobile-actions{display:none;align-items:center;gap:12px;margin-left:auto}.mobile-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-phone{display:flex;align-items:center;gap:6px;color:var(--brand);font-size:14px;font-weight:800;white-space:nowrap}.mobile-phone svg{width:19px;height:19px}.mobile-cart{position:relative;display:grid;place-items:center;width:38px;height:38px;color:var(--ink)}.mobile-cart-count{position:absolute;right:-2px;top:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:var(--gold);color:#20242b;font-size:10px;font-weight:800}.mobile-menu-toggle{display:grid;gap:5px;place-content:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background-color:var(--brand);background-image:url('assets/wood.png');background-size:240px;color:#fff}.mobile-menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s ease,opacity .2s ease}.mobile-menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}.mobile-menu-toggle.is-open span:nth-child(2){opacity:0}.mobile-menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}@media(max-width:980px){.masthead-inner{flex-wrap:wrap;gap:10px;padding-top:10px;padding-bottom:10px}.catalog-toggle,.header-actions{display:none}.mobile-actions{display:flex}.search{order:3;flex-basis:100%}.menu-row.mobile-open{display:block}.menu-row.mobile-open .wrap{display:block;min-height:0;padding:10px 20px 14px}.menu-row.mobile-open .primary-menu{display:flex;flex-direction:column;gap:0}.menu-row.mobile-open .primary-menu>li{width:100%;text-align:left}.menu-row.mobile-open a{display:block;padding:11px 4px;border-bottom:1px solid rgba(255,255,255,.13);font-size:15px}.menu-row.mobile-open .wrap>a:last-child,.menu-row.mobile-open .primary-menu>li:last-child>a{border-bottom:0}}@media(max-width:480px){.mobile-actions{gap:7px}.mobile-phone{font-size:12px}.mobile-phone svg{display:none}.mobile-cart{width:34px}.mobile-menu-toggle{width:38px}.brand small{max-width:128px;white-space:normal;line-height:1.1}}@media(max-width:380px){.mobile-phone span{display:none}.mobile-phone svg{display:block;width:22px;height:22px}}
