/* Book storefront */
.book-catalog { background: radial-gradient(ellipse at 0 0,#eaf5ed 0,transparent 45%),#f8faf9; }
.book-catalog .book-toolbar { padding: 0 0 24px; margin-bottom: 30px; border-bottom: 1px solid #dde9e1; }
.book-catalog .book-toolbar h1 { font-size: 30px; letter-spacing: -1px; color: #173f34; }
.book-catalog .book-grid { gap: 22px; }
.book-catalog .book-card { border-radius: 20px; border-color: #e0e9e3; box-shadow: 0 4px 18px #204c3506; transition: transform .25s,box-shadow .25s; }
.book-catalog .book-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px #204c3515; }
.book-catalog .book-card-cover { display: flex; align-items: center; justify-content: center; height: 295px; padding: 26px; background: radial-gradient(ellipse at 50% 30%,#fff9,transparent 70%),#eaf1ed; border-bottom: 1px solid #e6eee8; }
.book-catalog .book-card:nth-child(5n+2) .book-card-cover { background-color: #f0edf7; }
.book-catalog .book-card:nth-child(5n+3) .book-card-cover { background-color: #f7f0e6; }
.book-catalog .book-card:nth-child(5n+4) .book-card-cover { background-color: #eaf1f7; }
.book-catalog .book-card-cover .book-cover { width: auto; height: 100%; max-width: 100%; aspect-ratio: 2/3; box-shadow: 7px 13px 20px #17382726; transition: transform .25s; }
.book-catalog .book-card:hover .book-cover { transform: rotate(-2deg) scale(1.02); }
.book-catalog .book-cover-placeholder { gap: 14px; padding: 18px 13px; }
.book-catalog .book-cover-placeholder strong { font-size: 15px; line-height: 1.4; }
.book-catalog .book-cover-placeholder small { font-size: 8px; }
.book-catalog .book-cover-placeholder > span { font-size: 7px; }
.book-catalog .book-card-body { padding: 22px; }
.book-catalog .book-eyebrow { align-self: flex-start; border-radius: 6px; padding: 5px 8px; background: #edf5f0; color: #52806a; font-size: 9px; letter-spacing: 1px; }
.book-catalog .book-card h3 { font-size: 17px; line-height: 1.5; min-height: 3em; margin-top: 13px; }
.book-catalog .book-card h3 a { color: #193e30; }
.book-catalog .book-card-body > p { font-size: 12px; color: #84958a; min-height: 2.6em; }
.book-catalog .book-card .book-price { padding-top: 14px; margin-bottom: 18px; gap: 9px; }
.book-catalog .book-price > strong { font: 700 25px/1.3 system-ui,sans-serif; color: #173e31; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.book-catalog .book-price-promo > span { font-weight: 600; background: #fff0ec; color: #c26451; }
.book-catalog .book-button { min-height: 46px; border-radius: 11px; background: #0f766e; font-size: 12px; transition: background .2s; }
.book-catalog .book-stock { margin-top: 11px; color: #73917e; font-size: 10px; }
@media(max-width:1100px) and (min-width:761px) { .book-catalog .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .book-catalog .book-grid { gap: 14px; } .book-catalog .book-card-cover { height: 235px; padding: 20px; } .book-catalog .book-card-body { padding: 16px; } .book-catalog .book-card h3 { font-size: 14px; } .book-catalog .book-price > strong { font-size: 21px; } .book-catalog .book-cover-placeholder strong { font-size: 12px; } }
@media(max-width:430px) { .book-catalog .book-card-cover { height: 190px; padding: 16px; } .book-catalog .book-card-body { padding: 13px; } .book-catalog .book-cover-placeholder { padding: 10px; gap: 10px; } .book-catalog .book-cover-placeholder svg { width: 25px; height: 25px; } .book-catalog .book-cover-placeholder strong { font-size: 10px; } .book-catalog .book-cover-placeholder small { display: none; } .book-catalog .book-price-promo { gap: 5px; font-size: 9px; flex-wrap: wrap; } .book-catalog .book-price > strong { font-size: 19px; } }
@media(prefers-reduced-motion:reduce) { .book-catalog .book-card, .book-catalog .book-cover { transition: none; } .book-catalog .book-card:hover, .book-catalog .book-card:hover .book-cover { transform: none; } }
.book-hero { padding: 72px 0 60px; background: radial-gradient(ellipse at 85% 0, #dfede4, transparent 55%), #f1f7f3; border-bottom: 1px solid #e2ebe5; }
.book-eyebrow { display: block; color: #638374; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 650; letter-spacing: .12em; }
.book-hero h1, .book-detail h1, .book-checkout-heading h1, .book-payment h1 { margin: 18px 0; font-family: system-ui, sans-serif; font-weight: 600; letter-spacing: -.045em; line-height: 1.15; color: #253f34; font-size: clamp(30px, 4vw, 52px); }
.book-hero p { max-width: 460px; color: #728579; font-size: 15px; line-height: 1.8; }
.book-hero-note { display: inline-block; margin-top: 15px; color: #52745f; font-size: 11px; }
.book-section { padding: 48px 0 72px; background: #fafcfb; }
.book-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.book-toolbar h1, .book-toolbar h2 { margin: 0 0 7px; font: 600 24px system-ui, sans-serif; color: #294338; letter-spacing: -.03em; }
.book-toolbar p { margin: 0; font-size: 12px; color: #85948a; }
.book-search { display: flex; gap: 8px; }
.book-search input { width: 240px; max-width: 100%; padding: 12px 15px; border: 1px solid #dce6df; border-radius: 10px; background: #fff; font: inherit; font-size: 12px; }
.book-search button { border: 1px solid #dce6df; border-radius: 10px; padding: 10px 15px; background: #fff; color: #315b48; font: inherit; font-size: 12px; cursor: pointer; }
.book-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.book-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e2eae5; border-radius: 18px; background: #fff; transition: box-shadow .2s; }
.book-card:hover { box-shadow: 0 14px 32px #234b3310; }
.book-card-cover { display: block; padding: 24px; background: #eef3ef; }
.book-cover { aspect-ratio: 2/3; width: 100%; overflow: hidden; border-radius: 5px 10px 10px 5px; box-shadow: 5px 8px 15px #163b2420; background: #e0ebe2; }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-cover-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; height: 100%; padding: 22px; text-align: center; color: #426952; background: linear-gradient(135deg,#e3eee5,#f7f7ed); border-left: 8px solid #c0d6c6; }
.book-cover-placeholder > span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.book-cover-placeholder strong { font: 500 19px/1.4 system-ui,sans-serif; }
.book-cover-placeholder small { font-size: 10px; }
.book-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.book-card h3 { min-height: 3em; margin: 12px 0 7px; font: 600 17px/1.45 system-ui,sans-serif; letter-spacing: -.02em; }
.book-card h3 a { color: #2a4437; text-decoration: none; }
.book-card-body > p, .book-author { margin: 0 0 22px; font-size: 12px; color: #87968c; }
.book-price { display: grid; gap: 8px; margin: 18px 0; }
.book-price > strong { font: 600 24px system-ui,sans-serif; letter-spacing: -.04em; color: #2b3f34; }
.book-price-promo { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.book-price-promo s { color: #ae7474; }
.book-price-promo > span { padding: 4px 7px; border-radius: 6px; background: #fff0f0; color: #b25b63; }
.book-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 10px; background: #16776a; color: #fff; font: 600 12px system-ui,sans-serif; text-decoration: none; cursor: pointer; }
.book-card .book-button { display: flex; justify-content: center; }
.book-card .book-price { margin-top: auto; padding-top: 20px; }
.book-card-body > p { min-height: 2.8em; margin-bottom: 0; }
.book-card .book-price-promo { min-height: 26px; }
.book-card .book-price > strong { line-height: 1.3; }
.book-button:hover { background: #126558; color: #fff; }
.book-button:disabled { opacity: .65; cursor: wait; }
.book-stock { display: block; margin-top: 12px; text-align: center; font-size: 10px; color: #83998a; }
.book-empty { grid-column: 1/-1; padding: 70px 24px; text-align: center; border: 1px dashed #d8e5dc; border-radius: 20px; background: #fff; }
.book-empty h3 { font: 600 22px system-ui,sans-serif; color: #385b47; }
.book-empty p { color: #839188; font-size: 13px; }
.book-back { display: inline-block; margin-bottom: 30px; font-size: 12px; color: #567861; text-decoration: none; }
.book-detail { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); align-items: start; gap: 80px; }
.book-detail-art { display: grid; place-items: center; padding: 42px; border-radius: 22px; background: #edf3ee; }
.book-detail-art .book-cover { max-width: 280px; }
.book-detail-copy { padding-top: 20px; }
.book-detail h1 { font-size: clamp(28px,3vw,40px); }
.book-description { white-space: pre-line; color: #6e8175; font-size: 14px; line-height: 1.85; margin: 28px 0; }
.book-delivery { border-top: 1px solid #e2eae4; border-bottom: 1px solid #e2eae4; padding: 20px 0; margin: 25px 0; display: grid; gap: 12px; font-size: 12px; color: #728377; }
.book-delivery > span { display: flex; justify-content: space-between; gap: 16px; }
.book-delivery strong { font-weight: 600; color: #47634f; }
.book-help { display: block; margin: 14px 0; font-size: 11px; color: #86948b; line-height: 1.7; }
.book-sold-out { color: #9e6b6b; }
.book-checkout-heading { margin-bottom: 30px; }
.book-checkout-heading h1 { font-size: 32px; }
.book-checkout-heading > p { color: #849188; font-size: 13px; }
.book-checkout-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 30px; align-items: start; }
.book-panel { padding: 30px; border: 1px solid #e0e9e3; border-radius: 20px; background: #fff; }
.book-panel h2 { font: 600 20px/1.5 system-ui,sans-serif; color: #315340; margin: 0 0 24px; }
.book-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.book-field { display: grid; gap: 8px; }
.book-field label { color: #536e5c; font-size: 12px; font-weight: 600; }
.book-field input, .book-field textarea, .book-field select { width: 100%; padding: 12px; border: 1px solid #d5e2d9; border-radius: 9px; font: inherit; font-size: 13px; background: #fff; }
.book-field input:focus, .book-field textarea:focus { outline: 3px solid #dbeee2; border-color: #77ae91; }
.book-field-wide { grid-column: 1/-1; }
.book-summary .book-cover { width: 90px; margin-bottom: 25px; }
.book-summary h2 { margin: 12px 0 24px; }
.book-total-line { display: flex; justify-content: space-between; gap: 15px; margin-top: 16px; font-size: 12px; color: #7b8e80; }
.book-total-line strong { font-weight: 600; color: #3a5642; white-space: nowrap; }
.book-total-final { border-top: 1px solid #e1e9e3; padding-top: 20px; }
.book-total-final strong { font: 600 22px system-ui,sans-serif; }
.book-feedback { color: #a05d5d; font-size: 12px; line-height: 1.7; }
.book-payment { max-width: 740px; }
.book-payment h1 { font-size: 30px; }
.book-status { display: inline-block; padding: 8px 12px; margin: 10px 0 25px; border-radius: 8px; background: #edf6ef; color: #4d755a; font-size: 12px; }
.book-payment .book-back { display: block; margin: 25px 0 0; }
@media(max-width:1050px) { .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .book-detail { gap: 40px; } }
@media(max-width:760px) { .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; } .book-card-body { padding: 16px; } .book-card-cover { padding: 18px; } .book-toolbar { align-items: flex-start; flex-direction: column; } .book-search { width: 100%; } .book-search input { flex: 1; min-width: 0; } .book-detail, .book-checkout-layout { grid-template-columns: 1fr; gap: 25px; } .book-detail-copy { padding: 0; } .book-hero { padding: 45px 0; } .book-panel { padding: 22px; } }
@media(max-width:440px) { .book-card h3 { font-size: 14px; } .book-card-body { padding: 13px; } .book-card-cover { padding: 14px; } .book-price > strong { font-size: 21px; } .book-price-promo { flex-wrap: wrap; gap: 5px; } .book-form-grid { grid-template-columns: 1fr; } .book-hero h1 { font-size: 36px; } .book-cover-placeholder { gap: 12px; padding: 12px; } .book-cover-placeholder strong { font-size: 13px; } }

.book-search .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.book-cover-theme-1 { background: linear-gradient(145deg,#e2eee7,#f7f5e8); color: #426952; border-color: #bed7c6; }
.book-cover-theme-2 { background: linear-gradient(145deg,#e3ebf3,#f4f7fb); color: #47617b; border-color: #b9ccdf; }
.book-cover-theme-3 { background: linear-gradient(145deg,#f2e9db,#fcf7ee); color: #7c6747; border-color: #ddcaa6; }
.book-cover-theme-4 { background: linear-gradient(145deg,#eae4f1,#f8f5fb); color: #6c5b7e; border-color: #d1c3e0; }
.book-cover-theme-0 { background: linear-gradient(145deg,#e1eeec,#f1f8f6); color: #416d67; border-color: #b7d7d1; }

.book-summary-art { display: grid; place-items: center; margin: -6px 0 24px; padding: 24px; border-radius: 14px; background: #f1f5f2; }
.book-summary-art .book-cover { width: 140px; margin: 0; }
.book-summary-art .book-cover-placeholder { gap: 12px; padding: 14px; border-left-width: 5px; }
.book-summary-art .book-cover-placeholder > span { font-size: 6px; }
.book-summary-art .book-cover-placeholder > svg { width: 26px; height: 26px; flex-shrink: 0; }
.book-summary-art .book-cover-placeholder strong { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.book-summary-art .book-cover-placeholder small { font-size: 7px; }
.book-field { align-content: start; }
.shipping-service-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.shipping-service-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; text-align: left; background: #fff; border: 1px solid #d8e5de; border-radius: 12px; color: #315747; cursor: pointer; font-family: system-ui,sans-serif; }
.shipping-service-card strong { font-size: 13px; line-height: 1.5; }
.shipping-service-card b { font-size: 21px; font-weight: 650; }
.shipping-service-card small { font-size: 12px; color: #6b8377; }
.shipping-service-card[aria-pressed="true"] { border-color: #0f766e; box-shadow: 0 0 0 2px #0f766e; background: #edf8f3; }
.automatic-shipping select[hidden] { display: none !important; }
@media(max-width:600px) { .shipping-service-cards { grid-template-columns: 1fr; } }
.province-picker { position: relative; min-width: 0; }
[data-book-checkout].book-checkout-layout { align-items: start; }
.book-summary .book-feedback { margin-top: 22px; }
.book-summary [data-book-pay] { width: 100%; margin-top: 18px; }
.book-summary .book-quantity-stepper { width: 160px; margin: 8px 0; }
.book-summary .book-field { margin: 20px 0; padding: 18px 0; border-top: 1px solid #e5ede8; border-bottom: 1px solid #e5ede8; }
.book-summary [hidden] { display: none !important; }
.province-picker[hidden], .province-picker-options[hidden] { display: none !important; }
.province-picker-control { display: flex; align-items: center; padding: 0 12px; gap: 9px; border: 1px solid #d5e2d9; border-radius: 9px; background: #fff; color: #7c9685; }
.province-picker-control:focus-within { outline: 3px solid #dbeee2; border-color: #77ae91; }
.province-picker-control > svg { flex-shrink: 0; }
.book-field .province-picker-control input { min-width: 0; padding: 12px 0; border: 0; border-radius: 0; background: transparent; }
.book-field .province-picker-control input:focus { outline: 0; }
.province-picker-control button { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; color: #5c7864; cursor: pointer; }
.province-picker-options { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; max-height: 250px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid #dce7df; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px #1c42241a; }
.province-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 10px; border: 0; border-radius: 7px; background: #fff; text-align: left; font: 500 12px system-ui,sans-serif; color: #45634f; cursor: pointer; }
.province-picker-option small { font-size: 11px; font-weight: 400; color: #7e9685; white-space: nowrap; }
.province-picker-option:hover, .province-picker-option.is-highlighted, .province-picker-option[aria-selected="true"] { background: #ecf5ef; }
.province-picker-empty { padding: 16px 10px; font-size: 12px; color: #8a978e; }
@media(max-width:440px) { .book-card h3 { min-height: 4.35em; } .book-summary-art .book-cover { width: 130px; } }

.province-picker-option:disabled { color: #9ba99e; cursor: not-allowed; background: #f9faf9; }

.book-quantity-stepper { display: inline-flex; align-items: center; justify-self: start; gap: 4px; padding: 5px; border: 1px solid #d5e2d9; border-radius: 11px; background: #fff; }
.book-quantity-stepper:focus-within { outline: 3px solid #dbeee2; border-color: #77ae91; }
.book-quantity-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: #edf5f0; color: #34705b; font: 500 22px/1 system-ui,sans-serif; cursor: pointer; }
.book-quantity-button:hover:not(:disabled) { background: #dceee3; }
.book-quantity-button:disabled { background: #f6f8f6; color: #bbc7be; cursor: default; }
.book-quantity-button:focus-visible { outline: 2px solid #77ae91; outline-offset: 2px; }
.book-field .book-quantity-stepper input { width: 62px; min-width: 0; padding: 8px 4px; border: 0; text-align: center; font: 600 15px system-ui,sans-serif; color: #365742; appearance: textfield; -moz-appearance: textfield; }
.book-field .book-quantity-stepper input:focus { outline: 0; }
.book-quantity-stepper input::-webkit-inner-spin-button, .book-quantity-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.book-quantity-stock { display: block; color: #8a998e; font-size: 11px; line-height: 1.7; }
.book-quantity-stock strong { color: #52765c; font-weight: 500; }
.book-quantity-stock > span { display: block; font-size: 10px; }

.book-lookup { max-width: 600px; }
.book-lookup h1 { font: 600 30px/1.2 system-ui,sans-serif; letter-spacing: -.04em; color: #315340; margin: 16px 0; }
.book-lookup .book-field { margin-top: 22px; }
.book-lookup .book-button { margin-top: 22px; }
.book-panel .captcha-field { margin: 20px 0; min-width: 0; }
.book-tracking { padding: 22px; margin: 24px 0; border: 1px solid #dce8df; border-radius: 14px; background: #f5faf6; }
.book-tracking h3 { margin: 0 0 14px; font: 600 17px system-ui,sans-serif; color: #365b44; }
.book-tracking-number { display: block; margin: 12px 0; font: 600 20px system-ui,sans-serif; overflow-wrap: anywhere; color: #2a4e37; }
.book-tracking-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.book-tracking-actions button { border: 1px solid #cfe0d4; border-radius: 9px; padding: 10px 14px; background: #fff; color: #4c765a; font: 600 12px system-ui,sans-serif; cursor: pointer; }

.book-search input[type=search] { min-height: 46px; width: 300px; border-color: #d8e5de; color: #294b3e; padding-left: 39px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23718c80' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; }
.book-search input[type=search]:focus { outline: none; border-color: #54a28c; box-shadow: 0 0 0 3px #dcefe7; }
.book-search input::placeholder { color: #8b9c94; }
.automatic-shipping { padding: 18px; border: 1px solid #dce9e1; border-radius: 12px; background: #f5faf7; }
.automatic-shipping select { background: #fff; }
.shipping-retry { border: 0; background: transparent; color: #0f766e; font: inherit; font-size: 12px; cursor: pointer; margin-top: 10px; padding: 0; text-decoration: underline; }
.shipping-retry[hidden] { display: none; }
.shipment-tracking-panel { margin: 22px 0; padding: 20px; border: 1px solid #dce8e2; border-radius: 14px; background: #f7fbf9; }
.shipment-tracking-heading > span { display: block; font-size: 10px; letter-spacing: 1px; color: #63917b; font-weight: 700; }
.shipment-tracking-heading strong { display: block; font-size: 17px; color: #285e46; margin: 7px 0; }
.shipment-tracking-updated { font-size: 12px; color: #829487; line-height: 1.8; }
.shipment-timeline { list-style: none; padding: 0; margin: 22px 0 0; }
.shipment-timeline li { position: relative; padding: 0 0 22px 23px; border-left: 1px solid #d9e8de; margin-left: 5px; }
.shipment-timeline li::before { content: ''; position: absolute; width: 9px; height: 9px; left: -5px; top: 5px; border-radius: 50%; background: #b6cdbc; }
.shipment-timeline li:first-child::before { background: #148465; box-shadow: 0 0 0 4px #e2f0e8; }
.shipment-timeline strong { display: block; color: #3a6750; font-size: 13px; }
.shipment-timeline time { display: block; font-size: 11px; color: #8c9d91; margin-top: 4px; }
.shipment-timeline p { color: #728879; font-size: 12px; line-height: 1.7; margin: 6px 0 0; }
@media(max-width:760px) { .book-search input[type=search] { width: 100%; } }
