/* CSS Document */
/* POPUP HORARIO ESPECIAL */
.popup-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);justify-content:center;align-items:center;z-index:1000}.popup-content{background-color:white;padding:20px;border-radius:8px;box-shadow:0 4px 8px rgba(0,0,0,0.2);max-width:90%;margin:0 20px;text-align:center;position:relative}.popup-close{cursor:pointer;color:#555;font-size:24px;position:absolute;top:10px;right:15px;font-weight:bold}.close-button{margin-top:15px;padding:10px 20px;font-size:16px;color:white;background-color:#007bff;border:none;border-radius:4px;cursor:pointer}.close-button:hover{background-color:#0056b3}@media (max-width:600px){.popup-content{padding:15px;font-size:16px}.popup-close{font-size:28px;top:5px;right:10px}}
/* Botón de oferta (verde suave) */
.btn.btt_sale:before{background:#27ae60!important;z-index:-1;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.2)}.btn.btt_sale.active:before,.btn.btt_sale:active:before,.btn.btt_sale:focus:before,.btn.btt_sale:hover:before{background:#219150!important}.btn.btt_sale .tooltip-sale{position:absolute;bottom:100%;left:50%;transform:translateX(-50%) translateY(-10px);background:#219150;color:#fff;padding:3px 6px;border-radius:4px;font-size:12px;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .2s ease-in-out;pointer-events:none;z-index:10}.btn.btt_sale .tooltip-sale::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border-width:5px;border-style:solid;border-color:#219150 transparent transparent}.btn.btt_sale:hover .tooltip-sale{opacity:1;visibility:visible}
/* Modificaciones Polymaker */
.subgroup-separator{margin-top:40px;padding-top:20px;border-top:2px dashed #ccc}.badge-overlay{margin-top:5px;padding:4px 0 0;text-align:center}.item-image+.badge-overlay{margin-bottom:8px}.badge-custom{display:inline-block;background:rgba(255,255,255,.85);color:#333;border-radius:6px;font-size:11px;padding:2px 6px;margin:2px 4px;font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.1)}
.product-thumb-info{position:relative}.sold-out-overlay{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:6px;font-weight:700;font-size:14px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;color:#fff;z-index:5}.sold-out-overlay.agotado{background:rgba(200,0,0,.7)}.sold-out-overlay.soon{background:rgba(0,90,255,.7)}.sold-out-overlay.available{background: rgba(0, 200, 0, 0.7)}.sold-out-overlay.backorder{background: rgba(255, 200, 0, 0.7)}
.search-mobile-icon {font-size: 30px !important;padding-left: 3px}
.search-wrapper-pc {
    position: relative;
    display: inline-block;
}

/* Campo de búsqueda 10px más a la izquierda del icono */
.search-container-pc {
    position: absolute;
    right: calc(100% + 10px); /* más a la izquierda respecto al botón */
    top: 50%;
    transform: translateY(-50%);
    display: none;
    background: white;
    padding: 10px;
    width: 280px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 9999;
}

.search-container-pc input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

/* ❌ Eliminamos los estilos del contenedor de resultados */
.search-results-pc,
.search-results-pc div,
.search-results-pc div:hover {
    display: none !important;
}

/* SMARTPHONES */
.mobile-search-box {
    position: absolute;
    top: 60px; /* Ajusta según la altura de tu header */
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    animation: slideDown 0.3s ease forwards;
}

.mobile-search-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 16px;
}

.mobile-search-results {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.mobile-search-results div {
    padding: 6px;
    cursor: pointer;
}

.mobile-search-results div:hover {
    background-color: #eee;
}
@media (max-width: 768px) {
  .search-results-section .product-item {
    width: 50% !important;
  }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.sold-out-overlay.on_request {
    background-color: #2196F3; /* Azul informativo */
    color: white;
}
/* IMG TO IMG */
/* CONTENEDOR: ya lo gestiona .responsive-1by1 */
/* NUEVO CONTENEDOR CUADRADO */
.square-image-container {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
}

/* Ya no uses absolute aquí */
.image-hover-wrapper {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Mantiene las imágenes superpuestas y centradas */
.image-hover-wrapper img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 0.4s ease-in-out;
	display: block;
}

.image-hover-wrapper img.primary-img {
	z-index: 1;
	opacity: 1;
}

.image-hover-wrapper img.secondary-img {
	z-index: 2;
	opacity: 0;
	pointer-events: none;
}
.has-secondary:hover img.secondary-img {
	opacity: 1;
}

.has-secondary:hover img.primary-img {
	opacity: 0;
}
/* CARRITO */
.cartbtt a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: #fff;
  padding: 7px;
  line-height: 1;
}
.menu-extra .cartbtt a {
	font-size: inherit;
	padding: 0;
	display: block
}
.cartbtt .cart-count-desktop,
.cartbtt .cart-count-mobile {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(35%, -35%); /* 👈 AJUSTA vertical/horizontal */
  background-color: #e53935;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}

.menu-wrap.line .menu-items>li>a, .menu-wrap.line .menu-items>li>a:active, .menu-wrap.line .menu-items>li>a:focus, .menu-wrap.line .menu-items>li>a:hover {
	color: inherit;
}
.menu-extra .cartbtt .cart-count-desktop {
	right: -5px;
}
.shop-menu .menu-extra-items li {
    font-size: 22px;
}
.shop-menu .menu-extra-items li.myaccount {
	margin-top:0px;
    line-height: 40px;
}
.cartbtt.xs-shown a {
  position: relative;
  display: inline-block;
  font-size: 24px;
  color: #fff;
  padding: 8px;
  padding-right: 10px;
  line-height: 1;
}
.header:not(.header-over) .cartbtt.xs-shown a {
	color: inherit;
}
.header .cart-sp.xs-shown {
	font-size: 25px;
}

.cartbtt.xs-shown .cart-count-mobile {
  position: absolute;
  top: 0;
  right: 5px;
  transform: translate(30%, -30%);
  background-color: #e53935;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  pointer-events: none;
}


/* Panel del carrito */
.cart-item-image {
  width: 70px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.2;
}

.cart-item-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cart-item-qty {
  display: flex;
  align-items: center;
}

.qty-btn {
  background: #eee;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}

.qty-input {
  width: 30px;
  text-align: center;
  margin: 0 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 28px;
}

.cart-item-price {
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
  margin-right: 10px;
}

.remove-item {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
}


/* CART NUEVO */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-drawer-footer {
  padding: 1rem;
  border-top: 1px solid #ddd;
  background-color: #fafafa;
}
.cart-item {
  display: flex;
  margin-bottom: 15px;
  gap: 10px;
}
.cart-item-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-item-info {
  flex: 1;
  font-size: 13px;
}
.cart-item-title {
  font-weight: bold;
  margin-bottom: 3px;
}
.cart-item-variant {
  color: #777;
  font-size: 12px;
}
.cart-item-price {
  font-weight: bold;
  color: #2196f3;
  margin-top: 4px;
}
.cart-item-remove {
  color: #e53935;
  font-size: 12px;
  display: inline-block;
  margin-top: 5px;
}
/* Productos - Botón añadir al carrito */
/* Estilos del botón de añadir al carrito */
.product-thumb-info .addtocart-btn-wrapper,
.product-thumb-info .addreserve-btn-wrapper {
	position: absolute;
	top: 30px;
	right: 30px;
	z-index: 3;
	opacity: 0;
	transform: translate3d(0, 0, 0);
	transition: ease transform 300ms, ease opacity 300ms;
}

.product-thumb-info .addtocart-btn-wrapper a.addtocart-btn,
.product-thumb-info .addreserve-btn-wrapper a.addreserve-btn {
	position: relative;
	transform: translate3d(0, 0, 0);
	transition: ease transform 300ms, ease opacity 300ms;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #212121;
	background: #FFF;
	width: 40px;
	height: 40px;
	border-radius: 100%;
	font-size: 1rem;
	box-shadow: 0px 0px 12px -4px rgb(0 0 0 / 40%);
	text-decoration: none;
}

.product-thumb-info .addreserve-btn-wrapper a.addreserve-btn {
	background: #fffde7;
}

.product-thumb-info .addtocart-btn-wrapper a.addtocart-btn:hover {
	color: #FFF;
	background: #0088CC;
}

.product-thumb-info .addreserve-btn-wrapper a.addreserve-btn:hover {
	color: #FFF;
	background: #fdd835;
}

/* Mostrar el botón al hacer hover sobre el producto */
li.pitem:hover .addtocart-btn-wrapper,
li.pitem:hover .addreserve-btn-wrapper {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}
.swatch-circle.rainbow {
	border: 1px solid #aaa;
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
}
.color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	margin-right: 20px; /* margen adicional a la derecha */
	box-sizing: border-box;
}
.color-swatch {
	position: relative;
	cursor: pointer;
	width: 32px; /* igual que el círculo + margen */
}

.color-swatch input[type="checkbox"] {
	display: none;
}

.swatch-circle {
	display: inline-block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #ccc;
	box-shadow: inset 0 0 2px rgba(0,0,0,0.2);
	transition: all 0.2s ease-in-out;
}

.color-swatch input[type="checkbox"]:checked + .swatch-circle {
	border: 3px solid #000;
	box-shadow: 0 0 4px rgba(0,0,0,0.4);
}
.shop-sidebar-left {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.page-shopmain-sidebar {
    flex: 0 0 250px;
    max-width: 250px;
}

.page-shopmain-content {
    flex: 1;
    min-width: 0;
}
.container-shop {
	max-width: 1600px;
}
.field-group>label {
	font-weight: 900;
}
.multi-choice .choice input[type="checkbox"]:checked + .choice-text {
	background-color: #e0f0ff;
	border: 1px solid #007bff;
	color: #007bff;
	font-weight: 600;
	border-radius: 4px;
	padding: 4px 6px;
}
.color-swatch input[type="checkbox"]:checked + .swatch-circle {
	border: 3px solid #007bff;
	box-shadow: 0 0 6px rgba(0, 123, 255, 0.6), inset 0 0 3px rgba(255,255,255,0.4);
	transform: scale(1.1);
}

.color-swatch input[type="checkbox"]:checked + .swatch-circle::after {
	color: #007bff;
	font-size: 14px;
	font-weight: bold;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.multi-choice .choice input[type="checkbox"] + .choice-text,
.color-swatch .swatch-circle {
	transition: all 0.2s ease;
	cursor: pointer;
}
.color-swatch {
    position: relative;
}

.color-swatch:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%; /* justo encima */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 10;
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
    pointer-events: none;
}

@keyframes fadeInTooltip {
    to {
        opacity: 1;
    }
}
.swatch-circle.translucent {
	border: 1px solid #aaa;
	position: relative;
}
ul.products_especial {
    display: flex
;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none outside;
    clear: both;
}
.shop-dev-warning {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #ffeeba;
    z-index: 999;
}
.shop-dev-warning {
    position: sticky;
    top: 0;
    background-color: #ffeeba;
    color: #664d03;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid #ffd966;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

.addtocart-btn-wrapper { display: none !important}
.cartbtt { display:none !important}