/*
 * Orem-specific product page styles.
 *
 * Selectors here are Orem-owned (custom classes/IDs) — brand styling, custom
 * markup, utility classes, and out-of-stock visual treatment that pairs with
 * the OOS-crossed JS in class-wc-product-customizations.php.
 *
 * For overrides of CommerceKit/Shoptimizer/WooCommerce selectors, see:
 *   - commercekit-shoptimizer-overrides.css (sibling file)
 *   - shoptimizer-child-theme/style.css (theme overrides)
 */

/* ------------------------------------------------------------------ */
/* Personalization name field inside the sticky ATC                   */
/* ------------------------------------------------------------------ */

.commercekit_sticky-atc #woocommerce_personalization_name {
	display: block !important;
	opacity: 100% !important;
}

/* ------------------------------------------------------------------ */
/* "Personaliza tu portada" link under attribute swatches             */
/* ------------------------------------------------------------------ */

.personaliza-portada {
	font-size: 13px;
	font-weight: 400;
	text-decoration: underline;
	padding-bottom: 2px;
	margin-bottom: 5px;
	display: inline-block;
}

@media (max-width: 450px) {
	.personaliza-portada { font-size: 11px; }
}

/* ------------------------------------------------------------------ */
/* Conmigo section titles + lists                                     */
/* ------------------------------------------------------------------ */

.oremTitle,
.conmigoTitle {
	text-align: center;
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
	font-size: 20px;
	margin-bottom: 50px;
	margin-top: 50px;
}

.oremTitle {
	font-weight: 900;
	background-color: #E9E2D9;
}

.conmigoTitle { font-weight: 500; }

.oremTitle .subtitle,
.conmigoTitle .subtitle {
	font-size: 15px;
	font-weight: 900;
}

