/* =========================================================
 * Producto individual Rosvar — SOLO el layout externo:
 *   [Banner breadcrumb a todo el ancho]
 *   [ Sidebar categorías | Contenido del producto (pack del plugin) ]
 *
 * El interior del producto (galería, título, precio, botones Agregar al
 * Carrito / Consulte / Compartir, pestañas, relacionados) lo renderiza y
 * estiliza el plugin OZ Cotizador (design-pack "rosvar"). NO lo tocamos
 * aquí para no romper su diseño.
 * ========================================================= */

:root {
	--oz-sp-gray:    #eef1f4;
	--oz-sp-green:   #7AB51D;
	--oz-sp-green-d: #5f9214;
	--oz-sp-blue:    #022A63;
	--oz-sp-ink:     #1f2937;
	--oz-sp-muted:   #6b7280;
	--oz-sp-line:    #e9edf2;
	--oz-sp-trans:   .25s ease;
}

.oz-single {
	font-family: var(--OZ-Font-Base, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--oz-sp-ink);
}

/* ---------- Banner breadcrumb a todo el ancho ---------- */
.oz-single .oz-shop-page-banner {
	background: var(--oz-sp-gray);
	padding: 24px 0;
}
.oz-single .oz-shop-page-banner__inner {
	max-width: 1560px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}
.oz-single .oz-shop-page-banner__title { display: none; }
.oz-single .oz-shop-page-banner__crumbs,
.oz-single .oz-shop-page-banner__wc-breadcrumb {
	font-size: 15px;
	color: var(--oz-sp-muted);
	text-align: center;
}
.oz-single .oz-shop-page-banner__crumbs a,
.oz-single .oz-shop-page-banner__wc-breadcrumb a { color: var(--oz-sp-muted); text-decoration: none; }
.oz-single .oz-shop-page-banner__crumbs a:hover { color: var(--oz-sp-green); }
.oz-single .oz-shop-page-banner__crumb-sep { margin: 0 8px; opacity: .7; }

/* ---------- Layout: sidebar | contenido ---------- */
.oz-single__wrap {
	background: #ffffff;
	padding: 36px 24px 60px;
}
.oz-single__container {
	max-width: 1560px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}
.oz-single__content { min-width: 0; }

/* ---------- Sidebar de categorías (mismo estilo que la tienda) ---------- */
.oz-single__sidebar { min-width: 0; }
.oz-single .oz-shop-block__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
	color: var(--oz-sp-blue);
	text-transform: uppercase;
	letter-spacing: .02em;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--oz-sp-green);
}
.oz-single .oz-shop-categories,
.oz-single .oz-shop-categories ul { list-style: none; margin: 0; padding: 0; }
.oz-single .oz-shop-categories li { position: relative; }
.oz-single .oz-shop-categories a {
	display: block;
	padding: 9px 26px 9px 18px;
	font-size: 16px;
	color: var(--oz-sp-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--oz-sp-line);
	transition: color var(--oz-sp-trans);
}
.oz-single .oz-shop-categories > li > a::before,
.oz-single .oz-shop-categories ul.children > li > a::before {
	content: "";
	position: absolute;
	left: 2px; top: 50%;
	width: 9px; height: 9px; margin-top: -4px;
	border: 2px solid var(--oz-sp-green);
	border-radius: 50%;
	box-sizing: border-box;
}
.oz-single .oz-shop-categories a:hover,
.oz-single .oz-shop-categories .current-cat > a { color: var(--oz-sp-green); }
.oz-single .oz-shop-categories ul.children { padding-left: 16px; }
.oz-single .oz-shop-categories ul.children a { font-size: 16px; }
.oz-single .oz-shop-cat-toggle {
	position: absolute; top: 6px; right: 0;
	width: 24px; height: 24px; border: 0; background: none; cursor: pointer;
	color: var(--oz-sp-green);
}
.oz-single .oz-shop-cat-toggle::before,
.oz-single .oz-shop-cat-toggle::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	background: currentColor; transition: transform var(--oz-sp-trans);
}
.oz-single .oz-shop-cat-toggle::before { width: 11px; height: 2px; transform: translate(-50%, -50%); }
.oz-single .oz-shop-cat-toggle::after  { width: 2px; height: 11px; transform: translate(-50%, -50%); }
.oz-single .oz-shop-categories li.is-expanded > .oz-shop-cat-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.oz-single .oz-shop-categories li.is-collapsed > ul.children { display: none; }

/* El plugin añade su propio breadcrumb interno; usamos el banner superior. */
.oz-single__content .ozc-single-product__breadcrumbs { display: none; }

/* =========================================================
 *  Producto: galería (izq) + resumen (der)
 *  Estilizamos directamente las clases del plugin con los colores
 *  del tema, sin depender de su JS (qty stepper, etc.).
 * ========================================================= */
