/* ==========================================================================
   CM Publishing — theme.css
   ========================================================================== */

:root {
	--font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', 'Helvetica Neue', sans-serif;

	--radius: 0.25rem;
	--shadow-soft: 0 6px 24px -8px hsl(221 47% 20% / 0.10);
	--shadow-elevated: 0 16px 44px -12px hsl(221 47% 20% / 0.22);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--btn-radius: 0;
	--btn-height: 3.5rem;
	--btn-padding: 0 2.25rem;
	--btn-font-size: 14px;
	--btn-font-weight: 700;
	--btn-letter-spacing: 0.18em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.65rem;

	--header-height: 100px;
	--announcement-height: 40px;
	--wp-admin-bar-height: 0px;
	--section-padding: 2rem;
	--card-radius: 0.25rem;
	--checkout-gap: 2rem;

	--gold-gradient: linear-gradient(135deg, #E8D5A3 0%, #C9A227 45%, #9C7A1A 100%);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: 0.005em;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
html { scroll-behavior: smooth; }

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.theme-product-main-image__img):not(.site-logo-img):not(.cta-strip__img):not(.category-tile__img):not(.author-card__img):not(.about-section__image):not(.book-cover-3d__img):not(.theme-cart-item__img) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.container-wide { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-editorial { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 1023px) {
	.site-footer__inner.container-wide,
	.theme-search-dialog__inner.container-wide { padding-inline: 2rem; }
}
@media (min-width: 1024px) {
	.container-wide, .container-editorial { padding: 0 2.5rem; }
}

.text-gold-gradient {
	background: var(--gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.bg-gold-gradient { background: var(--gold-gradient); }
.stroke-gold-gradient { stroke: url(#gold-gradient); }

/* ===== Buttons ===== */
.btn-gold, .btn-primary, .btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	height: var(--btn-height);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	font-family: var(--font-body);
	transition: transform 0.3s var(--transition-smooth), opacity 0.2s ease;
	border: none;
	border-radius: 0;
	white-space: nowrap;
}
.btn-gold { background: var(--gold-gradient); color: var(--color-accent-foreground); }
.btn-gold:hover { transform: scale(1.04); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary:hover { transform: scale(1.03); }
.btn-outline { background: transparent; color: var(--color-foreground); border: 1px solid var(--color-foreground); }
.btn-outline:hover { background: var(--color-foreground); color: var(--color-background); }
.btn-primary-sm {
	display: inline-flex; align-items: center; gap: 0.5rem;
	height: 3rem; padding: 0 1.5rem; background: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; border-radius: 2px;
	transition: transform 0.3s var(--transition-smooth);
}
.btn-primary-sm:hover { transform: scale(1.03); }

.cm-shimmer { position: relative; overflow: hidden; }
.cm-shimmer::after {
	content: '';
	position: absolute; top: 0; left: -120%; width: 80%; height: 100%;
	background: linear-gradient(100deg, transparent, hsl(46 80% 80% / 0.55), transparent);
	transform: skewX(-18deg);
	transition: left 0.7s var(--transition-smooth);
	pointer-events: none;
}
.cm-shimmer:hover::after { left: 130%; }

.cm-glow:hover { box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--color-accent) 50%, transparent); }

.cm-label {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
	font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600;
	color: var(--color-accent); font-family: var(--font-body);
}
.cm-label::before, .cm-label::after { content: ''; display: block; width: 2.5rem; height: 1px; background: color-mix(in srgb, var(--color-accent) 60%, transparent); }
.section-label { display: flex; align-items: center; justify-content: center; gap: 0.625rem; margin-bottom: 1.25rem; }

/* ===== Section headings (Section 2.2.5 per-section scale) ===== */
.section-heading { font-family: var(--font-display); font-weight: 700; text-align: center; color: var(--color-foreground); margin-bottom: 3rem; }
.category-section__heading, .author-section__heading, .highlights-section__heading, .publish-section__heading { font-size: 1.875rem; margin-bottom: 3rem; }
.shop-heading { font-size: 1.875rem; margin-bottom: 3rem; }
.about-section__heading { font-size: 1.875rem; text-align: left; margin-bottom: 2rem; }
.contact-title { font-size: 1.875rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) {
	.category-section__heading, .author-section__heading, .highlights-section__heading, .publish-section__heading, .shop-heading, .contact-title { font-size: 3rem; }
	.about-section__heading { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
	.about-section__heading { font-size: 3rem; }
	.contact-title { font-size: 3rem; }
}

.badge-gold {
	display: inline-flex; align-items: center; padding: 0.5rem 1rem; border-radius: 2px;
	background: var(--gold-gradient); color: var(--color-accent-foreground);
	font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.5rem;
}
.badge-navy {
	display: inline-flex; align-items: center; padding: 0.4rem 0.8rem; border-radius: 2px;
	background: var(--color-primary); color: var(--color-primary-foreground);
	font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.badge-navy--sm { font-size: 11px; padding: 0.3rem 0.6rem; }

/* ===== Animations (Section 2.1) ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cm-slow-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.animate-fade-in { animation: fadeIn 0.8s var(--transition-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.8s var(--transition-smooth) forwards; }
.cm-slow-zoom { animation: cm-slow-zoom 16s ease-out forwards; }

.reveal-item { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
body.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.reveal-item { transition: none; opacity: 1; transform: none; }
	.cm-slow-zoom, .cm-shimmer::after { animation: none; }
}

/* ===== Announcement bar ===== */
body.admin-bar { --wp-admin-bar-height: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar { --wp-admin-bar-height: 46px; }
}

.theme-announcement { position: fixed; top: var(--wp-admin-bar-height, 0px); left: 0; right: 0; z-index: 60; background: var(--color-primary); color: var(--color-primary-foreground); }
.theme-announcement__inner { display: flex; align-items: center; justify-content: center; min-height: 2rem; padding: 0.375rem 2rem; position: relative; }
.theme-announcement__text { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; text-align: center; }
.theme-announcement__close { position: absolute; right: 0.5rem; padding: 0.25rem; opacity: 0.8; }
.theme-announcement__close:hover { opacity: 1; }

/* ===== Header ===== */
.site-header {
	position: fixed; top: calc(var(--wp-admin-bar-height, 0px) + var(--announcement-height, 40px)); left: 0; right: 0; z-index: 50;
	background: var(--color-background); border-bottom: 1px solid var(--color-border);
	color: var(--color-foreground); transition: all 0.5s ease;
	backdrop-filter: blur(6px);
}
.site-header__nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 80px; }
@media (min-width: 1024px) { .site-header__nav { height: 100px; } }
.site-header__mobile-toggle { display: flex; align-items: center; flex: 1; }
.theme-hamburger { display: flex; flex-direction: column; gap: 6px; padding: 0.75rem; }
.theme-hamburger span { display: block; width: 24px; height: 2.5px; background: var(--color-foreground); border-radius: 1px; transition: all 0.3s ease; }
@media (min-width: 1024px) { .site-header__mobile-toggle { display: none; } }

.site-header__logo { display: flex; align-items: center; gap: 0.5rem; position: absolute; left: 50%; transform: translateX(-50%); max-height: 100%; overflow: hidden; }
@media (min-width: 1024px) { .site-header__logo { position: static; transform: none; flex: 1; justify-content: flex-start; } }
.site-header .site-logo-img {
	height: calc(var(--logo-height, 56px) * 0.714) !important;
	max-height: calc(var(--logo-height, 56px) * 0.714) !important;
	width: auto !important;
	max-width: 12rem !important;
	display: block;
	object-fit: contain;
	flex-shrink: 0;
}
@media (min-width: 1024px) {
	.site-header .site-logo-img {
		height: var(--logo-height, 56px) !important;
		max-height: var(--logo-height, 56px) !important;
	}
}
.site-footer__logo .site-logo-img { height: 3.5rem; max-height: 3.5rem; width: auto; object-fit: contain; }
@media (min-width: 1024px) { .site-footer__logo .site-logo-img { height: 4rem; } }
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--color-foreground); }
.site-logo-text--secondary { margin-left: 0.5rem; }

.site-header__desktop-nav { display: none; }
@media (min-width: 1024px) { .site-header__desktop-nav { display: flex; align-items: center; justify-content: center; gap: 2.25rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 2.25rem; }
.theme-nav-list .nav-link, .nav-link {
	font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
	color: var(--color-foreground); transition: color 0.3s ease;
}
.theme-nav-list .nav-link:hover, .nav-link:hover { color: var(--color-accent); }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex: 1; justify-content: flex-end; }
.theme-icon-btn { position: relative; padding: 0.5rem; transition: opacity 0.3s ease; }
.theme-icon-btn:hover { opacity: 0.7; }
.theme-cart-toggle .theme-cart-count {
	position: absolute; top: -2px; right: -2px; width: 20px; height: 20px;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 600; background: var(--gold-gradient); color: var(--color-accent-foreground);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

/* ===== Mobile menu ===== */
.theme-mobile-menu {
	position: fixed; top: var(--wp-admin-bar-height, 0px); left: 0; height: calc(100% - var(--wp-admin-bar-height, 0px)); width: 86vw; max-width: 24rem;
	background: var(--color-background); border-right: 1px solid var(--color-border);
	z-index: 90; display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform 0.35s var(--transition-smooth);
}
body.mobile-menu-open .theme-mobile-menu { transform: translateX(0); }
.theme-mobile-menu-overlay {
	position: fixed; inset: 0; background: color-mix(in srgb, var(--color-foreground) 30%, transparent);
	z-index: 85; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.mobile-menu-open .theme-mobile-menu-overlay { opacity: 1; pointer-events: auto; }
.theme-mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 80px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent); flex-shrink: 0; }
.theme-mobile-menu__nav { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }
.theme-mobile-nav-list,
.theme-mobile-menu__nav .theme-nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.theme-mobile-nav-list li,
.theme-mobile-menu__nav .theme-nav-list li { border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent); }
.theme-mobile-nav-list a,
.theme-mobile-menu__nav .theme-nav-list a { display: block; padding: 1rem 0.75rem; font-family: var(--font-display); font-size: 1.125rem; color: var(--color-foreground); letter-spacing: normal; text-transform: none; }
.theme-mobile-nav-list a:hover,
.theme-mobile-menu__nav .theme-nav-list a:hover { color: var(--color-accent); }

/* ===== Search dialog ===== */
.theme-search-dialog { position: fixed; inset: 0; z-index: 80; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.theme-search-dialog.is-open { opacity: 1; pointer-events: auto; }
.theme-search-dialog__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 40%, transparent); backdrop-filter: blur(2px); border: none; }
.theme-search-dialog__panel { position: relative; background: var(--color-background); width: 100%; max-height: 92vh; overflow-y: auto; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-elevated); }
.theme-search-dialog__close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 10; }
.theme-search-dialog__inner { padding-block: 2.5rem; }
.theme-search-dialog__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .theme-search-dialog__grid { grid-template-columns: 260px 1fr; gap: 4rem; } }
.theme-search-dialog__categories h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.theme-search-dialog__categories ul { display: flex; flex-direction: column; gap: 0.875rem; }
.theme-search-cat-link { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.theme-search-cat-link:hover { color: var(--color-primary); }
.theme-search-dialog__field { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground) 30%, transparent); padding-bottom: 0.75rem; }
#theme-search-input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-foreground); }
.theme-search-dialog__results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .theme-search-dialog__results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .theme-search-dialog__results-grid { grid-template-columns: repeat(4, 1fr); } }
.theme-search-dialog__result { display: block; }
.theme-search-dialog__result img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--color-secondary); }
.theme-search-dialog__result span { display: block; margin-top: 0.75rem; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.theme-search-dialog__results h4 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--color-foreground); }
.theme-search-dialog__result-price { display: block; margin-top: 0.25rem; font-size: 12px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); letter-spacing: normal; text-transform: none; }
.theme-search-dialog__no-results { font-size: 14px; color: var(--color-muted-foreground); margin-top: 2.5rem; }

