/* Master Within Store — local prototype (3 Nov 2026). Same tokens, fonts and logo as masterwithin.net, so the two
   feel like one family; the store's own mark is the pale coral band and the word "Store" beside the logo. */
@font-face { font-family: 'Source Serif MW'; src: url('assets/source-serif-4-opsz.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Serif MW'; src: url('assets/source-serif-4-opsz-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans MW'; src: url('assets/dm-sans.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'Anek Bangla MW Label'; src: url('assets/anek-bangla-label.woff2') format('woff2'); font-display: swap; }

:root {
  --white: #ffffff; --blue-mist: #eff6fa; --hairline: #dbe7ef;
  --airy-blue: #44abe5; --sun-coral: #f86643; --button-coral: #d14722; --sun-coral-hover: #b93d1b; --on-accent: #ffffff;
  --deep-navy: #365269; --ink-blue: #243746; --slate: #526878; --ocean-blue: #1d6a9c; --control-border: #4f86a8;
  --pill-hover: #e1eef6; --shadow: rgba(36, 55, 70, 0.1); --backdrop: rgba(36, 55, 70, 0.4);
  --coral-text: #b9411f; --highlight: #e3f2fc; --footer-bg: #fee4da; --footer-line: #f6c9b8;
  --cover-a: #365269; --cover-b: #fee4da; --cover-c: #e3f2fc; --cover-d: #243746;
  --font-serif: 'Source Serif MW', Georgia, serif; --font-sans: 'DM Sans MW', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page: 1200px; --radius: 14px;
}
:root[data-theme='dark'] {
  --white: #1c1714; --blue-mist: #27201b; --hairline: #3a302a;
  --deep-navy: #f3ece6; --ink-blue: #e2d6cb; --slate: #b9ada4; --ocean-blue: #44abe5; --control-border: #a08c7e;
  --pill-hover: #342b25; --shadow: rgba(0, 0, 0, 0.35); --backdrop: rgba(0, 0, 0, 0.55);
  --coral-text: #f86643; --highlight: #2e251f; --footer-bg: #2b201a; --footer-line: #3a302a;
  --cover-a: #3a302a; --cover-b: #3b2a22; --cover-c: #2e251f; --cover-d: #27201b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink-blue); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ocean-blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--deep-navy); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 28px + 2.2vw, 60px); }
h2 { font-size: clamp(28px, 23px + 1.3vw, 42px); }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--airy-blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-text); margin-bottom: 10px; }
.muted { color: var(--slate); }

/* prototype notice */
.proto { background: var(--deep-navy); color: var(--white); font-size: 14px; text-align: center; padding: 8px 16px; }
:root[data-theme='dark'] .proto { background: #3a302a; color: var(--deep-navy); }

/* utility bar */
.util { background: var(--blue-mist); border-bottom: 1px solid var(--hairline); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util a { color: var(--ink-blue); text-decoration: none; }
.util a:hover { color: var(--ocean-blue); }
.util-right { display: flex; align-items: center; gap: 20px; }
.theme-btn { border: 1.5px solid var(--control-border); background: var(--white); color: var(--deep-navy); border-radius: 999px; padding: 2px 12px; font: inherit; font-size: 12px; cursor: pointer; }

/* header */
.head { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--hairline); }
.head .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 36px; width: auto; }
.brand-store { font-family: var(--font-serif); font-size: 22px; color: var(--coral-text); padding-left: 12px; border-left: 1.5px solid var(--hairline); line-height: 1; }
.nav { display: flex; gap: 0; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--deep-navy); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--pill-hover); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--deep-navy); cursor: pointer; }
.icon-btn:hover { background: var(--pill-hover); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--button-coral); color: var(--on-accent); font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--hairline); padding: 12px 16px 20px; }
  .menu-btn { display: grid; }
  .head .wrap { justify-content: space-between; }
}
@media (max-width: 520px) {
  .head .wrap { gap: 10px; padding: 0 12px 0 16px; min-height: 64px; }
  .brand { gap: 8px; } .brand img { height: 24px; } .brand-store { font-size: 17px; padding-left: 8px; }
  .head-tools { gap: 0; } .icon-btn { width: 40px; height: 40px; } .util-hide { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-main { background: var(--button-coral); color: var(--on-accent); }
.btn-main:hover { background: var(--sun-coral-hover); }
.btn-line { border-color: var(--control-border); color: var(--deep-navy); background: transparent; }
.btn-line:hover { background: var(--pill-hover); }
.btn[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; }

/* hero */
.hero { background: var(--footer-bg); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero p.lead { font-size: 19px; margin: 18px 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: var(--white); }
.hero-art .kit-box { position: absolute; inset: 14% 14% 14% 14%; border-radius: 18px; background: var(--white); border: 1.5px dashed var(--control-border); display: grid; place-items: center; text-align: center; padding: 24px; }
.hero-art .kit-box span { font-family: var(--font-serif); font-size: 26px; color: var(--deep-navy); }
.hero-art .kit-box small { display: block; color: var(--slate); font-size: 15px; margin-top: 6px; }
.hero-art .dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--sun-coral); top: 18%; right: 18%; }
.hero-art svg { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 30%; }
.hero-art path { fill: none; stroke: var(--airy-blue); stroke-width: 2; opacity: 0.5; }
:root[data-theme='dark'] .hero-art { background: var(--blue-mist); }
:root[data-theme='dark'] .hero-art .kit-box { background: var(--white); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; } }

