/*
Theme Name: Akhar
Theme URI: https://akharbookstore.com
Author: Intech Solutions
Description: Premium WooCommerce theme for Akhar Punjabi Bookstore. Book-opening intro, warm ivory design, GSAP animations. Products are synced from the Akhar admin app by the Akhar Sync plugin.
Version: 1.3.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: akhar
WC requires at least: 8.0
*/
/* =========================================================
   Akhar Punjabi Bookstore - website
   Brand palette (from the brief): #633F27 #805536 #F7F1E5 #C98A52, text #2F2118
   ========================================================= */
:root {
  --brown: #633F27;
  --brown-2: #805536;
  --tan: #C98A52;
  --cream: #F7F1E5;
  --ink: #2F2118;
  --paper: #FBF7EF;
  --line: rgba(99, 63, 39, .16);
  --muted: #7A6656;
  --gold: #D9B48A;
  --radius: 14px;
  --serif: "Cormorant Garamond", "Noto Serif Gurmukhi", Georgia, serif;
  --sans: "Jost", "Noto Serif Gurmukhi", system-ui, sans-serif;
  --pa: "Noto Serif Gurmukhi", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--cream);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* subtle paper texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .39 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-intro { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--tan); color: var(--ink); }
.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; position: relative; z-index: 2; }
.pa { font-family: var(--pa); }
.serif { font-family: var(--serif); }
main { position: relative; z-index: 2; min-height: 70vh; outline: none; }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.display em { font-style: italic; color: var(--brown-2); font-weight: 500; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -.01em; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 52ch; font-weight: 300; margin: 0; }
.kicker { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--brown-2); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--brown); background: var(--brown); color: var(--cream);
  font-weight: 500; letter-spacing: .04em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease);
}
.btn:hover { background: var(--ink); box-shadow: 0 14px 30px -12px rgba(47, 33, 24, .55); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.ghost:hover { background: var(--brown); color: var(--cream); }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--brown); }
.btn.light:hover { background: #fff; }
.btn.sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link { color: var(--brown); border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; letter-spacing: .03em; }
.link:hover { color: var(--tan); }

/* =========================================================
   Intro: the opening book
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100000; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #FFFBF3 0%, var(--cream) 46%, #E2D2B8 100%);
}
/* The stage holds the 3D book; it is scaled in 2D for the final zoom into the page */
.intro-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2600px; transform-origin: 0 0; }
/* sizes are set by akhar.js so the closed book fills the screen */
.book3d { position: relative; width: 300px; height: 440px; transform-style: preserve-3d; opacity: 0; }
.book-back, .book-block, .book-page, .leaf, .book-cover { position: absolute; inset: 0; }
.book-cover { inset: -1.2% -1.6% -1.2% 0; }
.book-back { inset: -1.2% -1.6% -1.2% 0; background: #4E3020; border-radius: 4px 12px 12px 4px; transform: translateZ(-22px); box-shadow: 0 60px 90px -40px rgba(47, 33, 24, .7), 0 20px 40px -20px rgba(47,33,24,.4); }
.book-block { /* page edges */
  inset: .4% -.8% .4% 0; transform: translateZ(-10px); border-radius: 2px 8px 8px 2px;
  background: repeating-linear-gradient(0deg, #FBF6EC 0 2px, #E7DBC6 2px 3px); box-shadow: inset -1px 0 0 rgba(99,63,39,.15);
}
.book-page {
  background: linear-gradient(90deg, #E8DCC6 0%, #F6EFE2 5%, #FBF7EF 40%, #F7F0E3 100%);
  border-radius: 2px 8px 8px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2%; padding: 6% 8%; text-align: center; color: var(--brown);
}
.pg-kicker { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--brown-2); }
.pg-title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3.6vh, 40px); line-height: 1.05; margin-bottom: 2%; }
.pg-cap { font-family: var(--serif); font-style: italic; font-size: clamp(14px, 1.9vh, 20px); color: var(--brown-2); margin-top: 2%; }
.pg-num { position: absolute; bottom: 3.5%; left: 0; right: 0; font-family: var(--serif); font-size: 13px; color: var(--muted); }
/* the printed "plate": a live miniature of the homepage */
.plate { position: relative; flex: none; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 1px rgba(99,63,39,.25), 0 10px 26px -14px rgba(47,33,24,.55); }
.plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.plate-site { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--cream); pointer-events: none; text-align: left; color: var(--ink); }
.plate-site .nav { position: absolute; top: 0 !important; }
.leaf { transform-origin: left center; transform-style: preserve-3d; }
.leaf .lf, .leaf .lb { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 8px 8px 2px;
  background: linear-gradient(90deg, #E9DDC8 0%, #F8F2E6 6%, #FBF7EF 60%, #F4EBDB 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 10%; color: var(--brown); }
.leaf .lb { transform: rotateY(180deg); border-radius: 8px 2px 2px 8px; background: linear-gradient(270deg, #E2D4BC 0%, #F6EFE2 6%, #FBF7EF 60%, #F4EBDB 100%); }
.leaf .pa { font-size: clamp(56px, 13vh, 150px); font-weight: 700; line-height: 1.1; }
.leaf .en { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3.4vh, 36px); color: var(--brown-2); line-height: 1.2; }
.leaf small { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.leaf-1 .lf .pa { font-size: clamp(34px, 7vh, 80px); }
.book-cover { transform-origin: left center; transform-style: preserve-3d; }
.cover-front, .cover-inside { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cover-front {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 5%, rgba(255,255,255,.07) 6.5%, rgba(0,0,0,0) 9%),
    #633F27;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 60px rgba(0,0,0,.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; overflow: hidden;
}
.cover-front::after { /* leather grain */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cover-frame { position: absolute; inset: 6%; border: 1px solid rgba(217, 180, 138, .55); border-radius: 3px; }
.cover-frame::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217, 180, 138, .28); border-radius: 2px; }
.cover-logo { width: 72%; position: relative; z-index: 1; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)) drop-shadow(0 0 22px rgba(217,180,138,.25)); }
.cover-sub { position: relative; z-index: 1; color: var(--gold); font-size: clamp(10px, 1.4vh, 14px); letter-spacing: .34em; text-transform: uppercase; }
.cover-inside { transform: rotateY(180deg); border-radius: 12px 4px 4px 12px;
  background: radial-gradient(circle at 20% 30%, rgba(201,138,82,.25) 0 2px, transparent 3px) 0 0 / 22px 22px, linear-gradient(270deg, #D9C4A2, #EADBC2);
  box-shadow: inset 0 0 0 10px #5A3923, inset 0 0 0 11px rgba(217,180,138,.4); }
.intro-skip { position: absolute; right: 24px; bottom: 24px; z-index: 2; background: rgba(251,247,239,.7); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; color: var(--muted); cursor: pointer; letter-spacing: .1em; font-size: 13px; }
.intro-skip:hover { color: var(--brown); border-color: var(--brown); }

/* =========================================================
   Navigation
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform .5s var(--ease); }
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(99, 63, 39, .97); backdrop-filter: saturate(140%) blur(12px); color: var(--cream);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -18px rgba(47,33,24,.6);
}
.nav.hide { transform: translateY(-100%); }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0 auto; }
.nav-links a { font-size: 14px; letter-spacing: .08em; color: #EADBC4; position: relative; padding: 6px 0; white-space: nowrap; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--tan); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 4px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-icon { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--cream); display: grid; place-items: center; font-size: 22px; cursor: pointer; position: relative; transition: background .25s; }
.nav-icon:hover { background: rgba(255,255,255,.1); }
.nav-icon.dark { color: var(--ink); } .nav-icon.dark:hover { background: rgba(99,63,39,.08); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--tan); color: var(--ink); font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.menu-btn { display: none; }
.notice { background: var(--tan); color: var(--ink); text-align: center; font-size: 14px; padding: 7px 16px; letter-spacing: .03em; }

/* =========================================================
   Home: hero
   ========================================================= */
.hero { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: calc(var(--nav-h) + 40px) clamp(16px, 4vw, 64px) 60px; max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-visual { position: relative; height: min(640px, 72vh); perspective: 1600px; }
.fan { position: absolute; inset: 0; transform-style: preserve-3d; }
.fan-book {
  position: absolute; left: 50%; top: 50%; width: clamp(150px, 15vw, 230px); aspect-ratio: 2/3; margin-left: calc(clamp(150px, 15vw, 230px) / -2); margin-top: calc(clamp(150px, 15vw, 230px) * -.75);
  border-radius: 3px 8px 8px 3px; overflow: hidden; background: #E9DCC5;
  box-shadow: 0 30px 60px -20px rgba(47,33,24,.55), 0 4px 10px rgba(47,33,24,.15), inset 3px 0 6px rgba(0,0,0,.15);
  will-change: transform; cursor: pointer;
}
.fan-book img { width: 100%; height: 100%; object-fit: cover; }
.fan-book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 7%, rgba(255,255,255,.18) 9%, rgba(255,255,255,0) 14%); pointer-events: none; }
.hero-sprig { position: absolute; width: 300px; right: -30px; bottom: -20px; opacity: .85; z-index: -1; transform: rotate(-12deg); pointer-events: none; }

/* ---------- Search band ---------- */
.search-band { padding: 40px 0 90px; text-align: center; }
.search-field { position: relative; display: flex; align-items: center; gap: 12px; height: 70px; padding: 0 12px 0 26px; border-radius: 999px; background: #FFFCF6; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(47,33,24,.45); max-width: 760px; margin: 28px auto 0; transition: box-shadow .4s var(--ease), border-color .3s; }
.search-field:focus-within { border-color: var(--tan); box-shadow: 0 30px 60px -30px rgba(201,138,82,.55); }
.search-field i { font-size: 24px; color: var(--brown-2); }
.search-field input { flex: 1; border: 0; outline: none; background: transparent; font-size: 18px; height: 100%; min-width: 0; }
.search-field.big { height: 64px; max-width: none; margin: 0; }
.search-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--brown); cursor: pointer; letter-spacing: .03em; transition: all .3s var(--ease); }
.chip:hover, .chip.on { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.inline-results { max-width: 760px; margin: 18px auto 0; text-align: left; }

/* ---------- Statement (pinned word reveal) ---------- */
.statement { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 0 24px; position: relative; z-index: 2; }
.statement p { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 88px); line-height: 1.08; max-width: 15ch; margin: 0 auto; letter-spacing: -.01em; }
.statement .w { opacity: .12; transition: opacity .2s; display: inline-block; }
.statement .gold { color: var(--brown-2); font-style: italic; }
.statement small { display: block; margin-top: 30px; font-size: 15px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Section heads ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; z-index: 2; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head .lead { margin-top: 14px; }

/* ---------- Product card (spaced lettering per brief) ---------- */
.book-card { display: flex; flex-direction: column; gap: 18px; cursor: pointer; text-align: center; }
.book-card .cover-wrap { position: relative; aspect-ratio: 2/3; border-radius: 3px 8px 8px 3px; overflow: hidden; background: #EADFCB; box-shadow: 0 22px 40px -24px rgba(47,33,24,.6), 0 2px 6px rgba(47,33,24,.12); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.book-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.book-card .cover-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 6%, rgba(255,255,255,.15) 8%, rgba(255,255,255,0) 13%); pointer-events: none; }
.book-card:hover .cover-wrap { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 34px 50px -24px rgba(47,33,24,.7); }
.book-card:hover .cover-wrap img { transform: scale(1.04); }
.quick-add { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 16px); opacity: 0; z-index: 2; transition: all .45s var(--ease); height: 40px; padding: 0 18px; font-size: 13px; }
.book-card:hover .quick-add, .quick-add:focus-visible { transform: translate(-50%, 0); opacity: 1; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--cream); color: var(--brown); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; font-weight: 500; }
.tag.sale { background: var(--tan); color: var(--ink); }
.tag.out { background: var(--ink); color: var(--cream); }
.meta { display: flex; flex-direction: column; gap: 5px; }
.meta .t-pa { font-family: var(--pa); font-size: 17px; color: var(--brown); letter-spacing: .04em; }
.meta .t-en { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: .02em; }
.meta .t-au { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.meta .t-pr { font-size: 15px; letter-spacing: .14em; color: var(--brown); font-weight: 500; margin-top: 2px; }
.meta .t-pr s { color: var(--muted); font-weight: 400; margin-right: 8px; }

/* horizontal shelf */
.shelf-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 19vw, 240px); gap: clamp(22px, 3vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(24px, calc((100vw - 1240px) / 2)) 30px; scroll-padding-inline: max(24px, calc((100vw - 1240px) / 2)); scrollbar-width: none; cursor: grab; }
.shelf-scroller::-webkit-scrollbar { display: none; }
.shelf-scroller > * { scroll-snap-align: start; }
.shelf-nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; font-size: 20px; cursor: pointer; color: var(--brown); transition: all .3s var(--ease); }
.round:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }

