*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#faf8f2;color:#243a32;font:15px/1.6 Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #b7864c;outline-offset:4px}.announcement{background:#263f34;color:#f2eadd;text-align:center;padding:9px 5%;font-size:11px;letter-spacing:1px}.announcement span{float:right;opacity:.7}header{height:106px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd9cb}.brand{font-family:Georgia,serif;font-size:43px;line-height:1;letter-spacing:-2px}.brand span{display:block;font:8px Arial;letter-spacing:3px;margin-top:12px}nav{display:flex;gap:32px;align-items:center;font-size:13px}nav button{border:0;background:none;color:inherit;padding:0}.cart-button{background:none;border:1px solid #c6cbbb;border-radius:30px;padding:9px 17px}.cart-button span{background:#263f34;color:white;border-radius:50%;padding:3px 7px;font-size:11px;margin-left:10px}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:560px}.hero-copy{padding:65px 9% 28px 12%}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:#7a7c65}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.08}h1{font-size:clamp(54px,6.2vw,90px);letter-spacing:-3px;margin:25px 0}h2{font-size:43px;margin:10px 0 25px}.intro{max-width:350px;color:#6d7467;font-size:16px}.primary{background:#294b3a;color:#fff;display:inline-flex;justify-content:space-between;align-items:center;gap:35px;padding:15px 24px;border:0;font-size:13px;margin-top:20px}.primary:hover{background:#3b5e49}.primary:disabled{opacity:.5;cursor:wait}.hero-foot{margin-top:55px;display:flex;gap:18px;flex-wrap:wrap;font-size:8px;letter-spacing:1px;color:#88877b}.hero-art{position:relative;background:#e8e2d3;overflow:hidden;min-height:540px;display:flex;align-items:center;justify-content:center}.orbit{position:absolute;width:420px;height:420px;border:1px solid #c5bfae;border-radius:50%}.hero-book{position:absolute;width:290px;box-shadow:18px 24px 35px #302b2329}.hero-book.back{transform:rotate(13deg) translate(65px,-5px);width:250px}.hero-book.front{transform:rotate(-12deg) translate(-45px,-5px)}.heritage-tag{position:absolute;right:25px;bottom:30px;font:italic 18px/1.4 Georgia;color:#686957}.values{display:flex;justify-content:space-around;padding:20px 5%;border-top:1px solid #d8d4c5;border-bottom:1px solid #d8d4c5;font-size:11px;letter-spacing:.5px}.collection{padding:70px 6%}.section-heading{display:flex;justify-content:space-between;align-items:center}.search input{border:0;border-bottom:1px solid #bfc2b4;background:none;padding:10px;width:240px;color:#263f34}.filters{display:flex;gap:8px;align-items:center;border-bottom:1px solid #deded3;padding-bottom:20px}.filters button{border:1px solid #d6d9cb;border-radius:20px;padding:8px 16px;background:transparent;color:#64705f;font-size:12px}.filters button.active{background:#294b3a;color:white;border-color:#294b3a}.sort{margin-left:auto}.sort select{background:none;border:0;color:#6d7467;font-size:12px}.muted,#result-count{color:#7d8174;font-size:12px}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 28px}.product-card{position:relative}.product-image{display:block;position:relative;border:0;background:#eae3d7;width:100%;padding:0;overflow:hidden}.product-image img{width:100%;display:block;aspect-ratio:4/4.3;object-fit:cover;transition:transform .3s}.product-image:hover img{transform:scale(1.035)}.badge{position:absolute;top:14px;left:14px;padding:4px 8px;background:#faf8f2;font-size:9px;letter-spacing:1px}.product-category{font-size:9px;letter-spacing:1.5px;color:#8a8d79;margin:18px 0 7px}.product-card h3{font-size:23px;margin:0 0 6px}.product-bottom{display:flex;justify-content:space-between;align-items:center}.product-bottom button{border:1px solid #b7c1ad;color:#294b3a;background:none;border-radius:50%;width:35px;height:35px;font-size:22px}.sample-note{font-size:11px;color:#89867a;margin-top:30px}.story{padding:65px 9%;background:#e9eddf;text-align:center}.story p:not(.eyebrow){max-width:620px;margin:20px auto;color:#6d7467}.story a{border-bottom:1px solid #67775f;font-size:13px}footer{padding:50px 6%;display:flex;align-items:center;justify-content:space-between;gap:25px}footer .brand{font-size:32px}footer p,footer>span{font-size:11px;color:#7f8173}dialog{border:0;background:#faf8f2;color:#243a32;padding:35px;max-width:680px;width:calc(100% - 30px);max-height:90vh;overflow:auto;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#15251f99}.close{border:0;background:none;font-size:28px;color:inherit;float:right}.dialog-heading{display:flex;justify-content:space-between;align-items:start}.dialog-heading h2{font-size:33px}#product-detail{display:grid;grid-template-columns:1fr 1fr;gap:25px;clear:both}#product-detail img{width:100%}#product-detail h2{font-size:30px}.wide{width:100%}.cart-line{display:grid;grid-template-columns:60px 1fr auto;gap:14px;padding:18px 0;border-bottom:1px solid #ddd}.cart-line img{width:60px}.cart-line h3{font-size:18px;margin:0}.quantity{display:flex;align-items:center;gap:12px;margin-top:10px}.quantity button{border:1px solid #c6cbbb;background:none;width:28px;height:28px}.remove{font-size:11px;border:0;background:none;text-decoration:underline;color:#7c5c4e}.total{display:flex;justify-content:space-between;margin:20px 0;font-weight:600}form label{display:block;font-size:12px;margin:14px 0}form input:not([type=checkbox]),form textarea{width:100%;border:1px solid #c6cbbb;background:#fff;padding:10px;display:block;margin-top:5px}form textarea{min-height:70px}form .consent{display:flex;gap:10px;align-items:start}#checkout-error{color:#9b3c2e}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;background:#263f34;color:#fff;opacity:0;pointer-events:none;transition:opacity .2s;z-index:5}#toast.show{opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1400px){body{max-width:1600px;margin:auto}}@media(max-width:760px){.announcement span{display:none}header{height:90px;padding:0 5%}.brand{font-size:34px}nav{gap:14px}nav a:nth-child(2),nav button{display:none}.hero{grid-template-columns:1fr}.hero-copy{padding:45px 7% 30px}h1{font-size:65px}.hero-foot{margin-top:30px}.hero-art{min-height:410px}.hero-book{width:230px}.hero-book.back{width:210px}.orbit{width:320px;height:320px}.values{gap:15px;font-size:9px;text-align:center}.collection{padding:40px 5%}.section-heading{align-items:start;flex-direction:column}.search{width:100%;margin-bottom:20px}.search input{width:100%}.filters{flex-wrap:wrap}.sort{margin:10px 0 0 auto}.products{grid-template-columns:repeat(2,1fr);gap:25px 14px}.product-card h3{font-size:19px}.product-bottom{font-size:12px}.product-category{font-size:8px}footer{flex-direction:column;align-items:start}.story{padding:45px 7%}.story h2{font-size:34px}#product-detail{grid-template-columns:1fr}#product-detail img{max-height:280px;object-fit:contain}dialog{padding:23px}.cart-line{grid-template-columns:45px 1fr auto}.cart-line img{width:45px}}
button,input,select{min-height:44px}input,select,textarea{font-size:16px}dialog button.close{min-width:44px;min-height:44px}.filters button{min-height:44px}.product-bottom button{width:44px;height:44px}.quantity button{min-width:44px;min-height:44px}.cart-line{align-items:start}.admin-shell{max-width:1180px;margin:auto;padding:35px 5%}.admin-top{display:flex;justify-content:space-between;gap:20px;align-items:center}.admin-nav{display:flex;gap:12px;margin:25px 0;flex-wrap:wrap}.admin-nav button{padding:10px 18px;background:#fff;border:1px solid #c6cbbb;color:#294b3a}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.metric{padding:20px;background:#e9eddf}.metric strong{font:34px Georgia;display:block}.table-wrap{overflow-x:auto;margin:25px 0}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:14px;text-align:left;border-bottom:1px solid #deded3;font-size:13px}th{font-size:11px;color:#7a7c65;text-transform:uppercase}td button{border:1px solid #c6cbbb;background:#faf8f2;padding:6px 12px;color:#294b3a}.critical{color:#a13f2c;font-weight:bold}.alert-card{padding:20px;border:1px solid #d9b5a6;margin:15px 0;background:#fff9f3}.alert-card button{padding:7px 16px;margin-left:15px}.admin-login{max-width:440px;margin:60px auto}.admin-error{color:#a13f2c}.admin-shell h1{font-size:45px}.admin-shell h2{font-size:30px}.login-note{font-size:12px;color:#7d8174}.admin-hidden,[hidden]{display:none!important}@media(max-width:600px){.metrics{grid-template-columns:1fr}.admin-top{align-items:start;flex-wrap:wrap}.cart-line{grid-template-columns:40px 1fr}.cart-line>span:last-child{grid-column:2}.hero-art{min-height:360px}.hero-book.front{width:220px}.hero-book.back{width:190px}.announcement{font-size:10px}nav{font-size:12px}.brand span{letter-spacing:2px}.cart-button{padding:7px 11px}.admin-shell{padding:25px 5%}dialog{max-height:calc(100dvh - 24px)}.product-category{overflow-wrap:anywhere}.hero-copy{overflow-wrap:break-word}}

/* Shopping bag: flexible quantity and Remove controls */
#cart-dialog .cart-line > div {
    min-width: 0;
}