/* ===== Hero ===== */
.hero-section { position: relative; width: 100%; min-height: 100vh; overflow: hidden; }
.hero-section__video, .hero-section__fallback-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-section__fallback-img { display: none; }
.hero-section__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.80) 100%); }
.hero-section__content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 6rem; }
@media (min-width: 768px) { .hero-section__content { padding-top: 8rem; } }
.hero-section__inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.hero-section__title { font-weight: 700; color: var(--color-primary-foreground); font-size: 2.6rem; line-height: 1.02; margin-bottom: 1.5rem; }
@media (min-width: 480px) { .hero-section__title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 5.5rem; } }
.hero-section__subtitle { color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent); font-size: 16px; line-height: 1.6; max-width: 36rem; margin: 0 auto 2.25rem; }
@media (min-width: 768px) { .hero-section__subtitle { font-size: 18px; } }

/* homepage: no top padding under fixed header (Section 22.7) */
body.theme-no-hero .site-main, body.theme-no-hero .theme-page-main { padding-top: calc(var(--header-height) + var(--announcement-height, 0px)); }

/* ===== Trust bar ===== */
.trust-bar { background: var(--color-primary); color: var(--color-primary-foreground); overflow: hidden; padding: 2.5rem 0; }
.trust-bar__track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: trust-marquee 24s linear infinite; }
@media (min-width: 768px) { .trust-bar__track { gap: 4rem; } }
@keyframes trust-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-bar__item { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.trust-bar__item svg { width: 28px; height: 28px; }
@media (min-width: 768px) { .trust-bar__item svg { width: 32px; height: 32px; } }
.trust-bar__item span { font-size: 1.25rem; letter-spacing: 0.02em; color: color-mix(in srgb, var(--color-primary-foreground) 90%, transparent); white-space: nowrap; }
@media (min-width: 768px) { .trust-bar__item span { font-size: 1.5rem; } }

/* ===== Category tiles ===== */
.category-section { background: var(--color-background); scroll-margin-top: 7rem; padding: 5rem 0 3rem; }
@media (min-width: 1024px) { .category-section { padding: 7rem 0 4rem; } }
.category-section__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .category-section__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-section__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
@media (min-width: 1280px) { .category-section__grid { grid-template-columns: repeat(7, 1fr); } }
.category-tile {
	position: relative; display: block; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 2px;
	background: var(--color-primary); text-align: left; border: 1px solid transparent;
	transition: all 0.5s var(--transition-smooth);
}
.category-tile:hover { border-color: var(--color-accent); transform: translateY(-6px); }
.category-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.category-tile:hover .category-tile__img { transform: scale(1.08); }
.category-tile__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.80) 100%); }
.category-tile__label { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--color-primary-foreground); font-size: 1.125rem; line-height: 1.2; }
@media (min-width: 768px) { .category-tile__label { font-size: 1.25rem; } }

