/* Becomeyoo Book Product - Frontend Styles */
/* Design System: matches Elementor page ID 1658 */

:root {
	--bew-book-accent: #EB801D;
	--bew-book-accent-hover: #637C77;
	--bew-book-dark: #2f4858;
	--bew-book-bg: #EDEAE1;
	--bew-book-border: #B3B0A8;
	--bew-book-badge: #EB551D;
	--bew-book-font-body: "Jost", sans-serif;
	--bew-book-font-ui: "Roboto", sans-serif;
}

/* Prevent any child from overflowing due to padding/border */
.bew-book-product *,
.bew-book-product *::before,
.bew-book-product *::after {
	box-sizing: border-box;
}

/* Override Betheme .single-product div.product { width:100% } */
.single-product div.product.bew-book-product {
	width: auto;
}

.bew-book-product {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	font-family: inherit;
	padding-bottom: 0;
	overflow-wrap: break-word;
}

/* ── Full-width background technique ──
   Uses calc(50% - 50vw) to extend bg to viewport edges
   regardless of parent max-width or padding */
.bew-book-ficha,
.bew-book-extra,
.bew-book-reviews {
	background-color: var(--bew-book-bg);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}

/* Prevent 100vw from being wider than viewport due to scrollbar.
   scrollbar-gutter reserves scrollbar space so 100vw = usable width.
   Does NOT break position:fixed like overflow-x:clip does. */
html:has(.bew-book-product) {
	scrollbar-gutter: stable;
}

/* ── Hero: 3 columns (image | content | purchase sidebar) ── */
.bew-book-hero {
	padding: 2em 0 6em;
}

.bew-book-hero-inner {
	display: grid;
	grid-template-columns: 320px 1fr 360px;
	gap: 30px;
	align-items: start;
}

.bew-book-hero-inner--no-sidebar {
	grid-template-columns: 280px 1fr;
}

.bew-book-hero-image {
	position: sticky;
	top: 100px;
}

