/* ==========================================================================
   Tienda WooCommerce — Grupo Bacalao (layout editorial, fuente y colores del tema)
   ========================================================================== */

.woocommerce .site-main,
.woocommerce-page .site-main { max-width: none; }

/* Ocultar el título "Tienda" duplicado en portada lo gestiona el template */

/* ---- Hero slider ---- */
.woo-hero {
	position: relative;
	width: 100%;
	height: 88vh;
	min-height: 560px;
	overflow: hidden;
}
.woo-hero__track, .woo-hero__slide { position: absolute; inset: 0; }
.woo-hero__slide {
	opacity: 0;
	transition: opacity 0.8s ease;
	background-size: cover;
	background-position: center center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.woo-hero__slide.is-active { opacity: 1; }
.woo-hero__slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.28); }
.woo-hero__content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; }
.woo-hero__title {
	margin: 0 0 26px;
	color: #fff;
	font-size: 52px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.woo-hero__btn {
	display: inline-block;
	padding: 14px 40px;
	border: 1px solid #fff;
	color: #fff;
	text-decoration: none;
	letter-spacing: 2px;
	font-size: 14px;
	transition: background .25s, color .25s;
}
.woo-hero__btn:hover { background: #fff; color: var(--gb-azul); }
.woo-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.15);
	color: #fff; font-size: 22px; cursor: pointer; z-index: 3;
}
.woo-hero__arrow--prev { left: 26px; }
.woo-hero__arrow--next { right: 26px; }
.woo-hero__dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; text-align: center; }
.woo-hero__dot { width: 9px; height: 9px; margin: 0 5px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.woo-hero__dot.is-active { background: #fff; }

/* ---- Estantería / carrusel ---- */
.woo-shelf { padding: 60px 40px 20px; box-sizing: border-box; }
.woo-shelf__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.woo-shelf__title { margin: 0; color: var(--gb-azul); font-size: 30px; font-weight: 400; }
.woo-shelf__all { color: #666; letter-spacing: 1px; font-size: 13px; text-decoration: none; }
.woo-shelf__all:hover { color: var(--gb-camel); }
.woo-shelf__track {
	list-style: none; margin: 0; padding: 0 0 14px;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
	gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.woo-shelf__track .woo-card { scroll-snap-align: start; }
.woo-shelf__track::-webkit-scrollbar { height: 6px; }
.woo-shelf__track::-webkit-scrollbar-thumb { background: #d8d2c6; border-radius: 3px; }

/* ---- Tarjeta de producto ---- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.woo-card { position: relative; margin: 0; }
.woo-card__media { position: relative; overflow: hidden; background: #f3efe8; }
.woo-card__thumb { display: block; }
.woo-card__thumb img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.woo-card:hover .woo-card__thumb img { transform: scale(1.04); }
.woo-card__badge, .woo-card__sale {
	position: absolute; top: 12px; z-index: 2;
	font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 5px 10px; border-radius: 3px;
}
.woo-card__badge { left: 12px; background: #111; color: #fff; }
.woo-card__sale { right: 12px; background: var(--gb-camel); color: #fff; }
.woo-card__hover {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	transform: translateY(100%); transition: transform .3s ease;
}
.woo-card__media:hover .woo-card__hover { transform: translateY(0); }
.woo-card__hover .button {
	display: block; width: 100%; border: 0; border-radius: 0;
	background: #111; color: #fff; padding: 14px; text-align: center;
	font-size: 13px; letter-spacing: 1px; cursor: pointer; text-decoration: none;
}
.woo-card__hover .button:hover { background: var(--gb-camel); }
.woo-card__hover .added_to_cart { display: none; }
.woo-card__title {
	display: block; margin: 16px 0 6px; text-align: center;
	color: var(--gb-azul); text-transform: uppercase; font-size: 14px; line-height: 1.4;
	letter-spacing: .5px; text-decoration: none;
}
.woo-card__title:hover { color: var(--gb-camel); }
.woo-card__price { display: block; text-align: center; color: #333; font-size: 15px; }
.woo-card__price del { color: #aaa; margin-right: 6px; }
.woo-card__price ins { text-decoration: none; color: var(--gb-camel); }

/* ---- Banners de familias ---- */
.woo-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 40px 0; }
.woo-banner {
	position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center;
	background-size: cover; background-position: center; text-decoration: none;
}
.woo-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); transition: background .3s; }
.woo-banner:hover::after { background: rgba(12,55,98,.45); }
.woo-banner__label { position: relative; z-index: 2; color: #fff; font-size: 26px; letter-spacing: 1px; text-align: center; }

/* ---- Rejilla del archivo ---- */
.woo-archive { padding: 40px 40px 80px; box-sizing: border-box; }
.woo-archive__head { margin-bottom: 30px; }
.woo-archive__title { margin: 0 0 14px; color: var(--gb-azul); font-size: 30px; font-weight: 400; }
.woo-archive__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #eee; padding-bottom: 14px; }
.woo-archive .products { grid-template-columns: repeat(4, 1fr); }
.woocommerce-result-count { margin: 0; color: #888; font-size: 14px; }
.woocommerce-ordering select { padding: 8px 12px; border: 1px solid #ddd; }

/* Paginación */
.woocommerce-pagination { margin-top: 46px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 8px; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span {
	display: inline-block; padding: 9px 15px; border: 1px solid #ddd; color: var(--gb-azul); text-decoration: none;
}
.woocommerce-pagination .current { background: var(--gb-azul); color: #fff; border-color: var(--gb-azul); }

/* ---- Producto individual ---- */
.single-product .woo-archive { padding: 0; }
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 40px; box-sizing: border-box; }
.single-product div.product .woocommerce-product-gallery { margin: 0; }
.single-product div.product .product_title { color: var(--gb-azul); font-size: 30px; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 14px; }
.single-product div.product .price { color: #222; font-size: 22px; }
.single-product div.product .price del { color: #aaa; margin-right: 8px; }
.single-product div.product .price ins { text-decoration: none; color: var(--gb-camel); }
.woo-delivery { color: #777; font-size: 14px; margin: 8px 0 22px; }
.single-product form.cart { margin: 22px 0; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.single-product form.cart .quantity input { width: 72px; height: 52px; text-align: center; border: 1px solid #ccc; }
.single-product .single_add_to_cart_button {
	flex: 1; min-width: 200px; background: #111; color: #fff; border: 0; border-radius: 0;
	padding: 0 30px; font-size: 14px; letter-spacing: 1px; cursor: pointer; text-transform: uppercase;
}
.single-product .single_add_to_cart_button:hover { background: var(--gb-camel); }
.woo-summary-desc { margin: 24px 0 10px; color: #444; line-height: 1.75; }
.woo-summary-desc p { margin: 0 0 16px; }
.single-product .product_meta { margin-top: 20px; font-size: 13px; color: #999; }

/* Galería */
.woocommerce-product-gallery__image img { border: 1px solid #eee; }
.flex-control-thumbs { display: flex; gap: 10px; padding: 12px 0 0; list-style: none; }
.flex-control-thumbs li { width: 72px; }

/* Acordeón */
.woo-accordion { grid-column: 1 / -1; border-top: 1px solid #e6e6e6; margin-top: 10px; }
.single-product div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woo-accordion__item { border-bottom: 1px solid #e6e6e6; }
.woo-accordion__head {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	background: none; border: 0; padding: 20px 2px; cursor: pointer;
	font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--gb-azul);
}
.woo-accordion__icon { font-size: 22px; color: var(--gb-camel); }
.woo-accordion__head[aria-expanded="true"] .woo-accordion__icon { transform: rotate(45deg); }
.woo-accordion__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.woo-accordion__body > * { margin-top: 0; }
.woo-accordion__body { color: #555; line-height: 1.7; }
.woo-accordion__item .woo-accordion__body p { padding: 0 2px 6px; }

/* Relacionados / upsells */
.related.products, .upsells.products { grid-column: 1 / -1; padding: 20px 40px 80px; box-sizing: border-box; }
.related.products > h2, .upsells.products > h2 { color: var(--gb-azul); font-size: 26px; font-weight: 400; margin: 0 0 26px; }
.related.products .products, .upsells.products .products {
	grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
	display: grid; gap: 24px; overflow-x: auto;
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--gb-camel); padding: 14px 20px; list-style: none;
}
.woocommerce-message .button, .woocommerce-info .button { background: var(--gb-azul); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
	.woo-archive .products { grid-template-columns: repeat(3, 1fr); }
	.woo-hero__title { font-size: 40px; }
}
@media (max-width: 860px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 30px; padding: 30px 24px; }
	.woo-banners { grid-template-columns: 1fr; }
	.woo-hero { height: 70vh; min-height: 440px; }
	.woo-hero__title { font-size: 30px; }
	.woo-shelf, .woo-archive { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
	.woo-archive .products { grid-template-columns: repeat(2, 1fr); }
	.woo-card__title { font-size: 12px; }
}
