/* Khoshroz 2026 shop look for khoshrozltd.com: Amazon-style layout in Khoshroz colours.
   Loaded after store.css (and ramadan.css in season). The 1939 hero, Girish Chandra Sen and
   Four generations sections keep their own styles. */
:root{--nav:#0D1C40;--nav2:#1B3570;--nav3:#22427F;--link:#1B5FA8;--mist:#F7F2E7;--hover:#C7511F}
body{background:var(--mist)}

/* top strip */
.announce{background:var(--nav3);color:#fff}
.announce .msg{color:#fff}
.announce .msg::before{display:none}
.announce a,.announce .site-switch span{color:#fff}
.announce .lang-switch{display:flex;border:1px solid rgba(217,184,104,.6);border-radius:999px;overflow:hidden}
.announce .lang-switch a{padding:2px 11px;font-weight:600;font-size:12.5px;color:#fff;text-decoration:none}
.announce .lang-switch a[aria-current]{background:var(--gold-lt);color:var(--nav)}

/* header */
.masthead{background:var(--nav);border-bottom:0;color:#fff}
.masthead .mast{display:flex;align-items:center;gap:12px;padding:8px 0;min-height:64px}
.masthead .brand{color:#fff;flex:0 0 auto;padding:6px 8px;border:1px solid transparent;border-radius:4px}
.masthead .brand:hover{border-color:#fff}
.masthead .brand .logo-img{display:block;height:30px;width:auto;max-width:100%}
.masthead .deliver{display:flex;align-items:flex-end;gap:4px;padding:6px 8px;border:1px solid transparent;border-radius:4px;line-height:1.15;color:#fff;flex:0 0 auto}
.masthead .deliver svg{width:18px;height:18px;margin-bottom:2px}
.masthead .deliver small{display:block;font-size:12px;color:#cfd6e6}
.masthead .deliver b{font-size:14px}
.masthead .search{flex:1 1 auto;min-width:0;max-width:none;height:42px;padding:0;border:0;border-radius:8px;background:#fff;overflow:hidden;justify-self:auto}
.masthead .search:focus-within{box-shadow:0 0 0 3px var(--gold-lt)}
.masthead .search input{padding:0 14px;height:42px;color:#111;font-size:15px}
.masthead .search button{width:54px;height:42px;border-radius:0;background:var(--gold-lt);color:var(--nav)}
.masthead .search button svg{width:22px;height:22px}
.masthead .tools{gap:2px;flex:0 0 auto}
.masthead .tool{color:#fff;background:none;border:1px solid transparent;border-radius:4px;padding:6px 9px;font-size:14px}
.masthead .tool:hover{background:none;border-color:#fff}
.masthead .tool-bag{background:none}
.masthead .tool-bag:hover{background:none}
.masthead .tool-bag svg{width:30px;height:30px}
.masthead .tool-bag .count{position:absolute;left:24px;top:6px;min-width:18px;background:none;color:var(--gold-lt);font-size:14px;font-weight:700;text-align:center;box-shadow:none;border:0;padding:0}
.catnav{background:var(--nav2);border-top:0}
.catnav a{color:#fff;padding:9px 11px;font-size:14.5px;border:1px solid transparent;border-radius:3px;margin:4px 0}
.catnav a:hover{color:#fff;border-color:#fff}
.catnav a[aria-current]{color:#fff;border-color:var(--gold-lt);font-weight:600}
.catnav a:first-child{font-weight:700}

/* picture boxes (home page) */
.kboxes{padding:20px 0 4px}
.kboxes .wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.kbox{background:#fff;padding:18px 20px 16px;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(12,27,66,.08);min-width:0}
.kbox h3{font-family:var(--sans);font-size:20px;font-weight:700;line-height:1.25;color:#0F1111;margin-bottom:12px}
.kquad{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;flex:1}
.kquad a{display:block;min-width:0}
.kquad .im{display:grid;place-items:center;aspect-ratio:1/1;max-width:100%;background:var(--mist);padding:8px;overflow:hidden}
.kquad .im img{height:100%;width:auto;max-width:100%;object-fit:contain;box-shadow:0 4px 10px -4px rgba(0,0,0,.35)}
.kquad .tt{display:block;font-size:12.5px;line-height:1.3;color:#0F1111;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kbox .more{margin-top:14px;font-size:13.5px;color:var(--link);font-weight:500}
.kbox .more:hover{color:var(--hover);text-decoration:underline}
.kbox .btn{width:100%;border-radius:8px;padding:10px;margin-bottom:12px}

/* book shelves → white panels with a sliding row */
.sec:has(.track),.sec.rm-shelf{background:transparent;padding:10px 0}
.sec:has(.track)>.wrap,.sec.rm-shelf>.wrap{background:#fff;padding:18px 20px 14px;box-shadow:0 1px 2px rgba(12,27,66,.08)}
.sec:has(.track) .sec-head,.sec.rm-shelf .sec-head{margin-bottom:12px;align-items:center;justify-content:space-between;flex-direction:row}
.sec:has(.track) .sec-head .orn,.sec:has(.track) .sec-head p,.sec.rm-shelf .sec-head .orn,.sec.rm-shelf .sec-head p{display:none}
.sec:has(.track) .sec-head h2,.sec.rm-shelf .sec-head h2{font-family:var(--sans);font-size:21px;font-weight:700;color:#0F1111}
.sec:has(.track) .link,.sec.rm-shelf .link{color:var(--link);border:0;font-weight:500;font-size:14px}
.sec:has(.track) .link:hover,.sec.rm-shelf .link:hover{color:var(--hover);text-decoration:underline}
.sec:has(.track) .arrows button{width:36px;height:36px;border:1px solid #ccc;background:#fff;color:#333;border-radius:4px}
.sec:has(.track) .arrows button:hover{background:#f3f3f3;color:#111}
.track{grid-auto-columns:200px;gap:16px;padding:2px 0 8px;scrollbar-width:none}
.track::-webkit-scrollbar{display:none}
.rm-shelf .grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:200px;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 0 8px}
.rm-shelf .grid::-webkit-scrollbar{display:none}
.mobile-more{display:none}

/* book card */
.card{background:none;border:0;border-radius:0;padding:0;box-shadow:none;scroll-snap-align:start}
.card:hover{box-shadow:none;transform:none}
.card .plate{display:grid;place-items:center;aspect-ratio:auto;height:220px;background:var(--mist);border-radius:0;padding:14px;overflow:hidden}
.card .plate img{height:100%;width:auto;max-width:100%;object-fit:contain;filter:none;box-shadow:0 6px 14px -6px rgba(0,0,0,.45)}
.card .badge{left:0;top:auto;bottom:0;right:auto;border-radius:0 3px 0 0;background:var(--sale);color:#fff;font-size:12px;font-weight:600;padding:5px 7px}
.card .badge.out{background:#555}
.card h3{font-family:var(--sans);font-weight:400;font-size:14.5px;line-height:1.35;margin-top:8px;min-height:2.7em}
.card h3 a{color:var(--link)}
.card h3 a:hover{color:var(--hover);text-decoration:underline}
.card .au{font-size:13px;min-height:0}
.card .price{display:flex;align-items:baseline;gap:6px;margin-top:4px}
.card .price b{font-size:22px;font-weight:500;color:#0F1111}
.card .price s{font-size:13px;color:var(--muted)}
.card form{padding-top:8px}
.card .add{width:100%;border:0;border-radius:999px;background:var(--gold-lt);color:var(--nav);font-weight:600;font-size:14px;padding:8px 12px}
.card .add:hover{background:#e7c97e}
.card .add.done{background:var(--nav);color:#fff}

/* shop page grid keeps a grid, only the card look changes */
.grid .card .plate{height:240px}

/* authors with photos */
#authors{background:transparent;padding:10px 0}
#authors>.wrap{background:#fff;padding:18px 20px 16px;box-shadow:0 1px 2px rgba(12,27,66,.08)}
#authors .sec-head{margin-bottom:12px}
#authors .sec-head .orn,#authors .sec-head p{display:none}
#authors .sec-head h2{font-family:var(--sans);font-size:21px;font-weight:700;color:#0F1111}
.authors{display:grid;grid-auto-flow:column;grid-auto-columns:128px;gap:16px;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;padding:4px 2px 6px}
.authors::-webkit-scrollbar{display:none}
.authors a{display:block;border:0;background:none;border-radius:0;padding:0;text-align:center;font-size:13.5px;line-height:1.3;font-weight:600;color:#0F1111}
.authors a:hover{color:var(--hover);text-decoration:underline}
.authors i,.authors .ph{width:112px;height:112px;margin:0 auto 8px;border-radius:50%;border:3px solid var(--gold-lt);display:grid;place-items:center;overflow:hidden;background:var(--nav);color:var(--gold-lt);font-size:40px;font-style:normal;font-family:var(--serif);font-weight:700}
.authors .ph img{width:100%;height:100%;object-fit:cover}
.authors em{display:block;font-weight:400;font-size:12.5px;color:var(--muted);margin-top:2px}

/* footer */
.kk-totop{display:block;width:100%;border:0;background:var(--nav3);color:#fff;font:500 13.5px var(--sans);padding:15px 0;cursor:pointer}
.kk-totop:hover{background:#2b4c8c}
.foot{background:var(--nav2)}
.foot::before{display:none}
.foot h4{color:#fff;font-family:var(--sans);font-weight:700}
.foot a{color:#ddd}
.foot a:hover{color:#fff;text-decoration:underline}
.foot .brand .logo-img{height:30px;width:auto}

/* phones */
@media (max-width:900px){
  .masthead .mast{flex-wrap:wrap;gap:6px 8px;padding:8px 0 10px}
  .masthead .brand{order:1;flex:1 1 0;min-width:0;padding:2px 0}
  .masthead .brand .logo-img{height:auto;width:100%;max-width:230px}
  .masthead .deliver{display:none}
  .masthead .tools{order:2;margin-left:auto}
  .masthead .tool{padding:4px 6px}
  .masthead .tool-eb{display:none}
  .masthead .tool-bag .count{left:13px;top:9px;font-size:12px}
  .masthead .search{order:3;flex:1 1 100%;height:44px}
  .announce .site-switch .ss-name{display:none}
  .kboxes .wrap{grid-template-columns:1fr 1fr;gap:10px;width:calc(100% - 20px)}
  .kbox{padding:12px}
  .kbox h3{font-size:16px;margin-bottom:8px}
  .kquad{gap:8px}
  .sec:has(.track)>.wrap,.sec.rm-shelf>.wrap,#authors>.wrap{width:100%;padding:14px 12px}
  .sec:has(.track) .sec-head .arrows{display:flex}
  .sec:has(.track) .sec-head .arrows button{display:none}
  .sec:has(.track) .sec-head h2,.sec.rm-shelf .sec-head h2,#authors .sec-head h2{font-size:18px}
  .track,.rm-shelf .grid{grid-auto-columns:150px;gap:12px}
  .card .plate{height:170px;padding:10px}
  .grid .card .plate{height:190px}
  .card .price b{font-size:19px}
  .authors{grid-auto-columns:104px;gap:12px}
  .authors i,.authors .ph{width:92px;height:92px;font-size:34px}
}
.rm-shelf .grid .card .plate{height:220px}
@media (max-width:900px){.rm-shelf .grid .card .plate{height:170px}}

.photo-credit{margin-top:8px;font-size:11.5px;color:var(--muted);line-height:1.5}
.authors .ph.cv{background:var(--mist)}
.authors .ph.cv img{object-fit:cover;object-position:50% 12%}