.bew-book-cover {
	width: 100%;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.bew-book-title {
	color: var(--bew-book-dark);
	margin: 0 0 8px !important;
	padding: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.7px;
}

.bew-book-author {
	font-size: 20px;
	color: var(--bew-book-accent);
	font-weight: 400;
	line-height: 1.3;
	margin: 10px 0 8px;
}

.bew-book-subtitle {
	font-size: 20px;
	color: inherit;
	line-height: 1.4;
	margin: 0 0 20px;
}

/* ── Read More Text overrides ── */
.bew-book-hero-content .bew-rmt {
	margin-top: 16px;
}

.bew-book-hero-content .bew-rmt-excerpt,
.bew-book-hero-content .bew-rmt-full {
	font-family: var(--bew-book-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: #444;
}

.bew-book-hero-content .bew-rmt-toggle {
	color: var(--bew-book-accent);
	justify-content: flex-start;
	margin-top: 12px;
}

.bew-book-hero-content .bew-rmt-toggle svg {
	fill: var(--bew-book-accent);
	width: 14px;
	height: 14px;
}

.bew-book-hero-content .bew-rmt-toggle:hover {
	color: var(--bew-book-accent);
}

.bew-book-hero-content .bew-rmt-toggle:hover svg {
	fill: var(--bew-book-accent);
}

.bew-book-hero-content .bew-rmt-toggle-label {
	font-family: var(--bew-book-font-ui);
	font-size: 16px;
	font-weight: 400;
}

.bew-book-hero-content .bew-rmt-excerpt::after {
	background: linear-gradient(transparent, #ffffff) !important;
	height: 40px !important;
}

/* ── Gallery thumbnails ── */
.bew-book-gallery {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.bew-book-gallery-item {
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 4px;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
	cursor: pointer;
	background: none;
	padding: 0;
}

.bew-book-gallery-item:hover {
	border-color: var(--bew-book-accent);
}

.bew-book-gallery-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Lightbox ── */
.bew-book-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.bew-book-lightbox.bew-book-lightbox--open {
	display: flex;
}

.bew-book-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
}

.bew-book-lightbox-content {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bew-book-lightbox-img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}

.bew-book-lightbox-close {
	position: fixed;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	padding: 0;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.bew-book-lightbox-close:hover {
	opacity: 1;
}

.bew-book-lightbox-prev,
.bew-book-lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #fff;
	font-size: 60px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	padding: 10px;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.bew-book-lightbox-prev:hover,
.bew-book-lightbox-next:hover {
	opacity: 1;
}

.bew-book-lightbox-prev {
	left: 16px;
}

.bew-book-lightbox-next {
	right: 16px;
}

/* ── Purchase Options Sidebar ── */
.bew-book-purchase-sidebar {
	background: var(--bew-book-bg);
	border-radius: 1px;
	padding: 2em;
	position: sticky;
	top: 100px;
	align-self: start;
	box-sizing: border-box;
	min-width: 0;
}

.bew-book-purchase-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--bew-book-dark);
	margin: 0 0 20px !important;
	padding: 0 !important;
	line-height: 1.3;
	letter-spacing: -0.9px;
}

.bew-book-purchase-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bew-book-purchase-card {
	padding: 1em 0;
	border-bottom: 1px solid var(--bew-book-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bew-book-purchase-card:first-child {
	padding-top: 0;
}

.bew-book-purchase-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.bew-book-purchase-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bew-book-purchase-format {
	font-weight: 400;
	font-size: 20px;
	line-height: 1.3;
	color: var(--bew-book-accent);
}

.bew-book-purchase-price {
	font-weight: 400;
	font-size: 20px;
	line-height: 1.3;
	color: var(--bew-book-dark);
}

.bew-book-purchase-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bew-book-purchase-logo {
	flex: 0 0 48%;
}

.bew-book-purchase-logo img {
	width: 93%;
	height: auto;
}

.bew-book-purchase-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 24px;
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
}

.bew-book-purchase-btn:hover {
	background-color: var(--bew-book-accent-hover);
	color: #fff !important;
	text-decoration: none !important;
}

.bew-book-purchase-btn:focus,
.bew-book-purchase-btn:active {
	color: #fff !important;
	text-decoration: none !important;
	outline: none;
}

/* ── WooCommerce native add-to-cart inside sidebar ── */
.bew-book-wc-cart {
	padding-bottom: 1em;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--bew-book-border);
}

.bew-book-wc-cart .price {
	font-size: 22px !important;
	color: var(--bew-book-dark) !important;
	font-weight: 700;
	margin-bottom: 16px;
	display: block;
}

.bew-book-wc-cart .price del {
	opacity: 0.5;
	font-size: 16px;
}

.bew-book-wc-cart .price ins {
	text-decoration: none;
}

.bew-book-wc-cart .variations {
	width: 100%;
	margin-bottom: 16px;
}

.bew-book-wc-cart .variations td,
.bew-book-wc-cart .variations th {
	padding: 6px 0;
	border: none !important;
	background: none !important;
}

.bew-book-wc-cart .variations td.label,
.bew-book-wc-cart .variations th.label {
	padding-right: 12px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
	width: auto;
	vertical-align: middle;
}

.bew-book-wc-cart .variations td.value {
	vertical-align: middle;
}

.bew-book-wc-cart .variations select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	appearance: auto;
}

.bew-book-wc-cart .reset_variations {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
	display: inline-block;
}

.bew-book-wc-cart .woocommerce-variation-price,
.bew-book-wc-cart .woocommerce-variation-description,
.bew-book-wc-cart .woocommerce-variation-availability {
	margin-bottom: 12px;
}

.bew-book-wc-cart .quantity {
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
}

.bew-book-wc-cart .quantity .qty {
	width: 60px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
}

.bew-book-wc-cart .single_add_to_cart_button,
.bew-book-wc-cart .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 16px 24px;
	background-color: var(--bew-book-accent) !important;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin-top: 8px;
}

.bew-book-wc-cart .single_add_to_cart_button:hover,
.bew-book-wc-cart .button:hover {
	background-color: var(--bew-book-accent-hover) !important;
	color: #fff !important;
}

.bew-book-wc-cart .group_table {
	width: 100%;
	margin-bottom: 16px;
}

