:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24313a;
  background: #faf8f5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #075f63; }
header, main, footer { width: min(100% - 2rem, 960px); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid #dedbd5; }
header a { text-decoration: none; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
header nav [data-cart-link] { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.45rem 0.75rem; border-radius: 0.45rem; background: #075f63; color: white; }
.header-actions { min-width: 0; }
.header-actions [data-cart-message] { margin: 0.35rem 0 0; }
main { padding-block: 1.5rem 3rem; }
section, .product-card, .cart-item, .notice { border: 1px solid #dedbd5; border-radius: 0.75rem; background: white; padding: 1rem; margin-block: 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.product-card { margin: 0; }
.product-card.in-cart { border-color: #075f63; box-shadow: 0 0 0 2px rgb(7 95 99 / 12%); }
.product-card form { margin-top: 0.75rem; }
.product-card form p { margin-block: 0.35rem; }
.course-cover { display: block; width: 100%; max-width: 720px; height: auto; border-radius: 0.8rem; }
.cart-product-link { display: inline-flex; min-height: 2.4rem; align-items: center; margin-inline-start: 0.5rem; padding: 0.35rem 0.65rem; border: 1px solid #075f63; border-radius: 0.4rem; text-decoration: none; }
.cart-product-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.catalog-guest-email { max-width: 40rem; }
label { display: block; margin-block: 0.75rem 0.25rem; }
.field-hint { display: block; margin-block: 0.2rem 0.4rem; color: #59656a; font-size: 0.78rem; font-weight: 400; }
input, select, button { font: inherit; }
input, select { display: block; width: 100%; max-width: 34rem; min-height: 2.75rem; padding: 0.55rem; border: 1px solid #8b9295; border-radius: 0.4rem; }
button, .button { display: inline-block; min-height: 2.75rem; padding: 0.65rem 1rem; border: 0; border-radius: 0.45rem; background: #075f63; color: white; font: inherit; text-decoration: none; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }
button[data-in-cart="true"] { background: #e7f3f1; color: #075f63; cursor: default; opacity: 1; }
.muted { color: #59656a; }
.error { color: #9c1c1c; }
.success { color: #166534; }
.form-recovery-status { padding: 0.7rem 0.9rem; border-radius: 0.5rem; background: #edf4fa; color: #24425e; line-height: 1.55; }
.admin-file-preview-list { margin: 0.25rem 0 0; padding: 0.7rem 0.9rem 0.7rem 2rem; border-radius: 0.5rem; background: #f3f6f9; color: #334b62; }
.admin-image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 0.75rem; margin-block: 0.75rem 1rem; }
.admin-image-preview-count { grid-column:1/-1; margin:0; color:#52677e; font-size:.88rem; }
.admin-image-preview-grid.single { grid-template-columns: minmax(0, 220px); }
.admin-image-preview-grid.portrait .admin-image-preview-card img { aspect-ratio: 4 / 5; }
.admin-image-preview-grid.square .admin-image-preview-card img { aspect-ratio: 1; }
.admin-image-preview-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d8e0e8; border-radius: 0.65rem; background: #fff; box-shadow: 0 2px 8px rgb(23 43 69 / 7%); }
.admin-image-preview-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #edf2f6; }
.admin-image-preview-grid.single .admin-image-preview-card img { aspect-ratio: 16 / 9; }
.admin-image-preview-card figcaption { overflow-wrap: anywhere; padding: 0.45rem 0.55rem; color: #40566d; font-size: 0.78rem; line-height: 1.45; }
.ebook-next-step { margin-block:1rem; padding:1rem; border:1px solid #b9d5c4; border-radius:.8rem; background:#f1f8f3; color:#214c34; line-height:1.6; }
.ebook-next-step p { margin:.35rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.marketing-consent-option { display: flex; align-items: flex-start; gap: 0.65rem; max-width: 48rem; margin-block: 1rem; color: #42556a; font-size: 0.94rem; line-height: 1.6; }
.marketing-consent-option input[type="checkbox"] { flex: 0 0 auto; width: 1.15rem; min-height: 0; margin: 0.25rem 0 0; padding: 0; }
.video-authorizer { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
footer { padding-block: 1rem 2rem; color: #59656a; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-page { max-width: 52rem; margin-inline: auto; line-height: 1.75; }
.legal-page h1, .legal-page h2 { line-height: 1.3; }
.legal-draft { color: #7a4c00; background: #fff8e8; padding: 0.7rem 0.85rem; border-radius: 0.4rem; }
.cookie-notice:not([hidden]) { position: fixed; z-index: 20; inset: auto 1rem 1rem; display: flex; max-width: 60rem; align-items: center; justify-content: space-between; gap: 1.25rem; margin-inline: auto; padding: 1rem 1.2rem; border: 1px solid #cbd3d4; border-radius: 0.75rem; box-shadow: 0 8px 32px rgb(20 35 45 / 18%); }
.cookie-notice p { margin: 0.3rem 0 0; }
.cookie-notice button { flex: 0 0 auto; }
.member-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.75rem; border: 1px solid #dedbd5; border-radius: 0.6rem; background: white; }
.member-nav-account { color: #59656a; overflow-wrap: anywhere; }
.member-nav form { margin: 0; }
.member-nav button { min-height: 2.5rem; padding: 0.5rem 0.75rem; }
.lesson-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-block: 1.5rem; }
.lesson-navigation-link { display: flex; min-width: 0; min-height: 4rem; flex-direction: column; justify-content: center; gap: 0.25rem; padding: 0.75rem 1rem; border: 1px solid #075f63; border-radius: 0.5rem; text-decoration: none; overflow-wrap: anywhere; }
.lesson-navigation-next { text-align: right; }
.lesson-navigation-label { font-weight: 650; }
.lesson-navigation-title { color: #59656a; }
.lesson-supporting-image { display:block; width:min(100%, 960px); height:auto; margin:1rem auto; border-radius:0.65rem; object-fit:contain; }
.lesson-supporting-figure { width:min(100%, 960px); margin:1.15rem auto; }
.lesson-supporting-figure .lesson-supporting-image { width:100%; margin:0 auto; }
.lesson-supporting-figure figcaption { margin-top:.5rem; color:#52687e; font-size:.94rem; line-height:1.65; text-align:center; }
.ebook-public-gallery > div { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:.75rem; }
.ebook-public-gallery img { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:.55rem; }
.ebook-detail-price { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; }
.ebook-detail-price del { color:#657487; }
.ebook-detail-price strong { font-size:1.3rem; }
.ebook-review-section { margin-top:1.5rem; }
.ebook-review { padding:.8rem 0; border-top:1px solid var(--beaubiz-silver); }
.ebook-review p { margin:.35rem 0; }
.ebook-intro-video { display:block; width:min(100%, 960px); aspect-ratio:16/9; margin:1rem auto; border:0; border-radius:.65rem; }
.ebook-related-products { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:.8rem; }
.ebook-related-products a { padding:.8rem; border:1px solid var(--beaubiz-silver); border-radius:.6rem; text-decoration:none; }
.product-pair-offer,.cart-pair-offers article { margin:1rem 0; padding:1rem; border:1px solid var(--beaubiz-silver); border-radius:.75rem; background:#f7fbfc; }
.product-pair-offer label { display:flex; align-items:flex-start; gap:.55rem; }
.product-pair-offer input[type="checkbox"] { width:1.15rem; height:1.15rem; margin-top:.2rem; }
.product-pair-offer p { margin:.5rem 0; }
.cart-pair-savings { color:#126a6d; font-weight:700; }
.cart-grand-total { border-top:1px solid var(--beaubiz-silver); padding-top:.7rem; font-size:1.15rem; font-weight:700; }
.cart-pair-offers h2 { font-size:1.15rem; }
.cart-pair-offers button { margin-top:.5rem; }
.related-product-admin-fieldset { margin-top:1rem; padding:1rem; border:1px solid var(--beaubiz-silver); border-radius:.6rem; }

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/static/fonts/beaubiz/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/static/fonts/beaubiz/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/static/fonts/beaubiz/LINESeedSansTH_W_XBd.woff2") format("woff2");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --beaubiz-navy: #172b45;
  --beaubiz-navy-deep: #10233b;
  --beaubiz-sea: #3c7f91;
  --beaubiz-sea-soft: #e8f2f4;
  --beaubiz-silver: #e4eaee;
  --beaubiz-muted: #657487;
  --beaubiz-white: #fff;
}
body { font-family: "LINE Seed Sans TH", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--beaubiz-navy); background: #fbfcfd; }
a { color: var(--beaubiz-sea); }
button, .button { background: var(--beaubiz-navy); }
header.site-header {
  width: min(100% - 3rem, 1240px);
  min-height: 78px;
  padding-block: 0.8rem;
  border-bottom-color: var(--beaubiz-silver);
}
.brand-lockup { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; color: var(--beaubiz-navy); }
.brand-name { font-size: 1.45rem; letter-spacing: -0.045em; line-height: 1.1; }
.brand-legal { color: var(--beaubiz-muted); font-size: 0.72rem; letter-spacing: 0.01em; }
.site-header nav { gap: 0.28rem; }
.site-header nav a { display: inline-flex; min-height: 2.55rem; align-items: center; padding: 0.45rem 0.7rem; border-radius: 999px; color: var(--beaubiz-navy); font-size: 0.88rem; white-space: nowrap; }
.site-header nav a:hover { background: #f1f5f7; }
.site-header nav [data-cart-link] { padding-inline: 1rem; background: var(--beaubiz-navy); color: #fff; }
.site-header nav [data-cart-link]:hover { background: #284665; }
.homepage-main { width: 100%; max-width: none; margin: 0; padding: 0 0 1rem; }
.homepage-shell { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 410px;
  align-items: center;
  gap: 2.2rem;
  margin-block: 1.6rem 2.2rem;
  padding: clamp(1.6rem, 5vw, 4.1rem);
  overflow: hidden;
  border: 1px solid #dbe7eb;
  border-radius: 30px;
  background: linear-gradient(116deg, #f4f8fa 0%, #f8fbfc 52%, #e5f0f3 100%);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-kicker, .section-eyebrow { margin: 0 0 0.75rem; color: var(--beaubiz-sea); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; }
.hero-kicker { display: flex; align-items: center; gap: 0.55rem; }
.hero-kicker span { width: 0.48rem; height: 0.48rem; border-radius: 50%; background: var(--beaubiz-sea); box-shadow: 0 0 0 4px #dcecef; }
.home-hero h1 { max-width: 680px; margin: 0; color: var(--beaubiz-navy-deep); font-size: clamp(2.3rem, 4.2vw, 3.65rem); font-weight: 800; line-height: 1.24; letter-spacing: -0.045em; }
.home-hero h1 em { color: var(--beaubiz-sea); font-style: normal; }
.hero-intro { max-width: 590px; margin: 1rem 0 1.35rem; color: #52657a; font-size: 1.02rem; line-height: 1.8; }
.hero-search { display: flex; width: min(100%, 690px); min-height: 66px; align-items: center; gap: 0.55rem; padding: 0.42rem; border: 1px solid #dbe4e9; border-radius: 17px; background: white; box-shadow: 0 12px 34px rgb(23 43 69 / 8%); }
.hero-search input { flex: 1 1 auto; width: 1%; max-width: none; min-width: 0; min-height: 48px; padding-inline: 0.35rem; border: 0; outline: 0; background: transparent; }
.hero-search input:focus { box-shadow: none; }
.search-symbol { position: relative; flex: 0 0 18px; width: 18px; height: 18px; margin-inline: 0.65rem 0.15rem; border: 2px solid #7890a0; border-radius: 50%; }
.search-symbol::after { position: absolute; right: -6px; bottom: -4px; width: 7px; height: 2px; transform: rotate(45deg); border-radius: 2px; background: #7890a0; content: ""; }
.hero-search select { display: block; flex: 0 0 98px; width: 98px; min-height: 46px; padding: 0 0.55rem; border: 0; border-left: 1px solid var(--beaubiz-silver); border-radius: 0; background: white; color: var(--beaubiz-muted); font-size: 0.83rem; }
.hero-search button { min-height: 48px; padding-inline: 1.25rem; border-radius: 12px; background: var(--beaubiz-navy); }
.hero-search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.8rem; color: var(--beaubiz-muted); font-size: 0.75rem; }
.hero-search-hints a { padding: 0.25rem 0.58rem; border: 1px solid #dce6e9; border-radius: 999px; background: rgb(255 255 255 / 76%); color: var(--beaubiz-navy); text-decoration: none; }
.hero-art { position: relative; display: grid; min-height: 294px; place-items: center; isolation: isolate; }
.hero-art::before { position: absolute; inset: 10% 12%; z-index: -1; border-radius: 48% 52% 43% 57% / 47% 39% 61% 53%; background: linear-gradient(145deg, #8cb8c3, #3d778a 60%, #254d69); content: ""; transform: rotate(-8deg); }
.hero-art-ring { position: absolute; z-index: -1; width: 300px; height: 300px; border: 1px solid rgb(255 255 255 / 66%); border-radius: 50%; }
.hero-art-ring-one { transform: scale(1.15) rotate(18deg); }
.hero-art-ring-two { transform: scale(0.82) rotate(-24deg); }
.hero-art-orb { position: absolute; top: 9%; right: 8%; width: 64px; height: 64px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 50%; background: linear-gradient(140deg, #fff, #c8d9de); box-shadow: 0 10px 30px rgb(16 35 59 / 14%); }
.hero-art-panel { display: flex; width: min(78%, 290px); min-height: 195px; flex-direction: column; justify-content: space-between; padding: 1.2rem 1.35rem; transform: rotate(4deg); border: 1px solid rgb(255 255 255 / 65%); border-radius: 19px; background: linear-gradient(130deg, rgb(246 251 252 / 92%), rgb(225 238 241 / 82%)); box-shadow: 0 22px 52px rgb(16 35 59 / 22%); backdrop-filter: blur(8px); }
.hero-art-panel span, .hero-art-panel small { color: #557385; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.17em; }
.hero-art-panel strong { color: var(--beaubiz-navy); font-size: 2.45rem; line-height: 0.96; letter-spacing: -0.06em; }
.hero-art-panel small { letter-spacing: 0.11em; }
.hero-art-label { position: absolute; color: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; }
.hero-art-label-top { top: 13%; left: 12%; }
.hero-art-label-bottom { right: 11%; bottom: 9%; }
.account-context { margin: -0.8rem 0 1.2rem; color: var(--beaubiz-muted); font-size: 0.86rem; }
.guest-email-helper { display: grid; grid-template-columns: auto minmax(200px, 1fr) minmax(280px, 1fr); align-items: center; gap: 0.8rem; margin-block: -0.7rem 2.4rem; padding: 0.9rem 1.1rem; border: 1px solid var(--beaubiz-silver); border-radius: 15px; background: #fff; }
.guest-email-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #edf4f6; color: var(--beaubiz-sea); }
.guest-email-helper strong { font-size: 0.86rem; }
.guest-email-helper p { margin: 0.12rem 0 0; color: var(--beaubiz-muted); font-size: 0.74rem; }
.guest-login-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; margin: 0; }
.guest-login-form input { width: 100%; max-width: none; min-height: 44px; border-color: #dce5e9; border-radius: 10px; font-size: 16px; }
.guest-login-form button { min-height: 44px; padding-inline: 0.9rem; border-radius: 10px; font-size: 0.9rem; white-space: nowrap; }
.guest-email-helper small { grid-column: 2 / -1; margin-top: -0.55rem; color: var(--beaubiz-muted); font-size: 0.68rem; }
.category-section, .product-section, .catalog-results-section { margin-block: 3.2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; color: var(--beaubiz-navy); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.35; letter-spacing: -0.025em; }
.section-heading .section-eyebrow { margin-bottom: 0.32rem; }
.section-description { margin: 0.35rem 0 0; color: var(--beaubiz-muted); font-size: 0.88rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; padding-bottom: 0.25rem; color: var(--beaubiz-sea); font-size: 0.84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--beaubiz-navy); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.category-tile { position: relative; display: grid; min-height: 115px; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; align-items: center; gap: 0.1rem 0.7rem; padding: 0.9rem 1rem; overflow: hidden; border: 1px solid #e3e9ec; border-radius: 16px; background: #fff; color: var(--beaubiz-navy); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.category-tile:hover { transform: translateY(-3px); border-color: #b8d0d7; box-shadow: 0 12px 25px rgb(23 43 69 / 7%); }
.category-mark { display: grid; width: 42px; height: 42px; grid-row: 1 / 3; place-items: center; border: 1px solid #d7e7eb; border-radius: 14px; background: #f0f6f7; color: var(--beaubiz-sea); font-size: 1.35rem; }
.category-label { align-self: end; font-weight: 700; font-size: 0.92rem; }
.category-eyebrow { align-self: start; color: #8795a2; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.13em; }
.category-arrow { grid-column: 3; grid-row: 1 / 3; align-self: start; color: #9aaab4; font-size: 0.95rem; }
.category-tone-2 .category-mark, .category-tone-5 .category-mark { background: #f2f4f8; color: #547089; border-color: #dce2e9; }
.category-tone-3 .category-mark, .category-tone-6 .category-mark { background: #edf5f7; color: #47788a; }
.category-tone-4 .category-mark, .category-tone-8 .category-mark { background: #f0f2f5; color: #536a82; border-color: #dfe4e8; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.market-grid-featured { grid-template-columns: minmax(0, 430px); }
.market-card, .preview-product-card { min-width: 0; overflow: hidden; border: 1px solid #e0e7eb; border-radius: 18px; background: white; box-shadow: 0 8px 24px rgb(23 43 69 / 3%); transition: transform 160ms ease, box-shadow 160ms ease; }
.market-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgb(23 43 69 / 10%); }
.market-card-link { display: block; color: inherit; text-decoration: none; }
.market-cover { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; background: linear-gradient(137deg, #dbe9ed, #9bbcc5 54%, #376f82); }
.market-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-cover-placeholder::before { position: absolute; top: -29%; right: -8%; width: 64%; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 52%); border-radius: 50%; content: ""; }
.market-cover-placeholder::after { position: absolute; bottom: -55%; left: -12%; width: 74%; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; content: ""; }
.cover-monogram { position: relative; color: rgb(255 255 255 / 88%); font-size: 6.5rem; font-weight: 800; letter-spacing: -0.11em; line-height: 1; }
.cover-monogram span { position: absolute; top: 0.2em; right: -0.72em; color: #e8f0f2; font-size: 1.25rem; }
.cover-caption { position: absolute; right: 1rem; bottom: 0.8rem; color: rgb(255 255 255 / 84%); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-align: right; }
.market-type-pill { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.34rem 0.62rem; border: 1px solid rgb(255 255 255 / 60%); border-radius: 999px; background: rgb(255 255 255 / 88%); color: var(--beaubiz-navy); font-size: 0.66rem; font-weight: 700; backdrop-filter: blur(8px); }
.market-card-copy { padding: 1rem 1rem 0.8rem; }
.market-card-eyebrow { color: var(--beaubiz-sea); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.055em; }
.market-card-copy h3 { margin: 0.35rem 0 0; color: var(--beaubiz-navy); font-size: 1.08rem; line-height: 1.45; overflow-wrap: anywhere; }
.market-card-copy > p { display: -webkit-box; min-height: 1.45em; margin: 0.25rem 0 0.55rem; overflow: hidden; color: var(--beaubiz-muted); font-size: 0.82rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.65rem; }
.market-card-footer strong { color: var(--beaubiz-navy); font-size: 1.1rem; }
.market-card-footer span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #dce6e9; border-radius: 50%; color: var(--beaubiz-sea); }
.market-add-form { margin: 0; padding: 0 1rem 1rem; }
.market-add-form p { margin: 0.3rem 0; font-size: 0.75rem; }
.market-add-form button { width: 100%; min-height: 43px; border-radius: 10px; background: #f1f6f7; color: var(--beaubiz-navy); font-size: 0.84rem; font-weight: 700; }
.market-add-form button:hover { background: var(--beaubiz-navy); color: white; }
.market-add-form button[data-in-cart="true"] { border: 1px solid #bad4dc; background: #e8f2f4; color: #356b7b; }
.market-guest-buy { display: flex; min-height: 43px; align-items: center; justify-content: center; gap: .45rem; border-radius: 10px; background: #f1f6f7; color: var(--beaubiz-navy); font-size: .84rem; font-weight: 700; text-align: center; text-decoration: none; }
.market-guest-buy:hover { background: var(--beaubiz-navy); color: #fff; }
.preview-card-grid { display: grid; grid-template-columns: minmax(0, 430px); gap: 1rem; }
.preview-card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preview-cover { background: linear-gradient(135deg, #dce7eb, #93b2bc); }
.preview-cover-2 { background: linear-gradient(140deg, #e1e8ee, #728ba3); }
.preview-cover-3 { background: linear-gradient(140deg, #ddebef, #54869a); }
.preview-cover-word { color: rgb(255 255 255 / 85%); font-size: 1rem; font-weight: 700; letter-spacing: 0.12em; }
.preview-data-note { margin: 0.75rem 0 0; color: var(--beaubiz-muted); font-size: 0.75rem; }
.ebook-preview-cover { background: linear-gradient(135deg, #18344f, #487d8c); }
.ebook-spine { display: grid; width: 115px; height: 145px; place-items: center; transform: rotate(-5deg); border: 1px solid rgb(255 255 255 / 58%); background: linear-gradient(145deg, #edf4f5, #a8c4ca); box-shadow: 12px 14px 25px rgb(16 35 59 / 22%); color: #26465c; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; line-height: 1.6; text-align: center; }
.empty-state { display: grid; min-height: 230px; place-content: center; justify-items: center; padding: 2rem; border: 1px dashed #cbd8de; border-radius: 18px; background: #fff; text-align: center; }
.empty-state-mark { color: #82a6b2; font-size: 2rem; }
.empty-state h3 { margin: 0.3rem 0 0; font-size: 1.1rem; }
.empty-state p { margin: 0.3rem 0 1rem; color: var(--beaubiz-muted); }
.compact-empty { min-height: 100px; }
.compact-empty p { margin: 0; }
.button-outline { border: 1px solid #b9cbd2; background: white; color: var(--beaubiz-navy); }
.academy-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; margin-block: 4rem 2rem; padding: clamp(1.5rem, 4vw, 3.2rem); border-radius: 24px; background: linear-gradient(118deg, #142b46 0%, #1e4662 66%, #2f6d80 100%); color: white; }
.academy-copy .section-eyebrow { color: #b6d6de; }
.academy-copy h2 { margin: 0; color: white; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.3; letter-spacing: -0.035em; }
.academy-copy h2 span { color: #c8dce1; font-size: 0.66em; letter-spacing: 0; }
.academy-copy > p:not(.section-eyebrow) { max-width: 465px; margin: 0.8rem 0 1.15rem; color: #e0eaee; font-size: 0.9rem; line-height: 1.75; }
.button-light { background: #fff; color: var(--beaubiz-navy); }
.button-light:hover { background: #eaf3f5; }
.learning-steps { display: grid; gap: 0.65rem; }
.learning-step { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid rgb(255 255 255 / 20%); border-radius: 14px; background: rgb(255 255 255 / 7%); }
.learning-step > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgb(194 220 227 / 45%); border-radius: 50%; color: #c5e1e7; font-size: 0.74rem; font-weight: 700; }
.learning-step strong { font-size: 0.9rem; }
.learning-step p { margin: 0.15rem 0 0; color: #d0e1e5; font-size: 0.75rem; }
.homepage-bottom-note { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; color: #8392a0; font-size: 0.72rem; }
.homepage-bottom-note span:first-child { color: var(--beaubiz-navy); font-weight: 800; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.homepage-shell .cookie-notice p { font-size: 0.84rem; }

/* Admin eBook editor: compact category choices and a readable description field. */
.admin-ebook-page .ebook-description {
  display: block;
  width: 100%;
  max-width: 56rem;
  min-height: 16rem;
  padding: 0.85rem 1rem;
  border: 1px solid #8b9295;
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}
.admin-ebook-page .ebook-category-fieldset {
  width: fit-content;
  max-width: 100%;
  margin: 1rem 0;
  padding: 0.65rem 0.85rem 0.85rem;
  border: 1px solid #cbd3d4;
  border-radius: 0.65rem;
  background: #fff;
}
.admin-ebook-page .ebook-category-fieldset legend {
  padding-inline: 0.35rem;
  font-weight: 650;
}
.admin-ebook-page .ebook-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(9rem, 1fr));
  gap: 0.45rem;
}
.admin-ebook-page .ebook-category-option {
  display: flex;
  min-width: 0;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid #e0e5e5;
  border-radius: 0.5rem;
  background: #fbfcfc;
  cursor: pointer;
}
.admin-ebook-page .ebook-category-option:hover {
  border-color: #75a7a8;
  background: #f2f8f8;
}
.admin-ebook-page .ebook-category-option input[type="checkbox"] {
  display: block;
  flex: 0 0 1.1rem;
  width: 1.1rem;
  max-width: 1.1rem;
  min-height: 1.1rem;
  margin: 0;
  padding: 0;
  accent-color: #075f63;
}
.admin-ebook-page .ebook-watermark-option {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 0.55rem;
  margin-block: 1rem;
  line-height: 1.55;
  cursor: pointer;
}
.admin-ebook-page .ebook-watermark-option input[type="checkbox"] {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  max-width: 1rem;
  min-height: 1rem;
  margin: 0.22rem 0 0;
  padding: 0;
  accent-color: #075f63;
}
.admin-ebook-page .ebook-watermark-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-ebook-page .ebook-price-grid {
  display:grid;
  width:min(100%, 56rem);
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1rem;
}
.admin-ebook-page .ebook-gallery-existing {
  width:min(100%, 56rem);
  padding:0.75rem;
  border:1px solid #d7e0e9;
  border-radius:0.65rem;
}
.admin-ebook-page .ebook-gallery-existing h2 { margin-block:0 0.5rem; font-size:1.05rem; }
.admin-ebook-page .ebook-gallery-existing form { margin:0.45rem; }
.admin-ebook-page .ebook-gallery-existing button { min-height:2.2rem; padding:0.4rem 0.65rem; font-size:0.88rem; }
.admin-ebook-page .ebook-related-fieldset { width:min(100%, 56rem); margin-block:1rem; padding:.8rem 1rem 1rem; border:1px solid #cbd3d4; border-radius:.65rem; background:#fff; }
.admin-ebook-page .ebook-related-fieldset legend { padding-inline:.35rem; font-weight:650; }
.admin-ebook-page .ebook-related-fieldset p { margin:.25rem 0 .7rem; }
.admin-ebook-page .ebook-related-options { display:grid; max-height:17rem; gap:.35rem; overflow:auto; padding:.25rem; }
.admin-ebook-page .ebook-related-options label { display:flex; align-items:flex-start; gap:.55rem; margin:0; padding:.45rem .55rem; border:1px solid #e2e7e8; border-radius:.45rem; cursor:pointer; }
.admin-ebook-page .ebook-related-options input[type="checkbox"] { flex:0 0 1rem; width:1rem; max-width:1rem; min-height:1rem; margin:.18rem 0 0; padding:0; accent-color:#075f63; }
.admin-ebook-page .ebook-related-options span { min-width:0; overflow-wrap:anywhere; }
.admin-ebook-page .ebook-save-button {
  box-shadow: 0 2px 0 #03484b;
  transition: transform 80ms ease, filter 120ms ease, box-shadow 80ms ease;
}
.admin-ebook-page .ebook-save-button:not(:disabled):hover {
  filter: brightness(1.08);
}
.admin-ebook-page .ebook-save-button:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: none;
  filter: brightness(0.9);
}
.admin-ebook-page .ebook-save-button:focus-visible {
  outline: 3px solid #8bc9ca;
  outline-offset: 3px;
}
.admin-ebook-page .ebook-save-button:disabled {
  cursor: wait;
  box-shadow: none;
  opacity: 0.78;
}
.admin-ebook-page .ebook-submit-status:not([hidden]) {
  max-width: 56rem;
  margin-block: 0.65rem 0;
  padding: 0.7rem 0.85rem;
  border-left: 4px solid #075f63;
  border-radius: 0.3rem;
  background: #edf6f5;
  color: #24313a;
}

@media (max-width: 600px) {
  header { align-items: flex-start; flex-direction: column; }
  header nav { gap: 0.9rem; }
  .header-actions { width: 100%; }
  .member-nav { align-items: stretch; }
  .member-nav a, .member-nav button { min-height: 2.75rem; display: inline-flex; align-items: center; }
  main { padding-top: 1rem; }
  .cookie-notice:not([hidden]) { inset-inline: 0.5rem; bottom: 0.5rem; align-items: stretch; flex-direction: column; gap: 0.75rem; }
  section, .product-card, .cart-item, .notice { padding: 0.85rem; }
  .lesson-navigation { grid-template-columns: minmax(0, 1fr); }
  .lesson-navigation-next { text-align: left; }
}

@media (max-width: 640px) {
  .admin-ebook-page .ebook-category-grid {
    grid-template-columns: repeat(2, minmax(8rem, 1fr));
  }
}

@media (max-width: 420px) {
  .admin-ebook-page .ebook-price-grid {
    grid-template-columns:minmax(0, 1fr);
  }
  .admin-ebook-page .ebook-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .homepage-shell { width: min(100% - 2.25rem, 760px); }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.68fr); gap: 1rem; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
  .category-tile { grid-template-columns: auto 1fr; min-height: 100px; padding: 0.75rem; }
  .category-arrow { display: none; }
  .category-mark { width: 36px; height: 36px; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-card-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-section { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  header.site-header { width: calc(100% - 1.5rem); grid-template-columns: minmax(0, 1fr); gap: 0.55rem; padding-block: 0.7rem; }
  .brand-name { font-size: 1.28rem; }
  .brand-legal { font-size: 0.66rem; }
  .header-actions { width: 100%; }
  .site-header nav { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem; }
  .site-header nav a { width: 100%; min-height: 2.35rem; justify-content: center; padding-inline: 0.35rem; font-size: 0.76rem; }
  .site-header nav [data-cart-link] { grid-column: 1 / -1; padding-inline: 0.8rem; }
  .homepage-main { padding-top: 0; }
  .homepage-shell { width: calc(100% - 1.5rem); }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0.45rem; margin-block: 0.8rem 1.6rem; padding: 1.35rem 1.05rem 1rem; border-radius: 22px; }
  .hero-kicker { font-size: 0.58rem; letter-spacing: 0.1em; }
  .home-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.23; }
  .hero-intro { margin: 0.7rem 0 1rem; font-size: 0.88rem; line-height: 1.65; }
  .hero-search { min-height: 58px; gap: 0.25rem; padding: 0.3rem; border-radius: 14px; }
  .search-symbol { flex-basis: 16px; width: 16px; height: 16px; margin-inline: 0.55rem 0.12rem; }
  .hero-search input { min-height: 44px; font-size: 0.8rem; }
  .hero-search input::placeholder { color: #7e8d9a; }
  .hero-search select { flex-basis: 68px; width: 68px; min-height: 40px; padding-inline: 0.25rem; font-size: 0.72rem; }
  .hero-search button { min-height: 42px; padding-inline: 0.72rem; border-radius: 10px; font-size: 0.78rem; }
  .hero-search-hints { gap: 0.35rem; margin-top: 0.65rem; font-size: 0.68rem; }
  .hero-search-hints a { padding: 0.22rem 0.45rem; }
  .hero-art { min-height: 145px; margin-top: 0.1rem; }
  .hero-art::before { inset: 2% 17%; }
  .hero-art-ring { width: 170px; height: 170px; }
  .hero-art-orb { top: 2%; right: 18%; width: 36px; height: 36px; }
  .hero-art-panel { width: 58%; min-height: 103px; padding: 0.65rem 0.8rem; border-radius: 12px; }
  .hero-art-panel span, .hero-art-panel small { font-size: 0.46rem; }
  .hero-art-panel strong { font-size: 1.4rem; }
  .hero-art-label { font-size: 0.5rem; }
  .hero-art-label-top { top: 9%; left: 19%; }
  .hero-art-label-bottom { right: 17%; bottom: 2%; }
  .guest-email-helper { grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; margin: 0 0 1.7rem; padding: 0.75rem; }
  .guest-email-helper > div { min-width: 0; }
  .guest-login-form, .guest-email-helper small { grid-column: 1 / -1; }
  .guest-login-form { grid-template-columns: minmax(0, 1fr); }
  .guest-login-form input, .guest-login-form button { width: 100%; min-height: 46px; }
  .guest-login-form button { font-size: 16px; }
  .guest-email-helper small { margin: -0.35rem 0 0; }
  .account-context { margin: -0.6rem 0 1.5rem; font-size: 0.78rem; overflow-wrap: anywhere; }
  .category-section, .product-section, .catalog-results-section { margin-block: 2.35rem; }
  .section-heading { align-items: flex-start; gap: 0.6rem; margin-bottom: 0.9rem; }
  .section-heading h2 { font-size: 1.3rem; }
  .section-eyebrow { margin-bottom: 0.25rem; font-size: 0.62rem; }
  .section-description { font-size: 0.78rem; }
  .text-link { max-width: 44%; font-size: 0.72rem; text-align: right; white-space: normal; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.52rem; }
  .category-tile { min-height: 83px; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 0.52rem; padding: 0.6rem; border-radius: 13px; }
  .category-mark { width: 32px; height: 32px; grid-row: 1 / 3; border-radius: 11px; font-size: 1.05rem; }
  .category-label { align-self: end; font-size: 0.79rem; overflow-wrap: anywhere; }
  .category-eyebrow { align-self: start; font-size: 0.48rem; letter-spacing: 0.1em; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.58rem; }
  .market-grid-featured, .preview-card-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-card-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-card, .preview-product-card { border-radius: 13px; }
  .market-cover { aspect-ratio: 1 / 0.9; }
  .market-type-pill { top: 0.45rem; left: 0.45rem; padding: 0.24rem 0.45rem; font-size: 0.55rem; }
  .market-card-copy { padding: 0.65rem 0.62rem 0.55rem; }
  .market-card-eyebrow { font-size: 0.55rem; }
  .market-card-copy h3 { margin-top: 0.22rem; font-size: 0.82rem; line-height: 1.45; }
  .market-card-copy > p { min-height: 2.4em; margin: 0.2rem 0 0.4rem; font-size: 0.68rem; line-height: 1.45; }
  .market-card-footer { margin-top: 0.35rem; }
  .market-card-footer strong { font-size: 0.88rem; }
  .market-card-footer span { width: 25px; height: 25px; font-size: 0.8rem; }
  .market-add-form { padding: 0 0.62rem 0.65rem; }
  .market-add-form button { min-height: 39px; font-size: 0.72rem; }
  .cover-monogram { font-size: 4.1rem; }
  .preview-data-note { font-size: 0.68rem; }
  .empty-state { min-height: 190px; padding: 1.2rem; }
  .empty-state h3 { font-size: 0.98rem; }
  .empty-state p { font-size: 0.78rem; }
  .academy-section { gap: 1.2rem; margin-block: 2.8rem 1.4rem; padding: 1.25rem 1rem; border-radius: 19px; }
  .academy-copy h2 { font-size: 1.5rem; }
  .academy-copy > p:not(.section-eyebrow) { font-size: 0.8rem; }
  .learning-step { align-items: flex-start; gap: 0.65rem; padding: 0.72rem; }
  .learning-step > span { width: 32px; height: 32px; flex-basis: 32px; font-size: 0.65rem; }
  .learning-step strong { font-size: 0.8rem; }
  .learning-step p { font-size: 0.69rem; line-height: 1.5; }
  .homepage-bottom-note { margin-bottom: 1.25rem; font-size: 0.65rem; }
  .cookie-notice:not([hidden]) { max-width: calc(100% - 1rem); align-items: center; flex-direction: row; gap: 0.55rem; padding: 0.6rem 0.7rem; }
  .cookie-notice > div { min-width: 0; }
  .cookie-notice strong { font-size: 0.76rem; }
  .cookie-notice p { font-size: 0.64rem; line-height: 1.4; }
  .cookie-notice button { width: 112px; min-height: 2.5rem; padding: 0.4rem 0.45rem; font-size: 0.65rem; line-height: 1.3; white-space: normal; }
}

@media (max-width: 370px) {
  .homepage-shell { width: calc(100% - 1.1rem); }
  .home-hero { padding-inline: 0.8rem; }
  .hero-search { gap: 0.08rem; }
  .hero-search select { flex-basis: 61px; width: 61px; font-size: 0.67rem; }
  .hero-search button { padding-inline: 0.58rem; }
  .category-tile { padding: 0.5rem; }
  .market-grid, .preview-card-grid-three { gap: 0.45rem; }
}

/* BeauBiz editorial marketplace refresh — based on the owner's slate palette. */
:root {
  --beaubiz-navy: #404f68;
  --beaubiz-navy-deep: #303d53;
  --beaubiz-sea: #657d9f;
  --beaubiz-sea-soft: #e8ecf2;
  --beaubiz-silver: #c4c4c4;
  --beaubiz-muted: #7a859d;
  --beaubiz-cloud: #f2f2f2;
}

body { color: var(--beaubiz-navy); background: #fff; }
a { color: var(--beaubiz-sea); }
button, .button { background: var(--beaubiz-navy); }
header.site-header {
  width: min(100% - 3rem, 1320px);
  min-height: 76px;
  border-bottom-color: #e7e8eb;
}
.brand-name { color: var(--beaubiz-navy-deep); }
.brand-legal { color: #7a859d; }
.site-header nav a { color: var(--beaubiz-navy); }
.site-header nav a:hover { background: var(--beaubiz-cloud); }
.site-header nav [data-cart-link], .site-header nav [data-cart-link]:hover { background: var(--beaubiz-navy); }
.homepage-shell { width: min(100% - 4rem, 1320px); }
.homepage-shell section { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 0; }
.home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  min-height: 560px;
  gap: clamp(2rem, 5vw, 5rem);
  margin-block: 1rem 4rem;
  padding: 2rem 0 3rem;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e7e8eb;
  border-radius: 0;
  background: #fff;
}
.hero-kicker { color: var(--beaubiz-muted); font-size: 0.7rem; letter-spacing: 0.16em; }
.hero-kicker span { background: var(--beaubiz-sea); box-shadow: 0 0 0 4px #e8ecf2; }
.home-hero h1 { max-width: 640px; color: #303844; font-size: clamp(3.1rem, 6.3vw, 5.8rem); line-height: 1.12; letter-spacing: -0.065em; }
.home-hero h1 em { color: var(--beaubiz-sea); }
.hero-intro { max-width: 530px; margin-block: 1.25rem 1.7rem; color: #687487; font-size: 1.08rem; line-height: 1.85; }
.hero-search { width: min(100%, 710px); min-height: 72px; gap: 0.7rem; border-color: #e2e5e9; border-radius: 15px; box-shadow: 0 14px 36px rgb(64 79 104 / 8%); }
.hero-search button { background: var(--beaubiz-navy); }
.hero-search-hints { margin-top: 0.85rem; color: var(--beaubiz-muted); }
.hero-search-hints a { border-color: #e1e5eb; color: var(--beaubiz-navy); }
.hero-search-hints a:hover { border-color: var(--beaubiz-muted); background: var(--beaubiz-cloud); }
.hero-visual { position: relative; min-width: 0; aspect-ratio: 1.2; overflow: visible; border-radius: 30px; background: var(--beaubiz-cloud); }
.hero-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.hero-visual-note { position: absolute; right: -20px; bottom: 28px; display: grid; gap: 0.35rem; min-width: 175px; padding: 1rem 1.15rem; border: 1px solid #e6e8eb; border-radius: 17px; background: rgb(255 255 255 / 96%); box-shadow: 0 18px 45px rgb(43 57 76 / 15%); }
.hero-visual-note span { color: var(--beaubiz-muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; }
.hero-visual-note strong { color: var(--beaubiz-navy); font-size: 1.14rem; line-height: 1.4; }
.hero-visual-caption { position: absolute; left: 1.25rem; bottom: 1.1rem; padding: 0.4rem 0.7rem; border-radius: 999px; background: rgb(48 61 83 / 76%); color: white; font-size: 0.68rem; backdrop-filter: blur(8px); }
.guest-email-helper { border-color: #e6e8eb; border-radius: 16px; background: var(--beaubiz-cloud); }
.guest-email-helper input { border-color: #d8dce2; }
.category-section { margin-block: 4rem 5rem !important; padding: clamp(1.25rem, 3vw, 2.5rem) !important; border-radius: 26px !important; background: var(--beaubiz-cloud) !important; }
.section-heading { align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-eyebrow { color: var(--beaubiz-muted); font-size: 0.66rem; letter-spacing: 0.16em; }
.section-heading h2 { color: #303844; font-size: clamp(1.55rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; }
.section-description { color: #687487; }
.category-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.65rem; }
.category-tile { position: relative; grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 126px; gap: 0.55rem; padding: 1rem 0.65rem; border: 1px solid #e1e4e8; border-radius: 17px; background: white; box-shadow: none; }
.category-tile:hover { transform: translateY(-3px); border-color: #aeb8c7; box-shadow: 0 10px 24px rgb(64 79 104 / 8%); }
.category-mark { width: 42px; height: 42px; border-color: #e3e7ed; border-radius: 14px; background: #f2f4f7; color: var(--beaubiz-navy); }
.category-label { color: var(--beaubiz-navy); font-size: 0.85rem; }
.category-eyebrow { color: var(--beaubiz-muted); font-size: 0.54rem; }
.category-arrow { color: #98a2b2; }
.text-link { color: var(--beaubiz-sea); }
.product-section, .catalog-results-section { margin-block: 4.5rem !important; }
.market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.market-card, .preview-product-card { border-color: #e4e7eb; border-radius: 20px; box-shadow: 0 7px 25px rgb(48 61 83 / 4%); }
.market-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgb(48 61 83 / 10%); }
.market-cover { aspect-ratio: 1.56; background: #e7ebf0; }
.market-cover img { object-fit: cover; }
.market-cover-placeholder { background: linear-gradient(145deg, #d9dfe8, #f2f2f2 58%, #c5cfdd); }
.market-card-copy { padding: 1.15rem 1.15rem 0.9rem; }
.market-card-eyebrow { color: var(--beaubiz-muted); }
.market-card-copy h3, .market-card-footer strong { color: var(--beaubiz-navy); }
.market-card-copy > p { color: #748095; }
.market-card-footer span { border-color: #e0e4e9; color: var(--beaubiz-sea); }
.market-add-form button { background: var(--beaubiz-navy); }
.preview-cover { background: linear-gradient(140deg, #404f68, #7a859d 55%, #b9c1d0); }
.preview-cover-2 { background: linear-gradient(140deg, #b9c1d0, #f2f2f2 52%, #7a859d); }
.preview-cover-3 { background: linear-gradient(140deg, #7a859d, #404f68 65%, #b9c1d0); }
.ebook-preview-cover { background: linear-gradient(140deg, #f2f2f2, #b9c1d0 52%, #7a859d); }
.preview-cover-word { color: #fff; font-weight: 700; letter-spacing: 0.08em; }
.preview-data-note { color: #7a859d; }
.empty-state { border-color: #e4e7eb; background: var(--beaubiz-cloud); }
.academy-section { grid-template-columns: 0.95fr 1.05fr; gap: 2rem; margin-block: 5rem 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); border: 0; border-radius: 28px; background: var(--beaubiz-navy); color: #fff; }
.academy-section .section-eyebrow { color: #b9c1d0; }
.academy-copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.academy-copy h2 span { color: #d4dbe5; }
.academy-copy > p:not(.section-eyebrow) { color: #e1e5eb; }
.academy-section .button-light { border-color: #fff; background: #fff; color: var(--beaubiz-navy); }
.learning-step { border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 7%); }
.learning-step > span { background: #b9c1d0; color: #303d53; }
.learning-step strong { color: white; }
.learning-step p { color: #d4dbe5; }
.homepage-bottom-note { color: #7a859d; }
.homepage-bottom-note span:first-child { color: var(--beaubiz-navy); }
.cookie-notice:not([hidden]) { border-color: #d8dce2; background: #fff; }
footer { color: #7a859d; }
footer a { color: var(--beaubiz-navy); }

@media (max-width: 900px) {
  .homepage-shell { width: min(100% - 2.5rem, 760px); }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr); gap: 1.5rem; min-height: 460px; }
  .home-hero h1 { font-size: clamp(2.8rem, 6vw, 4rem); }
  .hero-visual-note { right: -10px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-tile { min-height: 112px; }
}

@media (max-width: 640px) {
  header.site-header { width: calc(100% - 1.5rem); }
  .homepage-shell { width: calc(100% - 1.5rem); }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1.3rem; margin-block: 0.5rem 2rem; padding: 1rem 0 2rem; }
  .hero-kicker { font-size: 0.56rem; }
  .home-hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.13; }
  .hero-intro { margin: 0.85rem 0 1.1rem; font-size: 0.88rem; }
  .hero-search { min-height: 58px; gap: 0.25rem; padding: 0.3rem; }
  .hero-search input { min-height: 44px; font-size: 0.75rem; }
  .hero-search select { flex-basis: 68px; width: 68px; font-size: 0.7rem; }
  .hero-search button { min-height: 42px; padding-inline: 0.7rem; font-size: 0.75rem; }
  .hero-search-hints { flex-wrap: wrap; font-size: 0.66rem; }
  .hero-visual { width: calc(100% - 0.5rem); margin-inline: auto; aspect-ratio: 1.18; border-radius: 22px; }
  .hero-visual > img { border-radius: 22px; }
  .hero-visual-note { right: -8px; bottom: 16px; min-width: 125px; padding: 0.65rem 0.75rem; border-radius: 13px; }
  .hero-visual-note span { font-size: 0.48rem; }
  .hero-visual-note strong { font-size: 0.9rem; }
  .hero-visual-caption { left: 0.6rem; bottom: 0.65rem; max-width: 68%; font-size: 0.58rem; }
  .category-section { margin-block: 2.5rem 3rem !important; padding: 1rem !important; border-radius: 20px !important; }
  .section-heading { align-items: flex-start; gap: 0.6rem; margin-bottom: 1rem; }
  .section-heading h2 { font-size: 1.38rem; }
  .section-eyebrow { font-size: 0.58rem; }
  .text-link { max-width: 42%; font-size: 0.69rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .category-tile { min-height: 82px; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 0.5rem; padding: 0.55rem; border-radius: 13px; }
  .category-mark { width: 31px; height: 31px; grid-row: 1 / 3; border-radius: 10px; font-size: 0.95rem; }
  .category-label { align-self: end; font-size: 0.76rem; }
  .category-eyebrow { align-self: start; font-size: 0.47rem; }
  .product-section, .catalog-results-section { margin-block: 3.1rem !important; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.62rem; }
  .market-grid-featured, .preview-card-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-card-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-card, .preview-product-card { border-radius: 14px; }
  .market-cover { aspect-ratio: 1.2; }
  .market-card-copy { padding: 0.7rem 0.65rem 0.6rem; }
  .market-card-eyebrow { font-size: 0.55rem; }
  .market-card-copy h3 { font-size: 0.82rem; }
  .market-card-copy > p { font-size: 0.68rem; }
  .market-card-footer strong { font-size: 0.88rem; }
  .market-add-form { padding: 0 0.65rem 0.65rem; }
  .market-add-form button { min-height: 38px; font-size: 0.7rem; }
  .academy-section { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; margin-block: 3.4rem 1rem; padding: 1.3rem 1rem; border-radius: 20px; }
  .academy-copy h2 { font-size: 1.5rem; }
  .academy-copy > p:not(.section-eyebrow) { font-size: 0.8rem; }
  .learning-step { gap: 0.65rem; padding: 0.7rem; }
  .learning-step > span { width: 31px; height: 31px; flex-basis: 31px; }
  .learning-step strong { font-size: 0.78rem; }
  .learning-step p { font-size: 0.68rem; }
}

/* Shared readable type scale for BeauBiz storefront pages. */
:root {
  --beaubiz-text: #172b45;
  --beaubiz-text-muted: #52657a;
  --beaubiz-text-accent: #356d7d;
}
body {
  color: var(--beaubiz-text);
  font-size: 17px;
  line-height: 1.75;
}
button, .button, input, select, textarea { font: inherit; }
.site-header nav a { font-size: 16px; line-height: 1.5; }
.brand-legal { color: var(--beaubiz-text-muted); font-size: 14px; line-height: 1.55; }
.hero-kicker, .section-eyebrow { color: var(--beaubiz-text-accent); font-size: 14px; line-height: 1.6; letter-spacing: 0.08em; }
.home-hero h1 { font-size: clamp(52px, 4.35vw, 64px); line-height: 1.32; letter-spacing: -0.045em; overflow: visible; }
.home-hero h1 em { color: var(--beaubiz-text-accent); }
.hero-intro { color: var(--beaubiz-text-muted); font-size: 18px; line-height: 1.8; }
.hero-search input, .hero-search select, .hero-search button { font-size: 16px; }
.hero-search-hints { color: var(--beaubiz-text-muted); font-size: 15px; line-height: 1.6; }
.section-heading h2 { color: var(--beaubiz-text); font-size: clamp(30px, 2.5vw, 36px); line-height: 1.42; letter-spacing: -0.025em; overflow: visible; }
.section-description, .text-link { color: var(--beaubiz-text-muted); font-size: 17px; line-height: 1.7; }
.text-link { color: var(--beaubiz-text-accent); }
.category-label { color: var(--beaubiz-text); font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.category-eyebrow, .category-arrow { color: var(--beaubiz-text-muted); }
.market-card-eyebrow, .market-type-pill { font-size: 14px; line-height: 1.5; }
.market-card-copy h3 { color: var(--beaubiz-text); font-size: 21px; line-height: 1.55; overflow: visible; }
.market-card-copy > p { color: var(--beaubiz-text-muted); font-size: 17px; line-height: 1.65; }
.market-card-footer strong { color: var(--beaubiz-text); font-size: 23px; line-height: 1.5; }
.market-add-form button { font-size: 16px; line-height: 1.5; }
.account-context, .guest-email-helper p, .preview-data-note, .empty-state p,
.academy-copy > p:not(.section-eyebrow), .learning-step p, .homepage-bottom-note {
  color: var(--beaubiz-text-muted);
  font-size: 17px;
  line-height: 1.75;
}
.guest-email-helper strong, .learning-step strong { font-size: 17px; line-height: 1.55; }
.academy-section .section-eyebrow { color: #f0f3f7; }
.academy-copy h2 { font-size: clamp(30px, 2.5vw, 36px); line-height: 1.48; overflow: visible; }
.academy-copy h2 span { color: #e1e7ef; }
.academy-copy > p:not(.section-eyebrow), .learning-step p { color: #f0f3f7; }
.cookie-notice:not([hidden]) {
  max-width: 48rem;
  gap: 1rem;
  padding: 0.75rem 1rem;
  line-height: 1.55;
}
.cookie-notice strong { font-size: 16px; line-height: 1.5; }
.cookie-notice p { color: var(--beaubiz-text-muted); font-size: 16px; line-height: 1.6; }
.cookie-notice a { color: var(--beaubiz-text-accent); }
.cookie-notice button { min-height: 44px; font-size: 16px; line-height: 1.45; }
footer { color: var(--beaubiz-text-muted); font-size: 16px; line-height: 1.7; }

@media (min-width: 901px) {
  .home-hero h1 { font-size: clamp(52px, 4.35vw, 64px); }
}
@media (min-width: 641px) and (max-width: 900px) {
  body { font-size: 16px; }
  .site-header nav a { font-size: 16px; }
  .home-hero h1 { font-size: clamp(44px, 6vw, 52px); line-height: 1.35; }
  .hero-intro, .section-description, .market-card-copy > p,
  .account-context, .guest-email-helper p, .preview-data-note, .empty-state p,
  .academy-copy > p:not(.section-eyebrow), .learning-step p, .homepage-bottom-note { font-size: 16px; }
  .section-heading h2, .academy-copy h2 { font-size: 30px; }
  .category-label { font-size: 17px; }
  .market-card-copy h3 { font-size: 20px; }
  .market-card-footer strong { font-size: 22px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.75; }
  .site-header nav a { min-height: 2.55rem; font-size: 16px; }
  .brand-legal { font-size: 14px; }
  .hero-kicker, .section-eyebrow { font-size: 13px; line-height: 1.65; }
  .home-hero h1 { font-size: clamp(38px, 10.5vw, 44px); line-height: 1.38; letter-spacing: -0.035em; }
  .hero-intro { font-size: 16px; line-height: 1.8; }
  .hero-search input, .hero-search select, .hero-search button { font-size: 16px; }
  .hero-search-hints { font-size: 14px; line-height: 1.6; }
  .section-heading h2, .academy-copy h2 { font-size: 28px; line-height: 1.48; }
  .section-description, .text-link { font-size: 16px; line-height: 1.65; }
  .category-label { font-size: 17px; line-height: 1.55; }
  .market-card-eyebrow, .market-type-pill { font-size: 13px; }
  .market-card-copy h3 { font-size: 20px; line-height: 1.5; }
  .market-card-copy > p { min-height: 0; font-size: 16px; line-height: 1.6; }
  .market-card-footer strong { font-size: 22px; }
  .market-add-form button { min-height: 44px; font-size: 16px; }
  .account-context, .guest-email-helper p, .preview-data-note, .empty-state p,
  .academy-copy > p:not(.section-eyebrow), .learning-step p, .homepage-bottom-note { font-size: 16px; line-height: 1.7; }
  .guest-email-helper strong, .learning-step strong { font-size: 16px; }
  .learning-step { align-items: flex-start; }
  .cookie-notice:not([hidden]) {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.52fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
  }
  .cookie-notice > div { min-width: 0; }
  .cookie-notice strong { font-size: 16px; }
  .cookie-notice p { margin-top: 0.15rem; font-size: 16px; line-height: 1.55; }
  .cookie-notice button { width: 100%; min-width: 0; min-height: 48px; padding: 0.45rem; font-size: 16px; line-height: 1.45; white-space: normal; }
  footer { font-size: 16px; }
}

.search-prompt { margin: 0.85rem 0 0.45rem; color: var(--beaubiz-text-muted); font-size: 17px; line-height: 1.65; }
.support-tools-section { margin-block: 3.5rem !important; }
.support-tools-section .section-heading { margin-bottom: 1.15rem; }
.support-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.support-tool-card { min-width: 0; padding: 1.15rem; border: 1px solid #e4e7eb; border-radius: 18px; background: #fff; }
.support-tool-status { display: inline-block; color: var(--beaubiz-text-accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.support-tool-card h3 { margin: 0.4rem 0 0.25rem; color: var(--beaubiz-text); font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.support-tool-card p { margin: 0; color: var(--beaubiz-text-muted); font-size: 17px; line-height: 1.65; }
@media (min-width: 641px) and (max-width: 900px) {
  .support-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-tool-card p { font-size: 16px; }
}
@media (max-width: 640px) {
  .home-hero h1 { font-size: clamp(38px, 10vw, 42px); line-height: 1.4; }
  .search-prompt { margin-top: 0.65rem; font-size: 16px; line-height: 1.65; }
  .support-tools-section { margin-block: 2.6rem !important; }
  .support-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .support-tool-card { padding: 0.8rem 0.7rem; border-radius: 14px; }
  .support-tool-status { font-size: 12px; }
  .support-tool-card h3 { margin-top: 0.35rem; font-size: 18px; line-height: 1.5; }
  .support-tool-card p { font-size: 16px; line-height: 1.6; }
}

.homepage-shell .academy-section { background: var(--beaubiz-navy); }
.thank-you-reassurance,
.thank-you-email,
.thank-you-next-business { margin: 1.25rem 0; padding: 1.2rem; border: 1px solid #dbe7eb; border-radius: 1rem; background: #f7fafb; }
.thank-you-reassurance h2,
.thank-you-email h2,
.thank-you-next-business h2 { margin: 0 0 .5rem; color: #172b45; font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.4; }
.thank-you-reassurance p,
.thank-you-email p { margin: 0; color: #334a60; line-height: 1.75; overflow-wrap: anywhere; }
.thank-you-next-business { background: #fff; }
.thank-you-next-business-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .85rem; margin-top: .9rem; }
.thank-you-next-business-grid article { min-width: 0; padding: 1rem; border: 1px solid #dce6eb; border-radius: .8rem; background: #fbfdfe; }
.thank-you-next-business-grid h3 { margin: .5rem 0; color: #172b45; font-size: 1.15rem; }
.thank-you-next-business-grid p { color: #40566d; line-height: 1.7; overflow-wrap: anywhere; }
.thank-you-next-business-grid a { color: #315f7c; font-weight: 700; text-underline-offset: .15em; }
.thank-you-course-list { padding-left: 0; list-style: none; }
.thank-you-course-item { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.thank-you-course-cover { display: block; flex: 0 0 92px; width: 92px; height: 58px; border: 1px solid #dce5eb; border-radius: .55rem; background: #edf3f5; object-fit: cover; }
.thank-you-course-item > span { flex: 1 1 180px; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.thank-you-course-item > .button { margin-left: auto; }
@media (max-width: 480px) { .thank-you-course-cover { flex-basis: 76px; width: 76px; height: 50px; } .thank-you-course-item > .button { margin-left: 0; } }

header.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}
.brand-lockup { min-width: 0; }
.site-menu-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid #d5dbe4;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--beaubiz-navy);
}
.site-menu-toggle:focus-visible { outline: 3px solid #91afbd; outline-offset: 2px; }
.site-menu-icon { display: grid; gap: 5px; }
.site-menu-icon span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.header-actions { grid-column: 1 / -1; width: 100%; }
.site-header nav {
  display: none;
  width: min(100%, 560px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.55rem;
  border: 1px solid #e1e6ed;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 12px 28px rgb(23 43 69 / 10%);
}
.site-header nav[data-open="true"] { display: grid; }
.site-header nav a { width: 100%; min-height: 2.75rem; justify-content: center; padding-inline: 0.5rem; font-size: 0.92rem; }
.site-header nav [data-cart-link] { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .site-header nav { width: 100%; margin-left: 0; }
}

/* Homepage storefront refresh: desktop commerce header + compact swipeable shelves. */
@media (min-width: 981px) {
  header.site-header {
    display: flex;
    width: min(100% - 3rem, 1320px);
    min-height: 76px;
    align-items: center;
    gap: 1.5rem;
  }
  .brand-lockup { flex: 1 1 280px; max-width: 440px; }
  .site-menu-toggle { display: none; }
  .header-actions { width: auto; margin-left: auto; }
  .site-header nav,
  .site-header nav[data-open="true"] {
    display: flex;
    width: auto;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-header nav a {
    width: auto;
    min-height: 2.55rem;
    padding-inline: 0.7rem;
    font-size: 0.9rem;
  }
  .site-header nav .nav-login,
  .site-header nav .nav-account {
    margin-left: 0.25rem;
    border: 1px solid #cdd8e0;
    background: #fff;
  }
  .site-header nav [data-cart-link] {
    grid-column: auto;
    margin-left: 0.15rem;
    padding-inline: 0.9rem;
  }
}

.nav-cart { gap: 0.35rem; }
.nav-cart-count {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
  font-size: 0.76rem;
  line-height: 1;
}
.homepage-shell .home-hero h1 {
  font-size: clamp(2.25rem, 3.8vw, 3.35rem);
  line-height: 1.2;
}
.homepage-shell .hero-intro { font-size: 1rem; }
.homepage-shell .section-heading h2,
.homepage-shell .academy-copy h2 {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  line-height: 1.35;
}
.homepage-shell .section-description,
.homepage-shell .text-link { font-size: 0.95rem; }
.homepage-shell .product-section { margin-block: 3.25rem !important; }
.shelf-heading { margin-bottom: 1rem; }
.market-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 23vw, 300px);
  gap: 1rem;
  margin-inline: -0.2rem;
  padding: 0.2rem 0.2rem 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #b6c3cc transparent;
  scrollbar-width: thin;
}
.market-carousel > * { scroll-snap-align: start; }
.market-carousel .market-card,
.market-carousel .preview-product-card { height: 100%; }
.market-carousel .market-card { display: flex; flex-direction: column; }
.market-carousel .market-card-link { flex: 1 1 auto; }
.homepage-shell .market-cover { aspect-ratio: 16 / 9; }
.homepage-shell .market-card-course .market-cover { aspect-ratio: 16 / 9; background: #eef2f5; }
.homepage-shell .market-card-course .market-cover img { object-fit: contain; }
.homepage-shell .market-card-ebook .market-cover { aspect-ratio: 3 / 4; background: #f3f1ed; }
.homepage-shell .market-card-ebook .market-cover img { object-fit: contain; }
.homepage-shell .market-card-copy { padding: 0.85rem 0.9rem 0.7rem; }
.homepage-shell .market-card-eyebrow,
.homepage-shell .market-type-pill { font-size: 0.72rem; }
.homepage-shell .market-card-copy h3 {
  display: -webkit-box;
  margin-top: 0.25rem;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.homepage-shell .market-card-copy > p {
  min-height: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}
.homepage-shell .market-card-footer { margin-top: 0.45rem; }
.homepage-shell .market-card-footer strong { font-size: 1.05rem; }
.homepage-shell .market-add-form { padding: 0 0.9rem 0.85rem; }
.homepage-shell .market-add-form button,
.homepage-shell .market-guest-buy { font-size: 0.86rem; }
.market-coming-soon { display: grid; gap: 0.45rem; }
.market-coming-soon > span { color: #52657a; font-size: 0.78rem; font-weight: 700; }
.market-coming-soon > a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 0.35rem; border: 1px solid #cbd7df; border-radius: 0.55rem; color: var(--beaubiz-navy); font-weight: 700; text-decoration: none; }
.ebook-detail-cover { display: block; width: min(100%, 360px); aspect-ratio: 3 / 4; object-fit: contain; background: #f3f1ed; }
.ebook-coming-soon { max-width: 36rem; margin-block: 1rem; padding: 1rem; border: 1px solid #c9d9e2; border-radius: 0.8rem; background: #f1f6f8; }
.ebook-coming-soon strong { color: var(--beaubiz-navy); }
.ebook-coming-soon p { margin: 0.35rem 0 0; color: var(--beaubiz-muted); }

@media (max-width: 980px) {
  header.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }
  .site-menu-toggle { display: inline-grid; }
  .header-actions { grid-column: 1 / -1; width: 100%; }
  .site-header nav,
  .site-header nav[data-open="false"] { display: none; }
  .site-header nav[data-open="true"] {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header nav [data-cart-link] { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-legal { display: none; }
  .brand-name { font-size: 1.35rem; }
  .homepage-shell .home-hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.28;
  }
  .homepage-shell .hero-intro { font-size: 0.92rem; }
  .homepage-shell .section-heading h2,
  .homepage-shell .academy-copy h2 { font-size: 1.35rem; }
  .homepage-shell .section-description,
  .homepage-shell .text-link { font-size: 0.86rem; }
  .homepage-shell .product-section { margin-block: 2.6rem !important; }
  .market-carousel {
    grid-auto-columns: min(76vw, 270px);
    gap: 0.75rem;
    margin-right: -0.75rem;
    padding-bottom: 0.75rem;
  }
  .homepage-shell .market-cover { aspect-ratio: 16 / 9; }
  .homepage-shell .market-card-copy h3 { font-size: 0.96rem; }
  .homepage-shell .market-card-copy > p { font-size: 0.8rem; }
  .homepage-shell .market-card-footer strong { font-size: 1rem; }
  .homepage-shell .market-add-form button,
  .homepage-shell .market-guest-buy { min-height: 42px; font-size: 0.82rem; }
}