#cart-dialog .cart-line h3 {
    overflow-wrap: anywhere;
}

#cart-dialog .quantity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#cart-dialog .quantity .remove {
    flex: 0 0 auto;
    width: auto;
    min-width: 80px;
    min-height: 44px;
    height: auto;
    padding: 10px 16px;
    white-space: nowrap;
    line-height: 1.2;
    border: 1px solid #c6cbbb;
    border-radius: 4px;
    background: transparent;
    color: #775c40;
    text-decoration: none;
}

/* Align checkout consent checkbox with its text */
#checkout-form .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    cursor: pointer;
}

#checkout-form .consent input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #294b3a;
}
/* Baybayin shipping quote workflow */
#checkout-form .shipping-details{border:1px solid #c6cbbb;padding:16px;margin:20px 0;min-width:0;background:#f5f3eb}#checkout-form .shipping-details legend{font:21px Georgia;color:#294b3a;padding:0 8px}.shipping-details select,.staff-dialog select{display:block;width:100%;min-height:48px;padding:10px;font-size:16px;background:#fffefb;color:#294b3a;border:1px solid #c6cbbb;margin-top:6px}.shipping-lookup{padding:50px 6%;border-top:1px solid #dddccf}.shipping-lookup>p:first-child{font-size:10px;letter-spacing:2px}.shipping-lookup form{max-width:600px}.shipping-lookup dl{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);max-width:600px;gap:10px}.shipping-lookup dd{margin:0;text-align:right}.shipping-lookup dt,.shipping-lookup dd{border-bottom:1px solid #dddccf;padding:8px 0}.shipping-lookup form label{margin:15px 0}.staff-table td[data-label='Freight / total'] button{margin-top:10px;white-space:normal}#shipping-quote-dialog{max-width:560px}@media(max-width:700px){.shipping-lookup{padding:35px 5%}.shipping-lookup h2{font-size:30px}.shipping-lookup dl{grid-template-columns:1fr 1fr}.staff-table td[data-label='Freight / total']{display:block}.staff-table td[data-label='Freight / total']:before{display:block}.shipping-lookup input{font-size:16px}}