.bew-book-wc-cart .group_table td {
	padding: 8px 4px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.bew-book-wc-cart .stock {
	font-size: 13px;
	margin-top: 8px;
}

.bew-book-wc-cart .in-stock {
	color: #0f834d;
}

.bew-book-wc-cart .out-of-stock {
	color: #dc3232;
}

.bew-book-wc-cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* ── Sections ── */
.bew-book-section {
	padding-top: 3em;
	padding-bottom: 4em;
}

.bew-book-section-title {
	color: var(--bew-book-dark);
	margin: 0 0 30px !important;
	padding: 0 0 5px 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.7px;
}

/* ── Anchor nav menu overrides ── */
.bew-book-product .bew-anm-items {
	padding: 14px 9px 19px 0px;
	gap: 62px;
	justify-content: flex-start;
}

.bew-book-product .bew-anm-item {
	font-size: 16px;
	color: #333333;
}

.bew-book-product .bew-anm-bar.bew-anm--sticky {
	z-index: 1001;
	bottom: auto;
	box-shadow: none !important;
	background: #e2e1de !important;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.bew-book-product .bew-anm-bar.bew-anm--sticky.bew-anm--sticky-bottom {
	bottom: var(--bew-bbs-bar-height, 60px);
	top: auto;
}

.bew-book-product .bew-anm-bar {
	transform: translateY(0);
	opacity: 1;
	transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.bew-book-product .bew-anm-bar.bew-anm--sticky.bew-anm--sticky-bottom {
	animation: bewAnmSlideUp 0.3s ease forwards;
}

@keyframes bewAnmSlideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ── Ficha Técnica ── */
.bew-book-ficha {
	padding-top: 3em;
	padding-bottom: 4em;
}

.bew-book-ficha-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	gap: 0 24px;
}

.bew-book-ficha-item {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-bottom: 1px solid var(--bew-book-border);
	padding-bottom: 1em;
	padding-top: 1rem;
}

.bew-book-ficha-icon {
	display: inline-flex;
	align-items: center;
	color: var(--bew-book-accent);
}

.bew-book-ficha-icon svg {
	width: 22px;
	height: 22px;
}

.bew-book-ficha-label-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 5px;
}

.bew-book-ficha-label {
	font-size: 16px;
	font-weight: 400;
	color: inherit;
	line-height: 1.3;
}

.bew-book-ficha-value {
	font-size: 18px;
	font-weight: 400;
	color: inherit;
	line-height: 1.4;
}

/* ── About the Author ── */
.bew-book-author-section {
	padding: 4em 0;
}

.bew-book-author-inner {
	display: flex;
	flex-direction: row;
	gap: 40px;
	align-items: start;
}

.bew-book-author-bio {
	flex: 1;
}

.bew-book-author-name {
	font-size: 22px;
	font-weight: 400;
	color: var(--bew-book-accent);
	line-height: 1.3;
	margin: 0 0 16px;
}

.bew-book-author-text {
	font-family: var(--bew-book-font-body);
	font-size: 18px;
	line-height: 1.6;
	color: inherit;
}

.bew-book-author-photo {
	flex: 0 0 auto;
}

.bew-book-author-photo img {
	width: 300px;
	height: 300px !important;
	max-width: 300px;
	max-height: 300px;
	object-fit: cover;
	object-position: center center;
	border-radius: 50%;
}

/* ── Extra Content ── */
.bew-book-extra {
	padding-top: 3em;
	padding-bottom: 4em;
}

.bew-book-extra-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0 66px;
}

.bew-book-extra-grid > .bew-book-extra-card {
	flex: 1 1 calc(50% - 33px);
	min-width: 0;
}

.bew-book-extra-card {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0 0 1em 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: space-between;
}

.bew-book-extra-card-title {
	font-size: 21px;
	font-weight: 400;
	color: inherit;
	line-height: 1.3;
	margin: 0;
	padding-bottom: 5px;
}

