/* ==========================================================================
   Dick Reuben theme. Direction A: "warm editorial".
   Parchment and ink, a gold accent from the logo's star, purple for action.
   Sections: fonts · tokens · base · layout · buttons & forms · header · footer ·
             page head · home · cards & grids · product · teaching · cart & checkout ·
             account & library · utilities
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens ------------------------------------------------------------- */
:root {
	--paper: #fbf7ef;
	--paper-2: #f3ebda;
	--white: #fff;
	--ink: #1f1a2e;
	--ink-2: #15111f;
	--text: #4a4458;
	--muted: #6f6780;
	--line: #e7dcc6;
	--gold: #b4872f;
	--gold-ink: #8a6319;
	--purple: #412385;
	--purple-dark: #321a69;
	--success: #2f7a4a;
	--danger: #a8322a;

	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;

	--wrap: 1200px;
	--wrap-stacked: 580px; /* below 960px everything is one column, capped at this width and centred */
	--gutter: clamp(16px, 5vw, 48px);
	--radius: 2px;
	--shadow-cover: 0 18px 30px -18px rgb(31 26 46 / .5);
	--section: clamp(56px, 8vw, 104px);
}

/* ---- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h3, h4 { font-weight: 600; }
p, ul, ol, table, dl { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
::selection { background: var(--paper-2); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; }
.skip-link:focus { left: 8px; }

/* ---- layout ------------------------------------------------------------- */
.wrap, .container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (max-width: 959px) {
	.wrap, .container, .wrap--narrow { max-width: var(--wrap-stacked); }
	.site-nav { padding-inline: max(var(--gutter), (100% - var(--wrap-stacked)) / 2); } /* drop-down menu lines up with the content */
}
.wrap--narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--rule { border-top: 1px solid var(--line); }
.main-pad { padding-block: 40px var(--section); }
.entry { max-width: 72ch; }
.entry h2 { font-size: 30px; margin-top: 1.4em; }
.entry h3 { font-size: 21px; margin-top: 1.4em; }
.entry > :first-child { margin-top: 0; }
.kicker { font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 36em; }

/* ---- buttons & forms ---------------------------------------------------- */
.btn, .button, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 26px;
	border: 2px solid var(--purple); border-radius: var(--radius);
	background: var(--purple); color: var(--white);
	font: 600 15px/1.2 var(--sans); text-align: center; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--purple); border-color: var(--purple); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #c7993e; border-color: #c7993e; color: var(--ink); }
