/* ============================================================
   books — styles.css
   Palette: see stores/index.js for bird attribution
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@300;400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lora', system-ui, sans-serif; background: #f8faf0; color: #2f533c; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Lora', system-ui, sans-serif; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #cd3122; color: #f8faf0; border: none; border-radius: 8px; padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; font-family: inherit; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; color: #2f533c; border: 1.5px solid #6c905e; border-radius: 8px; padding: 11px 28px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-ghost:hover { border-color: #cd3122; color: #cd3122; }
.full-width { width: 100%; margin-bottom: 10px; }

/* ── Navbar ── */
.navbar { position: sticky; top: 0; z-index: 200; background: #f8faf0f0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #6c905e30; transition: box-shadow 0.2s; }
.navbar.scrolled { box-shadow: 0 2px 20px #2f533c18; }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 64px; }
.nav-logo { font-family: 'Lora', serif; font-size: 20px; font-weight: 700; color: #cd3122; letter-spacing: 0.02em; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { font-size: 13px; font-weight: 500; color: #6c905e; transition: color 0.2s; }
.nav-links a:hover { color: #2f533c; }
.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-icon { width: 38px; height: 38px; border-radius: 50%; background: none; border: 1.5px solid #6c905e40; display: flex; align-items: center; justify-content: center; color: #6c905e; transition: all 0.2s; position: relative; }
.nav-icon:hover { border-color: #cd3122; color: #cd3122; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: #cd3122; color: #f8faf0; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #6c905e; transition: background 0.2s; }
.hamburger:hover span { background: #cd3122; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 16px; border-top: 1px solid #6c905e30; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 14px; color: #2f533c; border-bottom: 1px solid #6c905e20; }

/* ── Search ── */
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.85); display: flex; flex-direction: column; align-items: center; padding-top: 100px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-inner { width: 100%; max-width: 600px; padding: 0 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid #cd3122; padding-bottom: 12px; }
#search-input { flex: 1; background: none; border: none; outline: none; font-family: 'Lora', serif; font-size: 32px; font-weight: 300; color: #fff; caret-color: #cd3122; }
#search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-close { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; }
.search-close:hover { color: #fff; }
.search-results { width: 100%; max-width: 600px; padding: 20px 24px 0; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.search-result:hover { opacity: 0.7; }
.search-result-name { font-size: 14px; color: #fff; flex: 1; }
.search-result-price { font-size: 15px; color: #cd3122; font-weight: 600; }

/* ── Cart Drawer ── */
.drawer-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 410; width: 400px; max-width: 100vw; height: 100vh; background: #f8faf0; border-left: 1px solid #6c905e30; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94); }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #6c905e30; }
.drawer-title { font-size: 16px; font-weight: 600; }
.drawer-close { background: none; border: none; color: #6c905e; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; padding: 48px 0; }
.cart-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.cart-empty p { color: #6c905e; font-size: 14px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #6c905e20; align-items: flex-start; }
.cart-item-img { width: 60px; height: 60px; background: #6c905e15; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.4; }
.cart-item-price { font-size: 15px; font-weight: 600; color: #cd3122; }
.cart-item-qty { font-size: 11px; color: #6c905e; margin-top: 2px; }
.cart-item-remove { background: none; border: none; color: #6c905e; font-size: 18px; padding: 4px; cursor: pointer; align-self: center; }
.cart-item-remove:hover { color: #E24B4A; }
.cart-footer { padding: 20px 24px 28px; border-top: 1px solid #6c905e30; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 14px; }
.cart-total-row span:last-child { font-size: 20px; font-weight: 700; color: #cd3122; }
.cart-note { font-size: 11px; color: #6c905e; margin-bottom: 20px; }

/* ── Hero ── */
.hero { min-height: 88vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 60px 24px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: #cd3122; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: #cd3122; }
.hero-title { font-family: 'Lora', serif; font-size: clamp(36px, 5vw, 72px); font-weight: 300; line-height: 1.05; margin-bottom: 20px; color: #2f533c; }
.hero-title em { font-style: italic; color: #cd3122; }
.hero-sub { font-size: 15px; color: #6c905e; line-height: 1.8; max-width: 420px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust span { font-size: 12px; color: #6c905e; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid #cd312225; }
.hero-ring-1 { inset: 0; animation: rotate 20s linear infinite; }
.hero-ring-2 { inset: 15%; animation: rotate 14s linear infinite reverse; }
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.hero-icon { font-size: 80px; position: relative; z-index: 1; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Marquee ── */
.marquee-bar { overflow: hidden; background: #cd3122; padding: 10px 0; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 20s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #f8faf0; display: flex; align-items: center; gap: 12px; }
.marquee-dot { width: 3px; height: 3px; background: #f8faf040; border-radius: 50%; }

/* ── Section ── */
.section { max-width: 1280px; margin: 0 auto; padding: 72px 24px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; border-bottom: 1px solid #6c905e30; padding-bottom: 20px; }
.section-title { font-family: 'Lora', serif; font-size: 36px; font-weight: 300; color: #2f533c; }
.section-title em { font-style: italic; color: #cd3122; }
.section-link { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #cd3122; display: flex; align-items: center; gap: 6px; }
.section-link::after { content: '→'; }
.section-link:hover { opacity: 0.7; }

/* ── Categories ── */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card { background: #6c905e10; border: 1px solid #6c905e25; border-radius: 12px; padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.category-card:hover { border-color: #cd3122; transform: translateY(-2px); }
.cat-icon { font-size: 36px; }
.cat-name { font-size: 13px; font-weight: 600; color: #2f533c; }

/* ── Filters ── */
.filter-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-select { background: #6c905e10; color: #2f533c; border: 1px solid #6c905e30; border-radius: 8px; padding: 7px 10px; font-family: inherit; font-size: 13px; outline: none; cursor: pointer; }
.filter-select:focus { border-color: #cd3122; }
.filter-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6c905e; cursor: pointer; }
.filter-check input { accent-color: #cd3122; }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: #6c905e08; border: 1px solid #6c905e25; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: all 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px #2f533c14; border-color: #6c905e50; }
.product-img { aspect-ratio: 1; background: #6c905e12; display: flex; align-items: center; justify-content: center; font-size: 60px; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-badge { position: absolute; top: 10px; left: 10px; background: #cd3122; color: #f8faf0; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-brand { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: #6c905e; }
.product-name { font-size: 13px; font-weight: 500; line-height: 1.4; flex: 1; color: #2f533c; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-price { font-size: 18px; font-weight: 700; color: #cd3122; }
.product-rrp { font-size: 12px; color: #6c905e; text-decoration: line-through; }
.product-channels { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.channel-badge { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase; }
.channel-badge.ebay { background: #E53238; color: #fff; }
.channel-badge.temu { background: #FF6600; color: #fff; }
.channel-badge.amazon { background: #FF9900; color: #000; }
.product-footer { border-top: 1px solid #6c905e20; display: flex; }
.product-btn { flex: 1; padding: 11px; background: none; border: none; font-family: inherit; font-size: 12px; font-weight: 600; color: #6c905e; cursor: pointer; transition: all 0.2s; }
.product-btn:hover { background: #cd3122; color: #f8faf0; }
.product-btn.border-r { border-right: 1px solid #6c905e20; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0 0; }
.page-btn { padding: 6px 12px; background: #6c905e10; border: 1px solid #6c905e30; border-radius: 8px; font-family: inherit; font-size: 13px; cursor: pointer; color: #2f533c; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: #cd3122; color: #f8faf0; border-color: #cd3122; }

/* ── Channel Bar ── */
.channel-bar { background: #6c905e08; border-top: 1px solid #6c905e20; border-bottom: 1px solid #6c905e20; padding: 16px 24px; }
.channel-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.channel-label { font-size: 12px; color: #6c905e; font-weight: 500; white-space: nowrap; }
.channel-links { display: flex; gap: 12px; flex-wrap: wrap; }
.channel-link { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: #f8faf0; border: 1px solid #6c905e30; border-radius: 100px; font-size: 12px; font-weight: 600; color: #2f533c; transition: all 0.2s; }
.channel-link:hover { border-color: #cd3122; color: #cd3122; }

/* ── Trust Bar ── */
.trust-bar { display: flex; background: #6c905e08; border-top: 1px solid #6c905e20; border-bottom: 1px solid #6c905e20; }
.trust-item { flex: 1; display: flex; align-items: center; gap: 16px; padding: 28px 32px; color: #cd3122; }
.trust-item div strong { display: block; font-size: 13px; font-weight: 600; color: #2f533c; margin-bottom: 3px; }
.trust-item div p { font-size: 12px; color: #6c905e; }
.trust-divider { width: 1px; background: #6c905e20; flex-shrink: 0; }

/* ── Newsletter ── */
.newsletter { background: #2f533c; padding: 72px 24px; text-align: center; }
.newsletter-inner { max-width: 540px; margin: 0 auto; }
.newsletter-title { font-family: 'Lora', serif; font-size: 40px; font-weight: 300; color: #fff; margin-bottom: 10px; }
.newsletter-sub { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 32px; line-height: 1.7; }
.newsletter-form { display: flex; max-width: 400px; margin: 0 auto; }
.nl-input { flex: 1; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); border-right: none; border-radius: 8px 0 0 8px; padding: 12px 16px; font-family: inherit; font-size: 14px; outline: none; }
.nl-input:focus { border-color: #cd3122; }
.nl-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form .btn-primary { border-radius: 0 8px 8px 0; }
.nl-feedback { font-size: 12px; color: #cd3122; margin-top: 12px; min-height: 18px; }

/* ── Footer ── */
.footer { background: #2f533c; color: rgba(255,255,255,0.8); padding: 60px 24px 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: #cd3122; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 14px; max-width: 280px; }
.footer-parent { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.footer-parent a { color: #cd3122; }
.footer-abn { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-abn a { color: rgba(255,255,255,0.4); border-bottom: 1px dotted rgba(255,255,255,0.2); }
.footer-abn a:hover { color: #cd3122; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,0.4); transition: all 0.2s; }
.social-link:hover { border-color: #cd3122; color: #cd3122; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-col a:hover { color: #cd3122; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-payment { display: flex; gap: 8px; }
.pay-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 4px 10px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); border-radius: 4px; }

/* ── Toast ── */
.toast { position: fixed; bottom: 24px; right: 24px; background: #2f533c; color: #f8faf0; border-radius: 8px; padding: 12px 20px; font-size: 13px; z-index: 500; transform: translateY(12px); opacity: 0; pointer-events: none; transition: all 0.25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #2D6A3F; color: #fff; }
.toast.error { background: #7A1F1F; color: #fff; }

/* ── Empty state ── */
.empty-state { grid-column: 1/-1; text-align: center; padding: 64px 20px; }
.empty-state-icon { font-size: 48px; opacity: 0.25; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: #2f533c; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: #6c905e; }

/* ── Responsive ── */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } .category-grid { grid-template-columns: repeat(3, 1fr); } .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .nav-links { display: none; } .hamburger { display: flex; } .hero { grid-template-columns: 1fr; min-height: auto; padding: 40px 20px; } .hero-visual { display: none; } .product-grid { grid-template-columns: repeat(2, 1fr); } .category-grid { grid-template-columns: repeat(2, 1fr); } .trust-bar { flex-direction: column; } .trust-divider { width: 100%; height: 1px; } .footer-inner { grid-template-columns: 1fr; } .cart-drawer { width: 100vw; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } .newsletter-form { flex-direction: column; } .nl-input { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; border-radius: 8px 8px 0 0; } .newsletter-form .btn-primary { border-radius: 0 0 8px 8px; } }