.bew-book-extra-card-desc {
	font-family: var(--bew-book-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: inherit;
	margin: 0;
	flex: 1;
	padding-bottom: 1em;
	border-bottom: 1px solid var(--bew-book-border);
}

.bew-book-extra-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 24px;
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	align-self: flex-start;
}

.bew-book-extra-card-btn:hover {
	background-color: var(--bew-book-accent-hover);
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Related Books ── */
.bew-book-related {
	padding: 96px 0 112px;
}

.bew-book-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.bew-book-related-card {
	position: relative;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.bew-book-related-badge {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bew-book-badge);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 50px;
	letter-spacing: 0;
	text-transform: uppercase;
	z-index: 1;
	white-space: nowrap;
}

.bew-book-related-link {
	text-decoration: none !important;
	color: inherit !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.bew-book-related-link:hover {
	text-decoration: none !important;
	color: inherit !important;
}

.bew-book-related-link:hover .bew-book-related-img {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.bew-book-related-cover {
	width: 100%;
	margin-bottom: 16px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.bew-book-related-img {
	width: 75%;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bew-book-related-title {
	font-size: 16px;
	font-weight: 600;
	color: inherit;
	line-height: 1.35;
	margin: 0 0 4px;
}

.bew-book-related-author {
	font-size: 14px;
	font-weight: 400;
	color: inherit;
	opacity: 0.7;
	line-height: 1.35;
	margin: 0;
}

.bew-book-related-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 25px;
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 400;
	font-size: 14px;
	border-radius: 50px;
	transition: background-color 0.3s ease;
	margin-top: 11px;
}

.bew-book-related-btn:hover {
	background-color: var(--bew-book-accent-hover);
	color: #fff !important;
	text-decoration: none !important;
}

.bew-book-related-cta {
	text-align: center;
	margin-top: 5em;
}

.bew-book-related-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	background-color: transparent;
	color: var(--bew-book-accent) !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	border: 1px solid var(--bew-book-bg);
	border-radius: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.bew-book-related-cta-btn:hover {
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Reviews CTA Block (inside purchase sidebar) ── */
.bew-book-review-cta {
	margin-top: 1.2em;
	padding-top: 1.2em;
	border-top: 1px solid var(--bew-book-border);
}

.bew-book-review-cta-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--bew-book-dark);
	margin: 0 0 6px !important;
	padding: 0;
	line-height: 1.3;
}

.bew-book-review-cta-desc {
	font-size: 15px;
	color: #555;
	margin: 0 0 14px;
	line-height: 1.5;
}

.bew-book-review-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 24px;
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
	text-align: center;
}

.bew-book-review-cta-btn:hover {
	background-color: var(--bew-book-accent-hover);
	color: #fff !important;
	text-decoration: none !important;
}

.bew-book-review-cta-btn--bonus {
	background-color: var(--bew-book-accent-hover);
}

.bew-book-review-cta-btn--bonus:hover {
	background-color: var(--bew-book-dark);
}

/* ── Bonus Block (between section title and tabs) ── */
.bew-book-review-bonus-block {
	margin-bottom: 24px;
}

.bew-book-review-bonus-block-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
	border: 1px solid #ffffff;
	border-radius: 8px;
	padding: 20px 24px;
}

.bew-book-review-bonus-block-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bew-book-review-bonus-block-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--bew-book-dark);
}

.bew-book-review-bonus-block-desc {
	font-size: 14px;
	color: #555;
	line-height: 1.4;
}