/* Payment preference: mobile-friendly control */
#checkout-form .payment-preference{border:1px solid #c6cbbb;padding:16px;margin:20px 0;background:#f0f1e7;min-width:0}#checkout-form .payment-preference legend{padding:0 8px;font-family:Georgia,serif;font-size:21px;color:#294b3a}#checkout-form .payment-preference select{display:block;width:100%;min-height:48px;font-size:16px;padding:10px;border:1px solid #c6cbbb;background:#fffefb;color:#294b3a;margin-top:6px}#checkout-form .payment-preference p{overflow-wrap:anywhere}

/* Baybayin book highlights */
.book-highlights-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.book-highlight-card{padding:32px;background:#edf0e6;border:1px solid #d5dacb;border-radius:12px}
.book-highlight-card:last-child{background:#f2e9da}
.book-highlight-card h3{font-size:36px;margin:12px 0}
.book-highlight-card p{line-height:1.7}
.book-highlight-card .primary{margin-top:12px}
.shipping-lookup{display:none}
details .shipping-lookup{display:block}
.delivery-lookup-toggle{padding:24px 6%;border-top:1px solid #d5dacb}
.delivery-lookup-toggle summary{cursor:pointer;color:#294b3a}
@media(max-width:650px){.book-highlights-grid{grid-template-columns:1fr}}
/* Center the Bookshop subtitle beneath Baybayin */
a.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    flex-shrink: 0;
    text-align: center;
    text-transform: none;
}
a.brand > span {
    display: block;
    align-self: stretch;
    width: auto;
    margin-top: 8px;
    padding: 0;
    text-align: center;
    text-indent: 0.28em;
    letter-spacing: 0.28em;
}