/* ===== Authors ===== */
.author-section { background: color-mix(in srgb, var(--color-secondary) 50%, transparent); scroll-margin-top: 7rem; padding: 5rem 0; }
@media (min-width: 1024px) { .author-section { padding: 7rem 0; } }
.author-section__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 1024px) { .author-section__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.author-card { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; background: var(--color-primary); transition: all 0.5s var(--transition-smooth); }
.author-card:hover { transform: translateY(-8px); }
.author-card__link { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.author-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.author-card:hover .author-card__img { transform: scale(1.06); }
.author-card__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.80) 100%); }
.author-card__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; text-align: left; }
.author-card__genre { display: block; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: 0.25rem; }
.author-card__name { display: block; font-family: var(--font-display); font-weight: 600; color: var(--color-primary-foreground); font-size: 1.25rem; line-height: 1.2; }
.author-card__profile-btn {
	position: absolute; top: 1rem; right: 1rem; z-index: 10;
	padding: 0.375rem 0.75rem; background: color-mix(in srgb, var(--color-primary-foreground) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 30%, transparent);
	font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--color-primary-foreground);
	transition: all 0.2s ease; border-radius: 2px;
}
.author-card__profile-btn:hover { background: var(--gold-gradient); border-color: transparent; color: var(--color-accent-foreground); }