.btn--give { min-height: 40px; padding: 8px 18px; font-size: 14px; background: transparent; color: var(--gold-ink); border: 1px solid var(--gold); }
.btn--give:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.button.disabled, .button:disabled, button:disabled, .button.loading { opacity: .55; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); color: var(--ink);
	font: 16px/1.4 var(--sans);
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgb(65 35 133 / .14); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--purple); width: 18px; height: 18px; }
/* WooCommerce's show-password toggle (woocommerce.js wraps password inputs in .password-input). */
.password-input { position: relative; display: block; }
.password-input input { padding-right: 52px; }
.show-password-input {
	position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
	width: 44px; height: 40px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer;
}
.show-password-input::before {
	content: ""; display: block; width: 20px; height: 20px; margin: auto; background: currentColor;
	-webkit-mask: var(--eye) center / contain no-repeat; mask: var(--eye) center / contain no-repeat;
	--eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.show-password-input.display-password::before {
	--eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7c2 0 3.7.7 5.1 1.6M22 12s-3.6 7-10 7c-2 0-3.7-.7-5.1-1.6'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}
.show-password-input:hover, .show-password-input:focus-visible { color: var(--purple); }
.show-password-input:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.field { margin-bottom: 18px; }
.field--inline label { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; }

/* ---- header ------------------------------------------------------------- */
.site-header { position: relative; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-logo img { width: 128px; height: auto; }
.site-nav { margin-inline: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav__list a { color: var(--ink); font-weight: 500; font-size: 15px; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list a[aria-current] { color: var(--purple); border-bottom-color: var(--gold); }
.site-nav__extra { display: none; }
.site-header__tools { display: flex; align-items: center; gap: 16px; }
.header-link { color: var(--ink); font-weight: 500; font-size: 15px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px; background: none; border: 0; color: var(--ink); cursor: pointer; font: 500 15px var(--sans); min-height: 0; }
.icon-btn:hover { color: var(--purple); background: none; }
.header-cart { position: relative; display: inline-flex; padding: 6px; color: var(--ink); }
.cart-count { position: absolute; top: -2px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--purple); color: var(--white); font: 700 10px/17px var(--sans); text-align: center; }
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; }
.search-overlay { border-top: 1px solid var(--line); background: var(--paper); padding-block: 20px; }

@media (max-width: 959px) {
	.nav-toggle { display: inline-flex; }
	.header-link--account, .site-header__tools .btn--give { display: none; }
	.site-header__tools { margin-left: auto; }
	.site-nav { display: none; position: absolute; inset: 100% 0 auto; margin: 0; padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgb(31 26 46 / .3); }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list li { border-bottom: 1px solid var(--line); }
	.site-nav__list a { display: block; padding: 14px 0; border: 0; font-size: 17px; }
	.site-nav__extra { display: grid; gap: 10px; margin-top: 18px; }
}

/* sign-in dialog */
.login-dialog { width: min(440px, 100% - 32px); padding: 40px 32px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); box-shadow: 0 30px 80px rgb(21 17 31 / .35); overflow: hidden; }
.login-dialog::backdrop { background: rgb(21 17 31 / .6); }
.login-dialog h2 { text-align: center; font-size: 30px; margin-bottom: 4px; }
.login-dialog__lede { text-align: center; color: var(--muted); margin-bottom: 24px; }
.login-dialog__close { position: absolute; top: 10px; right: 10px; }
.login-dialog__links { text-align: center; margin: 16px 0 24px; font-size: 14px; }
.login-dialog__footer { margin: 0 -32px; padding: 18px; background: var(--paper-2); text-align: center; font-size: 14px; }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--ink-2); color: #b9b2c9; padding-top: 72px; font-size: 16px; }
.site-footer a { color: #e9e4f2; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__inner { display: grid; gap: 48px; padding-bottom: 48px; }
@media (min-width: 960px) { .site-footer__inner { grid-template-columns: 4fr 6fr; } }
.site-footer__name { font: 700 22px/1.2 var(--serif); color: var(--white); margin-bottom: 10px; }
.site-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.site-footer__heading { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .btn--give { margin-top: 8px; color: var(--gold); }
.site-footer .btn--give:hover { color: var(--ink); text-decoration: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px 28px; border-top: 1px solid #2c2540; font-size: 14px; }
.site-footer__bottom p { margin: 0; }

/* ---- page head ----------------------------------------------------------- */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: clamp(34px, 4.6vw, 56px); margin: 0; }
.page-head__lede { margin: 14px 0 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs__sep { margin-inline: 8px; color: var(--gold); }

/* ---- home ---------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 6fr 5fr; gap: 72px; } }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 30%; border-radius: 999px 999px 4px 4px; box-shadow: 0 30px 60px -30px rgb(31 26 46 / .5); }
@media (max-width: 959px) { .hero__media img { aspect-ratio: 1; max-height: 420px; } }

.ways { border-block: 1px solid var(--line); padding-block: 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.way h2 { font-size: 21px; margin-bottom: 6px; }
.way p { margin: 0; font-size: 16px; }
.way__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-ink); font-size: 18px; }
.way__icon .icon { width: 18px; height: 18px; }

.feature__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .feature__inner { grid-template-columns: 5fr 7fr; } }
.feature__cover img { width: min(380px, 100%); margin-inline: auto; box-shadow: 0 40px 60px -30px rgb(31 26 46 / .55); transform: rotate(-2deg); }
.feature h2 { font-size: clamp(32px, 4vw, 48px); }
.parts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: part; }
.parts li { display: flex; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; counter-increment: part; }
.parts li::before { content: counter(part, decimal-leading-zero); font: 600 13px var(--sans); color: var(--gold-ink); }
.price-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.price-chip { display: inline-flex; gap: 12px; align-items: center; padding: 12px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 500; }
.price-chip:hover { border-color: var(--purple); color: var(--ink); }
.price-chip strong { color: var(--purple); }

.about__inner { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about__inner { grid-template-columns: 5fr 7fr; } }
.about__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.about h2 { font-size: clamp(34px, 4vw, 52px); }
.pull { font: italic 400 clamp(21px, 2.2vw, 26px)/1.4 var(--serif); color: var(--ink); margin: 8px 0 24px; padding-left: 22px; border-left: 3px solid var(--gold); }

.give { background: var(--ink); color: #d9d3e6; }
.give__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .give__inner { grid-template-columns: 1fr 2fr; } }
.give h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 44px); }
.give__img { width: 100%; max-height: 360px; object-fit: cover; opacity: .9; }

.contact__inner { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact__inner { grid-template-columns: 5fr 7fr; } }
.contact h2 { font-size: clamp(30px, 3.6vw, 44px); }
.form-card { background: var(--white); padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); }
.fluentform .ff-el-form-control { border-radius: var(--radius) !important; border-color: var(--line) !important; min-height: 48px; }
.fluentform .ff-btn-submit { background: var(--purple) !important; border-radius: var(--radius) !important; min-height: 48px; padding-inline: 28px !important; font-weight: 600 !important; }

/* ---- cards & grids --------------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px 28px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 40vw), 1fr)); }
.card { display: flex; flex-direction: column; }
.card__cover { display: block; }
.card__cover img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: var(--paper-2); box-shadow: var(--shadow-cover); transition: transform .2s; }
.card__cover:hover img { transform: translateY(-4px); }
.card__title { font: 700 17px/1.3 var(--serif); margin: 16px 0 6px; }
.card__title a { color: var(--ink); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0; font-size: 14px; }
.card__meta > :first-child { margin-right: auto; }
.tag { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; color: var(--gold-ink); border: 1px solid var(--line); background: var(--white); }
.tag--owned { color: var(--success); border-color: #cfe3d5; }

.woocommerce-pagination ul, .woocommerce-pagination ul.page-numbers { list-style: none; display: flex; border: 0; height: auto; gap: 6px; justify-content: center; padding: 0; margin-top: 48px; }
.woocommerce-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); color: var(--ink); }
.woocommerce-pagination .current { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* ---- product --------------------------------------------------------------- */
.amazon-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 600; }
.related { padding-block: var(--section); border-top: 1px solid var(--line); }

/* ---- teaching (video page) --------------------------------------------------- */
.teaching { display: grid; gap: 40px; padding-block: 32px var(--section); }
@media (min-width: 960px) {
	.teaching { grid-template-columns: minmax(0, 8fr) minmax(260px, 3fr); }
	.teaching__body { grid-column: 1 / -1; }
}
.teaching__body { width: 100%; max-width: 760px; justify-self: center; }
.teaching__body .teaching__title { margin-top: 8px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.teaching__part { margin-bottom: 8px; }
.teaching__part[hidden] { display: none; }
.teaching__now { font: 600 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin: 16px 0 4px; }
.teaching__part-title { font: 700 24px/1.25 var(--serif); margin: 0; }
.teaching__cover { text-align: center; }
.teaching__cover img { display: inline-block; width: min(260px, 55%); box-shadow: var(--shadow-cover); margin-bottom: 24px; }
.teaching__buy-video { margin-bottom: 20px; }
.teaching__buy-video .icon { width: 16px; height: 16px; }
.teaching__audio { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.teaching__audio p { font-size: 15px; margin-bottom: 12px; }
.amazon-link .icon, .teaching__audio .icon { width: 18px; height: 18px; }
.playlist button:disabled { opacity: 1; cursor: default; color: var(--text); }
.playlist button:disabled:hover { background: none; color: var(--text); }
.collection-cue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 28px; margin-bottom: 48px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.collection-cue h2 { font-size: 24px; margin: 0 0 4px; }
.collection-cue p { margin: 0; }
.collection { margin-bottom: 64px; padding: clamp(20px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 24px; }
.collection .section-head { margin-top: 0; }
.collection .lede { margin-bottom: 0; }
.collection .shelf { gap: 32px 20px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 34vw), 1fr)); } /* two columns on phones despite the padding */
.teaching__aside h2 { font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.playlist { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid var(--line); }
.playlist li { border-bottom: 1px solid var(--line); }
.playlist button { display: flex; gap: 12px; width: 100%; min-height: 0; padding: 14px 4px; background: none; border: 0; border-radius: 0; text-align: left; font: 500 15px/1.35 var(--sans); color: var(--ink); cursor: pointer; }
.playlist button:hover { background: var(--white); color: var(--purple); }
.playlist button::before { content: attr(data-n); font: 600 13px var(--sans); color: var(--gold-ink); min-width: 22px; padding-top: 1px; }
.playlist button[aria-current="true"] { color: var(--purple); font-weight: 700; }
.teaching__title { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 16px; }
.locked { display: grid; place-items: center; text-align: center; min-height: 360px; aspect-ratio: 16 / 9; padding: 32px; background: var(--ink); color: #d9d3e6; }
.locked h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); }
.locked .icon { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 12px; }
.locked .btn { margin: 6px; }
.locked a:not(.btn) { color: var(--gold); }
@media (max-width: 600px) { .locked { aspect-ratio: auto; } }

/* ---- WooCommerce: notices, cart, checkout --------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 24px; padding: 14px 18px;
	background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
	color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.woocommerce-message { border-left-color: var(--success); }
.woocommerce-error { border-left-color: var(--danger); display: block; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 38px; padding: 6px 16px; font-size: 14px; }
.price { color: var(--ink); font-weight: 600; }
.price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price ins { text-decoration: none; }
.star-rating, .woocommerce-product-rating { display: none; }

table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 16px; background: var(--white); border: 1px solid var(--line); }
table.shop_table th { text-align: left; padding: 14px 16px; font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table .product-thumbnail img { width: 56px; box-shadow: var(--shadow-cover); }
table.shop_table .product-name a { color: var(--ink); font-weight: 600; }
table.shop_table .product-remove a { font-size: 22px; color: var(--muted); }
table.shop_table .product-quantity .qty { width: 72px; text-align: center; }
table.shop_table td.actions { text-align: right; background: var(--paper); }
.variation { font-size: 14px; color: var(--muted); margin: 4px 0 0; display: flex; gap: 6px; }
.variation dt, .variation dd, .variation p { margin: 0; font-weight: 400; }
@media (max-width: 767px) {
	table.shop_table_responsive, table.shop_table_responsive tbody { display: block; width: 100%; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive td.product-name { flex-wrap: wrap; }
	table.shop_table_responsive td.actions { display: block; text-align: left; padding: 12px 0; background: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 12px; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; text-align: right; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; color: var(--ink); }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.actions::before, table.shop_table_responsive td.product-thumbnail::before { content: none; }
}

/* Checkout: two columns via floats. WooCommerce injects extra hidden children into form.checkout, which
   breaks a grid's row placement; floats stack the order heading + review regardless. */
@media (min-width: 960px) {
	form.checkout { display: flow-root; }
	form.checkout > .col2-set { float: left; width: 55%; }
	form.checkout > #order_review_heading, form.checkout > #order_review { float: right; clear: right; width: 40%; }
	form.checkout > #order_review_heading { margin-top: 0; }
}
form.checkout h3, #order_review_heading { font: 700 26px/1.2 var(--serif); color: var(--ink); }
.col2-set .col-2:empty { display: none; }
.form-row { margin: 0 0 18px; }
.form-row .required { color: var(--danger); text-decoration: none; }
.form-row .optional { color: var(--muted); font-weight: 400; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-wide, .woocommerce-billing-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
#order_review { background: var(--white); border: 1px solid var(--line); padding: 24px; }
#order_review table.shop_table { border: 0; }
#order_review table.shop_table th, #order_review table.shop_table td { padding-inline: 0; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
#payment ul.payment_methods > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods label { display: inline; margin-left: 8px; }
#payment .payment_box { background: var(--paper); padding: 12px 16px; margin: 12px 0 0; font-size: 14px; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.woocommerce-form-login-toggle .woocommerce-info, .woocommerce-form-coupon-toggle .woocommerce-info { display: block; }
.select2-container .select2-selection--single { height: 48px !important; border-color: var(--line) !important; border-radius: var(--radius) !important; display: flex !important; align-items: center; }
.select2-container .select2-selection__arrow { height: 46px !important; }
.woocommerce-order-overview { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 32px; }
.woocommerce-order-overview li { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.woocommerce-order-overview strong { display: block; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }

/* ---- account & library -------------------------------------------------------- */
.woocommerce-account .woocommerce { display: grid; gap: 40px; }
@media (min-width: 960px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 220px minmax(0, 1fr); } }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 500; border-left: 2px solid transparent; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--purple); border-left-color: var(--gold); background: var(--white); }
.woocommerce-MyAccount-navigation a:hover { color: var(--purple); }
@media (max-width: 959px) {
	.woocommerce-MyAccount-navigation ul { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 10px 12px; }
	.woocommerce-MyAccount-navigation .is-active a { border-bottom-color: var(--gold); background: none; }
}
.woocommerce-Addresses { display: grid; gap: 24px; }
@media (min-width: 960px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-orders-table .button, .woocommerce-table--order-downloads .button { min-height: 36px; padding: 6px 14px; font-size: 13px; }


#customer_login { display: grid; gap: 24px; }
@media (min-width: 960px) { #customer_login { grid-template-columns: 1fr 1fr; } }
#customer_login > div { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 4vw, 32px); }
#customer_login h2 { font-size: 30px; }
.woocommerce-form-login__submit, .woocommerce-form-register__submit { width: 100%; margin-top: 8px; }
.woocommerce-form-login__rememberme { display: flex; gap: 8px; align-items: center; font-weight: 500; margin-bottom: 12px; }
.lost_password { text-align: center; font-size: 14px; margin-top: 12px; }

/* ---- utilities ------------------------------------------------------------------ */
.icon { flex: none; }
.muted { color: var(--muted); }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form .btn { flex: none; }

/* ---- cart (theme template woocommerce/cart/cart.php) ---------------------------- */
.cart-page { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .cart-page { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.cart-lines__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line__thumb img { width: 72px; height: auto; box-shadow: var(--shadow-cover); }
.cart-line__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cart-line__name { font: 700 18px/1.3 var(--serif); color: var(--ink); }
.cart-line__format { font-size: 14px; color: var(--muted); }
.cart-line__remove { margin-top: 8px; font-size: 14px; color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }
.cart-line__price { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-coupon { margin-top: 20px; font-size: 15px; }
.cart-coupon summary { cursor: pointer; color: var(--purple); font-weight: 500; }
.cart-coupon__row { display: flex; gap: 8px; margin-top: 12px; max-width: 420px; }
.cart-coupon__row .btn { flex: none; }
.cart-summary { background: var(--white); border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; }
@media (min-width: 960px) { .cart-summary { position: sticky; top: 24px; } }
.cart-summary__rows { margin: 0 0 8px; display: grid; gap: 10px; }
.cart-summary__rows > div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary__rows dt { font-weight: 500; color: var(--ink); }
.cart-summary__rows dd { margin: 0; }
.cart-summary__discount dd { color: var(--success); }
.cart-summary__total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 19px; }
.cart-summary__total dt, .cart-summary__total dd { font-weight: 700; color: var(--ink); }
.cart-summary .checkout-button { width: 100%; min-height: 56px; font-size: 16px; margin: 0; }
.cart-summary .wc-proceed-to-checkout { display: grid; gap: 10px; }
.cart-summary__note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cart-more { margin-top: var(--section); padding-top: 48px; border-top: 1px solid var(--line); display: grid; gap: 56px; }
.cart-more h2 { font-size: clamp(26px, 3vw, 34px); }
.card__adds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card__adds .btn { min-height: 34px; padding: 6px 10px; font-size: 13px; }
@media (max-width: 600px) {
	.cart-line { grid-template-columns: 60px 1fr auto; gap: 14px; }
	.cart-line__thumb img { width: 60px; }
}
.woocommerce-notices-wrapper [tabindex="-1"]:focus { outline: none; }
.checkout-final { font-size: 14px; color: var(--ink); background: var(--paper); border-left: 3px solid var(--gold); padding: 10px 14px; margin: 0 0 14px; }

/* In-place adds from "More teachings" (main.js) */
.cart-more .card { transition: opacity .25s, transform .25s; }
.cart-more .card.is-leaving { opacity: 0; transform: translateY(-8px) scale(.97); }
.cart-more .card.is-entering { animation: dr-fade-up .35s ease-out both; }
.cart-line.is-new { animation: dr-highlight 1.6s ease-out both; }
@keyframes dr-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dr-highlight { 0% { background: #f6ecd2; opacity: 0; transform: translateY(-6px); } 20% { opacity: 1; transform: none; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cart-more .card, .cart-more .card.is-entering, .cart-line.is-new { animation: none; transition: none; } }
.cart-more { overflow-anchor: none; }
#order_review .product-quantity { display: none; }
.cart-empty-state { padding: 40px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.cart-empty-state .lede { margin-inline: auto; font: 700 28px/1.2 var(--serif); color: var(--ink); }
.breadcrumbs-bar { padding-top: 32px; }
.locked__signin { margin: 16px 0 0; }
.search-page__form { margin-bottom: 40px; }
.feature { margin-top: var(--section); }
.about__media { margin: 0; }