.bew-book-review-bonus-block-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.bew-book-review-bonus-block-btn:hover {
	background-color: var(--bew-book-dark);
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Reviews Section ── */
.bew-book-reviews {
	padding-top: 3em;
	padding-bottom: 4em;
}

.bew-book-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bew-book-review-item {
	padding: 24px 0;
	border-bottom: 1px solid var(--bew-book-border);
}

.bew-book-review-item:first-child {
	padding-top: 0;
}

.bew-book-review-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.bew-book-review-meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.bew-book-review-author {
	font-weight: 600;
	font-size: 16px;
	color: var(--bew-book-dark);
}

.bew-book-review-date {
	font-size: 14px;
	color: #888;
}

.bew-book-review-stars {
	display: flex;
	gap: 2px;
}

.bew-book-star {
	font-size: 20px;
	color: #ddd;
	line-height: 1;
}

.bew-book-star--filled {
	color: #f5a623;
}

.bew-book-review-content {
	font-family: var(--bew-book-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: #444;
}

.bew-book-review-content p {
	margin: 0 0 8px;
}

.bew-book-review-content p:last-child {
	margin-bottom: 0;
}


/* ── Reviews Tabs ── */
.bew-book-reviews-tabs {
	display: flex;
	align-items: center;
	gap: 0;
	border-bottom: 2px solid var(--bew-book-border);
	margin-bottom: 0;
}

.bew-book-reviews-tab {
	padding: 12px 24px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 16px;
	font-weight: 500;
	color: #888;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.bew-book-reviews-tab:hover {
	background-color: var(--bew-book-accent);
	color: #fff;
}

.bew-book-reviews-tab--active {
	background-color: var(--bew-book-accent);
	color: #fff;
	border-bottom-color: var(--bew-book-accent);
}

.bew-book-review-bonus-btn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	background-color: var(--bew-book-accent-hover);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	border: none;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	white-space: nowrap;
}

.bew-book-review-bonus-btn:hover {
	background-color: var(--bew-book-dark);
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Reviews Panels ── */
.bew-book-reviews-panel {
	display: none;
	padding-top: 24px;
}

.bew-book-reviews-panel--active {
	display: block;
}

/* ── Review Form ── */
.bew-book-review-form-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--bew-book-dark);
	margin: 0 0 8px !important;
	padding: 0;
}

.bew-book-review-form-note {
	font-size: 15px;
	color: #666;
	margin: 0 0 20px;
	line-height: 1.5;
}

.bew-book-review-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bew-book-review-field {
	margin-bottom: 16px;
}

.bew-book-review-form-grid .bew-book-review-field {
	margin-bottom: 0;
}

.bew-book-review-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--bew-book-dark);
	margin-bottom: 6px;
}

.bew-book-review-field label .required {
	color: var(--bew-book-accent);
}

.bew-book-review-field input[type="text"],
.bew-book-review-field input[type="email"],
.bew-book-review-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--bew-book-border);
	border-radius: 4px;
	font-family: var(--bew-book-font-body);
	font-size: 15px;
	background: #fff;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.bew-book-review-field input[type="text"]:focus,
.bew-book-review-field input[type="email"]:focus,
.bew-book-review-field textarea:focus {
	border-color: var(--bew-book-accent);
	outline: none;
}

.bew-book-review-field textarea {
	resize: vertical;
	min-height: 100px;
}

/* Star Rating Input */
.bew-book-star-input {
	display: flex;
	gap: 4px;
}

.bew-book-star-select {
	font-size: 28px;
	color: #ddd;
	cursor: pointer;
	transition: color 0.15s ease;
	line-height: 1;
	user-select: none;
}

.bew-book-star-select.bew-book-star--active,
.bew-book-star-select.bew-book-star--hover {
	color: #f5a623;
}

/* Submit Button */
.bew-book-review-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 32px;
	background-color: var(--bew-book-accent);
	color: #fff;
	font-weight: 500;
	font-size: 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.bew-book-review-submit:hover {
	background-color: var(--bew-book-accent-hover);
}

.bew-book-review-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Messages */
.bew-book-review-message {
	margin-top: 16px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
}

.bew-book-review-message:empty {
	display: none;
}

.bew-book-review-message--success {
	color: #0f834d;
	background: #e8f5e9;
	padding: 14px 18px;
	border-radius: 4px;
}

.bew-book-review-message--error {
	color: #c62828;
	background: #fce4ec;
	padding: 14px 18px;
	border-radius: 4px;
}

/* ── Bonus Content Page ── */
.bew-book-bonus-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 3em 20px 5em;
	font-family: var(--bew-book-font-body);
}

.bew-book-bonus-header {
	display: flex;
	gap: 30px;
	align-items: center;
	margin-bottom: 3em;
	padding-bottom: 2em;
	border-bottom: 1px solid var(--bew-book-border);
}

