/*
Theme Name: DonchevBuild Stone V16
Theme URI: https://donchevbuild.com/
Author: DonchevBuild
Description: Светла адаптивна WordPress тема за магазин за декоративни облицовки, съвместима с WooCommerce и Rank Math.
Version: 16.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: donchevbuild-shop
*/
:root{--ink:#111;--muted:#363636;--line:#ddd;--paper:#fff;--soft:#f4f4f4}*{box-sizing:border-box}body{margin:0;background:#fff;color:#111;font:16px/1.65 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:#111}a:hover{text-decoration:underline}.db-wrap{max-width:1180px;margin:auto;padding:0 22px}.db-top{background:#f2f2f2;text-align:center;padding:7px;font-size:13px}.db-header{background:#fff;border-bottom:1px solid #ddd}.db-nav{min-height:82px;display:flex;gap:20px;align-items:center;justify-content:space-between}.db-logo{font-size:24px;letter-spacing:.06em;font-weight:850;text-decoration:none}.db-links{display:flex;gap:22px;align-items:center}.db-links a{text-decoration:none;font-weight:600;font-size:14px}.db-actions{display:flex;gap:8px;align-items:center}.db-action{border:2px solid #111;border-radius:7px;padding:8px 11px;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap;background:#fff;color:#111}.db-count{display:inline-block;background:#111;color:#fff;border-radius:30px;min-width:21px;padding:0 5px;text-align:center;margin-left:5px}.db-hero{padding:80px 0;background:#fff}.db-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.db-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:#444}.db-hero h1{font-size:clamp(35px,4.8vw,60px);line-height:1.14;letter-spacing:-.035em;margin:16px 0}.db-lead{font-size:18px;color:#333}.db-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-block;background:#111!important;color:#fff!important;border:2px solid #111!important;border-radius:5px;padding:12px 22px;text-decoration:none;font-weight:700}.db-btn:hover{background:#333!important;color:#fff!important}.db-placeholder{min-height:290px;background:#e9e9e9;border:1px solid #ddd;display:flex;align-items:center;justify-content:center;text-align:center;padding:25px;color:#333;border-radius:7px}.db-hero .db-placeholder{min-height:380px}.db-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:7px}.db-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:30px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.db-trust strong{display:block}.db-trust span{font-size:14px;color:#333}.db-section{padding:65px 0}.db-section h2{font-size:clamp(28px,3vw,40px);line-height:1.2}.db-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}.db-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.db-card{border:1px solid #ddd;padding:15px;border-radius:8px;background:#fff}.db-card h3{font-size:20px;margin:12px 0 4px}.db-card p{margin:4px 0;color:#333}.db-card a{text-decoration:none}.db-card .db-placeholder{min-height:200px}.db-price{font-size:20px;font-weight:800}.db-soft{background:#f7f7f7}.db-story{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center}.db-faq{max-width:840px}.db-faq details{padding:16px 0;border-bottom:1px solid #ddd}.db-faq summary{cursor:pointer;font-weight:700}.db-cta{text-align:center;background:#f2f2f2}.db-footer{background:#f2f2f2;border-top:1px solid #ddd;padding:35px 0}.db-foot{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.db-content{min-height:50vh;padding:40px 22px}.db-mobile{display:none}.screen-reader-text{position:absolute;left:-9999px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #a66b38;outline-offset:3px}img{max-width:100%;height:auto}.woocommerce .products li.product{background:#fff}@media(max-width:800px){.db-nav{flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.db-links{display:none}.db-mobile{display:flex;gap:18px;flex-wrap:wrap;width:100%;font-size:14px;font-weight:700}.db-hero{padding:45px 0}.db-hero-grid,.db-story,.db-grid2,.db-grid3,.db-trust{grid-template-columns:1fr}.db-hero .db-placeholder{min-height:260px}.db-section{padding:42px 0}.db-logo{font-size:20px}.db-action{padding:7px;font-size:13px}}

/* Version 1.1: reliable navigation and product layouts */
.db-nav{display:flex;flex-wrap:nowrap;gap:18px}.db-links{min-width:0;display:flex;gap:18px;align-items:center}.db-links .db-menu{display:flex;gap:18px;align-items:center;list-style:none;margin:0;padding:0}.db-links li{list-style:none}.db-links a{white-space:nowrap}.db-mobile-menu{display:none}.db-actions{margin-left:auto;flex-shrink:0}.db-logo{white-space:nowrap}
.db-grid3 .db-card{min-width:0;display:flex;flex-direction:column;gap:8px}.db-grid3 .db-card img{width:100%;height:220px;object-fit:contain;background:#f7f7f7}.db-grid3 .db-card h3{font-size:17px;line-height:1.4;overflow-wrap:anywhere;letter-spacing:0}.db-grid3 .db-card .db-price{margin-top:auto;font-size:19px}.db-card a{overflow-wrap:anywhere}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0!important;padding:0!important}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0;display:flex;flex-direction:column;padding:14px!important;border:1px solid #e4e4e4;border-radius:9px}.woocommerce ul.products li.product a img{width:100%;height:210px;object-fit:contain}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:1.4!important;font-weight:700!important;overflow-wrap:anywhere;min-height:0}.woocommerce ul.products li.product .button{margin-top:auto!important;text-align:center;font-size:13px!important;line-height:1.4!important;padding:11px 9px!important;white-space:normal}
@media(max-width:1000px){.db-links{display:none}.db-mobile-menu{display:block;position:relative;order:3;flex-shrink:0}.db-mobile-menu summary{list-style:none;cursor:pointer;border:1px solid #ddd;border-radius:6px;padding:8px 10px;font-weight:700}.db-mobile-menu summary::-webkit-details-marker{display:none}.db-mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;width:min(290px,88vw);background:#fff;box-shadow:0 10px 30px #0002;border:1px solid #ddd;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:0}.db-mobile-menu nav a{display:block;padding:10px 8px;text-decoration:none;font-weight:600}.db-mobile-menu .db-menu{padding:0;margin:0;list-style:none}.db-mobile-menu .db-menu li{list-style:none}.db-mobile{display:none!important}}
@media(max-width:700px){.db-wrap{padding-left:16px;padding-right:16px}.db-nav{min-height:66px;gap:8px;padding-top:9px;padding-bottom:9px;flex-wrap:nowrap}.db-logo{font-size:clamp(15px,4vw,20px);letter-spacing:0}.db-actions{gap:5px}.db-action{font-size:12px;padding:7px 8px;border-width:1px}.db-action span:not(.db-count){display:none}.db-mobile-menu summary{font-size:18px;padding:6px 9px}.db-mobile-menu summary span{display:none}.db-hero{padding:32px 0}.db-hero-grid{gap:22px}.db-hero h1{font-size:clamp(30px,8vw,42px)}.db-lead{font-size:16px}.db-grid3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.db-grid3 .db-card{padding:9px;gap:5px}.db-grid3 .db-card img{height:145px}.db-grid3 .db-card h3{font-size:14px;line-height:1.35}.db-grid3 .db-card .db-price{font-size:16px}.db-section h2{font-size:27px}.db-section{padding:34px 0}.db-trust{grid-template-columns:1fr;gap:12px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products li.product{padding:9px!important}.woocommerce ul.products li.product a img{height:145px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important}.woocommerce ul.products li.product .button{font-size:12px!important;padding:10px 5px!important}.db-top{font-size:11px}.db-btn{font-size:14px}}
@media(max-width:365px){.db-logo{font-size:14px}.db-action{padding:6px}.db-count{min-width:17px;font-size:11px}}

/* V3: isolated header layout, responsive, no legacy menu bleed */
.db-header .db-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:72px!important}
.db-header .db-desktop-links{display:flex;align-items:center;gap:18px;min-width:0}
.db-header .db-desktop-links a{font-size:14px;text-decoration:none;font-weight:650;white-space:nowrap}
.db-header .db-desktop-links ul{display:flex;gap:15px;list-style:none;margin:0;padding:0}
.db-header .db-desktop-links li{list-style:none;margin:0;padding:0}
.db-header .db-actions{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;margin-left:auto!important}
.db-header .db-action{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;line-height:1!important;padding:10px!important;border:1px solid #222!important;border-radius:8px!important;background:#fff!important;color:#111!important;text-decoration:none!important;font-size:13px!important}
.db-header .db-mobile-menu{display:none;position:relative;margin:0;flex:0 0 auto}
.db-header .db-logo{flex:0 1 auto;min-width:0;white-space:nowrap;text-decoration:none!important;font-weight:850!important;line-height:1.2!important}
.db-header .db-count{margin:0!important;min-width:20px;line-height:21px;font-size:12px}
@media(max-width:1050px){.db-header .db-desktop-links{display:none!important}.db-header .db-mobile-menu{display:block!important}.db-header .db-mobile-menu>summary{display:flex;align-items:center;justify-content:center;width:39px;height:39px;border:1px solid #222;border-radius:8px;background:#fff;color:#111;cursor:pointer;list-style:none;font-size:23px;line-height:1;padding:0}.db-header .db-mobile-menu>summary::-webkit-details-marker{display:none}.db-header .db-mobile-menu>nav{display:flex!important;position:absolute!important;top:calc(100% + 10px)!important;right:0!important;width:min(300px,90vw)!important;max-height:70vh;overflow:auto;z-index:99999!important;flex-direction:column!important;gap:0!important;background:#fff!important;border:1px solid #ddd!important;border-radius:10px!important;box-shadow:0 15px 35px #0002!important;padding:10px!important}.db-header .db-mobile-menu>nav a{display:block!important;color:#111!important;text-decoration:none!important;padding:10px 12px!important;font-size:15px!important;font-weight:650!important}.db-header .db-mobile-menu ul{display:block!important;list-style:none!important;margin:0!important;padding:0!important}.db-header .db-mobile-menu li{display:block!important;list-style:none!important;margin:0!important;padding:0!important}.db-header .db-mobile-menu li::marker{content:''}}
@media(max-width:650px){.db-header .db-nav{min-height:65px!important;padding:10px 14px!important;gap:7px!important}.db-header .db-logo{font-size:clamp(15px,4vw,20px)!important;letter-spacing:-.02em!important}.db-header .db-actions{gap:5px!important}.db-header .db-action{height:38px!important;padding:6px!important;font-size:15px!important}.db-header .db-action-label{display:none!important}.db-header .db-mobile-menu>summary{width:36px;height:38px}.db-top{font-size:11px!important;padding:6px!important}.db-grid3{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.db-grid3 .db-card{min-width:0!important;padding:10px!important}.db-grid3 .db-card h3{font-size:14px!important;line-height:1.35!important;overflow-wrap:anywhere!important}.db-grid3 .db-card img{height:140px!important;object-fit:contain!important}.db-grid3 .db-card .db-price{font-size:16px!important}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.woocommerce ul.products li.product .button{font-size:12px!important;line-height:1.3!important;min-height:44px!important}.db-section{padding:36px 0!important}}
@media(max-width:370px){.db-header .db-logo{font-size:14px!important}.db-header .db-action{padding:4px!important}.db-header .db-count{min-width:17px!important;font-size:10px!important}}

/* V4 fixed header: no duplicate WordPress menu, prevents overlap */
.db-header .db-nav{max-width:1360px!important;width:100%!important;margin:auto!important;display:flex!important;gap:22px!important;align-items:center!important;flex-wrap:nowrap!important}
.db-header .db-logo{flex:0 0 auto!important;font-size:clamp(19px,2vw,25px)!important}
.db-header .db-desktop-links{flex:1 1 auto!important;justify-content:center!important;gap:clamp(12px,1.6vw,25px)!important;min-width:0!important}
.db-header .db-desktop-links a{font-size:14px!important;white-space:nowrap!important}
.db-header .db-actions{flex:0 0 auto!important;margin-left:0!important}
@media(max-width:1150px){.db-header .db-desktop-links{display:none!important}.db-header .db-mobile-menu{display:block!important;margin-left:0!important}}
@media(min-width:1151px){.db-header .db-mobile-menu{display:none!important}}
@media(max-width:650px){.db-header .db-nav{gap:8px!important}.db-header .db-actions{margin-left:auto!important}}

.db-hero-photo{aspect-ratio:1844/1014;object-fit:cover;width:100%;height:auto;border-radius:9px}

/* V8 mobile header: explicit SVG icons, no invisible icon glyphs */
.db-header .db-nav{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:14px!important}
.db-header .db-logo{color:#111!important;text-decoration:none!important;white-space:nowrap!important;flex:0 1 auto!important;min-width:0!important}
.db-header .db-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;margin-left:auto!important}
.db-header .db-icon-button,.db-header .db-mobile-menu>summary{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:42px!important;height:42px!important;padding:8px!important;border:1px solid #222!important;border-radius:9px!important;background:#fff!important;color:#111!important;text-decoration:none!important;overflow:visible!important;line-height:1!important}
.db-header .db-icon-button svg,.db-header .db-mobile-menu>summary svg{display:block!important;width:21px!important;height:21px!important;stroke:#111!important;fill:none!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;flex:none!important}
.db-header .db-count{position:absolute!important;top:-7px!important;right:-7px!important;background:#111!important;color:#fff!important;border-radius:100px!important;min-width:20px!important;height:20px!important;padding:0 4px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important;line-height:1!important}
.db-header .db-mobile-menu{display:none!important;position:relative!important;flex:0 0 auto!important}
.db-header .db-mobile-menu>summary{list-style:none!important;cursor:pointer!important}
.db-header .db-mobile-menu>summary::-webkit-details-marker{display:none!important}
.db-header .db-mobile-menu>nav{display:none!important}
.db-header .db-mobile-menu[open]>nav{display:flex!important;position:absolute!important;right:0!important;top:calc(100% + 8px)!important;z-index:99999!important;flex-direction:column!important;width:min(290px,calc(100vw - 30px))!important;background:#fff!important;border:1px solid #ddd!important;border-radius:10px!important;padding:8px!important;box-shadow:0 12px 35px #0002!important}
.db-header .db-mobile-menu nav a{color:#111!important;padding:12px!important;font-size:15px!important;text-decoration:none!important;display:block!important}
@media(max-width:1150px){.db-header .db-desktop-links{display:none!important}.db-header .db-mobile-menu{display:block!important}}
@media(min-width:1151px){.db-header .db-mobile-menu{display:none!important}}
@media(max-width:650px){.db-header .db-nav{gap:9px!important;padding:12px 16px!important}.db-header .db-logo{font-size:clamp(17px,4.4vw,22px)!important;letter-spacing:-.04em!important}.db-header .db-actions{gap:7px!important}.db-header .db-icon-button,.db-header .db-mobile-menu>summary{width:38px!important;height:38px!important;padding:7px!important}.db-header .db-icon-button svg,.db-header .db-mobile-menu>summary svg{width:20px!important;height:20px!important}}

/* V9: second section photo */
.db-story-photo{aspect-ratio: 4 / 3;object-fit:cover;}


/* V10 unified header, all templates including WooCommerce archive */
.db-header .db-nav{width:100%!important;max-width:1180px!important;margin:0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;flex-wrap:nowrap!important;min-height:76px!important}
.db-header .db-logo{color:#111!important;flex:0 0 auto!important;font-size:clamp(18px,2vw,25px)!important;letter-spacing:-.025em!important;line-height:1.2!important}
.db-header .db-desktop-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:22px!important;flex:1 1 auto!important}
.db-header .db-actions{display:flex!important;align-items:center!important;gap:9px!important;margin-left:auto!important;flex:0 0 auto!important}
.db-header .db-icon-button,.db-header .db-mobile-menu>summary{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1.5px solid #222!important;border-radius:9px!important;background:#fff!important;color:#111!important;padding:9px!important;line-height:1!important;opacity:1!important;visibility:visible!important;box-shadow:none!important;position:relative!important}
.db-header .db-icon-button svg,.db-header .db-mobile-menu>summary svg{display:block!important;visibility:visible!important;opacity:1!important;fill:none!important;stroke:#111!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px!important;max-height:22px!important;position:static!important;transform:none!important}
.db-header .db-count{position:absolute!important;right:-6px!important;top:-7px!important;min-width:19px!important;height:19px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#111!important;color:#fff!important;font-size:11px!important;border-radius:30px!important;padding:0 4px!important;margin:0!important}
.db-header .db-mobile-menu{display:none!important;position:relative!important;flex:0 0 auto!important}
.db-header .db-mobile-menu>summary{list-style:none!important;cursor:pointer!important}
.db-header .db-mobile-menu>summary::-webkit-details-marker{display:none!important}
.db-header .db-mobile-menu>nav{display:none!important}
.db-header .db-mobile-menu[open]>nav{display:flex!important;flex-direction:column!important;position:absolute!important;right:0!important;top:calc(100% + 9px)!important;width:min(280px,calc(100vw - 24px))!important;z-index:99999!important;background:#fff!important;border:1px solid #ddd!important;border-radius:10px!important;box-shadow:0 14px 30px #0002!important;padding:8px!important}
.db-header .db-mobile-menu nav a{display:block!important;padding:12px!important;color:#111!important;text-decoration:none!important;font-size:15px!important;font-weight:650!important}
@media(max-width:1150px){.db-header .db-desktop-links{display:none!important}.db-header .db-mobile-menu{display:block!important}}
@media(min-width:1151px){.db-header .db-mobile-menu{display:none!important}}
@media(max-width:650px){.db-header .db-nav{gap:7px!important;padding:12px 14px!important;min-height:70px!important}.db-header .db-logo{font-size:clamp(17px,4.3vw,22px)!important;white-space:nowrap!important;min-width:0!important}.db-header .db-actions{gap:7px!important}.db-header .db-icon-button,.db-header .db-mobile-menu>summary{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:7px!important}.db-header .db-icon-button svg,.db-header .db-mobile-menu>summary svg{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important}.db-top{font-size:11px!important}}
.db-info-page{max-width:900px;margin:0 auto;padding:58px 22px 75px}.db-info-page h1{font-size:clamp(32px,5vw,48px);line-height:1.15;margin:0 0 24px}.db-info-page h2{font-size:clamp(22px,3vw,30px);line-height:1.25;margin:32px 0 12px}.db-info-page p{font-size:17px;line-height:1.8;color:#333}.db-contact-phone{font-size:clamp(25px,4vw,36px)!important;font-weight:800!important}.db-contact-phone a{color:#111!important;text-decoration:underline;text-underline-offset:4px}.db-info-page .db-btn{margin-top:12px}

/* V13: hide the obsolete plant promotion on product catalog pages,
   including its spacing before JavaScript removes the section. */
body.post-type-archive-product .elementor-section:has(h1, h2, h3, h4):has(a[href*="plant"]),
body.post-type-archive-product .wp-block-group:has(h1, h2, h3, h4):has(a[href*="plant"]) {display:none!important}

/* V15 Blog */
.db-blog-intro{max-width:780px;margin:15px 0 45px}.db-blog-intro h1{font-size:clamp(32px,4vw,52px);line-height:1.15;margin:14px 0}.db-blog-intro p{font-size:18px;color:#444}.db-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.db-blog-card{border:1px solid #e3e3e3;border-radius:12px;padding:18px}.db-blog-card img{width:100%;height:200px;object-fit:cover;border-radius:8px}.db-blog-card h2{font-size:22px;line-height:1.3}.db-blog-card a{text-decoration:none}.db-blog-card p{color:#444}.db-blog-read{font-weight:700;text-decoration:underline!important}@media(max-width:850px){.db-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.db-blog-grid{grid-template-columns:1fr}.db-blog-card img{height:auto}}

/* V16: semantic breadcrumb, accessible navigation, responsive images */
.db-breadcrumb{font-size:13px;line-height:1.6;color:#555;margin:16px auto 12px}.db-breadcrumb a{color:#333;text-decoration:underline;text-underline-offset:3px}.db-breadcrumb span[aria-current="page"]{font-weight:650;color:#111}.db-blog-card img{aspect-ratio:16/10;object-fit:cover}.woocommerce ul.products li.product img{height:auto;aspect-ratio:4/3;object-fit:contain}.db-blog-intro{max-width:760px;margin-bottom:30px}.db-blog-intro h1{line-height:1.2}