/* sections */
.sec { padding: 72px 0; }
.sec + .sec { border-top: 1px solid var(--hairline); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head p { max-width: 40em; margin-top: 8px; }
.sec-head a { font-weight: 500; white-space: nowrap; }
.band { background: var(--blue-mist); }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cats a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 22px; border-radius: var(--radius); background: var(--blue-mist); text-decoration: none; color: var(--ink-blue); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cats a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px var(--shadow); }
.cats .c-name { font-family: var(--font-serif); font-size: 24px; color: var(--deep-navy); line-height: 1.2; }
.cats .c-line { font-size: 15px; color: var(--slate); }
.cats .c-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--coral-text); }
.cats li:first-child a { background: var(--footer-bg); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; gap: 10px; } .cats a { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 16px 18px; } .cats .c-name { font-size: 21px; } .cats .c-ico { flex: none; } }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
.card a { display: block; text-decoration: none; color: var(--ink-blue); }
.thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--blue-mist); margin-bottom: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card a:hover .thumb { box-shadow: 0 14px 30px -18px var(--shadow); }
.card .t-name { font-family: var(--font-serif); font-size: 19px; line-height: 1.3; color: var(--deep-navy); }
.card .t-sub { font-size: 14px; color: var(--slate); margin-top: 2px; }
.card .t-price { font-size: 15px; font-weight: 500; color: var(--deep-navy); margin-top: 6px; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--white); color: var(--deep-navy); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.tag.coral { background: var(--button-coral); color: var(--on-accent); }

/* placeholder art, generated: book covers, frames, garments */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.ph-book { background: var(--cover-a); color: #fff; }
.ph-book.b { background: var(--cover-b); color: var(--deep-navy); }
.ph-book.c { background: var(--cover-c); color: var(--deep-navy); }
.ph-book.d { background: var(--cover-d); color: #fff; }
.ph-book::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(0, 0, 0, 0.12); }
.ph-book .pt { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; }
.ph-book .pa { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; margin-top: 8px; }
.ph-book .pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun-coral); margin-bottom: auto; }
.ph-ebook { background: var(--highlight); color: var(--deep-navy); border-top: 6px solid var(--airy-blue); }
.ph-ebook.b { background: var(--footer-bg); border-top-color: var(--sun-coral); }
.ph-ebook.c { background: var(--white); border-top-color: var(--deep-navy); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.ph-ebook .pt { font-size: 22px; }
.ph-ebook .pt { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; }
.ph-ebook .pa { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-top: 8px; }
.ph-ebook .pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--airy-blue); margin-bottom: auto; }
.ph-empty { align-items: center; justify-content: center; text-align: center; color: var(--slate); font-size: 14px; border: 1.5px dashed var(--control-border); border-radius: 12px; inset: 10px; }
.ph-empty b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 20px; color: var(--deep-navy); margin-bottom: 4px; }
.ph-frame { background: var(--blue-mist); align-items: center; justify-content: center; }
.ph-frame .fr { position: relative; width: 64%; aspect-ratio: 3 / 4; background: var(--white); border: 10px solid #8a6a4f; box-shadow: 0 10px 24px -12px var(--shadow); display: grid; place-items: center; text-align: center; padding: 10px; font-family: var(--font-serif); font-size: 16px; color: var(--slate); overflow: hidden; }
.ph-frame .fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(0.2); }
.ph-tee { background: var(--blue-mist); align-items: center; justify-content: center; }
.ph-tee svg { width: 72%; height: auto; }
.ph-tee .body { fill: var(--white); stroke: var(--hairline); stroke-width: 2; }
.ph-tee.dark .body { fill: #2b3946; }
.ph-tee text { font-family: var(--font-serif); font-size: 15px; fill: var(--slate); }
.ph-tee.dark text { fill: #e2d6cb; }

/* ebook support band */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 22px; background: var(--white); border: 1.5px solid var(--hairline); margin-bottom: 36px; }
.support h3 { font-size: 28px; margin-bottom: 12px; }
.support p + p { margin-top: 10px; }
.zero { font-family: var(--font-serif); font-size: 20px; color: var(--deep-navy); }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; padding: 26px; } }