/* ===== Author modal ===== */
.theme-modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.theme-modal.is-open { opacity: 1; pointer-events: auto; }
.theme-modal__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 45%, transparent); border: none; }
.theme-modal__panel {
	position: relative; max-width: 37.5rem; width: 90vw; max-height: 80vh; overflow-y: auto;
	background: var(--color-background); color: var(--color-foreground); border: 1px solid var(--color-border);
	border-radius: 10px; padding: 2rem; transform: scale(0.96) translateY(10px); transition: transform 0.25s ease;
}
.theme-modal.is-open .theme-modal__panel { transform: scale(1) translateY(0); }
.theme-modal__close { position: absolute; top: 1rem; right: 1rem; }
.theme-modal__author-name { font-size: 1.875rem; margin-bottom: 0.25rem; }
.theme-modal__author-genre { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: 1rem; }
.theme-modal__author-bio { font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); margin-bottom: 1.5rem; }
.theme-modal__books { border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
.theme-modal__books h4 { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.75rem; }
.theme-modal__book-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.theme-modal__book-title { font-family: var(--font-display); font-size: 1.25rem; }
.theme-modal__book-title.is-italic { font-style: italic; }
.theme-modal__no-book { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }

/* ===== CTA strip ===== */
.cta-strip { position: relative; overflow: hidden; }
.cta-strip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-strip__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.80) 100%); }
.cta-strip__inner { position: relative; z-index: 2; text-align: center; padding: 6rem 0; }
@media (min-width: 768px) { .cta-strip__inner { padding: 8rem 0; } }
.cta-strip__title { font-size: 2.25rem; color: var(--color-primary-foreground); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .cta-strip__title { font-size: 3rem; } }
@media (min-width: 1024px) { .cta-strip__title { font-size: 3.75rem; } }
.cta-strip__text { max-width: 36rem; margin: 0 auto 2.5rem; color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent); font-size: 16px; line-height: 1.6; }

/* ===== Highlights ===== */
.highlights-section { background: var(--color-background); padding: 5rem 0; }
@media (min-width: 1024px) { .highlights-section { padding: 7rem 0; } }
.highlights-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .highlights-section__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.highlights-section__cover { max-width: 22.5rem; margin: 0 auto; width: 100%; }
.highlights-section__category { display: block; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: 0.75rem; }
.highlights-section__title { font-size: 1.875rem; line-height: 1.2; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .highlights-section__title { font-size: 2.25rem; } }
.highlights-section__author { font-size: 15px; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.highlights-section__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); margin-bottom: 1.5rem; }
.highlights-section__desc { display: flex; flex-direction: column; gap: 1rem; font-size: 15px; line-height: 1.6; color: var(--color-muted-foreground); margin-bottom: 2rem; }

.book-cover-3d { perspective: 1200px; }
.book-cover-3d__tilt {
	position: relative;
	transition: transform 0.2s ease-out;
	transform-style: preserve-3d;
	will-change: transform;
}
.book-cover-3d__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 2px;
	box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--color-primary) 55%, transparent);
	transform: translateZ(0);
}
.book-cover-3d__spine {
	pointer-events: none;
	position: absolute;
	inset: 0 auto 0 0;
	width: 1.5rem;
	background: linear-gradient(to right, color-mix(in srgb, var(--color-primary) 35%, transparent), transparent);
	border-radius: 2px 0 0 2px;
}
.book-cover-3d__shine {
	pointer-events: none;
	position: absolute;
	inset: 0;
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* ===== Shop section ===== */
.shop-section { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); scroll-margin-top: 7rem; }
.shop-section__texture { position: relative; background-image: radial-gradient(color-mix(in srgb, var(--color-accent) 7%, transparent) 1px, transparent 1px); background-size: 22px 22px; padding: 5rem 0; }
@media (min-width: 1024px) { .shop-section__texture { padding: 7rem 0; } }
.shop-section__filter-wrap { display: flex; justify-content: center; margin-bottom: 3rem; }

