.wc-carrito-button img {
    width: 2.5em; 
    height: 2.5em; 
    vertical-align: middle;
}

.wc-carrito-personalizado-container {
    position: relative;
    display: inline-block;
}

.wc-carrito-button {
    background: none;
    padding: 0; 
    border-radius: 0; 
    box-shadow: none; 
    position: relative;
    cursor: pointer;
}

.wc-carrito-button i {
    font-size: 20px;
}

.wc-carrito-button .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #EE7E34;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 13px;
	font-weight: bold;

}

.wc-carrito-off-canvas {
    position: fixed;
    top: 0;
    right: -350px;
    width: 360px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
}

.wc-carrito-off-canvas.open {
    right: 0;
	width: 460px;
}

.off-canvas-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.close-off-canvas{
	font-size:30px;
	font-weight:bold;
	position: absolute;
    top: 25px;
    right: 10px;
    cursor: pointer;
}

.off-canvas-content {
    padding: 15px;
    overflow-y: auto;
    height: calc(100% - 60px); /* Ajusta la altura para el header */
}

.off-canvas-content ul {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.off-canvas-content li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.off-canvas-content li img {
    max-width: 40px;
    margin-right: 10px;
}

.off-canvas-content .cart-product-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.off-canvas-content .cart-product-info a {
    text-decoration: none;
    color: #000;
}

.off-canvas-content .cart-product-info a:hover {
    text-decoration: underline;
}

.off-canvas-content .remove-product {
    color: #2872FA;
    cursor: pointer;
}

.off-canvas-content .footer-cart-total {
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
}

.off-canvas-content .footer-cart-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
	background-color: #D4771C;
}

.off-canvas-content .footer-cart-buttons a {
    text-decoration: none;
    background-color: #D4771C !important;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    flex: 1;
    margin: 0 2px;
    white-space: nowrap;
}

.off-canvas-content .cart-item-quantity {
    width: 45px;
    text-align: center;
	padding:0;
	border: 1px solid #000 !important;
    margin: 0 5px 0 5px;
}

.shake {
    animation: shake 0.5s;
}
@media (max-width: 480px) {
    .wc-carrito-off-canvas.open {
        width: 360px !important;
    }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
/* --- ESTILOS DEL POPUP DE PRIMER ARTÍCULO --- */

.corcho-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: none; /* Inicia oculto */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Alto para que esté encima del carrito lateral */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.corcho-popup-overlay.is-active {
    display: flex;
    opacity: 1;
}

.corcho-popup-content {
    background: translate;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    max-width: 90%;
    width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.corcho-popup-overlay.is-active .corcho-popup-content {
    transform: scale(1);
}

.corcho-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #EE7E34; /* Usando el color naranja de tu marca */
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.corcho-popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.corcho-popup-message {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}