/* El <section> y el .product deben ocupar todo el ancho disponible. */
.oz-single__content .product,
.oz-single__content .ozc-single-product { display: block; width: 100%; margin: 0; }

/* Solo el __inner es el grid de 2 columnas (galería | resumen). */
.oz-single__content .ozc-single-product__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: 40px;
	align-items: start;
	width: 100%;
	margin: 0;
}

/* Cada columna del grid debe quedarse en su celda (sin float ni desbordes). */
.oz-single__content .ozc-single-product__media,
.oz-single__content .ozc-single-product__summary {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	float: none !important;
	margin: 0 !important;
	box-sizing: border-box;
}

/* Galería con marco */
.oz-single__content .woocommerce-product-gallery {
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	border: 1px solid var(--oz-sp-line);
	border-radius: 12px;
	padding: 22px;
	background: #fff;
	position: relative;
	box-sizing: border-box;
}
.oz-single__content .woocommerce-product-gallery__image img { border-radius: 8px; display: block; }
.oz-single__content .flex-control-thumbs {
	display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none;
}
.oz-single__content .flex-control-thumbs li { width: 70px; }
.oz-single__content .flex-control-thumbs img {
	border: 1px solid var(--oz-sp-line); border-radius: 6px; cursor: pointer; opacity: .7;
	transition: opacity var(--oz-sp-trans), border-color var(--oz-sp-trans);
}
.oz-single__content .flex-control-thumbs img.flex-active,
.oz-single__content .flex-control-thumbs img:hover { opacity: 1; border-color: var(--oz-sp-green); }

/* Resumen */
.oz-single__content .ozc-single-product__summary { min-width: 0; }
.oz-single__content .summary,
.oz-single__content .entry-summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	clear: none !important;
}
.oz-single__content .product_title,
.oz-single__content .ozc-single-product__title .product_title {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--oz-sp-blue);
}
.oz-single__content .ozc-single-product__price .price,
.oz-single__content .summary .price {
	margin: 0 0 14px;
	color: var(--oz-sp-green-d);
	font-size: 22px;
	font-weight: 800;
}
.oz-single__content .ozc-single-product__excerpt,
.oz-single__content .woocommerce-product-details__short-description {
	margin: 0 0 18px;
	color: var(--oz-sp-ink);
	font-size: 15px;
	line-height: 1.6;
}
.oz-single__content .woocommerce-product-details__short-description ul { margin: 0; padding-left: 18px; }

/* Oculta el precio vacío (productos por cotización, sin precio). */
.oz-single__content .ozc-single-product__price:empty,
.oz-single__content .ozc-single-product__price .price:empty { display: none; }

/* =========================================================
 *  Botones de acción (colores del tema)
 *  Fila: [qty + Agregar al Carrito (azul)]  [Consulte (verde)]
 * ========================================================= */
.oz-single__content .ozc-single-product__cta { margin: 0 0 14px; }
.oz-single__content .ozc-single-product__cta form.cart {
	display: flex !important;
	flex-flow: row wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
}
.oz-single__content .ozc-single-product__cta .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--oz-sp-line);
	border-radius: 8px;
	overflow: hidden;
	height: 48px;
}
.oz-single__content .ozc-single-product__cta .quantity input.qty {
	width: 64px;
	height: 48px;
	border: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	background: #fff;
	-moz-appearance: textfield;
}
.oz-single__content .ozc-single-product__cta .quantity input.qty::-webkit-outer-spin-button,
.oz-single__content .ozc-single-product__cta .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Agregar al Carrito → azul */
.oz-single__content .single_add_to_cart_button.button {
	height: 48px;
	padding: 0 28px;
	background: var(--oz-sp-blue) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	cursor: pointer;
	transition: background-color var(--oz-sp-trans), transform var(--oz-sp-trans);
}
.oz-single__content .single_add_to_cart_button.button:hover {
	background: #03386f !important;
	transform: translateY(-1px);
}