.bew-book-bonus-cover {
	flex: 0 0 auto;
}

.bew-book-bonus-cover-img {
	width: 120px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bew-book-bonus-info {
	flex: 1;
}

.bew-book-bonus-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--bew-book-dark);
	margin: 0 0 8px;
	line-height: 1.2;
}

.bew-book-bonus-book-title {
	font-size: 20px;
	color: var(--bew-book-accent);
	margin: 0 0 4px;
	font-weight: 400;
}

.bew-book-bonus-author {
	font-size: 16px;
	color: #666;
	margin: 0 0 12px;
}

.bew-book-bonus-thanks {
	font-size: 16px;
	color: #444;
	margin: 0;
	line-height: 1.5;
}

.bew-book-bonus-videos {
	display: flex;
	flex-direction: column;
	gap: 3em;
}

.bew-book-bonus-video-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--bew-book-dark);
	margin: 0 0 16px;
}

.bew-book-bonus-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: #000;
}

.bew-book-bonus-video-embed iframe {
	width: 100%;
	height: 100%;
	border: none;
	position: absolute;
	top: 0;
	left: 0;
}

.bew-book-bonus-video-desc {
	font-size: 16px;
	color: #555;
	margin: 12px 0 0;
	line-height: 1.6;
}

.bew-book-bonus-footer {
	margin-top: 3em;
	padding-top: 2em;
	border-top: 1px solid var(--bew-book-border);
}

.bew-book-bonus-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: transparent;
	color: var(--bew-book-accent) !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 15px;
	border: 1px solid var(--bew-book-border);
	border-radius: 5px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.bew-book-bonus-back-btn:hover {
	background-color: var(--bew-book-accent);
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Bonus Invalid Page ── */
.bew-book-bonus-page--invalid {
	text-align: center;
	padding: 6em 20px;
}

.bew-book-bonus-invalid-icon {
	color: #ccc;
	margin-bottom: 24px;
}

.bew-book-bonus-invalid-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--bew-book-dark);
	margin: 0 0 12px;
}

.bew-book-bonus-invalid-text {
	font-size: 17px;
	color: #666;
	max-width: 500px;
	margin: 0 auto 30px;
	line-height: 1.6;
}

/* ── Sticky bar title ── */
.bew-bbs-info-title {
	max-width: 300px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 17px;
	font-weight: 500;
}