.conmigoTitle.manana,
.conmigoTitle.rosa,
.conmigoTitle.noche { background-color: #E9E2D9; }

.oremList {
	margin: auto;
	max-width: 800px;
	text-align: justify;
}
.oremList > li {
	list-style: none;
	padding-bottom: 15px;
}
.oremList > li:before {
	content: "+";
	padding-right: 7px;
	color: #9f563e;
}

/* ------------------------------------------------------------------ */
/* Product benefits row (Shoptimizer shortcode)                       */
/* ------------------------------------------------------------------ */

.svg-acceso        { background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/acceso.svg'); }
.svg-canal         { background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/canal.svg'); }
.svg-devoluciones  { background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/devoluciones.svg'); }
.svg-envio-express { background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/envioExpress.svg'); }
.svg-garantia      { background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/garantia.svg'); }
.svg-instante      { background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/instante.svg'); }

.svg-acceso,
.svg-canal,
.svg-devoluciones,
.svg-envio-express,
.svg-garantia,
.svg-instante {
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	display: inline-block;
	margin-right: 4px;
}

.svg-info {
	background-image: url('https://orem.com.mx/wp-content/plugins/woocommerce-orem-addons/assets/images/info.svg');
	width: 15px;
	height: 15px;
	background-repeat: no-repeat;
	display: inline-block;
	margin-left: 6px;
	cursor: pointer;
}

.single-product-benefit-container {
	width: 100%;
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	background-color: #E9E2D9;
	padding: 10px 5px;
}

.single-product-benefit-container .column {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
}

.single-product-benefit-container .text {
	max-width: 80px;
	font-size: 12px;
}

@media screen and (max-width: 600px) {
	.single-product-benefit-container .text { max-width: 110px; }
}

/* ------------------------------------------------------------------ */
/* Mobile product title + Orem product title styling                  */
/* ------------------------------------------------------------------ */

#mobile-product-title { display: none !important; }

.product_title.orem {
	font-weight: 400 !important;
	font-size: 22px !important;
	letter-spacing: -1px !important;
}

.summary.entry-summary #oremProductTitle {
	letter-spacing: -.5px !important;
	margin-bottom: -10px !important;
}

.product_subtitle_orem {
	color: #696969 !important;
	font-size: 15px !important;
}

@media (max-width: 992px) {
	.product_title.orem { margin-bottom: 4px !important; }

	.summary.entry-summary #oremProductTitle { display: none !important; }

	#mobile-product-title { display: block !important; }
}

/* ------------------------------------------------------------------ */
/* Sticky ATC: Orem custom details block (desktop)                    */
/* ------------------------------------------------------------------ */

#cgkit-mobile-commercekit-sticky-atc .orem_add2cart_detailsDiv { display: none; }

@media (min-width: 992px) {
	.orem_add2cart_detailsDiv {
		align-items: center;
		width: 100%;
		justify-content: space-between;
		display: none;
	}
	.orem_add2cart_detailsDiv .leftSide {
		display: flex !important;
		align-items: center;
	}
	.orem_add2cart_detailsDiv .leftSide .orem_title {
		text-align: left;
		max-width: 300px;
		padding-left: 10px;
		font-weight: 500;
	}
	.orem_add2cart_detailsDiv .leftSide img { width: 110px; }
	.orem_add2cart_detailsDiv .orem_price {
		text-align: left;
		max-width: 250px;
		padding-right: 10px;
		font-weight: 500;
	}
}

@media (max-width: 992px) {
	.orem_add2cart_detailsDiv .leftSide img { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* Show / hide utility classes (paired with JS)                       */
/* ------------------------------------------------------------------ */

.orem_hide,
.orem_show { transition: opacity .4s, display .4s; }

.orem_hide {
	opacity: 0 !important;
	display: none !important;
}

.orem_show {
	opacity: 1 !important;
	display: block !important;
}

/* ------------------------------------------------------------------ */
/* Out-of-stock cross-out treatment (paired with OOS-crossed JS in    */
/* class-wc-product-customizations.php)                               */
/* ------------------------------------------------------------------ */

:root {
	--oos-gray: rgba(0, 0, 0, .55);
	--oos-gray-strong: rgba(0, 0, 0, .75);
}

.cgkit-swatch.orem-oos-crossed {
	opacity: 1;
	cursor: not-allowed;
}

/* Color swatches (circle) — gray X */
.cgkit-swatch.orem-oos-crossed .color-div {
	position: relative;
	display: inline-block;
	border-radius: 999px;
	overflow: hidden;
	filter: grayscale(80%);
	opacity: .55;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset;
}

.cgkit-swatch.orem-oos-crossed .color-div::before,
.cgkit-swatch.orem-oos-crossed .color-div::after {
	content: "";
	position: absolute;
	left: 10%;
	top: 50%;
	width: 80%;
	height: 2px;
	background: var(--oos-gray-strong);
	transform-origin: center;
	pointer-events: none;
}

.cgkit-swatch.orem-oos-crossed .color-div::before { transform: translateY(-50%) rotate(45deg); }
.cgkit-swatch.orem-oos-crossed .color-div::after  { transform: translateY(-50%) rotate(-45deg); }

/* Planeación buttons — single gray slash */
.cgkit-swatch.orem-oos-crossed.button-fluid,
.cgkit-swatch.orem-oos-crossed[data-type="button"] {
	position: relative;
	overflow: hidden;
	filter: grayscale(40%);
	opacity: .85;
	color: rgba(0, 0, 0, .45) !important;
}

.cgkit-swatch.orem-oos-crossed.button-fluid::before,
.cgkit-swatch.orem-oos-crossed[data-type="button"]::before {
	content: none !important;
}

.cgkit-swatch.orem-oos-crossed.button-fluid::after,
.cgkit-swatch.orem-oos-crossed[data-type="button"]::after {
	content: "";
	position: absolute;
	left: -20%;
	top: 50%;
	width: 140%;
	height: 2px;
	background: rgba(0, 0, 0, .55);
	transform: translateY(-50%) rotate(-12deg);
	pointer-events: none;
	z-index: 2;
}

button.cgkit-swatch-selected.orem-oos-crossed:before { border-color: gray !important; }