/* Consulte / WhatsApp → verde, mismo ancho que la fila de arriba (qty + Agregar al Carrito) */
.oz-single__content .ozc-single-product__wa { display: block; width: 100%; margin: 0 0 14px; }
.oz-single__content .ozc-product-card__wa-btn {
	width: 100% !important;
	height: 48px;
	padding: 0 26px;
	background: var(--oz-sp-green) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color var(--oz-sp-trans), transform var(--oz-sp-trans);
}
.oz-single__content .ozc-product-card__wa-btn::before {
	content: "";
	width: 18px; height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.7-.9-2-1-.3-.1-.5-.1-.6.1-.2.3-.7 1-.9 1.1-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5 0-.1-.6-1.6-.9-2.2-.2-.5-.4-.5-.6-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4-.1-.1-.3-.2-.6-.3z'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12c0 1.8.5 3.4 1.3 4.9L2 22l5.3-1.3c1.4.8 3 1.2 4.7 1.2 5.5 0 10-4.5 10-10S17.5 2 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3.1.8.8-3-.2-.3C4 15 3.6 13.5 3.6 12 3.6 7.4 7.4 3.6 12 3.6S20.4 7.4 20.4 12 16.6 20.2 12 20.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.7-.9-2-1-.3-.1-.5-.1-.6.1-.2.3-.7 1-.9 1.1-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5 0-.1-.6-1.6-.9-2.2-.2-.5-.4-.5-.6-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4-.1-.1-.3-.2-.6-.3z'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12c0 1.8.5 3.4 1.3 4.9L2 22l5.3-1.3c1.4.8 3 1.2 4.7 1.2 5.5 0 10-4.5 10-10S17.5 2 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3.1.8.8-3-.2-.3C4 15 3.6 13.5 3.6 12 3.6 7.4 7.4 3.6 12 3.6S20.4 7.4 20.4 12 16.6 20.2 12 20.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	flex: 0 0 auto;
}
.oz-single__content .ozc-product-card__wa-btn:hover {
	background: var(--oz-sp-green-d) !important;
	transform: translateY(-1px);
}

/* Meta: Category / Tags */
.oz-single__content .ozc-single-product__meta { margin-top: 6px; }
.oz-single__content .product_meta {
	font-size: 14px;
	color: var(--oz-sp-muted);
	border-top: 1px solid var(--oz-sp-line);
	padding-top: 16px;
	line-height: 1.8;
}
.oz-single__content .product_meta > span { display: block; margin-bottom: 2px; }
.oz-single__content .product_meta a { color: var(--oz-sp-green-d); text-decoration: none; }
.oz-single__content .product_meta a:hover { color: var(--oz-sp-green); text-decoration: underline; }

/* =========================================================
 *  Pestañas
 * ========================================================= */
.oz-single__content .woocommerce-tabs { margin-top: 44px; }
.oz-single__content .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none;
	border-bottom: 1px solid var(--oz-sp-line);
}
.oz-single__content .woocommerce-tabs ul.tabs li { margin: 0; background: var(--oz-sp-gray); border-radius: 8px 8px 0 0; }
.oz-single__content .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 22px; color: var(--oz-sp-ink);
	font-weight: 700; font-size: 14px; text-decoration: none;
	transition: background-color var(--oz-sp-trans), color var(--oz-sp-trans);
}
.oz-single__content .woocommerce-tabs ul.tabs li.active { background: var(--oz-sp-green); }
.oz-single__content .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.oz-single__content .woocommerce-Tabs-panel { padding: 24px 4px; font-size: 15px; line-height: 1.7; color: var(--oz-sp-ink); }
.oz-single__content .woocommerce-Tabs-panel h2 { font-size: 20px; color: var(--oz-sp-blue); margin: 0 0 14px; }
.oz-single__content table.shop_attributes { width: 100%; border-collapse: collapse; border: 1px solid var(--oz-sp-line); }
.oz-single__content table.shop_attributes th,
.oz-single__content table.shop_attributes td { padding: 12px 16px; border: 1px solid var(--oz-sp-line); text-align: left; font-size: 14px; }
.oz-single__content table.shop_attributes tr:nth-child(even) { background: var(--oz-sp-gray); }
.oz-single__content table.shop_attributes th { color: var(--oz-sp-ink); font-weight: 700; width: 30%; }
.oz-single__content table.shop_attributes td { color: var(--oz-sp-muted); font-style: italic; }

/* =========================================================
 *  Productos relacionados
 * ========================================================= */
.oz-single__content .related.products { margin-top: 48px; }
.oz-single__content .related.products > h2 {
	font-size: 22px; font-weight: 800; color: var(--oz-sp-green);
	text-transform: uppercase; letter-spacing: .02em;
	margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--oz-sp-line);
}
.oz-single__content .related.products ul.products {
	display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px;
	margin: 0; padding: 0; list-style: none;
}
.oz-single__content .related.products ul.products::before,
.oz-single__content .related.products ul.products::after { content: none !important; display: none !important; }
.oz-single__content .related.products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* =========================================================
 *  Responsive
 * ========================================================= */
@media (max-width: 1100px) {
	.oz-single__content .related.products ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
	.oz-single__content .ozc-single-product__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 1024px) {
	.oz-single__container { grid-template-columns: 240px 1fr; gap: 28px; }
}
@media (max-width: 880px) {
	.oz-single__container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.oz-single__wrap { padding: 24px 14px 40px; }
}
