/*
Theme Name: ebookmitra Store
Theme URI: https://ebookmitra.online/
Author: ebookmitra
Description: Bold, modern digital bookstore theme with responsive book-focused homepage and WooCommerce support.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ebookmitra
*/
:root{--navy:#081633;--navy2:#10285a;--blue:#2453df;--blue2:#3b6cf6;--gold:#ffb21c;--ink:#101c36;--muted:#62708a;--line:#e6ebf4;--bg:#f5f7fc;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.6 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#fff}a{text-decoration:none;color:inherit}a:hover{color:var(--blue)}img{max-width:100%;height:auto}.container{width:min(1200px,calc(100% - 40px));margin:auto}
.topbar{background:#06112a;color:#e9efff;font-size:11px;font-weight:700;letter-spacing:.2px}.topbar-inner{height:34px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 16px #07173508}.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.brand-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#4277ff,#183cb6);box-shadow:0 7px 18px #2453df35;font-size:22px;font-weight:950;letter-spacing:-2px}.brand-word{font-size:27px;line-height:1;font-weight:950;letter-spacing:-1.35px;color:#071633;text-transform:lowercase}.brand-word .dot{color:var(--blue)}.brand-tag{display:block;margin-top:5px;color:#7d8aa3;font-size:9px;line-height:1;font-weight:850;letter-spacing:1.35px;text-transform:uppercase}
.main-nav{display:flex;align-items:center;gap:28px}.main-nav a{font-size:13px;font-weight:800;color:#26344e}.main-nav a:hover{color:var(--blue)}.head-actions{display:flex;align-items:center;gap:9px}.icon-link{width:39px;height:39px;border:1px solid var(--line);border-radius:11px;display:grid;place-items:center;font-size:17px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 19px;border-radius:10px;background:var(--blue);color:#fff!important;font-size:13px;font-weight:900;border:1px solid var(--blue);box-shadow:0 7px 15px #2453df24;transition:.2s}.btn:hover{background:#173fbf;transform:translateY(-2px);color:#fff}.btn-gold{background:var(--gold);border-color:var(--gold);color:#101c36!important;box-shadow:0 7px 15px #ffb21c30}.btn-gold:hover{background:#ffc24f;color:#101c36!important}.btn-outline{background:transparent;border-color:#ffffff8c;box-shadow:none;color:#fff!important}.btn-outline:hover{background:#ffffff16}.menu-toggle{display:none;border:1px solid var(--line);background:white;border-radius:9px;padding:8px 11px;font-size:19px}
.hero{position:relative;overflow:hidden;color:white;background:radial-gradient(circle at 75% 40%,#3458a8 0,transparent 31%),linear-gradient(115deg,#071632 0%,#10285b 58%,#183b81 100%);padding:65px 0 68px}.hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#ffffff20 1px,transparent 1px);background-size:22px 22px;opacity:.3;mask-image:linear-gradient(90deg,transparent,black)}.hero-grid{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:38px}.hero-copy{max-width:590px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#ffc247;font-size:11px;font-weight:950;letter-spacing:1.6px;text-transform:uppercase}.eyebrow:before{content:"";width:22px;height:2px;background:var(--gold)}.hero h1{margin:15px 0 15px;color:#fff;font-size:clamp(40px,5vw,62px);line-height:1.03;letter-spacing:-2.6px;font-weight:950}.hero h1 em{font-style:normal;color:var(--gold)}.hero p{max-width:540px;color:#dce6fb;font-size:16px;line-height:1.75;margin:0 0 25px}.hero-buttons{display:flex;gap:11px;flex-wrap:wrap}.hero-proof{display:flex;gap:22px;flex-wrap:wrap;margin-top:27px}.proof-item{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:850;color:#f2f5ff}.proof-icon{width:34px;height:34px;border:1px solid #ffffff42;border-radius:50%;display:grid;place-items:center;font-size:16px}
.book-display{height:365px;position:relative;display:flex;align-items:center;justify-content:center}.book-platform{position:absolute;bottom:15px;width:95%;height:38px;border-radius:50%;background:linear-gradient(90deg,#273f78,#405fa9,#20396f);box-shadow:0 20px 32px #020b1e75}.book{position:absolute;width:174px;height:260px;border-radius:4px 13px 13px 4px;padding:19px 16px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;box-shadow:12px 20px 30px #020b1e70;border-left:7px solid #ffffff42;overflow:hidden}.book:after{content:"";position:absolute;right:8px;top:0;bottom:0;width:3px;background:#ffffff40}.book small{font-size:8px;letter-spacing:1.2px;font-weight:950;position:relative;z-index:1}.book strong{font-size:26px;line-height:1.05;letter-spacing:-.8px;position:relative;z-index:1}.book span{font-size:9px;font-weight:850;letter-spacing:.8px;position:relative;z-index:1}.book-a{left:calc(50% - 200px);top:64px;transform:rotate(-8deg);background:linear-gradient(145deg,#173c79,#071a3d)}.book-b{left:calc(50% - 8px);top:40px;transform:rotate(2deg);z-index:2;background:linear-gradient(145deg,#2ba99b,#075b64)}.book-c{left:calc(50% + 135px);top:74px;transform:rotate(8deg);background:linear-gradient(145deg,#8654c9,#4b247e)}.book-sticker{position:absolute;right:0;top:6px;z-index:5;width:105px;height:105px;border-radius:50%;background:var(--gold);color:#18213b;display:grid;place-items:center;text-align:center;padding:14px;font-size:12px;line-height:1.25;font-weight:950;transform:rotate(9deg);border:2px dashed #071632}
.category-ribbon{position:relative;margin-top:-26px;z-index:5}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 28px #12264a16;padding:17px 10px}.category{display:flex;align-items:center;gap:10px;padding:8px 12px;border-right:1px solid var(--line);min-width:0}.category:last-child{border:0}.cat-icon{width:40px;height:40px;flex:0 0 40px;border-radius:50%;display:grid;place-items:center;background:#eef3ff;font-size:19px}.category:nth-child(2) .cat-icon{background:#e9f8ef}.category:nth-child(3) .cat-icon{background:#f2edff}.category:nth-child(4) .cat-icon{background:#fff2e6}.category:nth-child(5) .cat-icon{background:#ffeded}.category:nth-child(6) .cat-icon{background:#e7f8f8}.category strong{display:block;font-size:10px;line-height:1.3;color:var(--ink);font-weight:950}.category small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.25}
.section{padding:58px 0}.section-muted{background:#f7f9fd}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:23px}.section-head h2{margin:0;color:var(--navy);font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:950}.section-head p{margin:7px 0 0;color:var(--muted);font-size:13px}.view-all{font-size:12px;font-weight:900;color:var(--blue);border:1px solid #cbd7ff;padding:9px 13px;border-radius:9px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:11px!important;border:1px solid var(--line);border-radius:15px;background:#fff;transition:.2s;box-shadow:0 4px 12px #10244a05}.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 14px 28px #10244a13}.woocommerce ul.products li.product a img{margin:0 0 12px!important;aspect-ratio:3/4;object-fit:cover;border-radius:9px;background:#eef1f7}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.35;font-weight:900;color:var(--ink);padding:0 0 6px!important}.woocommerce ul.products li.product .price{font-size:15px!important;color:var(--blue)!important;font-weight:950}.woocommerce ul.products li.product .button{font-size:10px!important;padding:8px 10px!important;border-radius:8px!important}.woocommerce span.onsale{background:var(--gold);color:#15213b;min-height:auto;line-height:1;padding:7px 9px;border-radius:30px;font-size:10px;font-weight:900}
.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.value-card{padding:23px;border:1px solid var(--line);border-radius:15px;background:white}.value-icon{font-size:25px}.value-card h3{font-size:15px;color:var(--navy);margin:10px 0 4px;font-weight:950}.value-card p{font-size:12px;color:var(--muted);margin:0}
.cta-panel{padding:34px 38px;border-radius:20px;background:linear-gradient(110deg,#0b1a3a,#234aa0);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:22px}.cta-panel h2{font-size:27px;line-height:1.2;margin:0 0 6px;color:#fff;font-weight:950}.cta-panel p{margin:0;color:#dbe5fb;font-size:13px}
.site-footer{background:#061229;color:#bdc9df;padding:42px 0 18px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px}.site-footer h3,.site-footer h4{color:#fff;margin:0 0 10px;font-weight:900}.site-footer p,.footer-links{font-size:12px}.footer-links{display:grid;gap:8px}.footer-links a{color:#dce5f5}.copyright{border-top:1px solid #253450;margin-top:25px;padding-top:14px;font-size:10px;color:#8fa0bc}
.site-main{min-height:45vh;padding:38px 0}.entry-title{color:var(--navy);font-weight:950}.entry-content{max-width:900px}.woocommerce .site-main{padding-top:32px}.woocommerce div.product .product_title{color:var(--navy);font-weight:950}.woocommerce div.product div.images img{border-radius:14px}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--blue)}.woocommerce .quantity .qty{min-height:40px;border:1px solid var(--line);border-radius:8px}
@media(max-width:1000px){.main-nav{gap:15px}.category-grid{grid-template-columns:repeat(3,1fr)}.category:nth-child(3){border-right:0}.category:nth-child(-n+3){border-bottom:1px solid var(--line)}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.container{width:calc(100% - 30px)}.topbar-inner{height:auto;min-height:30px;font-size:9px}.topbar-inner span:last-child{display:none}.header-inner{height:65px}.brand-icon{width:37px;height:37px;font-size:19px}.brand-word{font-size:23px}.brand-tag{font-size:8px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;top:65px;left:0;right:0;padding:17px 20px;background:white;border-bottom:1px solid var(--line);align-items:flex-start;flex-direction:column;gap:14px}.main-nav.open{display:flex}.head-actions .icon-link{display:none}.head-actions .btn{padding:9px 11px;font-size:11px}.hero{padding:43px 0 54px}.hero-grid{grid-template-columns:1fr;gap:5px}.hero h1{font-size:43px;letter-spacing:-1.8px}.hero p{font-size:14px}.book-display{height:290px;transform:scale(.88);transform-origin:center top;margin-bottom:-25px}.book-sticker{right:4px}.hero-proof{gap:12px}.proof-item{font-size:10px}.category-grid{grid-template-columns:repeat(2,1fr);padding:8px}.category{padding:10px 7px;border-bottom:1px solid var(--line)!important}.category:nth-child(2n){border-right:0}.category:nth-child(3){border-right:1px solid var(--line)}.category:nth-last-child(-n+2){border-bottom:0!important}.cat-icon{width:34px;height:34px;flex-basis:34px}.category strong{font-size:9px}.category small{font-size:8px}.section{padding:42px 0}.section-head{align-items:flex-start;flex-direction:column}.section-head h2{font-size:26px}.woocommerce ul.products{gap:10px}.woocommerce ul.products li.product{padding:8px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px!important}.value-grid{grid-template-columns:1fr}.cta-panel{padding:25px 22px;align-items:flex-start;flex-direction:column}.cta-panel h2{font-size:23px}.footer-grid{grid-template-columns:1fr;gap:20px}}
