
:root{
 --green:#9df43d;--green2:#58c91f;--deep:#031b11;--deep2:#062d1a;--panel:#073b22;--line:rgba(157,244,61,.24);--muted:#9eb8a8;--white:#f8fff9;
 --shadow:0 24px 70px rgba(0,0,0,.32);--radius:22px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:#02150c;color:#e8f6ec;font-family:Inter,Arial,sans-serif;overflow-x:hidden}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}
.container{width:min(1320px,calc(100% - 72px));margin-inline:auto}.section-k{padding:54px 0}.section-k-header{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.section-k-title{font:800 clamp(30px,3vw,46px)/1 Poppins,sans-serif;letter-spacing:-.055em;margin:6px 0 8px;color:#fff}.section-k-subtitle{margin:0;color:#9ab2a2;max-width:580px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#b7ff72;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.eyebrow:before{content:'';width:24px;height:2px;background:var(--green);box-shadow:0 0 14px var(--green)}
/* HERO */
.hero-k-premium{position:relative;min-height:720px;display:flex;align-items:stretch;overflow:hidden;background-color:#042517;background-image:url('../img/kamssa-hero-banner.png');background-position:center center;background-size:cover;background-repeat:no-repeat;border-bottom:1px solid rgba(157,244,61,.2);isolation:isolate}.hero-k-premium:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,20,12,.98) 0%,rgba(2,28,17,.93) 31%,rgba(2,35,20,.56) 56%,rgba(1,25,15,.16) 100%);z-index:0;pointer-events:none}.hero-k-premium:after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 75% 48%,rgba(139,255,50,.22),transparent 30%),linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.25));z-index:0;pointer-events:none}.hero-k-inner{position:relative;z-index:2;min-height:720px;display:flex;align-items:center;padding:74px 0 105px}.hero-copy-k{width:47%;max-width:620px}.hero-badge{display:inline-flex;padding:8px 15px;border:1px solid rgba(157,244,61,.5);border-radius:999px;background:rgba(10,116,55,.42);color:#b8ff6d;font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:22px;box-shadow:0 0 25px rgba(105,255,39,.12)}.hero-title-k{font:800 clamp(52px,6vw,86px)/.92 Poppins,sans-serif;letter-spacing:-.075em;color:#fff;margin:0 0 22px;text-shadow:0 12px 45px rgba(0,0,0,.3)}.hero-title-k .highlight{color:#9df43d;text-shadow:0 0 32px rgba(157,244,61,.2)}.hero-lead-k{max-width:560px;font-size:16px;line-height:1.75;color:#d2e8d9;margin:0 0 25px}.hero-actions-k{display:flex;gap:16px;align-items:center;margin-bottom:27px}.btn-k{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 24px;border-radius:999px;font-weight:800;font-size:14px;border:1px solid transparent;transition:.3s ease}.btn-k svg{width:17px;height:17px}.btn-k-primary{background:linear-gradient(135deg,#b7ff52,#79df25);color:#08250f;box-shadow:0 12px 32px rgba(119,230,34,.2)}.btn-k-primary:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(119,230,34,.3)}.btn-k-outline{color:#fff;border-color:rgba(255,255,255,.45);background:rgba(5,45,27,.32);backdrop-filter:blur(10px)}.btn-k-outline:hover{border-color:#b7ff52;color:#b7ff52;transform:translateY(-3px)}.hero-perks{display:flex;flex-wrap:wrap;gap:13px 25px;list-style:none;margin:0;padding:0}.hero-perks li{display:flex;align-items:center;gap:8px;color:#dcece1;font-size:12px;font-weight:600}.hero-perks svg{width:19px;height:19px;color:#a8f34f}.hero-art-fallback{display:none}.art-glow{position:absolute;width:580px;height:580px;right:7%;top:8%;border-radius:50%;background:radial-gradient(circle,rgba(147,255,51,.3),rgba(21,116,54,.12) 40%,transparent 68%);filter:blur(8px)}.art-book{position:absolute;width:150px;filter:drop-shadow(0 24px 24px rgba(0,0,0,.45));animation:floatBook 6s ease-in-out infinite}.art-book.one{left:13%;top:22%;transform:rotate(-13deg);animation-delay:-2s}.art-book.two{right:20%;top:17%;transform:rotate(12deg) scale(.9);animation-delay:-4s}.art-book.three{left:20%;bottom:13%;transform:rotate(-6deg) scale(.85);animation-delay:-1s}.art-book.four{right:10%;bottom:18%;transform:rotate(8deg) scale(.72);animation-delay:-3s}.art-student-placeholder{position:absolute;right:19%;bottom:-2%;width:280px;height:510px;border-radius:140px 140px 25px 25px;background:linear-gradient(160deg,rgba(219,255,207,.88),rgba(31,125,66,.95) 42%,rgba(3,42,24,.98) 100%);filter:drop-shadow(0 30px 35px rgba(0,0,0,.35));opacity:.72}.art-student-placeholder:before{content:'KAMSSA';position:absolute;top:190px;left:52px;right:52px;padding:9px;border:1px solid rgba(255,255,255,.35);border-radius:10px;text-align:center;color:#d8ffb4;font-weight:900;letter-spacing:.12em}.art-note{position:absolute;right:0;top:43%;font-family:cursive;font-size:28px;line-height:1.05;color:#fff;transform:rotate(-8deg);text-shadow:0 5px 20px #000}.art-note:after{content:'';display:block;width:95px;height:4px;background:var(--green);margin:9px 0 0 22px;transform:rotate(-8deg);border-radius:50%}.hero-scroll-cue{position:absolute;left:0;bottom:32px;display:flex;align-items:center;gap:10px;color:#9ab5a5;font-size:10px;letter-spacing:.16em;font-weight:800}.hero-scroll-cue span{width:38px;height:1px;background:var(--green);box-shadow:0 0 15px var(--green)}
/* SERVICES */
.services-k{width:min(1240px,calc(100% - 72px));margin:-46px auto 0;position:relative;z-index:5;border:1px solid rgba(157,244,61,.3);border-radius:22px;background:rgba(3,46,26,.9);backdrop-filter:blur(18px);box-shadow:0 22px 55px rgba(0,0,0,.3);padding:10px}.services-grid{display:grid;grid-template-columns:repeat(4,1fr)}.service-item-k{min-height:78px;padding:14px 20px;display:flex;align-items:center;gap:13px;border-right:1px solid rgba(255,255,255,.08)}.service-item-k:last-child{border-right:0}.service-icon-k{width:45px;height:45px;flex:0 0 45px;border-radius:50%;display:grid;place-items:center;background:rgba(139,244,54,.12);border:1px solid rgba(157,244,61,.25);color:var(--green);box-shadow:inset 0 0 18px rgba(157,244,61,.05)}.service-icon-k svg{width:21px;height:21px}.service-text-k{display:flex;flex-direction:column;gap:3px}.service-text-k strong{font-size:12px;color:#fff}.service-text-k span{font-size:10px;color:#8ea99a}
/* FEATURED */
.featured-shell{border:1px solid rgba(157,244,61,.25);border-radius:26px;background:linear-gradient(135deg,rgba(5,51,29,.92),rgba(2,29,18,.96));padding:28px;position:relative;overflow:visible;box-shadow:var(--shadow)}.featured-shell:before{content:'';position:absolute;width:380px;height:380px;right:-120px;top:-160px;background:radial-gradient(circle,rgba(145,255,69,.15),transparent 68%);pointer-events:none}.featured-layout{display:grid;grid-template-columns:250px 1fr;gap:28px;align-items:center}.featured-intro h2{font:800 31px/1 Poppins;margin:10px 0;color:#fff;letter-spacing:-.05em}.featured-intro p{font-size:12px;line-height:1.65;color:#91aa9c;margin-bottom:22px}.featured-scroll-wrap{position:relative}.top-selling-scroll{display:flex;gap:14px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 12px}.top-selling-scroll::-webkit-scrollbar{display:none}.top-selling-card{scroll-snap-align:start;min-width:174px;background:#f7fbf6;border:1px solid rgba(255,255,255,.7);border-radius:12px;padding:10px;color:#183522;box-shadow:0 14px 30px rgba(0,0,0,.22);transition:.35s ease;position:relative}.top-selling-card:hover{transform:translateY(-8px) rotate(-.5deg)}.top-selling-cover{height:185px;display:grid;place-items:center}.top-selling-cover .cover{width:112px}.top-selling-info{padding:7px 2px 0}.top-selling-title{font-size:12px;font-weight:800;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#173322}.top-selling-level{font-size:9px;color:#789081;margin:0 0 8px}.top-selling-price-row{display:flex;align-items:end;justify-content:space-between;gap:6px}.top-selling-price{font-size:12px;font-weight:900;color:#153a24}.top-selling-price span{font-size:8px;color:#779080}.top-selling-rating{font-size:8px;color:#eeaa00;margin-top:4px}.top-selling-rating span{color:#6d8176}.top-selling-add{width:29px;height:29px;border:0;border-radius:9px;background:#6fe32b;color:#09240f;display:grid;place-items:center}.top-selling-add svg{width:15px}.top-selling-nav{position:absolute;top:50%;z-index:20;width:38px;height:38px;border-radius:50%;border:1px solid rgba(157,244,61,.55);background:#0a5a30;color:#b8ff6c;display:grid;place-items:center;box-shadow:0 8px 25px rgba(0,0,0,.35);cursor:pointer;transition:transform .25s ease,background .25s ease,box-shadow .25s ease}.top-selling-nav:hover{background:#11733c;transform:translateY(-50%) scale(1.08);box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 18px rgba(157,244,61,.18)}.top-selling-nav svg{width:17px}.top-selling-nav.prev{left:-19px}.top-selling-nav.next{right:-19px}
/* SHOP */
.shop-shell{border:1px solid rgba(157,244,61,.18);border-radius:26px;padding:25px;background:rgba(3,32,19,.55)}.shop-layout{display:grid;grid-template-columns:220px 1fr;gap:26px}.filter-sidebar-k{position:sticky;top:20px;align-self:start;background:linear-gradient(180deg,#063821,#042417);border:1px solid rgba(157,244,61,.22);border-radius:20px;padding:18px;box-shadow:0 18px 45px rgba(0,0,0,.2)}.shop-search-k{position:relative}.shop-search-k svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:15px;color:#769789}.shop-search-k input{width:100%;height:40px;padding:0 12px 0 38px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#fff;outline:0}.filter-group-k{padding:17px 0;border-top:1px solid rgba(255,255,255,.08)}.filter-group-k legend{font-size:11px;font-weight:800;color:#fff;margin-bottom:10px}.filter-option-k{display:flex;align-items:center;gap:8px;font-size:11px;color:#a9bcaf;margin:9px 0}.filter-option-k input{accent-color:var(--green)}.filter-option-k .count{margin-left:auto;color:#658072;font-size:10px}.filter-show-more,.filter-clear-k{font-size:10px;color:#a9f15e;cursor:pointer;display:flex;align-items:center;gap:4px}.shop-main{min-width:0}.shop-toolbar-k{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.result-count-k{font-size:11px;color:#8fa99a;margin:0}.shop-sort-k{display:flex;align-items:center;gap:7px}.shop-sort-k label{font-size:10px;color:#80998c}.shop-sort-k select{height:38px;border-radius:11px;border:1px solid rgba(255,255,255,.12);background:#07351f;color:#dff4e5;padding:0 12px;outline:0}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.book-card-k{height:100%;background:linear-gradient(180deg,#073821,#052b1b);border:1px solid rgba(157,244,61,.18);border-radius:16px;overflow:hidden;transition:.3s ease;position:relative}.book-card-k:hover{transform:translateY(-6px);border-color:rgba(157,244,61,.55);box-shadow:0 18px 40px rgba(0,0,0,.3),0 0 24px rgba(115,238,40,.08)}.book-card-cover-k{display:flex;justify-content:center;padding:16px 14px 8px;background:rgba(0,0,0,.16)}.book-card-cover-k .cover{width:105px}.book-card-body-k{padding:10px 12px 13px}.book-card-genre-k{font-size:8px;color:#a4f45d;text-transform:uppercase;letter-spacing:.1em;font-weight:800;margin:0 0 4px}.book-card-title-k{font-size:12px;line-height:1.3;margin:0 0 2px;font-weight:800}.book-card-title-k a{color:#fff}.book-card-author-k{font-size:9px;color:#789286;margin:0 0 6px}.book-card-rating-k{font-size:8px;color:#f0ae16;display:flex;gap:5px;margin-bottom:9px}.book-card-rating-k span:last-child{color:#8da397}.book-card-footer-k{border-top:1px solid rgba(255,255,255,.08);padding-top:9px;display:flex;align-items:center;justify-content:space-between}.book-card-price-k{font-size:12px;font-weight:900;margin:0;color:#fff}.book-card-price-k small{font-size:8px;color:#718b7d;margin-left:3px}.btn-add-k{width:29px;height:29px;border-radius:9px;border:1px solid rgba(157,244,61,.24);background:rgba(157,244,61,.1);color:#a7f55d;display:grid;place-items:center}.btn-add-k:hover{background:#9df43d;color:#08230f}.btn-add-k svg{width:14px}
/* SUBJECTS */
.subject-panel{border-radius:25px;border:1px solid rgba(157,244,61,.2);background:linear-gradient(180deg,rgba(4,48,27,.85),rgba(3,29,18,.9));padding:28px;overflow:hidden}
.subject-grid-k{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.subject-card-k{min-height:158px;border:1px solid rgba(157,244,61,.15);border-radius:15px;background:linear-gradient(180deg,rgba(8,72,39,.45),rgba(2,39,23,.62));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px 7px;transition:transform .3s ease,background .3s ease,border-color .3s ease,box-shadow .3s ease;overflow:hidden}
.subject-card-k:hover{transform:translateY(-5px);background:rgba(157,244,61,.08);border-color:rgba(157,244,61,.5);box-shadow:0 15px 30px rgba(0,0,0,.25)}
.subject-icon-k{width:82px;height:82px;display:grid;place-items:center;margin-bottom:8px;position:relative}
.subject-icon-k img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 10px 12px rgba(0,0,0,.35));transition:transform .3s ease}
.subject-card-k:hover .subject-icon-k img{transform:scale(1.08) translateY(-2px)}
.subject-name-k{font-size:10px;font-weight:800;color:#fff;line-height:1.25}
.subject-count-k{font-size:8px;color:#789387;margin-top:4px}
/* CTA */
.bottom-banner-k{position:relative;overflow:hidden;min-height:170px;border-radius:25px;border:1px solid rgba(157,244,61,.35);background:radial-gradient(circle at 80% 50%,rgba(136,255,46,.2),transparent 30%),linear-gradient(105deg,#063a24,#052719 60%,#0a4828);display:grid;grid-template-columns:220px minmax(0,1fr) auto;align-items:center;gap:20px;padding:22px 38px;box-shadow:var(--shadow)}
.bottom-banner-k:before{content:'';position:absolute;inset:auto -80px -130px auto;width:360px;height:260px;background:radial-gradient(circle,rgba(157,244,61,.2),transparent 70%)}
.bottom-banner-art{position:relative;z-index:1;height:145px;display:flex;align-items:center;justify-content:center}
.bottom-banner-art img{width:180px;height:135px;object-fit:contain;display:block;filter:drop-shadow(0 16px 18px rgba(0,0,0,.4));transform:rotate(-3deg);transition:transform .3s ease}
.bottom-banner-k:hover .bottom-banner-art img{transform:rotate(-3deg) translateY(-4px) scale(1.03)}
.bottom-banner-content{position:relative;z-index:1}
.bottom-banner-tag{font-size:9px;letter-spacing:.15em;text-transform:uppercase;color:#aaf35c;font-weight:900;margin:0 0 6px}
.bottom-banner-title{font:800 34px/1 Poppins;margin:0 0 8px;color:#fff;letter-spacing:-.05em}
.bottom-banner-text{font-size:12px;color:#91aa9c;margin:0}
.bottom-banner-cta{position:relative;z-index:1;justify-self:end}
.bottom-banner-cta .btn-k{min-width:160px}
/* floating basket */
.floating-cart{position:fixed;right:22px;bottom:22px;width:56px;height:56px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:linear-gradient(135deg,#b7ff55,#67d822);color:#08250f;display:grid;place-items:center;z-index:50;box-shadow:0 16px 40px rgba(0,0,0,.35),0 0 28px rgba(140,255,49,.2)}.floating-cart svg{width:23px}.floating-cart span{position:absolute;right:-1px;top:-1px;min-width:19px;height:19px;padding:0 5px;border-radius:20px;background:#062818;color:#b7ff55;font-size:9px;font-weight:900;display:grid;place-items:center;border:1px solid #b7ff55}.floating-cart span.is-empty{display:none}
/* reveal */
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1)}[data-reveal].is-visible{opacity:1;transform:none}@keyframes floatBook{0%,100%{translate:0 0}50%{translate:0 -13px}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:1100px){.hero-copy-k{width:54%}.book-grid{grid-template-columns:repeat(3,1fr)}.subject-grid-k{grid-template-columns:repeat(5,1fr)}.featured-layout{grid-template-columns:200px 1fr}}
@media(max-width:850px){
.top-selling-nav{width:36px;height:36px}
.top-selling-nav.prev{left:-10px}
.top-selling-nav.next{right:-10px}
.container{width:min(100% - 34px,700px)}.hero-k-premium,.hero-k-inner{min-height:760px}.hero-copy-k{width:100%;max-width:590px}.hero-title-k{font-size:clamp(47px,11vw,76px)}.services-k{width:calc(100% - 34px);margin-top:-35px}.services-grid{grid-template-columns:1fr 1fr}.service-item-k:nth-child(2){border-right:0}.service-item-k:nth-child(3),.service-item-k:nth-child(4){border-top:1px solid rgba(255,255,255,.08)}.featured-layout{grid-template-columns:1fr}.book-grid{grid-template-columns:repeat(2,1fr)}.shop-layout{grid-template-columns:1fr}.filter-sidebar-k{position:relative;top:auto}.subject-grid-k{grid-template-columns:repeat(4,1fr)}}
@media(max-width:560px){
.top-selling-nav{width:34px;height:34px}
.top-selling-nav.prev{left:-7px}
.top-selling-nav.next{right:-7px}
.container{width:calc(100% - 24px)}.hero-k-premium{min-height:760px;background-position:64% center}.hero-k-inner{min-height:760px;padding:55px 0 85px}.hero-title-k{font-size:clamp(43px,14vw,63px)}.hero-lead-k{font-size:14px}.hero-actions-k{flex-direction:column;align-items:stretch}.btn-k{width:max-content}.hero-perks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hero-perks li{font-size:10px}.art-note{display:none}.services-k{width:calc(100% - 20px);border-radius:18px}.service-item-k{padding:12px 10px;min-height:70px}.service-icon-k{width:37px;height:37px;flex-basis:37px}.service-text-k strong{font-size:10px}.service-text-k span{font-size:8px}.section-k{padding:38px 0}.section-k-header{align-items:flex-start;flex-direction:column}.section-k-title{font-size:31px}.featured-shell,.shop-shell,.subject-panel{padding:16px;border-radius:20px}.featured-intro h2{font-size:27px}.top-selling-card{min-width:155px}.top-selling-cover{height:165px}.top-selling-cover .cover{width:95px}.shop-toolbar-k{align-items:flex-start;flex-direction:column;gap:12px}.book-grid{gap:10px}.book-card-cover-k .cover{width:92px}.book-card-body-k{padding:9px}.subject-grid-k{grid-template-columns:repeat(2,1fr)}.bottom-banner-k{padding:25px 20px;display:block}.bottom-banner-title{font-size:29px}.bottom-banner-cta{margin-top:20px}.bottom-banner-cta .btn-k{width:100%}.floating-cart{right:15px;bottom:15px}}







/* =========================================================
   KAMSSA RESPONSIVE LAYOUT FIX
   Add at the VERY END of the existing stylesheet
========================================================= */

/* ---------- HERO IMAGE ---------- */
.hero-k-premium {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    isolation: isolate;
}

.hero-k-inner {
    width: min(1320px, calc(100% - 72px));
    margin-inline: auto;
}

.hero-copy-k {
    position: relative;
    z-index: 3;
    min-width: 0;
}

.hero-k-premium::before,
.hero-k-premium::after {
    pointer-events: none;
}

.hero-scroll-cue {
    z-index: 4;
}

/* ---------- FEATURED BOOKS SECTION ---------- */
.featured-shell {
    overflow: hidden;
    min-width: 0;
}

.featured-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.featured-intro {
    min-width: 0;
}

.featured-scroll-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
    overflow: visible;
}

.top-selling-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 4px 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.top-selling-scroll::-webkit-scrollbar {
    display: none;
}

.top-selling-card {
    flex: 0 0 174px;
    width: 174px;
    min-width: 174px;
    max-width: 174px;
    scroll-snap-align: start;
    overflow: hidden;
}

.top-selling-cover {
    height: 185px;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.top-selling-cover .cover {
    width: 112px;
    max-width: 100%;
}

.top-selling-info {
    min-width: 0;
}

.top-selling-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-selling-price-row {
    min-width: 0;
}

.top-selling-nav {
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.top-selling-nav.prev {
    left: -16px;
}

.top-selling-nav.next {
    right: -16px;
}

.top-selling-nav:hover {
    transform: translateY(-50%) scale(1.08);
}

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {

    .featured-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }

    .top-selling-card {
        flex-basis: 160px;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .top-selling-cover {
        height: 175px;
    }

    .top-selling-cover .cover {
        width: 105px;
    }

    .book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .subject-grid-k {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ---------- SMALL TABLETS ---------- */
@media (max-width: 850px) {

    .hero-k-premium,
    .hero-k-inner {
        min-height: 760px;
    }

    .hero-k-inner {
        width: calc(100% - 34px);
        padding: 65px 0 95px;
    }

    .hero-copy-k {
        width: 100%;
        max-width: 590px;
    }

    .featured-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .featured-intro {
        max-width: 540px;
    }

    .featured-scroll-wrap {
        width: 100%;
        min-width: 0;
    }

    .top-selling-scroll {
        gap: 14px;
    }

    .top-selling-card {
        flex: 0 0 165px;
        width: 165px;
        min-width: 165px;
        max-width: 165px;
    }

    .top-selling-nav.prev {
        left: -10px;
    }

    .top-selling-nav.next {
        right: -10px;
    }

    .shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-sidebar-k {
        position: relative;
        top: auto;
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subject-grid-k {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 560px) {

    .hero-k-premium {
        min-height: 760px;
        background-position: 64% center;
    }

    .hero-k-inner {
        min-height: 760px;
        width: calc(100% - 24px);
        padding: 55px 0 85px;
    }

    .hero-k-premium::before {
        background: linear-gradient(
            90deg,
            rgba(1, 20, 12, .97) 0%,
            rgba(2, 28, 17, .88) 48%,
            rgba(2, 35, 20, .48) 100%
        );
    }

    .hero-title-k {
        font-size: clamp(43px, 14vw, 63px);
    }

    .hero-lead-k {
        font-size: 14px;
    }

    .featured-shell {
        padding: 16px;
        border-radius: 20px;
    }

    .featured-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .featured-intro {
        width: 100%;
    }

    .featured-intro h2 {
        font-size: 27px;
    }

    .featured-scroll-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .top-selling-scroll {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
        padding: 12px 3px 18px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .top-selling-card {
        flex: 0 0 155px;
        width: 155px;
        min-width: 155px;
        max-width: 155px;
        border-radius: 12px;
        scroll-snap-align: start;
    }

    .top-selling-cover {
        height: 165px;
    }

    .top-selling-cover .cover {
        width: 95px;
    }

    .top-selling-nav {
        width: 34px;
        height: 34px;
    }

    .top-selling-nav.prev {
        left: -7px;
    }

    .top-selling-nav.next {
        right: -7px;
    }

    .top-selling-nav:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .book-card-k {
        min-width: 0;
    }

    .book-card-cover-k .cover {
        width: 92px;
    }

    .subject-grid-k {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-k-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 380px) {

    .container {
        width: calc(100% - 20px);
    }

    .featured-shell {
        padding: 13px;
    }

    .top-selling-card {
        flex-basis: 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
    }

    .top-selling-cover {
        height: 155px;
    }

    .top-selling-cover .cover {
        width: 88px;
    }

    .top-selling-price {
        font-size: 10px;
    }

    .book-card-body-k {
        padding: 8px;
    }

    .book-card-title-k {
        font-size: 11px;
    }

    .hero-perks {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
    .top-selling-scroll {
        scroll-behavior: auto;
    }
}

/* Subject / CTA asset responsiveness */
@media(max-width:1100px){.subject-grid-k{grid-template-columns:repeat(4,minmax(0,1fr))}.bottom-banner-k{grid-template-columns:170px minmax(0,1fr) auto}.bottom-banner-art img{width:155px;height:120px}}
@media(max-width:850px){.bottom-banner-k{grid-template-columns:160px minmax(0,1fr);gap:10px}.bottom-banner-cta{grid-column:2;justify-self:start}.bottom-banner-art{grid-row:span 2}.subject-grid-k{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.subject-grid-k{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-card-k{min-height:145px}.subject-icon-k{width:78px;height:78px}.bottom-banner-k{display:block;text-align:center;padding:25px 20px}.bottom-banner-art{height:120px}.bottom-banner-art img{width:155px;height:115px}.bottom-banner-content{text-align:center}.bottom-banner-title{font-size:29px}.bottom-banner-cta{margin-top:20px;justify-self:auto}.bottom-banner-cta .btn-k{width:100%}}


.floating-cart{cursor:pointer}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.pager-home{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:22px}.pager-home button{min-width:38px;height:38px;padding:0 12px;border-radius:10px;border:1px solid rgba(157,244,61,.25);background:rgba(3,32,19,.7);color:#d9ffb0;font-weight:700;font-size:13px;cursor:pointer}.pager-home button.is-on{background:linear-gradient(135deg,#b7ff55,#67d822);color:#08250f;border-color:transparent}.pager-home button:disabled{opacity:.4;cursor:default}
.shop-state{grid-column:1/-1;text-align:center;padding:40px 10px;color:#a9c9b3}
.shop-grid-loading{opacity:.5;transition:opacity .2s}
.home-foot{text-align:center;padding:26px 12px 90px;font-size:13px;color:#8fb59d}.home-foot a{color:#b7ff55;margin:0 10px}
.top-selling-card{position:relative}
.top-selling-badge{position:absolute;top:10px;left:10px;z-index:2;padding:4px 10px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:linear-gradient(135deg,#b7ff55,#67d822);color:#08250f}
.top-selling-badge.popular{background:#0b3d24;color:#b7ff55;border:1px solid rgba(183,255,85,.45)}