.theme-cat-dropdown { position: relative; width: 100%; max-width: 20rem; }
.theme-cat-dropdown__toggle {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	padding: 0.75rem 1rem; border: 1px solid var(--color-border); background: var(--color-background);
	transition: border-color 0.2s ease; border-radius: 2px;
}
.theme-cat-dropdown__toggle:hover { border-color: var(--color-accent); }
.theme-cat-dropdown__label-group { display: flex; flex-direction: column; align-items: flex-start; }
.theme-cat-dropdown__eyebrow { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-cat-dropdown__value { font-size: 15px; color: var(--color-foreground); margin-top: 0.125rem; }
[data-cat-dropdown-chevron] { transition: transform 0.2s ease; }
.theme-cat-dropdown.is-open [data-cat-dropdown-chevron] { transform: rotate(180deg); }
.theme-cat-dropdown__list {
	position: absolute; left: 0; right: 0; top: calc(100% + 0.25rem); z-index: 30;
	background: var(--color-background); border: 1px solid var(--color-border); box-shadow: var(--shadow-elevated);
	border-radius: 2px; overflow: hidden; display: none;
}
.theme-cat-dropdown.is-open .theme-cat-dropdown__list { display: block; animation: fadeIn 0.2s ease; }
.theme-cat-dropdown__option { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.625rem 1rem; text-align: left; font-size: 15px; color: var(--color-foreground); }
.theme-cat-dropdown__option:hover { background: color-mix(in srgb, var(--color-secondary) 60%, transparent); }
.theme-cat-dropdown__option.is-active { color: var(--color-accent); }

.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.shop-section__grid { max-width: 72rem; margin: 0 auto; }

.theme-product-card-wrap { position: relative; display: flex; flex-direction: column; height: 100%; }
.shop-card {
	display: flex; flex-direction: column; background: var(--color-background); border: 1px solid var(--color-border);
	border-radius: 2px; padding: 1.5rem; box-shadow: var(--shadow-soft);
}
@media (min-width: 1024px) { .shop-card { padding: 2rem; } }
.shop-card > .theme-card-link.theme-card-link-area {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
}
.shop-card__cover {
	position: relative;
	z-index: 0;
}
.shop-card *:not(.theme-card-link) { pointer-events: none; }
.shop-card a.amazon-strip, .shop-card .add_to_cart_button, .shop-card button.add_to_cart_button, .shop-card .btn-primary, .shop-card .theme-pill, .shop-card__cta, .shop-card button.shop-card__cta {
	position: relative; z-index: 3; pointer-events: auto;
}
.shop-card__cta.disabled, .shop-card__cta.wc-variation-is-unavailable {
	opacity: 0.4; pointer-events: none; cursor: not-allowed;
}
.shop-card:hover { box-shadow: var(--shadow-elevated); }
.shop-card__cover { max-width: 13.75rem; margin: 0 auto 1.5rem; width: 100%; }
.shop-card__info { flex: 1; display: flex; flex-direction: column; }
.shop-card__category { display: block; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: 0.75rem; }
.shop-card__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.25rem; font-weight: 600; }
.shop-card__title.is-italic { font-style: italic; }
.shop-card__author { font-size: 15px; color: var(--color-muted-foreground); margin-bottom: 1.25rem; }
.shop-card__desc { font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 0.5rem; }
.shop-card__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); margin-bottom: 1.25rem; }
.shop-card__formats { margin-bottom: 1.25rem; }
.shop-card__formats-label { display: block; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.75rem; }
.theme-pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-pill { padding: 0.5rem 1rem; font-size: 14px; border-radius: 2px; border: 1px solid var(--color-border); background: var(--color-background); color: var(--color-foreground); transition: all 0.2s ease; line-height: 1.4; }
.theme-pill:hover { border-color: var(--color-accent); }
.theme-pill.is-active { border-color: transparent; background: var(--gold-gradient); color: var(--color-accent-foreground); }
.theme-attr-select-hidden { display: none !important; }
.shop-card__cta { width: 100%; margin-top: auto; }
button.shop-card__cta {
	appearance: none;
	border: none;
	font: inherit;
	cursor: pointer;
	text-align: center;
}
.amazon-strip {
	margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 1rem 1.25rem;
	border-radius: 2px; border: 1px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent);
	transition: background-color 0.2s ease;
}
.amazon-strip:hover { background: color-mix(in srgb, var(--color-accent) 20%, transparent); }
.amazon-strip span { font-size: 15px; color: var(--color-foreground); }
.amazon-strip__arrow { margin-left: auto; }

.shop-section__empty { padding: 5rem 0; text-align: center; border: 1px dashed var(--color-border); border-radius: 2px; max-width: 36rem; margin: 0 auto; background: var(--color-background); }
.shop-section__empty-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.shop-section__empty-text { font-size: 15px; color: var(--color-muted-foreground); }
.shop-section__empty-link { margin-top: 1.25rem; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); }
.shop-section__empty-link:hover { opacity: 0.7; }

/* ===== About ===== */
.about-section { background: var(--color-background); scroll-margin-top: 7rem; }
.about-section__grid { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 1fr 1fr; } }
.about-section__copy { order: 2; display: flex; flex-direction: column; justify-content: center; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .about-section__copy { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .about-section__copy { order: 1; padding: 7rem 5rem; } }
.about-section__text { font-size: 16px; line-height: 1.6; color: var(--color-muted-foreground); }
.about-section__image-wrap { order: 1; position: relative; min-height: 21.25rem; overflow: hidden; }
@media (min-width: 1024px) { .about-section__image-wrap { order: 2; min-height: 40rem; } }
.about-section__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease-in-out; }
.about-section__image-wrap:hover .about-section__image { transform: scale(1.05); }

/* ===== Publish ===== */
.publish-section { background: color-mix(in srgb, var(--color-secondary) 50%, transparent); padding: 5rem 0; }
@media (min-width: 1024px) { .publish-section { padding: 7rem 0; } }
.publish-section__text { text-align: center; max-width: 42rem; margin: 0 auto 3rem; font-size: 16px; color: var(--color-muted-foreground); }
.category-tile--static { cursor: default; }

/* ===== Copy band / newsletter ===== */
.copy-band { position: relative; overflow: hidden; }
.copy-band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.copy-band__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.75) 100%); }
.copy-band__inner { position: relative; padding: 5rem 0; }
@media (min-width: 1024px) { .copy-band__inner { padding: 7rem 0; } }
.copy-band__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .copy-band__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.copy-band__col { text-align: center; }
@media (min-width: 1024px) { .copy-band__col { text-align: left; } }
.copy-band__title { font-size: 1.875rem; color: var(--color-primary-foreground); margin-bottom: 1rem; }
@media (min-width: 768px) { .copy-band__title { font-size: 2.25rem; } }
.copy-band__text { font-size: 15px; color: color-mix(in srgb, var(--color-primary-foreground) 80%, transparent); margin-bottom: 2rem; }
.copy-band__form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .copy-band__form { flex-direction: row; } }
.copy-band__input {
	flex: 1; padding: 0.9rem 1rem; background: color-mix(in srgb, var(--color-primary-foreground) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 30%, transparent); border-radius: 2px;
	font-size: 15px; color: var(--color-primary-foreground); font-family: var(--font-body);
}
.copy-band__input::placeholder { color: color-mix(in srgb, var(--color-primary-foreground) 50%, transparent); }
.copy-band__input:focus { outline: none; border-color: var(--color-primary-foreground); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary-foreground) 30%, transparent); }
.copy-band__form .btn-primary { height: 3.25rem; border-radius: 2px; }

