/* Pesely home preview v1: scoped by loading only on home-preview.php */
:root{--pesely-ink:#173b2e;--pesely-green:#008e52;--pesely-line:#dfebe4}
body{color:#243b32;background:#fff;line-height:1.65}
.container{max-width:1200px}
a,button,input{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #146b51;outline-offset:4px}
.header-main{padding-top:18px;padding-bottom:18px}
.logo-img{max-width:265px;height:auto}
.navbar{border-top:1px solid #edf2ef;border-bottom:1px solid var(--pesely-line)}
.nav-link{font-weight:600}
.hero{height:clamp(240px,33vw,410px);min-height:0;background:#edf5ee}
.hero-slide img{height:100%;max-width:1440px;object-fit:contain}
.pesely-quick-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:24px;padding-bottom:24px;border-bottom:1px solid var(--pesely-line)}
.pesely-quick-actions p{margin:0;font-size:17px;color:var(--pesely-ink);font-weight:600}
.pesely-quick-actions>div{display:flex;gap:12px;flex-wrap:wrap}
.pesely-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 22px;border:1px solid var(--pesely-green);border-radius:10px;background:var(--pesely-green);color:#fff;text-decoration:none;font-weight:600}
.pesely-button-outline{background:white;color:var(--pesely-green)}
.about-highlight{padding:64px 0}.about-grid{gap:44px}
.about-content h2{color:var(--pesely-ink);font-size:clamp(26px,3vw,38px);line-height:1.35}
.about-content p{font-size:16px;line-height:1.9;color:#526259}
.pesely-story-image{padding:0;background:#087a50;box-shadow:0 12px 36px #123b2515;border-radius:20px}
.pesely-story-image::before{display:none}.pesely-story-image img{display:block;width:100%;height:100%;object-fit:contain}
.about-stats{gap:12px}.about-stat{border:1px solid #e6f0e9;border-radius:14px}
.section-title{color:var(--pesely-ink);font-size:clamp(26px,3vw,34px)}
.categories-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.category-card{border:1px solid var(--pesely-line);border-radius:16px;box-shadow:none;min-height:150px;transition:transform .2s,border-color .2s}
.category-card:hover{transform:translateY(-3px);border-color:#17875a;box-shadow:0 8px 20px #173b2e0a}
.category-card-bg{background:#f1f7f2!important}.category-card:nth-child(3n+2) .category-card-bg{background:#f7f3eb!important}
.category-card-content h4{color:#173b2e!important;text-shadow:none!important;font-size:17px!important}
.category-card-content p{color:#63756a!important;font-size:12px!important}
.category-emoji{font-size:32px}.category-icon-badge{background:#fff!important;color:#248655!important}
.products-section{padding:64px 0}.products-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.product-card{border:1px solid #e1e9e3;border-radius:14px;box-shadow:0 3px 10px #1c402905;overflow:hidden}
.product-image{background:#f1f5f2!important;aspect-ratio:4/3;height:auto!important}
.product-image img{object-fit:contain!important;background:white;padding:12px}
.product-image>div:not(.product-actions-overlay){color:#769586;font-size:32px!important;filter:none!important;text-align:center}
.pesely-photo-pending{display:block;font-size:12px;margin-top:8px;color:#5b7064}
.product-name{line-height:1.6;font-size:15px}.product-info{padding:16px}
.product-footer{flex-wrap:wrap;gap:8px}.product-price{color:#00864d}
.products-toolbar .search-box{width:100%;max-width:560px}.search-input{min-height:48px}
.categories-filter{gap:8px;margin-bottom:24px}.cat-filter-btn{min-height:40px}
@media(max-width:1000px){.header-contact{display:none}.categories-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.about-grid{gap:24px}.products-grid{gap:14px}}
@media(max-width:768px){.container{width:100%;padding-left:20px;padding-right:20px}.header-main{padding-top:12px;padding-bottom:12px;gap:12px}.logo-img{max-width:190px}.whatsapp-btn{font-size:13px;padding:10px 12px}.hero{height:clamp(160px,38vw,290px)}.pesely-quick-actions{align-items:stretch;flex-direction:column;gap:14px}.pesely-quick-actions p{font-size:15px}.pesely-quick-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pesely-button{padding:9px 10px;font-size:14px}.about-grid{grid-template-columns:1fr}.about-highlight{padding:40px 0}.about-content p{font-size:15px}.categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-card{min-height:135px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.products-section{padding:40px 0}.categories-filter{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:4px 0 12px}.cat-filter-btn{flex:0 0 auto;white-space:nowrap}.product-info{padding:12px}.product-name{font-size:14px}.product-price{font-size:18px}.product-actions-overlay{opacity:1!important;transform:none!important;position:static!important;background:transparent!important;padding:8px!important}.product-image{flex-wrap:wrap;aspect-ratio:auto;min-height:170px}.product-image img{height:135px!important}.add-to-cart-btn{min-height:42px;opacity:1!important}.product-actions-overlay{width:100%}.about-stats{gap:8px}.about-stat{padding:14px 6px}.about-stat-num{font-size:28px}.nav-link{min-height:44px}.cart-btn{min-height:44px}.clients-section{padding:40px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Version 2 hero: real HTML text and a large responsive illustration. */
.pesely-hero-v2{background:linear-gradient(110deg,#f5f8f0,#e6f1e7);border-bottom:1px solid #dfebe4;padding:54px 0}
.pesely-hero-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:44px;align-items:center}
.pesely-hero-copy{min-width:0}.pesely-eyebrow{font-size:13px;letter-spacing:.12em;font-weight:700;color:#387452;margin:0 0 20px}
.pesely-hero-copy h1{font-size:clamp(32px,3.5vw,52px);line-height:1.23;letter-spacing:-.035em;color:#123d2b;margin:0 0 24px;font-weight:750;overflow-wrap:break-word}
.pesely-hero-description{font-size:17px;line-height:1.9;color:#52675a;margin:0 0 28px;max-width:470px}
.pesely-hero-buttons{display:flex;gap:12px;flex-wrap:wrap}.pesely-hero-note{font-size:13px;color:#637b6c;margin:22px 0 0}
.pesely-hero-visual{overflow:hidden;border-radius:24px;box-shadow:0 18px 48px #123d2b18;background:#dcebdc}
.pesely-hero-visual img{display:block;width:100%;height:auto;max-width:none;aspect-ratio:3/2;object-fit:cover}
.categories-grid{gap:12px}.category-card{min-height:126px}.category-card-content{padding:18px 12px}.category-emoji{font-size:28px;margin-bottom:8px}
@media(max-width:1000px){.pesely-hero-layout{gap:24px}.pesely-hero-copy h1{font-size:36px}.pesely-hero-description{font-size:16px}}
@media(max-width:768px){.pesely-hero-v2{padding:32px 0}.pesely-hero-layout{grid-template-columns:minmax(0,1fr);gap:28px}.pesely-hero-copy h1{font-size:clamp(32px,8.4vw,44px);max-width:530px}.pesely-eyebrow{margin-bottom:14px}.pesely-hero-description{max-width:none;margin-bottom:22px}.pesely-hero-visual{border-radius:18px}.pesely-hero-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pesely-hero-buttons .pesely-button{font-size:13px;padding:10px 8px}.category-card{min-height:118px}.category-card-content h4{font-size:15px!important}}

/* 2.1: compact responsive cards and explicit section flow. */
.pesely-hero-copy h1>span{display:block;white-space:nowrap}
section.section,section.products-section{position:relative;height:auto;min-height:0;clear:both;isolation:isolate}
.categories-grid{grid-auto-rows:auto;align-items:stretch;position:relative;height:auto}
.category-card{aspect-ratio:auto;min-height:126px}
.products-section{margin-top:0;overflow:visible}
@media(max-width:768px){
 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .stats-section{padding:28px 0}.stat-card{padding:16px 8px}.stat-number{font-size:28px}
 .about-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.about-stat-num{font-size:26px}.about-stat-label{font-size:12px}
 .clients-grid,.certs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .client-card,.cert-card{padding:18px 10px;min-width:0}.cert-icon,.client-icon{width:44px;height:44px;font-size:20px}
 .certs-section,.clients-section{padding:36px 0}.certs-section .section-header{margin-bottom:24px}
 .category-card{min-height:110px}.category-card-content{padding:14px 8px}.category-card-content h4{font-size:15px!important}.category-card-content p{font-size:11px!important}.category-icon-badge{width:25px;height:25px;top:8px;right:8px}.category-emoji{font-size:25px}
 .pesely-hero-v2{display:block!important}.pesely-hero-copy h1{font-size:clamp(30px,8vw,42px)}
 .section{padding-top:40px!important;padding-bottom:40px!important}
 .product-image{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:135px auto;min-height:0;align-items:center!important;justify-items:stretch}
 .product-image>img{width:100%;height:135px!important;grid-row:1}.product-image>div:not(.product-actions-overlay){grid-row:1}
 .product-image .product-actions-overlay{position:static!important;grid-row:2;display:block!important;opacity:1!important;transform:none!important;padding:6px!important}
 .add-to-cart-btn{width:100%;font-size:12px;padding:8px 4px;min-height:40px}.product-name{overflow-wrap:anywhere}
}

/* 2.2: undo inherited narrow-screen flex layout in statistical cards. */
@media(max-width:768px){
 .stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .stats-grid .stat-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:18px 8px;min-width:0;text-align:center}
 .stats-grid .stat-icon{margin:0;width:42px;height:42px;flex:0 0 42px;font-size:20px}
 .stats-grid .stat-number{font-size:28px;line-height:1.2;margin:0;white-space:nowrap}
 .stats-grid .stat-label{display:block;width:100%;font-size:12px;line-height:1.5;white-space:normal;word-break:normal;overflow-wrap:normal;writing-mode:horizontal-tb}
 .product-sku{overflow-wrap:anywhere;word-break:normal;line-height:1.5}
}