/* ── Responsive: Tablet landscape (max-width 1024px) ── */
@media (max-width: 1024px) {
	.bew-book-hero-inner {
		grid-template-columns: 240px 1fr;
		gap: 30px;
	}

	.bew-book-purchase-sidebar {
		grid-column: 1 / -1;
		position: static;
	}

	/* Single column — prevents cards from floating right */
	.bew-book-purchase-list {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	/* Tablet typography */
	.bew-book-title {
		font-size: 28px;
	}

	.bew-book-author,
	.bew-book-subtitle {
		font-size: 18px;
	}

	.bew-book-section-title {
		font-size: 24px;
	}

	.bew-book-purchase-title {
		font-size: 22px;
	}

	.bew-book-purchase-format,
	.bew-book-purchase-price {
		font-size: 18px;
	}

	.bew-book-hero-content .bew-rmt-excerpt,
	.bew-book-hero-content .bew-rmt-full {
		font-size: 16px;
		line-height: 1.6;
	}

	.bew-book-ficha-label {
		font-size: 15px;
	}

	.bew-book-ficha-value {
		font-size: 16px;
	}

	.bew-book-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bew-book-related-title {
		font-size: 15px;
	}

	.bew-book-related-author {
		font-size: 14px;
	}

	.bew-book-extra-card-title {
		font-size: 19px;
	}

	.bew-book-extra-card-desc {
		font-size: 16px;
	}

	.bew-book-product .bew-anm-item {
		font-size: 15px;
	}

	.bew-book-related {
		padding: 5em 0;
	}

	.bew-book-bonus-title {
		font-size: 24px;
	}

}

/* ── Responsive: Tablet portrait (max-width 768px) ── */
@media (max-width: 768px) {
	.bew-book-hero-inner {
		grid-template-columns: 200px 1fr;
		gap: 24px;
	}

	.bew-book-product .bew-anm-items {
		gap: 30px;
	}

	.bew-book-product .bew-anm-item {
		font-size: 15px;
	}

	.bew-book-ficha-grid {
		gap: 0 16px;
	}

	.bew-book-extra-grid {
		flex-direction: column;
		gap: 0;
	}

	.bew-book-extra-grid > .bew-book-extra-card {
		flex: 1 1 100%;
	}
}

/* ── Responsive: Mobile (max-width 767px) ── */
@media (max-width: 767px) {
	/* Reduce base padding */
	.bew-book-product {
		padding: 0 16px;
	}

	.bew-book-hero {
		padding: 1.5em 0 3em;
	}

	.bew-book-hero-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* Prevent grid children from overflowing */
	.bew-book-hero-inner > * {
		min-width: 0;
		max-width: 100%;
	}

	.bew-book-hero-image {
		position: static;
		max-width: 100%;
		margin: 0;
	}

	/* Mobile typography */
	.bew-book-title {
		font-size: 24px;
	}

	.bew-book-author,
	.bew-book-subtitle {
		font-size: 17px;
	}

	.bew-book-section-title {
		font-size: 22px;
	}

	.bew-book-purchase-sidebar {
		position: static;
	}

	.bew-book-purchase-title {
		font-size: 20px;
	}

	.bew-book-purchase-format,
	.bew-book-purchase-price {
		font-size: 17px;
	}

	.bew-book-purchase-list {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	/* Ficha: single column on mobile */
	.bew-book-ficha-grid {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
	}

	.bew-book-ficha-label {
		font-size: 14px;
	}

	.bew-book-ficha-value {
		font-size: 15px;
	}

	/* Author: stack vertically, photo on top */
	.bew-book-author-inner {
		flex-direction: column;
	}

	.bew-book-author-photo {
		order: -1;
	}

	.bew-book-author-photo img {
		width: 180px;
		height: 180px !important;
		max-width: 180px;
		max-height: 180px;
	}

	/* Extra: single column */
	.bew-book-extra-grid {
		flex-direction: column;
		gap: 0;
	}

	.bew-book-extra-grid > .bew-book-extra-card {
		flex: 1 1 100%;
	}

	.bew-book-extra-card:last-child {
		padding-top: 3em;
	}

	/* Related: 2 columns, no extra horizontal padding */
	.bew-book-related {
		padding: 64px 0 80px;
	}

	.bew-book-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.bew-book-related-title {
		font-size: 14px;
	}

	.bew-book-related-author {
		font-size: 13px;
	}

	/* Anchor nav */
	.bew-book-product .bew-anm-items {
		gap: 24px;
	}

	.bew-book-product .bew-anm-item {
		font-size: 14px;
	}

	/* Sticky bar title — fit mobile width */
	.bew-bbs-info-title {
		max-width: 100%;
	}

	/* Review form responsive */
	.bew-book-review-form-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.bew-book-reviews-tabs {
		gap: 0;
	}

	.bew-book-reviews-tab {
		padding: 10px 16px;
		font-size: 14px;
	}

	.bew-book-review-bonus-btn {
		padding: 8px 14px;
		font-size: 13px;
	}

	.bew-book-review-bonus-block-inner {
		flex-direction: column;
		text-align: center;
		gap: 14px;
	}

	.bew-book-review-bonus-block-text {
		align-items: center;
	}

	.bew-book-review-form-title {
		font-size: 20px;
	}

	/* Review items responsive */
	.bew-book-review-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	/* Bonus page responsive */
	.bew-book-bonus-header {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.bew-book-bonus-title {
		font-size: 22px;
	}

	.bew-book-bonus-video-title {
		font-size: 19px;
	}
}

/* ── Responsive: Small mobile (max-width 480px) ── */
@media (max-width: 480px) {
	.bew-book-title {
		font-size: 22px;
	}

	.bew-book-section-title {
		font-size: 20px;
	}

	.bew-book-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.bew-book-related-img {
		width: 85%;
	}
}