/* ===== Contact ===== */
.contact-section { background: var(--color-primary); color: var(--color-primary-foreground); scroll-margin-top: 7rem; padding: 5rem 0; }
@media (min-width: 1024px) { .contact-section { padding: 7rem 0; } }
.contact-section__head { text-align: center; margin-bottom: 3rem; }
.contact-title { color: var(--color-primary-foreground); }
.contact-section__links { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: color-mix(in srgb, var(--color-primary-foreground) 85%, transparent); font-size: 15px; }
@media (min-width: 640px) { .contact-section__links { flex-direction: row; gap: 2rem; } }
.theme-mailto-link, .theme-tel-link { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s ease; }
.theme-mailto-link:hover, .theme-tel-link:hover { color: var(--color-accent); }
.contact-section__form { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.contact-section__input {
	width: 100%; padding: 0.9rem 1rem; background: color-mix(in srgb, var(--color-primary-foreground) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-primary-foreground) 25%, transparent); border-radius: 2px;
	font-size: 15px; color: var(--color-primary-foreground); font-family: var(--font-body);
}
.contact-section__input::placeholder { color: color-mix(in srgb, var(--color-primary-foreground) 50%, transparent); }
.contact-section__input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.contact-section__textarea { resize: none; }
.contact-section__submit { width: 100%; border-radius: 2px; }

/* ===== Footer ===== */
.site-footer { background: var(--color-background); color: var(--color-foreground); }
.site-footer__inner { padding-block: 4rem 2rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-block: 5rem 2.5rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; } }
.site-footer__brand { grid-column: span 12; }
@media (min-width: 1024px) { .site-footer__brand { grid-column: span 5; } }
.site-footer__logo { display: inline-flex; align-items: center; }
.site-footer__about { margin-top: 1.5rem; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); max-width: 24rem; line-height: 1.6; }
.site-footer__nav { grid-column: span 12; }
@media (min-width: 768px) { .site-footer__nav { grid-column: span 6; } }
@media (min-width: 1024px) { .site-footer__nav { grid-column: span 3; } }
.site-footer__contact { grid-column: span 12; }
@media (min-width: 768px) { .site-footer__contact { grid-column: span 6; } }
@media (min-width: 1024px) { .site-footer__contact { grid-column: span 4; } }
.site-footer__col-label { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--color-accent); margin-bottom: 1.25rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.theme-footer-nav-list li { display: block; }
.theme-footer-nav-list a { display: inline-block; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-footer-nav-list a:hover { color: var(--color-accent); }
.site-footer__contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__contact-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 15px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground) 15%, transparent); display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer__copyright, .site-footer__built-by { font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.site-footer__built-by a { color: var(--color-foreground); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__built-by a:hover { color: var(--color-accent); }
.site-footer__back-to-top { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.site-footer__back-to-top:hover { color: var(--color-accent); }

.theme-back-to-top-fab {
	position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40; width: 3rem; height: 3rem; border-radius: 50%;
	background: var(--gold-gradient); color: var(--color-accent-foreground); display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-elevated); transition: transform 0.3s ease;
}
.theme-back-to-top-fab:hover { transform: scale(1.1); }
.theme-back-to-top-fab.cm-glow:hover { box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--color-accent) 50%, transparent); }
.theme-back-to-top-fab[hidden] { display: none; }

/* ==========================================================================
   Single Product
   ========================================================================== */
.single-product .theme-product-layout-wrap { padding-top: 7rem; background: var(--color-background); }
@media (min-width: 1024px) { .single-product .theme-product-layout-wrap { padding-top: 8rem; } }
.single-product .theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .single-product .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }
.single-product .theme-product-gallery { position: relative; width: 100%; }
@media (min-width: 1024px) { .single-product .theme-product-gallery { position: sticky; top: 8rem; align-self: flex-start; } }
.single-product .theme-product-main-image { flex: 1; min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 1rem; width: 100%; }
@media (min-width: 768px) { .single-product .theme-product-main-image { min-height: 78vh; padding: 1rem 1.5rem; } }
@media (min-width: 1024px) { .single-product .theme-product-main-image { min-height: 88vh; } }
.single-product .theme-product-main-image__img,
.single-product #product-main-img {
	width: 100% !important;
	height: auto !important;
	max-height: 88vh !important;
	max-width: 100% !important;
	object-fit: contain;
	display: block;
	position: static;
	margin: 0 auto;
}