/* pay as you wish */
.pwyw { border: 1.5px solid var(--hairline); border-radius: 18px; padding: 24px; background: var(--white); }
.pwyw-label { font-weight: 500; color: var(--deep-navy); margin-bottom: 10px; display: block; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.amounts button { min-width: 72px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--control-border); background: var(--white); color: var(--deep-navy); font: inherit; font-weight: 500; cursor: pointer; }
.amounts button[aria-pressed='true'] { background: var(--deep-navy); color: var(--white); border-color: var(--deep-navy); }
.amount-in { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--control-border); border-radius: 12px; padding: 0 14px; max-width: 220px; background: var(--white); }
.amount-in span { font-size: 20px; color: var(--slate); }
.amount-in input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 22px; color: var(--deep-navy); width: 100%; min-height: 52px; }
.pwyw-note { font-size: 15px; margin-top: 12px; color: var(--slate); }
.pwyw-note.zero-note { color: var(--deep-navy); }

/* product page */
.crumbs { font-size: 14px; color: var(--slate); padding: 22px 0 0; }
.crumbs a { color: var(--slate); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 28px 0 72px; align-items: start; }
.pdp .thumb { aspect-ratio: 1 / 1; border-radius: 20px; }
.pdp h1 { font-size: clamp(32px, 26px + 1.6vw, 48px); margin: 6px 0 12px; }
.pdp .price { font-size: 22px; font-weight: 500; color: var(--deep-navy); margin-bottom: 18px; }
.pdp .desc { margin-bottom: 24px; }
.pdp .desc p + p { margin-top: 12px; }
.pdp .also { margin-top: 18px; font-size: 15px; color: var(--slate); }
.pdp .also a { font-weight: 500; }
.contents { list-style: none; margin: 20px 0 24px; padding: 0; border-top: 1px solid var(--hairline); }
.contents li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); color: var(--slate); }
.contents li::before { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--control-border); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }

/* filter pills on collection pages */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pills a { display: block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--hairline); color: var(--deep-navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.pills a[aria-current] { background: var(--deep-navy); color: var(--white); border-color: var(--deep-navy); }
.coll-head { padding: 48px 0 24px; }
.coll-head p { max-width: 40em; margin-top: 10px; }

/* promises row */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.promises li { padding: 22px; border-radius: var(--radius); background: var(--white); }
.promises b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 21px; color: var(--deep-navy); margin-bottom: 6px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* cart drawer */
.backdrop { position: fixed; inset: 0; background: var(--backdrop); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--white); z-index: 41; transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0s 0.3s; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-open .backdrop { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; visibility: visible; transition: transform 0.3s ease; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--slate); }
.drawer-empty b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--deep-navy); margin-bottom: 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; background: var(--deep-navy); color: var(--white); padding: 12px 20px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity 0.25s, translate 0.25s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }

/* footer */
.foot { background: var(--footer-bg); border-top: 1px solid var(--footer-line); padding: 56px 0 28px; margin-top: 0; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-text); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--ink-blue); text-decoration: none; }
.foot a:hover { color: var(--ocean-blue); text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--footer-line); font-size: 14px; color: var(--slate); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
