 *{box-sizing:border-box}body{margin:0;background:#faf6ef;color:#342c28;font:16px system-ui}header,main,footer{max-width:1050px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;gap:12px}h1,h2,h3{font-family:Georgia,serif}h1{font-size:clamp(32px,6vw,60px);margin:12px 0}button{background:#35584a;color:white;border:0;border-radius:8px;padding:12px 18px;cursor:pointer}button:disabled{opacity:.5}input,textarea{width:100%;padding:12px;border:1px solid #c9c0b5;border-radius:6px;margin:6px 0 14px;font:inherit}section,article{background:white;border:1px solid #e4dbcf;border-radius:16px;padding:24px;margin-bottom:20px}.hero{background:#e8dfce;padding:48px 30px}.books{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.cover{background:#d9c8b3;color:#3d5146;min-height:190px;display:grid;place-items:center;text-align:center;padding:20px;font: bold 28px Georgia}.line{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #eee;padding:12px 0}a{color:#35584a}small{color:#665e55}@media print{header,footer,button,#shop,#checkout,#cart,#admin{display:none!important}}
nav{display:flex;gap:16px;flex-wrap:wrap}.btn{display:inline-block;background:#35584a;color:white;padding:12px 18px;border-radius:8px;text-decoration:none}header{flex-wrap:wrap}@media print{#receipt{display:block!important}}
html{scroll-behavior:smooth}#products{scroll-margin-top:24px}#products h2{font-size:32px;margin:0 0 24px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.hero{background-size:cover;background-position:center;min-height:340px}.book-image{display:block;width:100%;height:260px;object-fit:contain;background:#f6f0e8;border-radius:8px}#detail .book-image{max-width:340px;height:380px}#booklist{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}

.cart-cover{width:75px;flex-shrink:0}.cart-cover img,.cart-cover .cover{width:75px;height:105px;object-fit:contain}.pay-choice{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid #d7dcd5;border-radius:12px;margin:12px 0;background:white;cursor:pointer}.pay-choice:has(input:checked){border:2px solid #35584a;background:#f4f8f4}.pay-choice input{width:auto;margin-left:auto;accent-color:#35584a}.pay-icon{width:65px;min-width:65px;text-align:center;font-size:25px;color:#35584a}.pay-icon small{display:block;font-size:12px;font-weight:bold}.pay-icon.fpx{color:#243c83}.pay-icon.qr{color:#b52659}
body{background-size:cover;background-position:center;background-attachment:fixed}header>a{display:flex;align-items:center;gap:12px;text-decoration:none}.company-logo{width:56px;height:56px;object-fit:contain}.whatsapp{position:fixed;bottom:20px;right:20px;background:#168c51;color:white;padding:14px 20px;border-radius:24px;text-decoration:none;box-shadow:0 4px 18px #0003;z-index:20}.consent{display:flex;align-items:flex-start;gap:10px;margin:12px 0}.consent input{width:auto;margin:4px 0}.books{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}@media print{.whatsapp{display:none}}
header{position:sticky;top:0;z-index:30;background:#fffaf0;border-bottom:1px solid #d8cbb5;box-shadow:0 3px 14px #0002;border-radius:0 0 12px 12px}header a{color:#244438;text-decoration:none;font-weight:650}header nav a:hover{text-decoration:underline}header .company-logo{width:64px;height:64px}footer{background:#fffaf0;color:#244438;border-radius:12px}#products{scroll-margin-top:125px}.danger{background:#a52b35} @media(max-width:600px){header{padding:12px}header nav{gap:12px;font-size:14px}header .company-logo{width:46px;height:46px}}

/* V9: wide storefront, normal-flow header */
header{position:static;top:auto;z-index:auto;max-width:none;width:100%;padding:18px 4%;border-radius:0;box-shadow:0 2px 10px #0001}
header .company-logo{width:72px;height:72px}
body.storefront main,body.storefront footer{width:92%;max-width:1800px;padding:24px 0}
body.storefront .hero{min-height:420px;padding:60px clamp(24px,4vw,72px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
body.storefront #products{scroll-margin-top:20px;padding:clamp(16px,2vw,32px)}
body.storefront .books{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;align-items:start}
body.storefront .books article{padding:16px;margin:0;min-width:0;overflow-wrap:anywhere}
body.storefront .books .book-image{height:auto;aspect-ratio:2/3;object-fit:contain}
body.storefront .books button{width:100%}
body.storefront footer{padding:24px;margin-bottom:24px}
@media(max-width:1200px){body.storefront .books{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:950px){body.storefront .books{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){body.storefront .books{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.storefront .hero{min-height:320px;padding:28px 20px}header .company-logo{width:46px;height:46px}header{padding:12px 4%}}
@media(max-width:380px){body.storefront .books{grid-template-columns:1fr}}