.single-product .theme-product-info { padding: 2.5rem 0; }
@media (min-width: 1024px) { .single-product .theme-product-info { padding: 4rem 0; } }
.theme-product-breadcrumb { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.theme-product-breadcrumb a:hover { color: var(--color-foreground); }
.theme-product-breadcrumb span { margin: 0 0.5rem; }
.product-title { font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; line-height: 1.2; color: var(--color-foreground); }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
.theme-product-info__author { margin-top: 0.75rem; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); }
.theme-product-info__rule { height: 1px; background: var(--color-border); margin: 1.75rem 0; }
.theme-product-info__price { font-size: 1.125rem; color: var(--color-foreground); }
.theme-product-info__price .amount, .theme-product-info__price .woocommerce-Price-amount { font-weight: 400; }
.theme-product-info__price .price del { color: var(--color-muted-foreground); text-decoration: line-through; margin-right: 0.5rem; }
.theme-product-info__price .price ins { color: var(--color-foreground); text-decoration: none; }
.theme-product-info__currency { font-weight: 400; }
.theme-product-info__note { margin-top: 1.75rem; background: color-mix(in srgb, var(--color-secondary) 70%, transparent); padding: 1rem 1.25rem; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); }
.theme-add-to-cart-area-outer { margin-top: 1.75rem; }
.theme-product-info__about { margin-top: 3rem; overflow-wrap: break-word; word-break: break-word; }
.theme-product-info__about h2 { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-foreground); margin-bottom: 1.25rem; font-family: var(--font-body); font-weight: 400; }
.theme-product-info__description { font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--color-foreground) 85%, transparent); display: flex; flex-direction: column; gap: 1rem; white-space: pre-line; }
.theme-product-info__details-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; padding-left: 1.25rem; list-style: disc; font-size: 14px; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.theme-product-info__details-list li::marker { color: var(--color-accent); }

/* Single-product CTA (matches Lovable ProductDetail) */
.theme-product-cta,
.single-product .single_add_to_cart_button.theme-product-cta {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 3.5rem !important;
	height: 3.5rem !important;
	padding: 0 2.25rem !important;
	border-radius: 0 !important;
	border: 1px solid var(--color-foreground) !important;
	background: var(--color-foreground) !important;
	color: var(--color-background) !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
	flex: 1 1 auto;
	min-width: 0;
}
.theme-product-cta:hover,
.single-product .single_add_to_cart_button.theme-product-cta:hover {
	background: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-color: var(--color-primary) !important;
	opacity: 1 !important;
}
.theme-product-cta.disabled,
.theme-product-cta:disabled,
.single-product .single_add_to_cart_button.theme-product-cta.disabled {
	opacity: 0.4 !important;
	pointer-events: none !important;
	cursor: not-allowed !important;
}

.single-product .theme-add-to-cart-area--simple,
.single-product .theme-add-to-cart-area--variable {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin-top: 0;
}
.single-product .theme-add-to-cart-area--simple {
	margin-top: 2rem;
}
.single-product .single_variation_wrap {
	display: block;
	margin-top: 2rem;
}
.single-product .theme-add-to-cart-area-outer .amazon-strip { margin-top: 1rem; }

/* Quantity + button row (Section 11.13) */
.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0.75rem;
}
.single-product .theme-quantity-wrapper {
	flex-shrink: 0;
	height: 3.5rem;
	border: 1px solid var(--color-border);
}
.single-product .theme-qty-minus,
.single-product .theme-qty-plus {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 100%;
}
.single-product .theme-qty-input {
	height: 100%;
}
.single-product .theme-product-cta {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
}
.theme-quantity-wrapper { display: inline-flex; align-items: stretch; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0 1rem; transition: background-color 0.2s ease; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 3.5rem; text-align: center; border: none; background: transparent; font-family: var(--font-body); font-size: 15px; -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Add-to-cart button style override (Section 11.4.1) */
.single_add_to_cart_button.button, .add_to_cart_button.button, a.single_add_to_cart_button, a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
	flex: 1 1 auto;
	min-width: 160px;
}
.single_add_to_cart_button.button:hover, .add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
}
.single_add_to_cart_button.button:disabled, .single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled, .add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover, .single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover, .add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button.loading::after, .ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* Card compact variant */
.theme-product-card .add_to_cart_button.ajax_add_to_cart { min-height: unset !important; }

/* "View cart" link hidden (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward, .single-product a.added_to_cart.wc-forward, body a.added_to_cart.wc-forward { display: none !important; }

/* Variations table layout */
.single-product .variations_form { margin-top: 0; }
.single-product .variations.shop_attributes tbody, .single-product .variations tbody tr, .single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.75rem; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.single-product .variations tbody td.label label { font-weight: 400; }
.single-product .variations tbody td.value { padding-top: 0; padding-bottom: 0; }
.single-product .variations select { display: none; }
.single-product .variations .theme-pill { min-width: 5.5rem; padding: 0.625rem 1rem; }
.single-product .single_variation_wrap .woocommerce-variation {
	display: none !important;
}
.single-product .theme-add-to-cart-area { margin-top: 0; }

/* Notices scoped hiding */
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info { background: var(--color-secondary); color: var(--color-foreground); border-radius: 2px; padding: 1rem 1.25rem; font-size: 14px; margin-bottom: 1.5rem; }

/* ===== Related products ===== */
.related-products-section { padding: 6rem 0; border-top: 1px solid var(--color-border); margin-top: 3rem; }
.related-products-section__title { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.2; margin-bottom: 3rem; }
.related-products-section__title-em { font-style: italic; }
@media (min-width: 768px) { .related-products-section__title { font-size: 2.25rem; } }
.related-products-section__grid { grid-template-columns: 1fr; gap: 3rem 2rem; }
@media (min-width: 640px) { .related-products-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related-products-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; } }
.related-card { display: block; }
.related-card__cover { aspect-ratio: 2/3; background: var(--color-secondary); overflow: hidden; border-radius: 2px; margin-bottom: 1rem; position: relative; }
.related-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; position: static; display: block; }
.related-card:hover .related-card__cover img { transform: scale(1.04); }
.related-card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--color-foreground); }
.related-card:hover .related-card__title { color: var(--color-accent); }
.related-card__author { margin-top: 0.25rem; font-size: 14px; color: var(--color-muted-foreground); }
.related-card__price { margin-top: 0.5rem; font-size: 15px; font-weight: 600; color: var(--color-foreground); }

