/* =========================================================================
   Ficha de producto (libro) — Teamwork Editorial sobre Storefront
   ========================================================================= */

.product-overview__head {
	margin-bottom: 1em;
}

.product-overview .product__title {
	margin-bottom: .25em;
}

.product-overview .product__meta .author {
	font-size: 1.1em;
}

.product-overview .product__meta .author a {
	font-weight: 600;
	text-decoration: none;
}

.product-overview hr.white-space {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, .08);
	margin: 1.5em 0 2em;
}

/* --- Rejilla principal: imagen | resumen --- */
.product-overview__grid {
	display: grid;
	grid-template-columns: minmax(260px, 40%) 1fr;
	gap: 3em;
	align-items: start;
}

@media (max-width: 768px) {
	.product-overview__grid {
		grid-template-columns: 1fr;
		gap: 2em;
	}
}

/* --- Libro 3D: grosor + inclinación al pasar el ratón + volteo --- */
.book-images {
	position: relative;
	text-align: center;
	padding: 1em 0;
}

.book {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 340px;
	perspective: 2000px;
}

.book__inner {
	position: relative;
	transform-style: preserve-3d;
	transition: transform .8s cubic-bezier(.2, .8, .2, 1);
	transform: rotateY(0deg);
}

/* Inclinación al pasar el ratón (muestra lomo y grosor). */
.book:hover .book__inner {
	transform: rotateY(-38deg);
}

/* Volteo a la contraportada al pulsar el botón. */
.book.is-flipped .book__inner {
	transform: rotateY(-180deg);
}

.book.is-flipped:hover .book__inner {
	transform: rotateY(-218deg);
}

.book__face {
	backface-visibility: hidden;
}

.book__face--front {
	position: relative;
	transform: translateZ(14px);
}

.book__face--back {
	position: absolute;
	inset: 0;
	transform: rotateY(180deg) translateZ(14px);
}

.book__face--front img,
.book__face--back img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
	border-radius: 2px 4px 4px 2px;
}

/* Lomo (canto izquierdo). */
.book__spine {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 28px;
	transform-origin: left center;
	transform: rotateY(-90deg) translateX(-14px);
	background: linear-gradient(90deg, #c9cdd1, #eef0f2 18%, #c9cdd1 50%, #eef0f2 82%, #c9cdd1);
	border-radius: 2px 0 0 2px;
}

/* Cantos de las páginas (lado derecho). */
.book__pages {
	position: absolute;
	right: 0;
	top: 1.5%;
	height: 97%;
	width: 28px;
	transform-origin: right center;
	transform: rotateY(90deg) translateX(14px);
	background: repeating-linear-gradient(90deg, #fff, #fff 1px, #e2e2e2 2px, #fff 3px);
}

.book__action {
	margin-top: 1.5em;
}

.book__action .see-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
}

.book__action .see-back .dashicons {
	line-height: 1;
}

/* --- Resumen --- */
.product-overview__summary .product__excerpt {
	font-size: 1.05em;
	margin-bottom: 1.5em;
}

.product-single-price .price {
	font-size: 1.6em;
	font-weight: 700;
	margin: 0;
}

.product-single-price .iva_incluido {
	font-size: .65em;
	font-weight: 400;
	color: #767676;
	margin-left: .4em;
}

/* --- Selector de idioma --- */
.product-languages {
	margin: 1.25em 0;
}

.product-languages-label {
	margin: 0 0 .4em;
	font-weight: 600;
}

.product-languages-list {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.product-languages-list-item {
	display: inline-block;
	min-width: 2.5em;
	padding: .3em .7em;
	text-align: center;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 3px;
	font-weight: 600;
	line-height: 1.4;
}

.product-languages-list-item--active,
.product-languages-list-item:hover {
	background: #2c2d33;
	color: #fff;
	border-color: #2c2d33;
}

.product-languages-selected {
	margin: .5em 0 0;
	font-size: .9em;
	color: #767676;
}

/* --- Botones de idioma (sustituyen al select de variación) --- */
.twe-lang-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: .25em 0 .5em;
}

.twe-lang-btn {
	display: inline-block;
	min-width: 3em;
	padding: .4em .9em;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.twe-lang-btn:hover {
	border-color: #2c2d33;
}

.twe-lang-btn.is-active {
	background: #2c2d33;
	color: #fff;
	border-color: #2c2d33;
}

/* --- Ficha técnica --- */
.book-specs {
	margin: 2em 0;
}

.book-specs__title,
.book-index__title {
	font-size: 1.2em;
	margin-bottom: .6em;
}

.book-specs__table {
	width: 100%;
	border-collapse: collapse;
}

.book-specs__table th,
.book-specs__table td {
	text-align: left;
	padding: .5em .75em;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	vertical-align: top;
}

.book-specs__table th {
	width: 40%;
	font-weight: 600;
	color: #43454b;
}

/* --- Sobre el Autor --- */
.author-bio {
	display: flex;
	gap: 1.5em;
	align-items: flex-start;
	margin-bottom: 2em;
}

.author-bio:last-child {
	margin-bottom: 0;
}

.author-bio__photo {
	flex: 0 0 140px;
	max-width: 140px;
}

.author-bio__photo img {
	width: 100%;
	height: auto;
	border-radius: 3px;
}

.author-bio__name {
	margin: 0 0 .15em;
}

.author-bio__subtitle {
	margin: 0 0 .75em;
	color: #767676;
	font-style: italic;
}

@media (max-width: 600px) {
	.author-bio {
		flex-direction: column;
		gap: 1em;
	}

	.author-bio__photo {
		flex-basis: auto;
		max-width: 160px;
	}
}

/* --- Índice --- */
.book-index {
	margin: 2.5em 0;
	clear: both;
}

.book-index__content {
	line-height: 1.7;
}

/* --- Categorías --- */
.product-overview .product_meta {
	margin-top: 1.5em;
	font-size: .9em;
	color: #767676;
}

.product-overview .product_meta a {
	text-decoration: none;
}
