/*
Theme Name: Atmajaa
Theme URI: https://atmajaa.com
Author: Atmajaa Publishers
Description: Atmajaa Publishers — configurable WooCommerce publishing storefront.
Version: 10.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: atmajaa
License: GNU General Public License v2 or later
*/
:root{
 --red:#b5121b;--red-dark:#8e0d14;--ink:#171412;--muted:#6b625b;--paper:#fff;--soft:#f7f2ec;
 --line:#e4ddd5;--dark:#21191a;--max:1400px;--shadow:0 12px 32px rgba(23,20,18,.10);
 --heading:Georgia,'Times New Roman',serif;--body:Arial,'Helvetica Neue',sans-serif
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--red);text-decoration:none}
a:hover{color:var(--red-dark)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.container{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:24px}
.site-main{min-height:55vh}

/* Header: one predictable three-column system */
.topbar{background:var(--dark);color:#fff;font-size:12px}
.topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.topbar-message{font-weight:600}
.topbar-links{display:flex;align-items:center;gap:20px}
.topbar-links a,.topbar-links span{color:#fff}
.site-header{background:#fff;position:relative;z-index:1000}
.header-main{background:#fff;border-bottom:1px solid var(--line)}
.header-main-inner{min-height:108px;display:grid;grid-template-columns:270px minmax(340px,1fr) auto;align-items:center;gap:38px}
.site-branding{min-width:0;justify-self:start}
.site-branding .custom-logo-link{display:block;line-height:0}
.site-branding .custom-logo{max-width:245px;max-height:76px;width:auto;height:auto}
.brand-text{display:block;font-family:var(--heading);font-size:36px;line-height:1;color:var(--ink);font-weight:700}
.brand-tagline{display:block;margin-top:7px;color:var(--muted);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.header-search{min-width:0}
.header-search form{height:48px;width:100%;display:flex;border:1px solid #d6cec6;border-radius:3px;overflow:hidden;background:#fff}
.header-search select{width:190px;flex:0 0 190px;border:0;border-right:1px solid var(--line);padding:0 12px;background:#fff;color:var(--ink)}
.header-search input[type=search]{flex:1;min-width:0;border:0;padding:0 16px;outline:0;background:#fff}
.header-search button{width:56px;flex:0 0 56px;border:0;background:var(--red);color:#fff;font-size:24px}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.header-action{position:relative;display:inline-flex;align-items:center;gap:8px;color:var(--ink);padding:8px 12px;border-left:1px solid var(--line);font-size:13px;font-weight:700}
.header-action:first-child{border-left:0}
.header-action-icon{font-size:20px;line-height:1}
.header-action-label{display:inline-block}
.cart-count{display:inline-flex;min-width:19px;height:19px;padding:0 5px;border-radius:50%;align-items:center;justify-content:center;background:var(--red);color:#fff;font-size:10px;font-weight:700;margin-left:-3px}
.nav-toggle{display:none;width:40px;height:40px;border:1px solid var(--line);background:#fff;padding:7px}
.nav-toggle span{display:block;height:2px;background:var(--ink);margin:5px 0}
.nav-wrap{background:var(--red);border-bottom:0}
.nav-inner{min-height:54px}
.main-navigation{width:100%}
.main-navigation ul{display:flex;align-items:stretch;justify-content:flex-start;gap:0;list-style:none;margin:0;padding:0}
.main-navigation li{position:relative}
.main-navigation a{display:flex;align-items:center;min-height:54px;padding:0 22px;color:#fff;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.main-navigation a:hover,.main-navigation .current-menu-item>a,.main-navigation .current-menu-ancestor>a{background:var(--red-dark);color:#fff}
.main-navigation ul ul{display:none;position:absolute;top:54px;left:0;min-width:230px;background:#fff;box-shadow:var(--shadow);border-top:3px solid var(--red);z-index:1001;flex-direction:column;align-items:stretch;padding:6px 0}
.main-navigation li:hover>ul,.main-navigation li:focus-within>ul{display:flex}
.main-navigation ul ul a{min-height:auto;padding:11px 18px;background:#fff;color:var(--ink);text-transform:none;font-weight:600}
.main-navigation ul ul a:hover{background:var(--soft);color:var(--red)}

/* Homepage: permanent categories column + smaller slider */
.homepage-stage{width:100%;max-width:var(--max);margin:0 auto;padding:18px 24px 0;display:grid;grid-template-columns:255px minmax(0,1fr);gap:18px;align-items:stretch}
.category-panel{background:#fff;border:1px solid var(--line);box-shadow:0 4px 18px rgba(0,0,0,.05);align-self:stretch}
.category-panel-head{min-height:52px;background:var(--red);color:#fff;display:flex;align-items:center;gap:10px;padding:0 18px;text-transform:uppercase;letter-spacing:.02em}
.category-panel-icon{font-size:18px}
.category-panel-list{padding:6px 0}
.category-panel-item{border-bottom:1px solid #eee7e0}
.category-panel-item>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;color:var(--ink);font-size:13px;font-weight:700}
.category-panel-item>a:hover{color:var(--red);background:var(--soft)}
.category-panel-item>a small{color:#9a918a;font-size:10px}
.category-children{padding:0 16px 9px 28px;display:flex;flex-direction:column;gap:3px}
.category-children a{font-size:11px;color:var(--muted);line-height:1.35}
.category-children a:hover{color:var(--red)}
.category-panel-all{display:block;padding:13px 16px;border-top:1px solid var(--line);font-size:12px;font-weight:700;color:var(--red)}
.category-empty{padding:15px;color:var(--muted);font-size:12px}
.hero-area{min-width:0}
.shop-hero{height:505px;position:relative;overflow:hidden;background:#2b1b1d;border-radius:3px}
.hero-slide{position:absolute;inset:0;overflow:hidden;opacity:0;visibility:hidden;transition:opacity .45s ease}
.hero-slide.is-active{opacity:1;visibility:visible}
.hero-media{position:absolute;inset:0;background:var(--soft)}
.hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,12,13,.84) 0%,rgba(23,12,13,.55) 42%,rgba(23,12,13,.08) 75%,rgba(23,12,13,.02) 100%)}
.hero-content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;color:#fff;padding-right:40%;padding-top:10px}
.hero-kicker{display:block;color:#fff;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.hero-content h1{font-family:var(--heading);font-size:48px;line-height:1.08;color:#fff;margin:12px 0 16px;max-width:720px}
.hero-copy,.hero-content p{color:#fff;font-size:17px;max-width:650px;margin:0 0 18px}
.hero-copy p{margin:0 0 8px;color:#fff}
.hero-button{margin-top:8px}
.hero-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:42px;height:58px;border:0;border-radius:2px;background:rgba(0,0,0,.24);color:#fff;font-size:40px;line-height:1;padding:0}
.hero-arrow:hover{background:rgba(0,0,0,.55)}
.hero-arrow.prev{left:12px}.hero-arrow.next{right:12px}
.hero-dots{position:absolute;z-index:5;left:50%;bottom:16px;transform:translateX(-50%);display:flex;gap:7px}
.hero-dot{width:10px;height:10px;padding:0;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:#fff;opacity:.45}
.hero-dot.active{opacity:1}

/* Services, promos, products */
.service-strip{border:1px solid var(--line);border-left:0;border-right:0;background:#fff;margin-top:18px}
.service-grid{display:grid;grid-template-columns:repeat(5,1fr)}
.service-grid>div{min-height:82px;padding:16px 18px;border-right:1px solid var(--line);display:grid;grid-template-columns:32px 1fr;column-gap:9px;align-content:center}
.service-grid>div:last-child{border-right:0}
.service-icon{grid-row:1/3;font-size:22px;color:var(--red);align-self:center}
.service-grid strong{font-size:13px;line-height:1.25}.service-grid span:last-child{font-size:11px;color:var(--muted);line-height:1.35}
.promo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding-top:24px;padding-bottom:4px}
.promo-card{position:relative;min-height:180px;padding:24px;background:linear-gradient(135deg,#f4ece4,#fff);border:1px solid var(--line);color:var(--ink);overflow:hidden}
.promo-card-image{position:absolute;right:0;bottom:0;width:52%;height:100%;object-fit:cover;opacity:.28;z-index:0}
.promo-card>*:not(.promo-card-image){position:relative;z-index:1}
.promo-card span{font-size:10px;letter-spacing:.15em;font-weight:700;color:var(--red)}
.promo-card h3{font-family:var(--heading);font-size:23px;line-height:1.15;margin:14px 0 7px;max-width:230px}
.promo-card p{font-size:13px;color:var(--muted);max-width:240px}
.promo-card b{color:var(--red);font-size:12px}
.promo-2{background:linear-gradient(135deg,#f6e2e2,#fff)}.promo-3{background:linear-gradient(135deg,#eee9e2,#fff)}.promo-4{background:linear-gradient(135deg,#e9edf0,#fff)}
.shop-section,.category-section,.blog-section{padding:48px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.section-head h2{font-family:var(--heading);font-size:30px;line-height:1.2;margin:0}
.section-head a{font-size:12px;font-weight:700;white-space:nowrap}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.shop-product{min-width:0}
.product-image{display:block;position:relative;background:var(--soft);aspect-ratio:3/4;overflow:hidden;border:1px solid #eee7e0}
.product-image img{width:100%;height:100%;object-fit:contain;transition:transform .25s}
.shop-product:hover .product-image img{transform:scale(1.035)}
.sale-badge{position:absolute;top:10px;left:10px;background:var(--red);color:#fff;padding:5px 8px;font-size:10px;font-weight:700}
.shop-product h3{font-size:14px;line-height:1.35;margin:11px 0 5px}
.shop-product h3 a{color:var(--ink)}
.product-price{font-weight:700;color:var(--red);font-size:14px}
.mini-cart{display:inline-block;margin-top:6px;font-size:11px;font-weight:700}
.category-section{background:var(--soft)}
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.category-card{min-height:170px;background:#d7d1cb;background-size:cover;background-position:center;position:relative;display:flex;align-items:flex-end;overflow:hidden}
.category-card:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.72))}
.category-card span{position:relative;color:#fff;padding:18px}.category-card strong,.category-card small{display:block}.category-card strong{font-family:var(--heading);font-size:19px}.category-card small{font-size:11px}
.category-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.tab-panel{border-top:3px solid var(--red);padding-top:16px}.tab-panel>h3{margin:0 0 16px}.tab-panel>h3 a{color:var(--ink)}
.product-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.product-grid.compact .mini-cart{display:none}
.publishing-banner{background:var(--dark);color:#fff;padding:48px 0}.publishing-banner-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}
.publishing-banner h2{font-family:var(--heading);font-size:34px;color:#fff;margin:7px 0}.publishing-banner p{color:#d7d0ca;margin:0}
.blog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.blog-card{border:1px solid var(--line);background:#fff}.blog-card img{width:100%;aspect-ratio:16/10;object-fit:cover}.blog-card-body{padding:16px}.blog-card-body small{font-size:10px;color:var(--muted)}.blog-card-body h3{font-size:16px;margin:7px 0}.blog-card-body h3 a{color:var(--ink)}.blog-card-body p{font-size:12px;color:var(--muted)}

/* Footer */
.site-footer{background:var(--dark);color:#c9c1bb;margin-top:0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-top:50px;padding-bottom:42px}
.footer-logo{margin-bottom:15px}.footer-logo img{max-height:54px;width:auto}.footer-logo a{font-family:var(--heading);font-size:28px;color:#fff}
.footer-col h4{font-size:14px;color:#fff;margin:0 0 14px;font-weight:700}.footer-col p,.footer-col li,.footer-col a{font-size:12px}.footer-col ul{list-style:none;margin:0;padding:0}.footer-col li{margin:0 0 8px}.footer-col a{color:#c9c1bb}.footer-col a:hover{color:#fff}.footer-contact{margin-top:18px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);font-size:11px;color:#938b84}.footer-bottom-inner{display:flex;justify-content:space-between;gap:20px;padding-top:14px;padding-bottom:14px}

/* Pages */
.page-hero{background:var(--soft);border-bottom:1px solid var(--line);padding:48px 0}.page-hero h1{font-family:var(--heading);font-size:42px;margin:0}.page-hero-subtitle{color:var(--muted);max-width:720px;margin:9px 0 0}
.default-page-layout{max-width:980px;margin:50px auto;padding-inline:24px}.default-page{font-size:17px}.default-page .entry-header{margin-bottom:28px}.entry-meta{color:var(--muted);font-size:12px}.entry-content{overflow-wrap:anywhere}.entry-content img{margin:20px auto}.entry-content h2,.entry-content h3{margin-top:1.7em}.entry-content ul,.entry-content ol{padding-left:1.5em}.entry-content blockquote{border-left:3px solid var(--red);margin:25px 0;padding:8px 20px;background:var(--soft)}.page-featured-image{margin-bottom:28px}.page-featured-image img{width:100%;max-height:600px;object-fit:cover}

/* WooCommerce */
.woocommerce-container{max-width:var(--max);margin:0 auto;padding:0 24px 70px}.woocommerce-breadcrumb{padding:20px 0 8px;color:var(--muted);font-size:13px}.woocommerce-products-header{margin:25px 0 15px}.woocommerce-products-header h1{font-family:var(--heading);font-size:38px}.woocommerce-result-count{font-size:13px;color:var(--muted)}.woocommerce-ordering select{padding:9px 12px;border:1px solid var(--line);background:#fff}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:30px 0!important;padding:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product{width:100%!important;margin:0!important;float:none!important;padding:0 0 18px!important;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;overflow:hidden}.woocommerce ul.products li.product a img{width:100%!important;height:auto!important;aspect-ratio:3/4;object-fit:contain;margin:0!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--body);font-size:15px;margin:14px 16px 4px;padding:0}.woocommerce ul.products li.product .price{color:var(--red);margin:0 16px 12px;font-size:14px}.woocommerce ul.products li.product .button{margin:0 16px auto}.woocommerce ul.products li.product .onsale{left:12px;top:12px;right:auto;margin:0;background:var(--red);min-height:0;line-height:1.4;padding:5px 9px}.woocommerce nav.woocommerce-pagination ul{border:0!important;display:flex;justify-content:center;gap:7px}.woocommerce nav.woocommerce-pagination ul li{border:0!important}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--line)!important;padding:10px 13px;background:#fff}.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--red);color:#fff}.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:55px;margin:35px 0 55px}.woocommerce div.product div.images{width:auto!important}.woocommerce div.product div.summary{width:auto!important}.woocommerce div.product .product_title{font-family:var(--heading);font-size:38px}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--red);font-weight:700}.woocommerce div.product .woocommerce-product-gallery__image img{width:100%;object-fit:contain}.woocommerce div.product .product_meta{border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:13px}.woocommerce .quantity .qty{min-height:43px;border:1px solid var(--line)}.woocommerce table.shop_table{border-collapse:collapse;border:1px solid var(--line)}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:12px;border-color:var(--line)}.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line)}.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:10px 0}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid var(--line);padding:11px;background:#fff}.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--red)}.alignleft{float:left;margin:0 25px 20px 0}.alignright{float:right;margin:0 0 20px 25px}.aligncenter{display:block;margin:20px auto}.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}

/* Utilities */
.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,input[type=submit]{display:inline-block;background:var(--red);color:#fff!important;border:0;border-radius:2px;padding:11px 20px;font-weight:700;line-height:1.2}
.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,input[type=submit]:hover{background:var(--ink);color:#fff!important}
.alignleft{float:left;margin:0 25px 20px 0}.alignright{float:right;margin:0 0 20px 25px}.aligncenter{display:block;margin:20px auto}
.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}

/* Responsive */
@media(max-width:1150px){
 .header-main-inner{grid-template-columns:230px minmax(260px,1fr) auto;gap:20px}
 .header-action-label{display:none}
 .homepage-stage{grid-template-columns:220px minmax(0,1fr)}
 .main-navigation a{padding-inline:15px}
 .product-grid,.blog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 .header-main-inner{grid-template-columns:200px minmax(0,1fr) auto}
 .header-search select{display:none}
 .homepage-stage{grid-template-columns:210px minmax(0,1fr)}
 .shop-hero{height:470px}
 .hero-content{padding-right:30%}
 .hero-content h1{font-size:40px}
 .service-grid{grid-template-columns:repeat(3,1fr)}
 .service-grid>div:nth-child(3){border-right:0}
 .service-grid>div:nth-child(n+4){border-top:1px solid var(--line)}
 .promo-grid{grid-template-columns:repeat(2,1fr)}
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
 .topbar{display:none}
 .header-main-inner{min-height:82px;grid-template-columns:1fr auto;gap:12px}
 .site-branding .custom-logo{max-width:190px;max-height:58px}
 .brand-text{font-size:28px}
 .header-search{grid-column:1/-1;grid-row:2;margin-bottom:12px}
 .header-actions{grid-column:2;grid-row:1}
 .nav-toggle{display:block}
 .header-action{padding:6px}
 .nav-wrap{background:#fff;border-bottom:2px solid var(--red)}
 .main-navigation{display:none}
 .main-navigation.is-open{display:block}
 .main-navigation ul{display:flex;flex-direction:column;align-items:stretch}
 .main-navigation a{min-height:44px;padding:0 10px;background:var(--red);border-bottom:1px solid rgba(255,255,255,.12)}
 .main-navigation ul ul{position:static;display:none;box-shadow:none;border:0}
 .main-navigation li.menu-item-open>ul{display:flex}
 .homepage-stage{display:block;padding-inline:16px}
 .category-panel{margin-bottom:14px}
 .category-panel-list{display:grid;grid-template-columns:repeat(2,1fr)}
 .category-panel-item>a{padding:9px 12px}
 .category-children{display:none}
 .shop-hero{height:440px}
 .hero-content{padding:24px 24px 24px 24px;justify-content:center}
 .hero-content h1{font-size:34px}
 .hero-shade{background:linear-gradient(90deg,rgba(23,12,13,.82),rgba(23,12,13,.45))}
 .service-grid{grid-template-columns:1fr 1fr}
 .service-grid>div{border-right:0!important;border-bottom:1px solid var(--line)}
 .product-grid,.product-grid.compact,.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .category-tabs{grid-template-columns:1fr}
 .publishing-banner-inner{display:block}.publishing-banner .button{margin-top:18px}
 .footer-grid{grid-template-columns:1fr}
 .footer-bottom-inner{display:block}.footer-bottom-inner span{display:block;margin:4px 0}
 .woocommerce div.product{grid-template-columns:1fr;gap:30px}
}
@media(max-width:480px){
 .site-branding .custom-logo{max-width:165px}
 .header-action-label{display:none}
 .header-search form{height:44px}
 .category-panel-list{grid-template-columns:1fr}
 .shop-hero{height:420px}
 .hero-content{padding:20px}
 .hero-content h1{font-size:30px}
 .hero-copy,.hero-content p{font-size:14px}
 .promo-grid{grid-template-columns:1fr}
 .product-grid,.product-grid.compact,.blog-grid,.category-grid{grid-template-columns:1fr 1fr}
 .service-grid{grid-template-columns:1fr}
 .service-grid>div{border-bottom:1px solid var(--line)}
 .footer-grid{grid-template-columns:1fr}
}

/* Editorial / custom-page components */
.trust-strip{background:var(--soft);border-bottom:1px solid var(--line)}.trust-strip .trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.trust-strip .trust-item{padding:18px 20px;border-right:1px solid var(--line);font-size:13px}.trust-strip .trust-item:last-child{border-right:0}.about-layout,.publish-layout,.kolpo-intro{max-width:980px;margin:55px auto;padding-inline:24px}.founders-callout{margin-top:35px;padding:25px;background:var(--soft);border-left:3px solid var(--red)}.founders-names{font-family:var(--heading);font-size:22px}.genre-band,.cta-band,.kolpo-tiers-section,.kolpo-standard-note,.latest-titles{padding:55px 0}.genre-band{background:var(--soft)}.genre-grid{display:flex;flex-wrap:wrap;gap:10px}.genre-pill{display:inline-block;border:1px solid var(--line);background:#fff;padding:10px 15px;color:var(--ink)}.genre-pill:hover{border-color:var(--red);color:var(--red)}.cta-band{background:var(--dark);color:#fff}.cta-band h2{color:#fff;font-family:var(--heading);font-size:32px}.cta-band p{color:#d7d0ca}.page-hero-publish .hero-cta{margin-top:20px}.kolpo-badge{display:inline-block;color:var(--red);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;margin-bottom:10px}.kolpo-tiers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.kolpo-tier-card{position:relative;border:1px solid var(--line);padding:28px;background:#fff}.kolpo-tier-card.is-featured{border:2px solid var(--red)}.kolpo-tier-flag{position:absolute;top:0;right:0;background:var(--red);color:#fff;font-size:11px;padding:6px 10px}.kolpo-tier-price{font-size:25px;font-weight:700;color:var(--red)}.kolpo-tier-features{padding-left:20px}.software-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.software-card{border:1px solid var(--line);padding:20px;color:var(--ink);background:#fff}.software-card:hover{box-shadow:var(--shadow);border-color:transparent}.software-card-thumb{margin:-20px -20px 18px}.software-status{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:5px 9px;background:var(--soft);color:var(--red)}.software-card h3{font-family:var(--heading);font-size:22px;margin:12px 0 7px}.software-card p{font-size:14px;color:var(--muted)}.page-header{padding-top:35px}.page-header h1{font-family:var(--heading);font-size:40px}.entry-summary{max-width:760px}.post-list-item{padding:28px 0;border-bottom:1px solid var(--line)}.post-list-item h2{font-family:var(--heading)}
@media(max-width:860px){.trust-strip .trust-grid,.kolpo-tiers-grid,.software-grid{grid-template-columns:1fr 1fr}.trust-strip .trust-item{border-right:0;border-bottom:1px solid var(--line)}.footer-grid{grid-template-columns:1fr 1fr}.about-layout,.publish-layout,.kolpo-intro{margin:35px auto}}
@media(max-width:600px){.trust-strip .trust-grid,.kolpo-tiers-grid,.software-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.about-layout,.publish-layout,.kolpo-intro{padding-inline:16px}.page-header h1{font-size:32px}}

/* ===== Atmajaa v8 structural corrections ===== */

/* Header: full-width, left-anchored brand, centered search, right actions */
.header-main-inner{
  width:100%;
  max-width:none;
  min-height:122px;
  padding:18px 38px;
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(420px,760px) auto;
  align-items:center;
  justify-content:space-between;
  gap:34px;
}
.site-branding{justify-self:start}
.site-branding .custom-logo{max-width:250px;max-height:78px}
.brand-tagline{font-size:12px;margin-top:8px}
.header-search{width:100%;justify-self:center}
.header-search form{height:52px}
.header-actions{justify-self:end;gap:4px}
.header-action{padding:10px 16px;font-size:14px}
.nav-wrap{background:var(--red);border-top:1px solid rgba(0,0,0,.08);border-bottom:3px solid var(--red-dark)}
.nav-inner{width:100%;max-width:none;padding:0 38px}
.main-navigation ul{display:flex;align-items:stretch;justify-content:flex-start}
.main-navigation a{color:#fff!important;padding:0 22px;min-height:54px;display:flex;align-items:center;font-weight:700}
.main-navigation>ul>li:first-child>a{padding-left:8px}
.main-navigation a:hover,.main-navigation .current-menu-item>a{background:var(--red-dark)}
.main-navigation ul ul{background:#fff;border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.12)}
.main-navigation ul ul a{color:var(--ink)!important;background:#fff;min-height:42px}
.main-navigation ul ul a:hover{background:var(--soft);color:var(--red)!important}

/* Prevent injected/empty layout cells from consuming grid columns */
.service-grid > :empty,
.promo-grid > :empty,
.footer-grid > :empty{display:none!important}

/* Services: always exactly five equal columns on desktop */
.service-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:var(--max)}
.service-grid>div{min-width:0}
.service-item{display:grid!important;grid-template-columns:32px minmax(0,1fr);column-gap:10px}
.service-item .service-icon{grid-row:1/3}
.service-grid strong,.service-grid span:last-child{min-width:0}

/* Promos: four cards in one row */
.promo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.promo-card{min-width:0;min-height:220px}
.promo-card-image{width:55%;height:100%;object-fit:cover;opacity:.32}
.promo-card h3{font-size:25px}
.promo-card p{max-width:250px}

/* Popular categories always have a visual placeholder when a WooCommerce thumbnail is absent */
.category-card{background-color:#8b8179;background-repeat:no-repeat;background-size:cover;background-position:center}
.category-card:before{background:linear-gradient(180deg,rgba(0,0,0,0) 25%,rgba(0,0,0,.78) 100%)}
.category-card span{z-index:1}

/* Four independent category carousels */
.category-carousel-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px;align-items:start}
.category-carousel{position:relative;border-top:3px solid var(--red);padding-top:18px;overflow:hidden}
.category-carousel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.category-carousel-head h3{font-family:var(--heading);font-size:28px;margin:0}
.category-carousel-head h3 a{color:var(--ink)}
.category-carousel-controls{display:flex;gap:7px}
.category-arrow{width:36px;height:36px;border:1px solid var(--line);background:#fff;color:var(--red);font-size:25px;line-height:1}
.category-arrow:hover{background:var(--red);color:#fff}
.category-carousel-viewport{overflow:hidden}
.category-carousel-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 66px)/4);grid-template-rows:1fr;gap:22px;transition:transform .4s ease}
.category-slide{min-width:0}
.category-carousel-dots{display:flex;justify-content:center;gap:7px;margin-top:18px}
.category-carousel-dots button{width:8px;height:8px;border:0;border-radius:50%;padding:0;background:#c7c0ba}
.category-carousel-dots button.active{background:var(--red);transform:scale(1.25)}

/* Footer: four real columns, no legacy Connect placeholder */
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:48px;align-items:start}
.footer-about{min-width:0}
.footer-col{min-width:0}
.footer-logo img{max-width:180px;max-height:58px;object-fit:contain}
.footer-col ul{margin:0;padding:0;list-style:none}
.footer-col li{margin-bottom:10px}

/* Keep homepage sections from inheriting legacy widths */
.homepage-stage{max-width:none;padding-left:28px;padding-right:28px}
.homepage-stage .hero-area{min-width:0}
.shop-section>.container,.category-section>.container,.blog-section>.container{max-width:var(--max)}

/* Header mobile */
@media(max-width:1100px){
  .header-main-inner{grid-template-columns:250px minmax(280px,1fr) auto;gap:20px;padding-inline:24px}
  .header-search select{width:150px;flex-basis:150px}
  .main-navigation a{padding-inline:14px}
}
@media(max-width:850px){
  .header-main-inner{grid-template-columns:1fr auto;min-height:90px;padding:14px 18px}
  .header-search{grid-column:1/-1;grid-row:2}
  .header-actions{grid-column:2;grid-row:1}
  .site-branding .custom-logo{max-width:190px;max-height:60px}
  .header-search select{display:none}
  .nav-wrap{background:#fff}
  .nav-inner{padding:0 18px}
  .main-navigation{display:none}
  .main-navigation.is-open{display:block}
  .main-navigation a{background:var(--red);color:#fff!important}
  .homepage-stage{display:block;padding:18px}
  .category-panel{margin-bottom:18px}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-carousel-track{grid-auto-columns:calc((100% - 22px)/2)}
}
@media(max-width:560px){
  .header-main-inner{padding:12px}
  .site-branding .custom-logo{max-width:160px;max-height:54px}
  .brand-tagline{font-size:9px}
  .header-action{padding:6px}
  .header-action-label{display:none}
  .nav-inner{padding:0 12px}
  .service-grid,.promo-grid,.footer-grid{grid-template-columns:1fr}
  .category-carousel-track{grid-auto-columns:100%}
}

/* Utility bar alignment */
.topbar-inner{position:relative;justify-content:center}
.topbar-links{position:absolute;right:0}
@media(max-width:850px){.topbar-links{display:none}}

.service-grid > .adsbygoogle,
.service-grid > [class*="ad-"],
.promo-grid > .adsbygoogle,
.promo-grid > [class*="ad-"],
.footer-grid > .adsbygoogle,
.footer-grid > [class*="ad-"]{display:none!important}

/* ===== Atmajaa v9: eliminate injected/rogue layout cells ===== */
.atmajaa-layout-rogue{display:none!important;width:0!important;min-width:0!important;max-width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;visibility:hidden!important;position:absolute!important;}

/* Only the intended structural children may occupy these grids. */
.header-main-inner > .site-branding,
.header-main-inner > .header-search,
.header-main-inner > .header-actions{display:block;min-width:0;}
.header-main-inner > :not(.site-branding):not(.header-search):not(.header-actions){display:none!important;}
.homepage-stage > .category-panel,
.homepage-stage > .hero-area{min-width:0;}
.homepage-stage > :not(.category-panel):not(.hero-area){display:none!important;}
.service-grid > .service-item{min-width:0;}
.service-grid > :not(.service-item){display:none!important;}
.promo-grid > .promo-card{min-width:0;}
.promo-grid > :not(.promo-card){display:none!important;}
.footer-grid > .footer-col{min-width:0;}
.footer-grid > :not(.footer-col){display:none!important;}
.category-carousel-stack > .category-carousel{min-width:0;}
.category-carousel-stack > :not(.category-carousel){display:none!important;}

/* Header: true left / center / right geometry. */
.header-main-inner{box-sizing:border-box;width:100%;padding:16px 24px;grid-template-columns:minmax(300px,360px) minmax(420px,760px) minmax(250px,320px);gap:28px;align-items:center;justify-content:space-between;}
.site-branding{justify-self:start!important;text-align:left;}
.site-branding .custom-logo{display:block;max-width:230px;max-height:74px;object-fit:contain;object-position:left center;}
.header-search{justify-self:center!important;max-width:760px;}
.header-actions{justify-self:end!important;display:flex!important;align-items:center;justify-content:flex-end;}
.nav-inner{padding-left:24px;padding-right:24px;}

/* Explore Our Books: four independent half-width carousels in a 2x2 desktop layout. */
@media (min-width:851px){
  .category-carousel-stack{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 24px!important;}
  .category-carousel{width:100%;min-width:0;}
  .category-carousel-track{grid-auto-columns:calc((100% - 66px)/4);}
}

/* Desktop structural guarantees: no wrapping for five services / four promos. */
@media(min-width:901px){
  .service-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  .promo-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  .footer-grid{grid-template-columns:2fr 1fr 1fr 1.2fr!important;}
}

/* Use actual category art when present; otherwise the theme SVG fallback remains visible. */
.category-card{background-color:#6b5148!important;background-image:var(--category-image)!important;}
.category-card:not([style*="background-image"]){background-image:none!important;}

/* Keep promo artwork behind content but fully inside its card. */
.promo-card{isolation:isolate;}
.promo-card-image{z-index:0!important;}

/* Footer begins with the actual Atmajaa column, never an empty injected cell. */
.footer-grid{position:relative;}

@media(max-width:900px){
  .header-main-inner{grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:14px 18px;}
  .header-search{grid-column:1/-1;grid-row:2;max-width:none;}
  .header-actions{grid-column:2;grid-row:1;}
  .site-branding{grid-column:1;grid-row:1;}
}


/* ===== Atmajaa v10: eliminate legacy clearfix pseudo-elements ===== */
/*
 * The original Acme-derived stylesheet may inject .container::before/.container::after
 * clearfix nodes. When a .container is also a CSS grid, those pseudo-elements become
 * real grid items and create the exact blank-leading-column/wrapped-card bug.
 */
.service-grid::before,
.service-grid::after,
.promo-grid::before,
.promo-grid::after,
.footer-grid::before,
.footer-grid::after,
.homepage-stage::before,
.homepage-stage::after,
.category-carousel-stack::before,
.category-carousel-stack::after,
.category-carousel::before,
.category-carousel::after,
.header-main-inner::before,
.header-main-inner::after,
.nav-inner::before,
.nav-inner::after,
.topbar-inner::before,
.topbar-inner::after,
.service-grid > .clearfix,
.promo-grid > .clearfix,
.footer-grid > .clearfix {
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  float:none !important;
  clear:none !important;
}

/* Grid children must be actual content cards, never clearfix/table-cell artifacts. */
.service-grid,
.promo-grid,
.footer-grid,
.homepage-stage,
.category-carousel-stack {
  position:relative;
}

.service-grid > .service-item,
.promo-grid > .promo-card,
.footer-grid > .footer-col {
  position:relative;
  float:none !important;
  clear:none !important;
  width:auto !important;
  margin:0 !important;
}

/* Exactly five services / four promotions / four footer columns on desktop. */
.service-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
.promo-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
.footer-grid { grid-template-columns:2fr 1fr 1fr 1.2fr !important; }

/* Prevent inherited clearfix rules from changing any homepage grid. */
.service-grid *, .promo-grid *, .footer-grid * { box-sizing:border-box; }

/* Clean placeholder artwork: the HTML owns the copy, images never contain typography. */
.promo-card-image { z-index:0; pointer-events:none; }

/* Header geometry: the visible logo is anchored to the left edge of its column. */
.header-main-inner { overflow:visible; }
.site-branding { margin-left:0 !important; padding-left:0 !important; transform:none !important; }
.site-branding .custom-logo-link { margin-left:0 !important; }

@media(max-width:900px){
  .service-grid { grid-template-columns:1fr !important; }
  .promo-grid { grid-template-columns:1fr 1fr !important; }
  .footer-grid { grid-template-columns:1fr 1fr !important; }
}
@media(max-width:600px){
  .promo-grid,.footer-grid { grid-template-columns:1fr !important; }
}

/* Page and WooCommerce breathing room */
.about-manuscript-cta .container{text-align:center}
.about-manuscript-cta h2{margin:0 0 22px}
.publish-submit-after-content{text-align:center;margin:34px 0 8px}
.publish-submit-after-content .button{min-width:190px;text-align:center}
.woocommerce-site-main .woocommerce-container{width:min(calc(100% - 64px),var(--max));max-width:var(--max);margin:0 auto;padding:0 0 70px}
.woocommerce-site-main .woocommerce-breadcrumb{padding-top:28px}
.woocommerce-site-main ul.products{margin-left:0!important;margin-right:0!important}
.woocommerce-site-main div.product{margin-left:0!important;margin-right:0!important}
@media(max-width:900px){.woocommerce-site-main .woocommerce-container{width:min(calc(100% - 40px),var(--max))}}
@media(max-width:600px){.woocommerce-site-main .woocommerce-container{width:calc(100% - 28px)}}


/* v13: Atmajaa footer and manuscript CTA cleanup */
.site-footer{background:#9f1018 !important;color:#fff !important;}
.site-footer .footer-col h4{color:#fff !important;}
.site-footer .footer-col p,.site-footer .footer-col li,.site-footer .footer-col a{color:rgba(255,255,255,.92) !important;}
.site-footer .footer-col a:hover{color:#fff !important;}
.site-footer .footer-logo img{filter:brightness(0) invert(1);}
.site-footer .footer-logo a{color:#fff !important;}
.site-footer .footer-grid{padding-top:42px;padding-bottom:42px;}
.publish-submit-after-content{display:flex !important;justify-content:center !important;align-items:center !important;clear:both !important;width:100% !important;margin:40px 0 18px !important;}
.publish-submit-after-content .submit-manuscript-button{display:inline-block !important;visibility:visible !important;opacity:1 !important;background:#b5121b !important;color:#fff !important;border:0 !important;padding:13px 28px !important;border-radius:3px !important;text-decoration:none !important;font-weight:700 !important;line-height:1.2 !important;min-width:200px !important;text-align:center !important;}
.publish-submit-after-content .submit-manuscript-button:hover{background:#7e0d14 !important;color:#fff !important;}