/* ===== Archive / shop page ===== */
.theme-archive { padding-top: calc(var(--header-height) + 2.5rem); background: var(--color-background); }
.theme-archive__inner { padding-bottom: 6rem; }
.theme-archive .page-title { font-size: 2.25rem; margin-bottom: 2.5rem; text-align: center; }
.theme-archive__grid { max-width: 72rem; margin: 0 auto; }
.theme-archive__empty { text-align: center; padding: 5rem 0; font-size: 16px; color: var(--color-muted-foreground); }
.woocommerce-pagination { text-align: center; margin-top: 3rem; }
.woocommerce-pagination .page-numbers { display: inline-flex; gap: 0.5rem; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border: 1px solid var(--color-border); border-radius: 2px; }
.woocommerce-pagination .current { background: var(--color-primary); color: var(--color-primary-foreground); }

/* ===== 404 ===== */
.theme-404 { padding-top: calc(var(--header-height) + 4rem); min-height: 60vh; }
.theme-404__inner { text-align: center; padding: 5rem 0; }
.theme-404__code { font-family: var(--font-display); font-size: 4rem; font-weight: 700; margin-bottom: 1rem; }
.theme-404__text { font-size: 1.25rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.theme-404__link { color: var(--color-primary); text-decoration: underline; }
.theme-404__link:hover { opacity: 0.8; }

/* ===== Generic page title (checkout etc.) ===== */
.theme-page-main { padding-top: calc(var(--header-height) + 3rem); padding-bottom: 4rem; }
.page-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 2rem; }
@media (min-width: 768px) { .page-title { font-size: 2.25rem; } }

/* ==========================================================================
   Side Cart Drawer
   ========================================================================== */
#theme-cart-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--color-foreground) 30%, transparent); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 32rem;
	background: var(--color-background); z-index: 56; box-shadow: var(--shadow-elevated);
	display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }
.theme-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 2rem 2rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer__title { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; gap: 1rem; }
.theme-cart-drawer__empty svg { color: var(--color-muted-foreground); }
.theme-cart-drawer__empty p { color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 2rem; }
.theme-cart-item { display: flex; gap: 1.25rem; }
.theme-cart-item__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 8rem;
	flex-shrink: 0;
	background: var(--color-secondary);
	overflow: hidden;
}
.theme-cart-item__thumb img,
.theme-cart-item__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}
.theme-cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-item__name { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-foreground); }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__variation { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.375rem; font-style: italic; }
.theme-cart-item__price { font-size: 14px; margin-top: 0.375rem; }
.theme-cart-item__controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.theme-cart-item__qty { display: flex; align-items: center; border: 1px solid var(--color-border); }
.theme-cart-item__qty button { padding: 0.375rem 0.625rem; transition: background-color 0.2s ease; }
.theme-cart-item__qty button:hover { background: var(--color-secondary); }
.theme-cart-item__qty span { padding: 0 0.75rem; font-size: 14px; min-width: 1.75rem; text-align: center; }
.theme-cart-item__remove { font-size: 12px; color: var(--color-muted-foreground); text-decoration: underline; text-underline-offset: 4px; }
.theme-cart-item__remove:hover { color: var(--color-foreground); }
.theme-cart-drawer__footer { padding: 1.5rem 2rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-size: 1.25rem; }
.theme-cart-drawer__note { font-size: 12px; color: var(--color-muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; text-align: center; border-radius: 0; }

@media (max-width: 640px) {
	#theme-cart-drawer { max-width: 100%; }
}

/* ==========================================================================
   WooCommerce Checkout Block (Section 13)
   ========================================================================== */
body.woocommerce-checkout .site-main { padding-top: calc(var(--header-height) + var(--announcement-height, 0px)); padding-bottom: 4rem; }
body.woocommerce-checkout .entry-content { max-width: 100%; }

body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-body);
	color: var(--color-foreground);
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-checkout {
		display: block;
	}
	body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart__totals-title {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	color: var(--color-foreground);
	border-color: var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-foreground) !important;
	border-radius: var(--btn-radius);
	text-transform: var(--btn-text-transform);
	letter-spacing: var(--btn-letter-spacing);
	font-weight: var(--btn-font-weight);
	height: var(--btn-height);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.85;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

/* ===== Thank you page ===== */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .theme-thankyou { padding: 3rem 0; max-width: 48rem; margin: 0 auto; }
body.theme-thankyou-page .theme-thankyou__icon {
	width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-foreground);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
body.theme-thankyou-page .woocommerce-order > p:first-of-type { text-align: center; font-size: 16px; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order h2, body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 0; margin: 0 0 2rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 14px; }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; font-family: var(--font-display); font-size: 16px; margin-top: 0.25rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 2rem; }
body.theme-thankyou-page .woocommerce-order-details th, body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; font-style: normal; line-height: 1.6; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details {
		display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
	}
	body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; }
}

/* ===== My Account / Cart width parity (Section 13.7) ===== */
body.woocommerce-account .theme-page-main, body.woocommerce-cart .theme-page-main {
	padding-top: calc(var(--header-height) + 3rem);
}
