*{box-sizing:border-box}body{margin:0;color:#183044;font-family:Arial,sans-serif}header{background:#092b49;color:white;padding:17px 6%;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0}header small{display:block;color:#e8b83f;font-size:11px;margin-top:5px}nav{display:flex;gap:18px;align-items:center}nav a{color:white;text-decoration:none}button{cursor:pointer;border:1px solid #e8b83f;background:transparent;color:inherit;border-radius:5px;padding:10px 13px}.hero{background:linear-gradient(110deg,#071f36,#123f63);color:white;padding:60px 9%;display:flex;justify-content:space-between;align-items:center;gap:35px}.hero>div{max-width:600px}.hero small,section small{color:#e8b83f;letter-spacing:2px}.hero h1{font:clamp(32px,4vw,56px)/1.15 Georgia;margin:20px 0}.hero em{color:#e8b83f}.hero p{line-height:1.8;color:#dbe5eb}.hero img{width:210px;max-height:300px;object-fit:contain;box-shadow:0 12px 24px #0005}.btn{display:inline-block;background:#e8b83f;color:#092b49;border:0;padding:13px 18px;border-radius:24px;font-weight:bold;text-decoration:none;margin-top:12px}#catalog{padding:55px 7%}.heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}h2{font:32px Georgia;color:#092b49;margin:10px 0}input,textarea,select{width:100%;padding:11px;border:1px solid #d9e0e6;border-radius:5px;margin-top:6px}#search{max-width:270px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{border:1px solid #e2e6e9;border-radius:8px;overflow:hidden}.cover{height:230px;background:#f5f0e4;display:grid;place-items:center;padding:12px}.cover img{height:100%;max-width:100%;object-fit:contain}.cardinfo{padding:15px}.card h3{font:19px Georgia;color:#092b49;margin:0 0 8px}.card p{font-size:12px;color:#71808c;line-height:1.5}.price{color:#9c382f;font-weight:bold}.card button{width:100%;border-color:#092b49;color:#092b49;margin-top:10px}.card button:hover{background:#092b49;color:white}footer{background:#092b49;color:white;padding:28px 7%;font-size:13px}.shade{display:none;position:fixed;inset:0;background:#0008;z-index:9;align-items:center;justify-content:center;padding:12px}.shade.open{display:flex}.panel{background:white;border-radius:9px;padding:22px;width:min(500px,100%);max-height:94vh;overflow:auto}.wide{width:min(900px,100%)}.panelhead{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e3e8ec;margin-bottom:15px}.panelhead h2{font-size:24px}.close{border:0;font-size:26px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.tabs button{color:#092b49;border-color:#ddd}.note{font-size:12px;color:#71808c}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.formgrid .all{grid-column:1/-1}label{display:block;font-size:12px;margin:10px 0}table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;padding:10px;border-bottom:1px solid #e4e8eb;vertical-align:top}.mini{width:45px;height:58px;object-fit:cover}#toast{display:none;position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#092b49;color:white;padding:12px 18px;border-radius:5px;z-index:20}@media(max-width:760px){.hero{display:block;text-align:center;padding:45px 6%}.hero img{height:200px;margin-top:30px}.grid{grid-template-columns:repeat(2,1fr)}header{padding:14px 4%}nav{gap:7px}nav a{display:none}#catalog{padding:40px 4%}.heading{display:block}#search{max-width:100%;margin-top:15px}.cover{height:180px}.formgrid{grid-template-columns:1fr}.formgrid .all{grid-column:auto}}/* Refined storefront landing dashboard */
:root{--navy:#071f36;--navy2:#103b5b;--gold:#e8b83f;--ink:#173247;--muted:#748392;--cream:#f8f6f0}
body{background:#fff;color:var(--ink)}header{padding:17px 7%;box-shadow:0 4px 18px #061a2a12;z-index:5}header b{letter-spacing:1.1px;font-size:14px}header small{letter-spacing:.35px;font-weight:normal}nav button{border-color:#d9b34a}nav button:hover{background:var(--gold);color:var(--navy)}
.hero{position:relative;overflow:hidden;min-height:500px;padding:65px 9%;background:radial-gradient(ellipse at 75% 50%,#1c4c6b 0%,transparent 40%),linear-gradient(115deg,#061a2d 0%,#0b2c48 55%,#143f5c 100%)}.hero:after{content:"";position:absolute;inset:0;background-image:radial-gradient(#fff 0.6px,transparent .6px);background-size:23px 23px;opacity:.08;pointer-events:none}.hero-copy{position:relative;z-index:1;max-width:610px}.eyebrow{display:flex;align-items:center;gap:10px;color:#edc75d;font-size:11px;font-weight:bold;letter-spacing:2.4px}.dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 12px #e8b83f}.hero h1{font-size:clamp(43px,5vw,68px);letter-spacing:-1.8px;line-height:1.06;margin:24px 0}.hero h1 em{font-style:normal;color:#edc75d}.hero p{font-size:15px;max-width:480px;line-height:1.9;color:#d5e0e8}.hero-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px}.hero .btn{margin:0;padding:14px 22px;border-radius:30px;box-shadow:0 8px 22px #e8b83f25}.hero .btn span{font-size:17px;margin-left:8px}.hero-note{font-size:11px;color:#b8c9d5;letter-spacing:.3px}.hero-art{position:relative;z-index:1;width:290px;min-width:240px;display:flex;flex-direction:column;align-items:center;margin-right:3%;padding:18px 20px 0}.hero-art img{position:relative;width:220px;height:300px;object-fit:contain;filter:drop-shadow(0 20px 22px #0008);transform:rotate(2deg);transition:transform .3s}.hero-art img:hover{transform:rotate(0) translateY(-5px)}.art-glow{position:absolute;width:270px;height:270px;top:40px;border-radius:50%;background:#e8b83f16;filter:blur(24px)}.book-label{position:relative;color:#f0cd72;font-size:9px;letter-spacing:3px;margin-bottom:12px}.art-caption{position:relative;text-align:center;color:#fff;max-width:230px;margin-top:12px}.art-caption strong{font:15px Georgia;display:block;line-height:1.4}.art-caption span{display:block;color:#c6d4de;font-size:10px;margin-top:7px;letter-spacing:1px;text-transform:uppercase}.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:23px 9%;border-bottom:1px solid #e9edf0;background:#fff}.trust-strip>div{display:flex;align-items:center;gap:12px}.trust-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:#f7f1df;color:#9d7922;font-size:17px}.trust-strip strong{display:block;font-size:12px;color:#173247}.trust-strip small{display:block!important;color:#82909b!important;font-size:10px;letter-spacing:0!important;margin-top:4px}#catalog{padding:65px 7%}.heading{margin-bottom:30px}.heading h2{font-size:36px;letter-spacing:-.6px}.catalog-sub{color:#7c8993;font-size:13px;margin:0}.heading input{max-width:290px;border-radius:25px;background:#fafbfc;padding:13px 17px}.card{border-radius:12px;box-shadow:0 5px 20px #0a2b4410;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 12px 28px #0a2b4420}.cover{height:245px;background:linear-gradient(145deg,#f8f6f0,#eee8da)}.cardinfo{padding:17px}.card h3{line-height:1.4}.card button{border-radius:22px;padding:11px}.card button:hover{background:var(--navy);color:#fff}footer{text-align:center;letter-spacing:.3px}
@media(max-width:760px){.hero{min-height:auto;display:flex;flex-direction:column;text-align:center;padding:44px 6% 38px}.hero-copy{max-width:100%}.eyebrow{justify-content:center;font-size:9px;letter-spacing:1.5px}.hero h1{font-size:42px;margin:20px 0}.hero p{font-size:13px}.hero-actions{justify-content:center;gap:13px}.hero-note{width:100%}.hero-art{margin:24px 0 0;padding:8px 0 0;width:100%}.hero-art img{height:240px;width:180px}.art-glow{width:220px;height:220px;top:25px}.trust-strip{grid-template-columns:repeat(2,1fr);padding:20px 5%;gap:17px}.trust-strip strong{font-size:11px}.trust-strip small{font-size:9px!important}#catalog{padding:42px 4%}.heading h2{font-size:30px}.grid{gap:12px}.cover{height:175px}.cardinfo{padding:12px}}

.product-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.product-actions button{flex:1;min-width:135px}
.cart-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #ddd}
.cart-row button{padding:5px 9px}
#paymentInfo{margin:10px 0;padding:10px;background:#f5f1e8;border-radius:8px;overflow-wrap:anywhere}

footer{padding:24px 16px;line-height:1.9}.footer-signature{font-weight:700;letter-spacing:1px}

/* Product card layout: cover first, all details and actions flow below */
#products .card{display:flex;flex-direction:column;align-self:stretch;min-width:0;overflow:hidden;background:#fff}
#products .card .cover{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 270px;height:270px;min-height:270px;padding:12px;background:#f7f3e9;overflow:hidden}
#products .card .cover img{position:static!important;display:block;width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;filter:none!important}
#products .card .cardinfo{position:static!important;display:flex;flex-direction:column;flex:1;padding:16px;background:#fff;color:var(--ink)}
#products .card .cardinfo h3{position:static!important;margin:0 0 8px;font-size:17px;line-height:1.4;color:var(--navy)}
#products .book-author{font-size:12px;line-height:1.5;color:#738291;margin-bottom:8px}
#products .book-description{position:static!important;margin:0 0 12px;font-size:12px;line-height:1.6;color:#657584;overflow-wrap:anywhere}
#products .book-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:8px}
#products .book-meta .price{font-size:16px;color:#a33d32}
#products .book-stock{color:#8b6b20;font-size:11px;letter-spacing:.2px}
#products .product-actions{display:flex;flex-direction:column;gap:8px;margin:12px 0 0}
#products .product-actions button{display:block;width:100%;min-width:0;margin:0;border-radius:24px;padding:11px 12px;font-size:12px;font-weight:700}
#products .product-actions .add-cart{background:#fff;color:var(--navy);border:1px solid var(--navy)}
#products .product-actions .buy-now{background:var(--gold);color:var(--navy);border:1px solid var(--gold)}
#products .product-actions .add-cart:hover{background:var(--navy);color:#fff}
#products .product-actions .buy-now:hover{filter:brightness(.96)}
@media(max-width:760px){#products .card .cover{flex-basis:205px;height:205px;min-height:205px}#products .card .cardinfo{padding:11px}#products .card .cardinfo h3{font-size:15px}#products .product-actions button{font-size:11px;padding:10px 8px}}

/* Small catalog book number badge */
#products .cover .book-number{position:absolute;top:7px;left:7px;z-index:2;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#fff;color:#173247;border:1px solid #d8d2c5;font:600 11px/1 Arial,sans-serif;box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* Ensure admin tab controls remain clickable above dashboard panel content */
.admin-page .tabs{position:relative;z-index:30;pointer-events:auto}.admin-page .tabs button{position:relative;z-index:31;pointer-events:auto;cursor:pointer}

/* Dashboard admin tab click safety */
#admin.open{z-index:9999!important}#admin.open .panel{position:relative;z-index:10000}#admin.open .tabs{display:flex;position:relative;z-index:10001;pointer-events:auto}#admin.open .tabs button{pointer-events:auto;cursor:pointer;touch-action:manipulation}

/* Public promotional video */
.promo-video-section{padding:48px 6%;background:#f8f5ec}.promo-video-inner{max-width:1050px;margin:0 auto}.promo-video-inner h2{font-size:clamp(24px,3vw,36px);margin:8px 0;color:#102d46}.promo-video-caption{color:#64748b;margin:0 0 20px}.promo-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:16px;background:#0b2941;box-shadow:0 12px 32px rgba(8,35,58,.14)}.promo-video-frame iframe,.promo-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:contain}

/* Promoted MP4 video in catalog */
.promo-video-frame video{display:block;width:100%;max-height:640px;aspect-ratio:16/9;object-fit:contain;background:#071b2b;border-radius:14px}

/* Autoplay promotional video */
.promo-video-frame video{display:block;width:100%;max-height:640px;aspect-ratio:16/9;object-fit:contain;background:#071b2b;border-radius:14px}

/* Multiple promotional MP4 playlist */
.promo-video-frame video{display:block;width:100%;max-height:640px;aspect-ratio:16/9;object-fit:contain;background:#071b2b;border-radius:14px}