/* ---------- Collections bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; gap: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; isolation: isolate; border: 1px solid var(--line); background: #EFE4D2; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: var(--cream); }
.tile .bg { position: absolute; inset: 0; z-index: -2; }
.tile .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(47,33,24,0) 30%, rgba(47,33,24,.78) 100%); }
.tile:hover .bg img { transform: scale(1.06); }
.tile h3 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; margin: 0; line-height: 1.05; }
.tile .pa { font-size: 15px; opacity: .85; }
.tile .count { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; margin-top: 6px; }
.tile .arrow { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,241,229,.5); display: grid; place-items: center; transition: all .4s var(--ease); }
.tile:hover .arrow { background: var(--cream); color: var(--brown); transform: rotate(-45deg); }
.tile.covers { background: var(--brown); }
.tile.covers .stack { position: absolute; inset: 20px 20px auto auto; display: flex; z-index: -1; }
.tile.covers .stack img { width: 86px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 14px 24px -10px rgba(0,0,0,.6); margin-left: -34px; transition: transform .6s var(--ease); }
.tile.covers:hover .stack img:nth-child(1) { transform: rotate(-8deg) translateY(4px); }
.tile.covers:hover .stack img:nth-child(3) { transform: rotate(8deg) translateY(4px); }
.tile.cream { background: #EADCC4; color: var(--ink); }
.tile.cream::before { background: none; }
.tile.cream .arrow { border-color: var(--line); }
.tile.cream:hover .arrow { background: var(--brown); color: var(--cream); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.frame-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(47,33,24,.55); position: relative; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-img { border-radius: 999px 999px var(--radius) var(--radius); }

/* ---------- Sets ---------- */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.set { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: rgba(255, 252, 246, .6); display: flex; flex-direction: column; gap: 18px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.set:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(47,33,24,.55); }
.set .fanrow { display: flex; height: 150px; align-items: flex-end; padding-left: 44px; overflow: hidden; }
.set .fanrow img { width: 82px; flex: none; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; margin-left: -44px; box-shadow: 0 14px 24px -12px rgba(47,33,24,.6); transition: transform .5s var(--ease); }
.set:hover .fanrow img { transform: translateY(-6px); }
.set .fanrow img:nth-child(even) { transform: translateY(-8px); }
.set h3 { font-family: var(--serif); font-size: 26px; margin: 0; }
.set .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { border-top: 1px solid var(--line); padding-top: 22px; }
.review blockquote { font-family: var(--serif); font-size: 23px; line-height: 1.35; margin: 12px 0 16px; }
.stars { color: var(--tan); letter-spacing: 3px; }
.review cite { font-style: normal; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA band ---------- */
.band { background: var(--brown); color: var(--cream); border-radius: calc(var(--radius) * 2); overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
.band .copy { padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.band .lead { color: #E3CDAE; }
.band .img { min-height: 380px; position: relative; }
.band .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Shop page
   ========================================================= */
.page-head { padding: calc(var(--nav-h) + 70px) 0 40px; position: relative; z-index: 2; }
.page-head .lead { margin-top: 16px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; padding-bottom: 120px; }
.filters { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.filters h4 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
.filters button , .filters > a { text-align: left; background: none; border: 0; padding: 9px 0; cursor: pointer; display: flex; justify-content: space-between; font-size: 15px; color: var(--ink); border-bottom: 1px solid transparent; transition: color .25s, padding .35s var(--ease); }
.filters button span , .filters > a span { color: var(--muted); font-size: 13px; }
.filters button:hover , .filters > a:hover { color: var(--brown-2); padding-left: 6px; }
.filters button.on , .filters > a.on { color: var(--brown); font-weight: 500; padding-left: 10px; border-left: 2px solid var(--tan); }
.shop-tools { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; flex-wrap: wrap; }
.shop-tools .search-field { height: 52px; margin: 0; flex: 1; min-width: 220px; max-width: none; box-shadow: none; }
.shop-tools select { height: 52px; border-radius: 999px; border: 1px solid var(--line); background: #FFFCF6; padding: 0 20px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 56px 32px; }
.count-line { color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty i { font-size: 46px; color: var(--tan); display: block; margin-bottom: 12px; }

/* ---------- Book detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding: calc(var(--nav-h) + 60px) 0 100px; }
.detail-cover { perspective: 1400px; display: grid; place-items: center; }
.detail-cover .cover-wrap { width: min(400px, 80%); aspect-ratio: 2/3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 60px 90px -40px rgba(47,33,24,.7), 0 6px 16px rgba(47,33,24,.18); transform: rotateY(-14deg) rotateX(4deg); transition: transform 1s var(--ease); position: relative; }
.detail-cover .cover-wrap:hover { transform: rotateY(0) rotateX(0); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cover-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 6%, rgba(255,255,255,.18) 8%, rgba(255,255,255,0) 14%); }
.detail-info { display: flex; flex-direction: column; gap: 18px; }
.detail-info .t-pa { font-family: var(--pa); font-size: 26px; color: var(--brown); }
.detail-info .price { font-size: 26px; letter-spacing: .08em; color: var(--brown); }
.detail-info .price s { color: var(--muted); font-size: 20px; margin-right: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 52px; }
.qty button { width: 48px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 30px; text-align: center; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.facts dt { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.facts dd { margin: 0; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #3F7A4A; }
.stock.out { color: #A23B2A; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brown-2); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid rgba(99,63,39,.35); background: transparent; padding: 10px 2px; font-size: 17px; outline: none; transition: border-color .3s; border-radius: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brown); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; letter-spacing: .04em; text-transform: none; font-size: 15px; color: var(--ink); margin: 0; transition: all .3s; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row input:checked + label { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.rating { display: flex; gap: 6px; font-size: 28px; }
.rating button { background: none; border: 0; color: #D9C4A6; cursor: pointer; padding: 0; transition: transform .2s; }
.rating button.on { color: var(--tan); }
.rating button:hover { transform: scale(1.15); }
.form-msg { min-height: 22px; color: #A23B2A; font-size: 15px; margin: 0; }
.card-paper { background: rgba(255, 252, 246, .75); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: clamp(26px, 4vw, 50px); box-shadow: 0 40px 80px -60px rgba(47,33,24,.6); }
.success { text-align: center; display: grid; gap: 16px; justify-items: center; padding: 30px 0; }
.success i { font-size: 64px; color: var(--tan); }

/* ---------- Drawer ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(47,33,24,.4); z-index: 80; backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.drawer-back.on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--cream); z-index: 90; transform: translateX(100%); transition: transform .6s var(--ease), visibility 0s .6s; display: flex; flex-direction: column; visibility: hidden; }
.drawer.on { transform: none; visibility: visible; transition: transform .6s var(--ease); box-shadow: -30px 0 60px -30px rgba(47,33,24,.5); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 30px; margin: 0; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 26px 30px; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 70px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 20px -12px rgba(47,33,24,.6); }
.line .t { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.line .a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.line .mini-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; }
.line .mini-qty button { background: none; border: 0; cursor: pointer; width: 26px; height: 26px; }
.line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; margin-top: 6px; display: block; }
.sum { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; }
.sum.total { font-family: var(--serif); font-size: 28px; font-weight: 600; padding-top: 16px; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(247,241,229,.94); backdrop-filter: blur(14px); padding: calc(var(--nav-h) + 20px) 24px 24px; overflow-y: auto; }
.search-panel { max-width: 900px; margin: 0 auto; }
.search-panel .search-field .nav-icon { color: var(--ink); }
.search-results { margin-top: 26px; display: grid; gap: 4px; }
.sr { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.sr:hover, .sr.active { background: rgba(99,63,39,.07); }
.sr img { width: 54px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 4px 4px 2px; }
.sr .t { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.sr .a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sr .p { color: var(--brown); letter-spacing: .1em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9C4A6; position: relative; z-index: 2; margin-top: 60px; }
.footer-inner { width: min(1240px, 100% - 48px); margin: 0 auto; padding: 80px 0 50px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 200px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; color: #BFA98C; }
.footer h4 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream); margin: 0 0 18px; font-weight: 500; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #D9C4A6; transition: color .25s; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-base { width: min(1240px, 100% - 48px); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid rgba(217,196,166,.15); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #9C876E; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(217,196,166,.3); display: grid; place-items: center; font-size: 20px; }
.socials a:hover { background: var(--cream); color: var(--ink); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: 999px; z-index: 120; display: flex; gap: 12px; align-items: center; transition: transform .6s var(--ease), opacity .4s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); max-width: calc(100% - 32px); opacity: 0; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast img { width: 30px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; }

/* ---------- Reveal helpers (GSAP sets initial state) ---------- */
.skel { background: linear-gradient(90deg, #EADFCB, #F4ECDD, #EADFCB); background-size: 200% 100%; animation: sh 1.4s linear infinite; border-radius: 6px; }
@keyframes sh { to { background-position: -200% 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; letter-spacing: .04em; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .span-3 { grid-column: span 2; } .span-4 { grid-column: span 4; }
  .sx { grid-column: span 2; } .mx { grid-column: span 4; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--brown); padding: 10px 24px 26px; margin: 0; transform: translateY(-110%); transition: transform .5s var(--ease); z-index: -1; box-shadow: 0 30px 40px -20px rgba(0,0,0,.4); }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 20px; font-family: var(--serif); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); letter-spacing: .02em; }
  .nav-links a::after { display: none; }
  .nav-actions, .nav-links + .nav-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: calc(var(--nav-h) + 30px); gap: 10px; }
  .hero-visual { height: 420px; order: -1; }
  .split, .band, .detail { grid-template-columns: 1fr; }
  .band .img { min-height: 260px; }
  .sets, .reviews { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .filters h4 { display: none; }
  .filters button , .filters > a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; white-space: nowrap; gap: 8px; }
  .filters button:hover , .filters > a:hover { padding-left: 16px; }
  .filters button.on , .filters > a.on { background: var(--brown); color: var(--cream); padding-left: 16px; border-left: 1px solid var(--brown); }
  .filters button.on span , .filters > a.on span { color: #E3CDAE; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .nav-logo img { height: 38px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
  .span-2, .span-3, .span-4 { grid-column: span 2; } .row-2 { grid-row: span 1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 18px; }
  .meta .t-en { font-size: 17px; } .meta .t-au { font-size: 10px; letter-spacing: .2em; }
  .form .two { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-field { height: 60px; }
  .hero-cta .btn { flex: 1; }
  .hero-sprig { display: none; }
  .hero-visual { height: 330px; }
  .fan-book { width: 132px; margin-left: -66px; margin-top: -99px; }
  .tile.covers .stack img { width: 58px; margin-left: -22px; }
  .tile.covers .stack { inset: 16px 16px auto auto; }
  .tile { padding: 20px; }
  .quick-add { opacity: 1; transform: translate(-50%, 0); height: 34px; padding: 0 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   WordPress / WooCommerce additions
   ========================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.nav-links ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: contents; }
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: #fff; }
.nav-links .current-menu-item > a::after, .nav-links .current_page_item > a::after { transform: scaleX(1); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* quick-add buttons generated by WooCommerce */
.quick-add.added { display: none; }
.added_to_cart { display: none !important; }
.quick-add.loading { opacity: .7; }

/* single product add to cart */
.detail-info form.cart { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.detail-info .quantity { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; height: 52px; padding: 0 10px; align-items: center; }
.detail-info .quantity input.qty { width: 54px; border: 0; background: none; text-align: center; font-size: 16px; outline: none; -moz-appearance: textfield; }
.detail-info .single_add_to_cart_button { flex: 1; min-width: 200px; }
.woocommerce-variation-add-to-cart { display: contents; }
.stock { margin: 0; }

/* page content (cart, checkout, account) */
.page-content { padding: calc(var(--nav-h) + 60px) 0 120px; position: relative; z-index: 2; }
.page-content > .wrap > h1 { margin-bottom: 30px; }
.entry { font-size: 17px; }
.entry a { color: var(--brown); text-decoration: underline; }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  background: #FFFCF6 !important; border: 1px solid var(--line) !important; border-left: 3px solid var(--tan) !important; border-radius: 12px !important;
  padding: 14px 18px !important; list-style: none; margin: 0 0 20px !important; color: var(--ink) !important;
}
.woocommerce-error { border-left-color: #A23B2A !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link), .wp-element-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--brown) !important; color: var(--cream) !important; border: 1px solid var(--brown) !important; border-radius: 999px !important;
  font-family: var(--sans) !important; font-weight: 500 !important; letter-spacing: .04em; min-height: 52px; padding: 0 28px !important; box-shadow: none !important;
  transition: background .3s, transform .3s var(--ease) !important; text-decoration: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--ink) !important; transform: translateY(-2px); }
.wc-block-components-button.is-link, .wc-block-components-button.is-link * { background: none !important; color: var(--brown) !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-textarea, .wc-blocks-components-select select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border-radius: 10px !important; border: 1px solid rgba(99,63,39,.3) !important; background: #FFFCF6 !important; font-family: var(--sans) !important;
}
.wc-block-components-text-input.is-active input, .wc-block-components-text-input input:focus { border-color: var(--brown) !important; box-shadow: 0 0 0 3px rgba(201,138,82,.25) !important; }
.wc-block-components-title, .wc-block-cart__totals-title, .wc-block-components-checkout-step__title { font-family: var(--serif) !important; font-weight: 600 !important; text-transform: none !important; font-size: 26px !important; letter-spacing: 0 !important; }
.wc-block-components-product-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink) !important; text-decoration: none !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 20px -12px rgba(47,33,24,.6); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--serif); font-size: 26px !important; font-weight: 600; }
.wc-block-cart, .wc-block-checkout { color: var(--ink); }
.wc-block-components-sidebar, .wc-block-checkout__sidebar { background: rgba(255,252,246,.75); border: 1px solid var(--line); border-radius: 18px; padding: 24px !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: 12px !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--brown) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--brown) !important; border-color: var(--brown) !important; }

/* mini cart inside our drawer */
.drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.drawer .woocommerce-mini-cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; align-items: center; }
.drawer .woocommerce-mini-cart-item a:not(.remove) { display: contents; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.drawer .woocommerce-mini-cart-item img { width: 70px !important; height: auto !important; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 10px 20px -12px rgba(47,33,24,.6); grid-row: span 2; }
.drawer .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.drawer .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted) !important; text-decoration: none; font-size: 18px; }
.drawer .woocommerce-mini-cart-item .remove:hover { background: rgba(99,63,39,.08); }
.drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 26px; font-weight: 600; padding: 18px 0 6px; margin: 0; }
.drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 14px 0 0; }
.drawer .woocommerce-mini-cart__buttons .button { display: flex !important; align-items: center; justify-content: center; }
.drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent !important; color: var(--brown) !important; }
.drawer .woocommerce-mini-cart__empty-message { text-align: center; padding: 60px 0 20px; color: var(--muted); }

