/*
Theme Name: Kavin Publications
Theme URI: https://www.sriinfosolution.in
Author: Sri Info Solution
Author URI: https://www.sriinfosolution.in
Description: Lightweight bookshop design for Kavin Publications.
Template: generatepress
Version: 2.0.0
Text Domain: kavin-bookshop
*/
:root{--ink:#203528;--green:#1e5133;--cream:#faf8f1;--line:#e2e8dc;--muted:#617063;--gold:#b68a3b;--leaf:#789737}
body{background:#fff;color:var(--ink)}a{color:var(--green)}a:hover{color:#163e2b}
.kb-announce{background:#193f2d;color:#fff;text-align:center;padding:8px 12px;font-size:12px;letter-spacing:.11em;text-transform:uppercase}
.site-header{background:#fff;border-bottom:1px solid var(--line)}.site-header .inside-header{max-width:1220px;padding:20px}.site-logo img{max-height:65px;width:auto}
.main-navigation,.main-navigation ul ul{background:#fff;border-bottom:1px solid var(--line)}.main-navigation .main-nav ul li a,.main-navigation .menu-toggle{color:var(--ink);font-weight:650}.main-navigation .main-nav ul li:hover>a,.main-navigation .main-nav ul li.current-menu-item>a{background:#eff5ed;color:var(--green)}
.home .site,.home .site-content{max-width:none}.home .site-content{display:block;padding:0}
.kb-home{width:100%;overflow:hidden}.kb-shell{width:min(1220px,calc(100% - 40px));margin-inline:auto}
.kb-hero{background:linear-gradient(125deg,#f1f3e8 0%,#faf8ef 60%,#eee6d4);overflow:hidden}
.kb-hero-inner{min-height:500px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;padding-block:55px}
.kb-eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--green);font-size:12px;font-weight:750;letter-spacing:.14em;text-transform:uppercase}.kb-eyebrow:before{content:"";width:25px;height:2px;background:#b68a3b}
.kb-hero h1{font-size:clamp(30px,3vw,58px);line-height:1.04;letter-spacing:-.045em;margin:18px 0 20px;color:#1f3328;max-width:650px}
.kb-hero p{font-size:18px;line-height:1.65;color:#586b5f;max-width:530px;margin:0 0 26px}
.kb-search{display:flex;background:#fff;border:1px solid #dce4d8;border-radius:8px;max-width:560px;box-shadow:0 10px 30px rgba(31,58,40,.08);padding:6px}
.kb-search input{min-width:0;flex:1;border:0!important;background:transparent!important;box-shadow:none!important;padding:11px 16px!important}
.kb-search button,.kb-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:var(--green);color:#fff!important;font-weight:700;padding:13px 23px;text-decoration:none;cursor:pointer}.kb-search button:hover,.kb-button:hover{background:#143b27;color:#fff}
.kb-hero-links{display:flex;gap:22px;margin-top:22px;font-size:14px;font-weight:650}.kb-hero-links a{text-decoration:underline;text-underline-offset:4px}
.kb-visual{position:relative;min-height:410px;display:flex;align-items:center;justify-content:center}.kb-visual:before{content:"";position:absolute;width:390px;height:390px;max-width:88%;border-radius:50%;background:#dce6d4;top:5%;left:13%}.kb-visual:after{content:"படிக்க • அறிய • வளர";position:absolute;right:5%;bottom:4%;color:#52725a;font-size:11px;font-weight:750;letter-spacing:.2em;transform:rotate(-6deg)}
.kb-hero-book{position:absolute;width:35%;max-width:188px;aspect-ratio:2/3;background:#fff;padding:8px;border-radius:3px;box-shadow:18px 23px 35px rgba(26,50,34,.22);transform:rotate(var(--rotate));z-index:1}.kb-hero-book img{width:100%;height:100%;object-fit:cover}.kb-hero-book:nth-child(1){--rotate:-15deg;left:13%;top:17%}.kb-hero-book:nth-child(2){--rotate:0deg;left:36%;top:7%;z-index:3}.kb-hero-book:nth-child(3){--rotate:14deg;right:7%;top:21%;z-index:2}
.kb-trust{border-bottom:1px solid var(--line)}.kb-trust-inner{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:25px 0}.kb-trust-item{display:flex;align-items:center;gap:14px;font-size:14px;font-weight:650}.kb-trust-icon{display:grid;place-items:center;flex:none;width:37px;height:37px;border:1px solid #cbdcc9;border-radius:50%;color:var(--green);font-size:20px}
.kb-section{padding:72px 0}.kb-section-alt{background:var(--cream)}.kb-section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px}.kb-section-head h2{font-size:clamp(29px,3.2vw,42px);line-height:1.15;letter-spacing:-.025em;margin:7px 0 0;color:#24362a}.kb-section-head p{color:var(--muted);margin:8px 0 0}.kb-text-link{white-space:nowrap;font-weight:700;text-decoration:none;border-bottom:2px solid #c29a52;padding-bottom:4px}
.kb-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.kb-category{min-height:122px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px;text-decoration:none;box-shadow:0 5px 16px rgba(37,50,45,.025);transition:transform .2s,border-color .2s}.kb-category:hover{transform:translateY(-3px);border-color:#b7cbb7}.kb-category strong{display:block;color:var(--ink);font-size:17px;line-height:1.3}.kb-category small{display:block;color:var(--muted);font-size:12px;margin-top:7px}.kb-category-arrow{font-size:23px;color:var(--green)}
.kb-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}.kb-product{min-width:0;display:flex;flex-direction:column}.kb-product-image{display:grid;place-items:center;aspect-ratio:4/5;background:#f5f4ee;border:1px solid #f0efe8;border-radius:7px;padding:18px;overflow:hidden}.kb-product-image img{width:100%;height:100%;object-fit:contain;transition:transform .25s}.kb-product:hover .kb-product-image img{transform:scale(1.05)}.kb-product h3{font-size:15px;line-height:1.4;margin:14px 0 7px;font-weight:650}.kb-product h3 a{color:var(--ink);text-decoration:none}.kb-price{margin-top:auto;color:var(--green);font-size:16px;font-weight:750}.kb-price del{color:#999;font-size:13px;font-weight:400}.kb-price ins{text-decoration:none}
.kb-banner{background:#1c442d;color:#fff;border-radius:12px;padding:43px 50px;display:flex;align-items:center;justify-content:space-between;gap:28px}.kb-banner h2{color:#fff;font-size:clamp(25px,3vw,38px);margin:7px 0}.kb-banner p{margin:0;color:#d9e8dc}.kb-banner .kb-button{background:#e2c06d;color:#273b2e!important}.kb-banner .kb-button:hover{background:#ffe0a0}
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--line);border-radius:7px;padding:14px!important;transition:box-shadow .2s}.woocommerce ul.products li.product:hover{box-shadow:0 12px 30px rgba(37,50,45,.09)}.woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--ink);font-size:16px!important;line-height:1.4}.woocommerce ul.products li.product .price{color:var(--green);font-weight:750}.woocommerce ul.products li.product .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{border-radius:5px;background:var(--green);color:#fff}.woocommerce ul.products li.product .button:hover,.woocommerce button.button:hover,.woocommerce a.button:hover,.woocommerce input.button:hover{background:#143b27;color:#fff}
.site-footer{background:#193624;color:#e6efe7}.site-footer a{color:#e6efe7}.site-footer .footer-widgets{background:#244331;color:#e6efe7}.site-footer .site-info{background:#193624}
@media(max-width:980px){.kb-products{grid-template-columns:repeat(4,minmax(0,1fr))}.kb-categories{grid-template-columns:repeat(2,1fr)}.kb-visual{min-height:360px}}
@media(max-width:720px){.kb-shell{width:min(calc(100% - 28px),600px)}.kb-hero-inner{grid-template-columns:1fr;padding:45px 0 38px;gap:8px}.kb-hero h1{font-size:43px}.kb-hero p{font-size:16px}.kb-visual{min-height:300px;max-width:420px;width:100%;margin:auto}.kb-visual:before{width:280px;height:280px;left:18%}.kb-hero-book{max-width:133px}.kb-trust-inner{grid-template-columns:1fr;gap:12px;padding:20px 0}.kb-section{padding:52px 0}.kb-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.kb-product-image{padding:12px}.kb-section-head{align-items:start}.kb-banner{padding:30px;display:block}.kb-banner .kb-button{margin-top:22px}}
@media(max-width:460px){.kb-categories{gap:10px}.kb-category{min-height:105px;padding:14px}.kb-category strong{font-size:14px}.kb-category small{font-size:11px}.kb-section-head{display:block}.kb-text-link{display:inline-block;margin-top:15px}.kb-search button{padding-inline:14px}.kb-hero-links{gap:14px;flex-wrap:wrap}.kb-visual{min-height:265px}.kb-visual:before{width:250px;height:250px}.kb-hero-book{max-width:115px}}

.site-header .wp-block-search__input{border:1px solid #dce4d8!important;border-radius:6px 0 0 6px!important;background:#f9faf7!important}
.site-header .wp-block-search__button{background:var(--green)!important;color:#fff!important;border-radius:0 6px 6px 0!important}
.site-header .wp-block-search__button svg{fill:currentColor}
.site-header .gb-headline.menu-bar-item{display:none}
@media(max-width:720px){.kb-hero-copy,.kb-hero-inner{min-width:0}.kb-hero h1{overflow-wrap:normal}.kb-search{width:100%}}
/* Bookshop header controls and centered navigation. */
.site-header .inside-header{display:flex;align-items:center;gap:24px}
.site-header .inside-header>.gb-container{flex:1;min-width:0}
.site-header .wp-block-search{max-width:520px;margin-inline:auto}
.kb-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;white-space:nowrap;flex:none}
.kb-account-trigger,.kb-cart-link{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:13px;font-weight:650;text-decoration:none;background:transparent;border:0;padding:8px 0;cursor:pointer}
.kb-account-trigger:hover,.kb-cart-link:hover{color:var(--green)}
.kb-account-trigger svg,.kb-cart-link svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.kb-cart-count{font-weight:750}.kb-cart-total{color:var(--green);font-weight:750}
#site-navigation .inside-navigation{justify-content:center}
#site-navigation .main-nav{margin-inline:auto}
#site-navigation .main-nav>ul{justify-content:center}
#site-navigation .menu-bar-items,#mobile-header .menu-bar-items{display:none}
#mobile-header .kb-header-actions{order:1;margin-left:auto;gap:12px;padding-right:8px}
#mobile-header .menu-toggle{order:2}
#mobile-header .kb-account-label{display:none}

@media(max-width:900px){.site-header .inside-header{gap:14px}.site-header .wp-block-search{max-width:420px}.kb-header-actions{gap:12px}.kb-account-label{display:none}}
@media(max-width:420px){#mobile-header .kb-header-actions{gap:8px;padding-right:0}.kb-account-trigger,.kb-cart-link{gap:4px;font-size:11px}.kb-account-trigger svg,.kb-cart-link svg{width:20px;height:20px}#mobile-header .menu-toggle{padding-inline:10px}}
.site-header .kb-cart-link,.site-header .kb-account-trigger{color:var(--ink)!important}.site-header .kb-cart-link:hover,.site-header .kb-account-trigger:hover{color:var(--green)!important}

/* Cover actions appear on hover, focus, and touch screens. */
.kb-product-media{position:relative;isolation:isolate}
.kb-cover-actions,.kb-loop-cover-actions{display:flex;align-items:center;justify-content:center;gap:8px;position:absolute;z-index:5;padding:12px;background:linear-gradient(transparent,rgba(20,40,27,.42));opacity:0;transform:translateY(7px);transition:opacity .18s,transform .18s;pointer-events:none}
.kb-cover-actions{inset:0;align-items:flex-end}
.kb-product-media:hover .kb-cover-actions,.kb-product-media:focus-within .kb-cover-actions,.woocommerce ul.products li.product:hover .kb-loop-cover-actions,.woocommerce ul.products li.product:focus-within .kb-loop-cover-actions{opacity:1;transform:none}
.kb-cover-actions>a,.kb-cover-actions .kb-share,.kb-loop-cover-actions>a,.kb-loop-cover-actions .kb-share{pointer-events:auto}
.kb-cover-cart,.woocommerce ul.products li.product .kb-loop-cover-actions .button{display:inline-flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:40px;margin:0!important;padding:9px 12px!important;border:0;border-radius:5px;background:#1e5133!important;color:#fff!important;font-size:13px!important;font-weight:700!important;text-align:center;text-decoration:none;line-height:1.2!important}
.kb-cover-cart:hover,.woocommerce ul.products li.product .kb-loop-cover-actions .button:hover{background:#173e2a!important}
.kb-share{position:relative;flex:none}.kb-share summary{display:grid;place-items:center;width:40px;height:40px;border:1px solid #c6d4c8;border-radius:5px;background:#fff;color:var(--green);cursor:pointer;list-style:none}.kb-share summary::-webkit-details-marker{display:none}.kb-share summary svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kb-share-links{position:absolute;right:0;bottom:calc(100% + 7px);min-width:138px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 12px 24px rgba(20,40,27,.18);z-index:20}
.kb-share-links a{display:block;color:var(--ink)!important;padding:7px 9px;font-size:12px;font-weight:650;text-decoration:none;border-radius:4px}.kb-share-links a:hover{background:#eff5ed;color:var(--green)!important}
.woocommerce ul.products li.product{position:relative}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link>img,.woocommerce ul.products li.product .woocommerce-loop-product__link>img{width:100%;aspect-ratio:4/5;object-fit:contain;background:#f5f4ee}
.woocommerce ul.products li.product .kb-loop-cover-actions{top:14px;left:14px;right:14px;aspect-ratio:4/5;align-items:flex-end}
@media(hover:none){.kb-cover-actions,.kb-loop-cover-actions{opacity:1;transform:none;background:linear-gradient(transparent 70%,rgba(20,40,27,.35))}}

/* Tight book covers, readable metadata, and larger archive cards. */
.kb-product-image{display:block;aspect-ratio:1/1;padding:0;background:#fff}
.kb-product-image img{display:block;width:100%;height:100%;object-fit:cover}
.kb-cover-actions{padding:10px}
.kb-cover-cart,.woocommerce ul.products li.product .kb-loop-cover-actions .button{flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:0!important}
.kb-cart-icon{display:block;width:22px;height:22px}
.kb-card-author{color:#55695c;font-size:13px;line-height:1.4}

.kb-product .kb-card-author{margin:0 0 5px}
.woocommerce .wc-columns-container .products{align-items:start}
.woocommerce ul.products li.product{padding:0!important}
.woocommerce ul.products li.product .wc-product-image,.woocommerce ul.products li.product .inside-wc-product-image{margin:0!important;padding:0!important;width:100%}
.woocommerce ul.products li.product .wc-product-image img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;margin:0!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .kb-card-author,.woocommerce ul.products li.product .price{display:block;margin-left:14px!important;margin-right:14px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{margin-top:14px!important}
.woocommerce ul.products li.product .kb-card-author{margin-top:5px!important}
.woocommerce ul.products li.product .price{margin-top:10px!important;margin-bottom:16px!important}
.woocommerce ul.products li.product .kb-loop-cover-actions{top:0;left:0;right:0;aspect-ratio:1/1;padding:10px}
body.tax-product_cat #wc-column-container.wc-columns-4 ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media(max-width:900px){body.tax-product_cat #wc-column-container.wc-columns-4 ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){body.tax-product_cat #wc-column-container.wc-columns-4 ul.products{grid-template-columns:1fr}}
/* Stretch the existing product link across each card without nesting the action links. */
.kb-product{position:relative}
.kb-product h3 a::after,.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link::after{content:"";position:absolute;inset:0;z-index:1}
.kb-product-media{z-index:3}
.kb-product:hover .kb-cover-actions,.kb-product:focus-within .kb-cover-actions{opacity:1;transform:none}
.kb-cover-actions>a,.kb-cover-actions .kb-share,.kb-loop-cover-actions>a,.kb-loop-cover-actions .kb-share{pointer-events:none}
.kb-product:hover .kb-cover-actions>a,.kb-product:hover .kb-cover-actions .kb-share,.kb-product:focus-within .kb-cover-actions>a,.kb-product:focus-within .kb-cover-actions .kb-share,.woocommerce ul.products li.product:hover .kb-loop-cover-actions>a,.woocommerce ul.products li.product:hover .kb-loop-cover-actions .kb-share,.woocommerce ul.products li.product:focus-within .kb-loop-cover-actions>a,.woocommerce ul.products li.product:focus-within .kb-loop-cover-actions .kb-share{pointer-events:auto}
@media(hover:none){.kb-cover-actions>a,.kb-cover-actions .kb-share,.kb-loop-cover-actions>a,.kb-loop-cover-actions .kb-share{pointer-events:auto}}
/* Account forms shared by the dedicated pages. */
.kb-account-panel h2{font-size:26px;line-height:1.25;color:#244936;margin:0 0 7px}
.kb-panel-intro{font-size:14px;line-height:1.5;color:#69796d;margin:0 0 24px}
.kb-account-panel form{display:flex;flex-direction:column}
.kb-account-panel label{font-size:13px;font-weight:700;color:#344b3c;margin:0 0 6px}
.kb-account-panel input:not([type="hidden"]){width:100%;min-height:44px;margin:0 0 16px;padding:10px 12px;border:1px solid #cbd7c9;border-radius:5px;background:#fff;color:var(--ink)}
.kb-account-panel input:focus{outline:2px solid #91b79b;outline-offset:1px}
.kb-account-submit{width:100%;min-height:44px;margin-top:4px;padding:10px 15px;border:0;border-radius:5px;background:var(--green);color:#fff;font-weight:750;cursor:pointer}
.kb-account-submit:hover{background:#173e2a}
.kb-forgot-link{display:inline-block;margin-top:16px;font-size:13px}
.kb-register-note{font-size:12px;line-height:1.5;color:#68776a;margin:15px 0 0}
/* Dedicated customer pages and small bookshop refinements. */
.kb-auth-page{min-height:calc(100vh - 220px);display:grid;place-items:center;padding:56px 20px 74px;background:radial-gradient(circle at 8% 10%,#f9ecd1 0,transparent 35%),radial-gradient(circle at 96% 90%,#e2eee2 0,transparent 33%),#f7f7f1}
.kb-auth-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(980px,100%);min-height:570px;overflow:hidden;border:1px solid #dce4d8;border-radius:20px;background:#fff;box-shadow:0 24px 64px rgba(30,57,38,.1)}
.kb-auth-story{position:relative;display:flex;flex-direction:column;justify-content:center;padding:56px clamp(32px,5vw,70px);color:#fff;background:linear-gradient(150deg,#193d2b,#2b6344 78%,#377b54)}
.kb-auth-story:after{content:"";position:absolute;right:-40px;bottom:-105px;width:270px;height:270px;border:1px solid rgba(255,255,255,.14);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025);pointer-events:none}
.kb-auth-back{position:absolute;top:26px;left:clamp(32px,5vw,70px);color:#d7ebdc!important;font-size:13px;font-weight:650;text-decoration:none}
.kb-auth-back:hover{text-decoration:underline}
.kb-auth-illustration{width:175px;margin-bottom:25px;color:#d2e6ce;filter:drop-shadow(0 17px 13px rgba(13,35,20,.22));animation:kb-book-bob 5s ease-in-out infinite}
.kb-auth-illustration svg{display:block;width:100%;height:auto}
.kb-auth-kicker,.kb-auth-overline{color:#e9c57f;font-size:12px;font-weight:800;letter-spacing:.1em}
.kb-auth-story h1{max-width:410px;color:#fff;font-size:clamp(29px,3.3vw,43px);line-height:1.25;margin:13px 0 18px}
.kb-auth-story p{max-width:390px;color:#d6e8d8;line-height:1.75;margin:0}
.kb-auth-benefits{display:flex;flex-wrap:wrap;gap:11px;margin-top:31px}.kb-auth-benefits span{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 12px;color:#eef8ed;font-size:12px}
.kb-auth-content{display:flex;flex-direction:column;justify-content:center;padding:50px clamp(30px,5vw,68px)}
.kb-auth-switch{display:flex;gap:22px;align-self:flex-start;margin-bottom:37px;border-bottom:1px solid #dce4d9}
.kb-auth-switch a{display:block;padding:10px 3px 13px;border-bottom:3px solid transparent;color:#68796d;text-decoration:none;font-size:15px;font-weight:750}
.kb-auth-switch a[aria-current="page"]{color:var(--green);border-color:var(--green)}
.kb-auth-content .kb-account-panel h2,.kb-auth-content>h2{font-size:clamp(27px,2.8vw,35px);margin:10px 0 8px;color:#234a34}
.kb-auth-content .kb-panel-intro{margin-bottom:27px}.kb-auth-content .kb-account-panel input:not([type="hidden"]){min-height:49px;margin-bottom:19px;border-radius:8px;background:#fbfcf9}
.kb-auth-content .kb-account-submit{display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border-radius:8px;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.kb-auth-content .kb-account-submit:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(25,73,43,.18)}
.kb-auth-crosslink{margin:25px 0 0;padding-top:20px;border-top:1px solid #e9eee7;color:#657566;font-size:13px}.kb-auth-crosslink a,.kb-auth-inline-link{color:var(--green);font-weight:750;text-decoration:none}.kb-auth-crosslink a:hover,.kb-auth-inline-link:hover{text-decoration:underline}
.kb-auth-content .woocommerce-error,.kb-auth-content .woocommerce-message{margin:0 0 19px;padding:12px 16px;font-size:13px}
.kb-category{position:relative;overflow:hidden}.kb-category:before{content:"▣";position:absolute;right:17px;bottom:-12px;color:#edf3e8;font-size:77px;line-height:1;transform:rotate(-13deg);pointer-events:none}.kb-category>*{position:relative}.kb-category:hover{box-shadow:0 12px 28px rgba(37,50,45,.09)}
.kb-hero-book{transition:transform .35s ease,box-shadow .35s ease}.kb-hero-book:hover{transform:rotate(var(--rotate)) translateY(-10px);box-shadow:20px 28px 40px rgba(26,50,34,.26)}
.kb-product,.woocommerce ul.products li.product{transition:transform .22s ease,box-shadow .22s ease}.kb-product:hover,.woocommerce ul.products li.product:hover{transform:translateY(-4px)}
.kb-account-trigger:focus-visible,.kb-cart-link:focus-visible,.kb-category:focus-visible,.kb-product a:focus-visible,.kb-auth-page a:focus-visible,.kb-auth-page button:focus-visible{outline:2px solid #e9b760;outline-offset:3px}
@keyframes kb-book-bob{50%{transform:translateY(-8px)}}
@media(max-width:760px){.kb-auth-page{padding:22px 14px 50px}.kb-auth-shell{grid-template-columns:1fr;min-height:0}.kb-auth-story{padding:56px 28px 25px}.kb-auth-back{left:28px;top:20px}.kb-auth-illustration{width:100px;margin:0 0 10px}.kb-auth-story h1{font-size:27px;max-width:550px;margin:7px 0 10px}.kb-auth-story p{font-size:13px;line-height:1.55}.kb-auth-benefits{margin-top:15px}.kb-auth-content{padding:26px 28px 35px}.kb-auth-switch{margin-bottom:21px}}
@media(max-width:420px){.kb-auth-story{padding-inline:22px}.kb-auth-back{left:22px}.kb-auth-content{padding-inline:22px}.kb-auth-benefits{gap:7px}.kb-auth-benefits span{font-size:11px}.kb-auth-story h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.kb-auth-illustration{animation:none}.kb-hero-book,.kb-product,.woocommerce ul.products li.product,.kb-auth-content .kb-account-submit{transition:none}}

/* Keep the account layout inside narrow viewports and shorten the Tamil display line. */
.kb-auth-page{width:100%;min-width:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr);overflow:hidden}
.kb-auth-shell,.kb-auth-story,.kb-auth-content{min-width:0;max-width:100%;box-sizing:border-box}
.kb-auth-story,.kb-auth-content{overflow-wrap:anywhere}
.kb-auth-story h1{font-size:clamp(28px,2.6vw,35px);line-height:1.35}
.kb-auth-illustration{width:145px;margin-bottom:12px}
@media(max-width:760px){.kb-auth-story h1{font-size:25px}.kb-auth-illustration{width:93px}.kb-auth-benefits span{max-width:100%}}
.kb-auth-route .site,.kb-auth-route .site-content{max-width:none;width:100%}
.kb-auth-route .site-content{display:block;padding:0}
.kb-auth-route #primary{float:none;width:100%}
.kb-auth-route .kb-auth-shell{width:min(980px,calc(100vw - 28px))}
@media(max-width:760px){.kb-auth-route .kb-auth-shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.kb-auth-content .kb-account-panel h2{font-size:24px;line-height:1.3;overflow-wrap:anywhere}}
.kb-auth-content .kb-account-panel h2{font-size:28px;overflow-wrap:normal}
.kb-auth-story p,.kb-auth-content .kb-register-note{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:760px){.kb-auth-content .kb-account-panel h2{font-size:24px;overflow-wrap:anywhere}}

/* Password recovery uses the native WooCommerce reset flow with a bookshop layout. */
.woocommerce-lost-password .site,.woocommerce-lost-password .site-content{max-width:none;width:100%}
.woocommerce-lost-password .site-content{display:block;padding:0}
.woocommerce-lost-password #primary{float:none;width:100%}
.woocommerce-lost-password .inside-article{padding:0;background:transparent}
.woocommerce-lost-password .entry-header{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.woocommerce-lost-password .entry-content{margin:0}
.woocommerce-lost-password .entry-content>.woocommerce{padding:52px 20px 72px;background:radial-gradient(circle at 9% 12%,#f8ecd2,transparent 36%),radial-gradient(circle at 93% 93%,#e3eee3,transparent 35%),#f7f7f1}
.kb-recovery-shell{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);width:min(900px,100%);min-height:460px;margin:0 auto;overflow:hidden;border:1px solid #dce5d9;border-radius:20px;background:#fff;box-shadow:0 24px 64px rgba(30,57,38,.1)}
.kb-recovery-story{position:relative;display:flex;flex-direction:column;justify-content:center;padding:65px clamp(30px,5vw,62px);background:linear-gradient(145deg,#1b4430,#2b6447);color:#fff}
.kb-recovery-story:after{content:"";position:absolute;right:-50px;bottom:-100px;width:240px;height:240px;border:1px solid rgba(255,255,255,.15);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.035);pointer-events:none}
.kb-recovery-back{position:absolute;top:27px;left:clamp(30px,5vw,62px);color:#e3efe4!important;font-size:13px;text-decoration:none;font-weight:650}
.kb-recovery-back:hover{text-decoration:underline}
.kb-recovery-book{width:108px;height:108px;display:grid;place-items:center;margin-bottom:24px;border-radius:50%;border:1px solid rgba(255,255,255,.25);color:#f8dfad;background:rgba(255,255,255,.08)}
.kb-recovery-book svg{width:72px;height:72px}
.kb-recovery-story span,.kb-recovery-kicker{color:#e9c57f;font-size:12px;font-weight:800;letter-spacing:.08em}
.kb-recovery-story h2{color:#fff;font-size:clamp(27px,3vw,35px);line-height:1.35;margin:13px 0 15px}
.kb-recovery-story p{color:#d9eadb;line-height:1.7;margin:0}
.kb-recovery-content{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:53px clamp(30px,5vw,68px)}
.kb-recovery-content h2{color:#254c37;font-size:clamp(27px,2.8vw,34px);line-height:1.35;margin:10px 0}
.kb-recovery-intro{color:#69796d;line-height:1.65;margin:0 0 27px;font-size:14px}
.kb-recovery-form{display:flex;flex-direction:column;max-width:none!important}
.kb-recovery-form label{font-size:13px;font-weight:750;color:#344b3c;margin:0 0 7px}
.kb-recovery-form input:not([type="hidden"]){width:100%;min-height:48px;margin:0 0 20px;padding:10px 13px;border:1px solid #cbd7c9;border-radius:8px;background:#fbfcf9;color:var(--ink)}
.kb-recovery-form input:focus-visible{outline:2px solid #91b79b;outline-offset:2px}
.kb-recovery-form .kb-account-submit{display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border-radius:8px}
.kb-recovery-help{font-size:12px;line-height:1.6;color:#68796b;margin:18px 0 0}
.kb-recovery-login{display:inline-block;align-self:flex-start;margin-top:20px;text-decoration:none;font-size:13px;font-weight:750}
.kb-recovery-login:hover{text-decoration:underline}
.woocommerce-lost-password .woocommerce-error,.woocommerce-lost-password .woocommerce-message{width:min(900px,100%);margin:0 auto 18px;padding:13px 18px;font-size:13px;border-radius:8px}

/* Finishing touches: restrained motion, clearer spacing, and consistent controls. */
.site-header .inside-header{padding-block:16px}
.main-navigation .main-nav>ul>li>a{transition:color .2s ease,background .2s ease}
.kb-trust-icon svg,.kb-category-arrow svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kb-category-arrow{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:#eef5ed;transition:transform .2s ease,background .2s ease}
.kb-category:hover .kb-category-arrow{transform:translateX(3px);background:#e0eddf}
.kb-category:before{content:none}
.kb-category{border-radius:12px}
.kb-product-image,.woocommerce ul.products li.product{border-radius:10px;overflow:hidden}
.kb-product h3 a:hover,.woocommerce ul.products li.product .woocommerce-loop-product__title:hover{color:#286e4b}
.kb-button,.kb-search button{transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
.kb-button:hover,.kb-search button:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(23,62,42,.18)}
.kb-visual{animation:kb-enter .65s .08s ease-out both}
@keyframes kb-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.kb-recovery-login:focus-visible,.kb-recovery-back:focus-visible,.kb-recovery-form button:focus-visible,.kb-header-actions a:focus-visible,.kb-category:focus-visible,.kb-button:focus-visible{outline:2px solid #dba846;outline-offset:3px}
@media(max-width:760px){.woocommerce-lost-password .entry-content>.woocommerce{padding:22px 14px 48px}.kb-recovery-shell{grid-template-columns:minmax(0,1fr);width:min(100%,540px)}.kb-recovery-story{padding:60px 28px 27px}.kb-recovery-back{left:28px;top:20px}.kb-recovery-book{width:76px;height:76px;margin-bottom:12px}.kb-recovery-book svg{width:50px;height:50px}.kb-recovery-story h2{font-size:25px;margin:8px 0}.kb-recovery-story p{font-size:13px}.kb-recovery-content{padding:30px 28px 35px}.kb-recovery-content h2{font-size:25px}.kb-hero h1{font-size:clamp(34px,8vw,43px);line-height:1.15}.kb-hero-copy{min-width:0}.kb-banner{border-radius:12px}.kb-trust-icon{width:42px;height:42px}}
@media(max-width:420px){.kb-recovery-story{padding-inline:22px}.kb-recovery-back{left:22px}.kb-recovery-content{padding-inline:22px}.kb-recovery-story h2,.kb-recovery-content h2{font-size:23px}.kb-hero-inner{padding-top:34px}.kb-section{padding-block:45px}.kb-category{min-height:96px}.kb-products{gap:18px 12px}}
@media(prefers-reduced-motion:reduce){.kb-visual{animation:none}.kb-button,.kb-search button,.kb-category-arrow{transition:none}}
/* Let long Tamil labels wrap naturally on narrow screens. */
.woocommerce-lost-password .site-content,.woocommerce-lost-password .entry-content,.woocommerce-lost-password .entry-content>.woocommerce{min-width:0;overflow-x:hidden}
.kb-recovery-shell{width:min(900px,calc(100vw - 28px));min-width:0}
.kb-recovery-story,.kb-recovery-content{min-width:0;overflow-wrap:anywhere}
.kb-recovery-story h2,.kb-recovery-content h2,.kb-recovery-intro{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.kb-recovery-form .kb-account-submit{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:420px){.kb-recovery-form .kb-account-submit{font-size:13px;padding-inline:10px}}

/* Storewide product and form finish. */
.woocommerce .woocommerce-breadcrumb{margin-bottom:23px;color:#78877a;font-size:13px}
.woocommerce .woocommerce-breadcrumb a{color:#456d51;text-decoration:none}
.woocommerce .woocommerce-breadcrumb a:hover{text-decoration:underline}
.woocommerce-products-header__title.page-title,.woocommerce-page .entry-title{color:#213c2b;line-height:1.2;letter-spacing:-.015em}
.woocommerce div.product .product_title{color:#213c2b;font-size:clamp(29px,3vw,42px);line-height:1.25;margin:0 0 16px}
.woocommerce div.product div.images img{border-radius:12px}
.woocommerce div.product div.summary .price{color:var(--green);font-weight:750}
.woocommerce div.product .woocommerce-product-details__short-description{line-height:1.7;color:#586d5e}
.woocommerce div.product form.cart .button,.woocommerce .checkout-button{min-height:45px;border-radius:8px!important;padding-inline:22px!important;transition:background .2s ease,transform .2s ease}
.woocommerce div.product form.cart .button:hover,.woocommerce .checkout-button:hover{transform:translateY(-2px)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:8px 8px 0 0}
.woocommerce div.product .woocommerce-tabs .panel{line-height:1.7}
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{border:1px solid #cbd7c9;border-radius:7px;background:#fcfdfa}
.woocommerce input.input-text:focus,.woocommerce textarea:focus,.woocommerce select:focus{outline:2px solid #91b79b;outline-offset:1px}
.woocommerce-cart table.cart,.woocommerce-checkout #order_review,.woocommerce-account .woocommerce-MyAccount-content{border-radius:10px}
@media(max-width:760px){.woocommerce-products-header__title.page-title,.woocommerce-page .entry-title{font-size:clamp(27px,7vw,35px)}.woocommerce div.product .product_title{font-size:28px}.woocommerce div.product div.summary{margin-top:28px}}
@media(prefers-reduced-motion:reduce){.woocommerce div.product form.cart .button,.woocommerce .checkout-button{transition:none}}

/* Book-author archive and the custom missing-page shelf. */
.error404 .site,.error404 .site-content,.tax-book_author .site,.tax-book_author .site-content{max-width:none;width:100%}
.error404 .site-content,.tax-book_author .site-content{display:block;padding:0}
.error404 #primary,.tax-book_author #primary{float:none;width:100%}
.kb-not-found-page{min-height:610px;display:grid;align-items:center;background:radial-gradient(circle at 75% 35%,#e0eadb 0,transparent 28%),linear-gradient(125deg,#f6f5eb,#fbf7ef 65%,#f2eedf);overflow:hidden}
.kb-not-found-inner{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);align-items:center;gap:55px;padding-block:70px}
.kb-not-found-copy h1{color:#203b2b;font-size:clamp(42px,5vw,68px);line-height:1.13;letter-spacing:-.03em;margin:19px 0 22px}
.kb-not-found-copy h1 em{font-style:normal;color:#2f7954}
.kb-not-found-copy>p{max-width:600px;color:#5a6f5d;font-size:18px;line-height:1.7;margin:0 0 28px}
.kb-not-found-search{max-width:570px}
.kb-not-found-links{display:flex;flex-wrap:wrap;align-items:center;gap:24px;margin-top:25px}
.kb-not-found-links .kb-text-link{display:inline-block}
.kb-not-found-art{position:relative;min-height:400px;display:grid;place-items:center;color:#28704c;isolation:isolate;animation:kb-enter .6s ease-out both}
.kb-not-found-art:before{content:"";position:absolute;inset:9% 7%;border-radius:50%;background:#dce8d7;z-index:-1}
.kb-not-found-art:after{content:"";position:absolute;left:4%;bottom:14%;width:86%;height:18px;border-radius:50%;background:rgba(31,65,42,.12);filter:blur(14px);z-index:-1}
.kb-not-found-art svg{width:min(340px,80%);height:auto;filter:drop-shadow(14px 20px 16px rgba(28,60,38,.13));transform:rotate(-4deg);animation:kb-book-bob 5s ease-in-out infinite}
.kb-not-found-number{position:absolute;top:0;right:3%;color:#b5cbb0;font-size:clamp(90px,13vw,185px);font-weight:800;line-height:1;letter-spacing:-.08em;opacity:.48;z-index:-1}
.kb-not-found-art>span{position:absolute;bottom:5%;right:8%;font-size:13px;font-weight:800;letter-spacing:.08em;color:#547b5a;transform:rotate(-5deg)}
.kb-author-hero{background:linear-gradient(125deg,#f1f5ec 0%,#faf8ee 64%,#f2e7d1);overflow:hidden}
.kb-author-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.6fr);align-items:center;gap:36px;min-height:360px;padding-block:52px}
.kb-author-back{display:block;width:max-content;margin-bottom:25px;color:#3e704c;font-size:13px;font-weight:700;text-decoration:none}
.kb-author-back:hover{text-decoration:underline}
.kb-author-hero h1{color:#203b2b;font-size:clamp(36px,4.5vw,60px);line-height:1.2;margin:14px 0 17px}
.kb-author-hero p,.kb-author-description{max-width:630px;color:#5a6f5d;font-size:17px;line-height:1.7;margin:0 0 18px}
.kb-author-description p{margin:0}
.kb-author-count{display:inline-block;padding:7px 14px;border:1px solid #b4d0b6;border-radius:999px;background:#fffaf0;color:#1e5133;font-size:12px;font-weight:800}
.kb-author-art{width:min(330px,90%);justify-self:center;color:#2b6648;filter:drop-shadow(13px 19px 15px rgba(28,60,38,.13));animation:kb-book-bob 5s ease-in-out infinite}
.kb-author-art svg{display:block;width:100%;height:auto}
.kb-author-books .kb-products{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.kb-author-books .kb-product{max-width:320px}
.kb-author-books .navigation.pagination{margin-top:37px}
.kb-author-books .nav-links{display:flex;flex-wrap:wrap;gap:10px}
.kb-author-books .page-numbers{display:inline-block;min-width:36px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;text-decoration:none;text-align:center}
.kb-author-books .page-numbers.current{background:var(--green);color:#fff}
@media(max-width:800px){.kb-not-found-inner{gap:25px}.kb-not-found-copy h1{font-size:clamp(38px,5vw,54px)}}
@media(max-width:720px){.kb-not-found-page{min-height:0}.kb-not-found-inner{grid-template-columns:minmax(0,1fr);gap:5px;padding-block:50px}.kb-not-found-copy h1{font-size:clamp(35px,8vw,48px)}.kb-not-found-copy>p{font-size:16px}.kb-not-found-art{min-height:250px}.kb-not-found-art svg{width:min(230px,65%)}.kb-not-found-number{right:16%;font-size:110px}.kb-not-found-art>span{right:18%;bottom:0}.kb-author-hero-inner{grid-template-columns:minmax(0,1fr);gap:5px;min-height:0;padding-block:38px}.kb-author-hero h1{font-size:clamp(34px,8vw,48px)}.kb-author-hero p,.kb-author-description{font-size:15px}.kb-author-art{width:190px;justify-self:end;margin-top:-25px;opacity:.55}.kb-author-books .kb-products{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
@media(max-width:460px){.kb-not-found-inner{padding-block:36px}.kb-not-found-copy h1{font-size:36px}.kb-not-found-search button{padding-inline:12px}.kb-not-found-links{gap:18px}.kb-not-found-art{min-height:210px}.kb-not-found-art svg{width:195px}.kb-author-back{margin-bottom:17px}.kb-author-art{width:145px}.kb-author-books .kb-products{grid-template-columns:minmax(0,1fr)}.kb-author-books .kb-product{max-width:none}}
@media(prefers-reduced-motion:reduce){.kb-not-found-art,.kb-not-found-art svg,.kb-author-art{animation:none}}
.kb-not-found-page a:focus-visible,.kb-not-found-page button:focus-visible,.kb-not-found-page input:focus-visible,.kb-author-page a:focus-visible{outline:2px solid #dba846;outline-offset:3px}
/* The longer requested 404 labels stay readable on small screens. */
.kb-not-found-copy h1 .kb-404-code{display:block;color:var(--green);font-size:.5em;font-weight:800;letter-spacing:.06em;line-height:1.35}
.kb-not-found-search{max-width:620px}
.kb-not-found-search button{flex:none;white-space:normal;line-height:1.25}
@media(max-width:720px){.kb-not-found-search{display:flex;flex-direction:column;align-items:stretch;gap:4px}.kb-not-found-search input{width:100%;min-height:44px}.kb-not-found-search button{width:100%;min-height:44px}.kb-not-found-links{align-items:stretch}.kb-not-found-links .kb-button{min-height:46px}}

/* Center the header contents within the same horizontal rhythm as the shop. */
.site-header .inside-header{box-sizing:border-box;width:100%;max-width:1260px;margin-inline:auto;padding-inline:20px}
.site-header .inside-header>.gb-container{display:flex;justify-content:center;min-width:0}
.site-header .wp-block-search{width:min(100%,520px);margin:0}
#mobile-header .inside-navigation{box-sizing:border-box;width:100%;max-width:1260px;margin-inline:auto;padding-inline:14px}


/* One message per reload, with compact bookshop spacing. */
.kb-hero-story{display:none}
.kb-hero-story:first-child{display:block}
html[data-kb-hero="1"] .kb-hero-story:first-child,html[data-kb-hero="2"] .kb-hero-story:first-child{display:none}
html[data-kb-hero="1"] .kb-hero-story:nth-child(2),html[data-kb-hero="2"] .kb-hero-story:nth-child(3){display:block}
.kb-home .kb-hero-inner{min-height:0;gap:28px;padding-block:38px}
.kb-home .kb-hero h1{font-size:clamp(30px,3vw,58px);line-height:1.16;letter-spacing:-.025em;margin:12px 0 14px}
.kb-home .kb-hero p{font-size:16px;line-height:1.58;margin-bottom:18px}
.kb-home .kb-hero-links{gap:18px;margin-top:15px}
.kb-home .kb-visual{min-height:340px}
.kb-home .kb-trust-inner{padding-block:17px}
.kb-home .kb-section{padding-block:46px}
.kb-home .kb-section-head{margin-bottom:22px}
.kb-home .kb-section-head h2{font-size:clamp(27px,2.5vw,36px)}
.kb-home .kb-categories{gap:12px}
.kb-home .kb-category{min-height:100px;padding:17px}
.kb-home .kb-products{gap:18px}
.kb-home .kb-banner{padding:32px 38px}
@media(max-width:720px){.kb-home .kb-hero-inner{grid-template-columns:1fr;gap:5px;padding-block:30px 24px}.kb-home .kb-hero h1{font-size:clamp(29px,7vw,36px)}.kb-home .kb-hero p{font-size:15px}.kb-home .kb-visual{min-height:240px}.kb-home .kb-section{padding-block:34px}.kb-home .kb-trust-inner{padding-block:15px}.kb-home .kb-banner{padding:25px}}
/* Kavin logo palette: deep book green, leaf green, and antique gold. */
.site-header{border-bottom-color:#e5eadf;box-shadow:0 2px 15px rgba(24,58,36,.035)}
.site-header .inside-header{gap:clamp(18px,2.6vw,34px);padding-block:11px}
.site-header .site-logo{flex:none}
.site-header .site-logo img{display:block;width:clamp(205px,18.5vw,250px);max-height:none;height:auto;object-fit:contain}
.site-header .wp-block-search{max-width:480px}
.site-header .wp-block-search__input{background:#fbfcf8!important;border-color:#dbe5d6!important}
.site-header .wp-block-search__input:focus{border-color:var(--leaf)!important;box-shadow:0 0 0 3px rgba(120,151,55,.12)!important;outline:none}
.kb-header-actions a{transition:color .18s ease,transform .18s ease}
.kb-header-actions a:hover{transform:translateY(-1px)}
.main-navigation{border-bottom:1px solid #e1e8dc;box-shadow:0 7px 16px rgba(30,60,40,.045)}
.main-navigation .main-nav>ul>li>a{position:relative}
.main-navigation .main-nav>ul>li>a:after{content:"";position:absolute;right:18px;bottom:6px;left:18px;height:2px;border-radius:2px;background:var(--gold);transform:scaleX(0);transform-origin:center;transition:transform .22s ease}
.main-navigation .main-nav>ul>li:hover>a:after,.main-navigation .main-nav>ul>li.current-menu-item>a:after,.main-navigation .main-nav>ul>li>a:focus-visible:after{transform:scaleX(1)}
.kb-hero{background:radial-gradient(circle at 80% 45%,rgba(120,151,55,.13),transparent 34%),linear-gradient(122deg,#f4f7ee 0%,#fbf9f1 64%,#f4ecd8 100%)}
.kb-hero h1,.kb-section-head h2{color:#183d28}
.kb-hero-book{border:1px solid rgba(115,139,78,.15);box-shadow:12px 19px 32px rgba(27,57,34,.16)}
.kb-trust{background:#fffefa}
.kb-trust-icon,.kb-category-arrow{border-color:#d7e3cf;background:#f2f7ee;color:var(--green)}
.kb-category,.kb-product-image,.woocommerce ul.products li.product{border-color:#e2e8dc}
.kb-category:hover,.kb-product:hover .kb-product-image,.woocommerce ul.products li.product:hover{border-color:#adc69d}
.kb-category:hover,.woocommerce ul.products li.product:hover{box-shadow:0 10px 26px rgba(30,68,42,.085)}
.kb-banner{background:linear-gradient(115deg,#193b28,#245638)}
.kb-search,.site-header .wp-block-search__inside-wrapper{box-shadow:0 8px 24px rgba(26,57,36,.055)}
.kb-search:focus-within{border-color:var(--leaf);box-shadow:0 0 0 3px rgba(120,151,55,.12)}
.kb-button,.kb-search button,.woocommerce a.button,.woocommerce button.button{transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.kb-button:active,.kb-search button:active,.woocommerce a.button:active,.woocommerce button.button:active{transform:translateY(1px)}
.site-footer,.site-footer .site-info{background:#193624;color:#e8efe5}
.site-footer .inside-site-info{display:flex;align-items:center;justify-content:center;gap:14px;padding-block:17px}
.site-footer .copyright-bar{line-height:1.55;text-align:center;margin:0!important}
.slideout-navigation{background:#193c29!important}
.slideout-navigation .main-nav ul li a,.slideout-navigation .slideout-exit{color:#f4f5eb!important}
.slideout-navigation .main-nav ul li a:hover,.slideout-navigation .main-nav ul li a:focus{background:#25583a!important;color:#fff!important}
.kb-slideout-brand{padding:12px 22px 20px;border-bottom:1px solid #dce5d4;background:#f9f8f0}
.kb-slideout-logo img{display:block;width:min(100%,185px);height:auto}
#mobile-header{background:#fffefa;border-bottom:1px solid #e2e8dc}
#mobile-header .mobile-header-logo img{display:block;width:clamp(118px,34vw,155px);max-width:100%;height:auto;max-height:56px;object-fit:contain}
#mobile-header .menu-toggle,#mobile-header .kb-account-trigger,#mobile-header .kb-cart-link{color:var(--ink)!important}
@media(max-width:900px){.site-header .site-logo img{width:190px}.site-header .wp-block-search{max-width:390px}}
@media(max-width:768px){#mobile-header .inside-navigation{min-height:68px}.kb-slideout-brand{padding-top:6px}}
@media(max-width:480px){#mobile-header .mobile-header-logo img{width:clamp(135px,38vw,160px)}.site-footer .inside-site-info{padding-inline:18px}.site-footer .copyright-bar{font-size:11px}}
@media(max-width:360px){#mobile-header .inside-navigation{padding-inline:8px}#mobile-header .mobile-header-logo{margin-left:0!important;margin-right:0!important}#mobile-header .mobile-header-logo img{width:96px}#mobile-header .kb-header-actions{gap:4px;padding-right:0;margin-left:auto}#mobile-header .menu-toggle{display:grid!important;place-items:center;width:40px;min-width:40px;padding:0!important;font-size:0!important;line-height:1!important}#mobile-header .menu-toggle .gp-icon{font-size:21px}}
@media(prefers-reduced-motion:reduce){.kb-header-actions a,.main-navigation .main-nav>ul>li>a:after{transition:none}}
/* Compact category browsing without the imported empty demo shelves. */
.woocommerce .widget_product_categories{border:1px solid var(--line);border-radius:12px;background:#fbfcf8;padding:20px!important;box-shadow:0 7px 22px rgba(30,68,42,.04)}
.woocommerce .widget_product_categories .widget-title{color:#1c442d;font-size:18px;font-weight:750;line-height:1.35;margin:0 0 14px}
.woocommerce .widget_product_categories .product-categories{max-height:560px;overflow:auto;overscroll-behavior:contain;margin:0;padding:0 5px 0 0;list-style:none;scrollbar-color:#afc3a8 transparent;scrollbar-width:thin}
.woocommerce .widget_product_categories .product-categories li{padding:9px 0;border-bottom:1px solid #e7ede3;line-height:1.45}
.woocommerce .widget_product_categories .product-categories li:last-child{border-bottom:0}
.woocommerce .widget_product_categories .product-categories a{color:#2b4d35;text-decoration:none;font-size:14px}
.woocommerce .widget_product_categories .product-categories a:hover,.woocommerce .widget_product_categories .product-categories .current-cat>a{color:#a56f19;text-decoration:underline;text-underline-offset:3px}
.woocommerce .widget_product_categories .count{color:#718276;font-size:12px}
@media(max-width:768px){.woocommerce .widget_product_categories{margin-top:24px}}
/* Four editable bookshop footer columns. */
.kb-footer-widgets{position:relative;background:#20452e;color:#e5eddf}
.kb-footer-widgets:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,#a77a32,#d6b761 50%,#688d3d)}
.kb-footer-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr) minmax(0,1.25fr) minmax(0,1fr);gap:clamp(26px,3vw,48px);padding-block:52px 48px}
.kb-footer-column{min-width:0}
.kb-footer-column .widget{margin:0 0 20px}
.kb-footer-column .widget:last-child{margin-bottom:0}
.kb-footer-title{color:#f2d792;font-size:17px;font-weight:750;line-height:1.35;margin:0 0 19px}
.kb-footer-brand-head{display:flex;align-items:center;gap:14px;min-width:0}
.kb-footer-brand-head img{display:block;flex:none;width:64px;height:64px;object-fit:contain;padding:5px;border-radius:10px;background:#faf8ef}
.kb-footer-brand-head strong{display:block;color:#fff5d9;font-size:17px;line-height:1.35}
.kb-footer-brand-head span{display:block;color:#b9d3b5;font-size:12px;letter-spacing:.025em;margin-top:3px}
.kb-footer-intro{max-width:300px;color:#d4e3d2;font-size:13px;line-height:1.65;margin:18px 0}
.kb-footer-social{display:flex;flex-wrap:wrap;gap:9px}
.kb-footer-social a{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 11px;border:1px solid rgba(216,233,204,.3);border-radius:7px;color:#f4f1df!important;font-size:12px;font-weight:700;text-decoration:none;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.kb-footer-social a:hover{background:rgba(221,234,202,.12);border-color:#d5b76c;transform:translateY(-2px)}
.kb-footer-social svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.kb-footer-links{list-style:none;margin:0;padding:0}
.kb-footer-links li+li{margin-top:11px}
.kb-footer-links a,.kb-footer-column .widget a{color:#e1ece0;text-decoration:none;font-size:14px;line-height:1.55;transition:color .18s ease}
.kb-footer-links a:hover,.kb-footer-column .widget a:hover{color:#f2d792;text-decoration:underline;text-underline-offset:4px}
.kb-footer-tags{display:flex;flex-wrap:wrap;align-content:start;gap:8px}
.kb-footer-tags a{display:inline-flex;max-width:100%;padding:6px 9px;border:1px solid rgba(216,233,204,.24);border-radius:6px;background:rgba(255,255,255,.045);color:#e5eddf;text-decoration:none;font-size:11px;line-height:1.35;overflow-wrap:anywhere;transition:background .18s ease,border-color .18s ease}
.kb-footer-tags a:hover{background:rgba(221,234,202,.12);border-color:#d5b76c;color:#fff}
.kb-footer-column a:focus-visible{outline:2px solid #e2c06d;outline-offset:3px}
.site-footer .site-info{border-top:1px solid rgba(233,244,225,.1)}
@media(max-width:960px){.kb-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 42px;padding-block:42px}}
@media(max-width:600px){.kb-footer-grid{grid-template-columns:minmax(0,1fr);gap:30px;padding-block:38px}.kb-footer-column{padding-bottom:25px;border-bottom:1px solid rgba(216,233,204,.14)}.kb-footer-column:last-child{padding-bottom:0;border-bottom:0}.kb-footer-title{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.kb-footer-social a,.kb-footer-links a,.kb-footer-tags a{transition:none}}
/* Home collection shelves: four covers on desktop, three on tablets, two on phones. */
.kb-home .kb-collection-section{position:relative;isolation:isolate;overflow:hidden}
.kb-home .kb-collection-section>.kb-shell{position:relative;z-index:1}
.kb-home .kb-collection-section::before{content:"";position:absolute;right:max(1%,calc((100vw - 1220px)/2));top:25px;width:106px;height:76px;border:2px solid rgba(102,137,73,.11);border-radius:5px 26px 8px 5px;box-shadow:inset 49px 0 rgba(102,137,73,.035),inset 52px 0 rgba(102,137,73,.13);transform:rotate(-9deg);pointer-events:none;animation:kb-book-drift 9s ease-in-out infinite alternate}
.kb-home .kb-collection-section:nth-of-type(even)::before{right:auto;left:max(1%,calc((100vw - 1220px)/2));transform:rotate(9deg);animation-delay:-4s}
.kb-home .kb-collection-section .kb-section-head{padding-right:96px}
.kb-home .kb-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px}
.kb-home .kb-product{transition:transform .22s ease}
.kb-home .kb-product:hover{transform:translateY(-4px)}
.kb-home .kb-product-image{transition:border-color .22s ease,box-shadow .22s ease}
.kb-home .kb-product:hover .kb-product-image{box-shadow:0 13px 24px rgba(28,61,39,.11)}
.kb-collection-more{display:flex;justify-content:center;margin-top:28px}
.kb-view-all{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:160px;text-decoration:none}
.kb-view-all span{transition:transform .2s ease}
.kb-view-all:hover span,.kb-view-all:focus-visible span{transform:translateX(4px)}
@keyframes kb-book-drift{to{translate:0 11px;rotate:4deg}}
@media(max-width:1050px){.kb-home .kb-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.kb-home .kb-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}.kb-home .kb-collection-section .kb-section-head{padding-right:0}.kb-home .kb-collection-section::before{width:70px;height:50px;opacity:.65;top:20px}.kb-collection-more{margin-top:23px}}
@media(prefers-reduced-motion:reduce){.kb-home .kb-collection-section::before{animation:none}.kb-home .kb-product,.kb-home .kb-product-image,.kb-view-all span{transition:none}}