.pagination-wrap { margin-top: 60px; display: flex; justify-content: center; }
.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.woocommerce-pagination .current { background: var(--brown); color: var(--cream); }
.star-rating { display: none; }

.cover-holder { position: relative; }
.book-card .meta { color: inherit; }

/* Gurmukhi labels: letter-spacing breaks the joined letters */
.kicker.pa { font-family: 'Noto Serif Gurmukhi', serif; letter-spacing: 0; text-transform: none; font-size: 15px; }
/* WooCommerce's own stock line duplicates ours on book pages */
.single-wrap p.stock, .product-info p.stock, form.cart + p.stock { display: none; }

/* 3D book mockups: the photo already has the book's shape and shadow on a cream
   backdrop, so show the whole image (no crop, no fake book edge or shadow) */
.book-card .cover-wrap, .detail-cover .cover-wrap { aspect-ratio: 6/7; background: transparent; box-shadow: none; border-radius: 0; }
.book-card .cover-wrap img, .detail-cover img, .fan-book img { object-fit: contain; mix-blend-mode: multiply; }
.tile.covers .stack img, .set .fanrow img, .line img, .sr img, .toast img,
.drawer .woocommerce-mini-cart-item img { aspect-ratio: 6/7; object-fit: contain; box-shadow: none; border-radius: 0; mix-blend-mode: multiply; }
.fan-book { aspect-ratio: 6/7; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.fan-book::after { display: none; }
.book-card .cover-wrap::after, .detail-cover .cover-wrap::after { display: none; }

/* ---------- Shop dropdown (Book Shop / Gift Shop) ---------- */
.nav-links li.menu-item-has-children { display: block; position: relative; }
.nav-links li.menu-item-has-children > a { padding-right: 16px; }
.nav-links li.menu-item-has-children > a::before { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.3px 1.3px 0; transform: translateY(-70%) rotate(45deg); }
.nav-links ul.sub-menu { display: block; position: absolute; left: 50%; top: calc(100% + 20px); min-width: 190px; padding: 8px; background: var(--brown); border-radius: 12px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; z-index: 60; }
.nav-links ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav-links li:hover > ul.sub-menu, .nav-links li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links ul.sub-menu li { display: block; }
.nav-links ul.sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.nav-links ul.sub-menu a::after { display: none; }
.nav-links ul.sub-menu a:hover, .nav-links ul.sub-menu .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 960px) {
  .nav-links li.menu-item-has-children > a::before { display: none; }
  .nav-links ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 6px 18px; min-width: 0; }
  .nav-links ul.sub-menu::before { display: none; }
  .nav-links ul.sub-menu a { font-size: 17px; padding: 10px 0; border-radius: 0; }
}
