/* css/print-cart.css */
/* ===== Icono Flotante del Carrito ===== */
#print-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    z-index: 990;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

#print-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.6);
}

#print-cart-btn svg {
    width: 28px;
    height: 28px;
}

#print-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 13px;
    font-weight: bold;
    height: 24px;
    min-width: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cream);
    padding: 0 6px;
    transition: transform 0.2s;
}

#print-cart-badge.pop {
    animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== Botones de Imprimir en Miniaturas y Modal ===== */
.btn-print {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
}

.btn-print:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.btn-print.in-cart {
    background: var(--gold);
    color: #000;
}

/* ===== Panel del Carrito ===== */
#print-cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

#print-cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(4px);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-size {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-actions select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.8rem;
}

.btn-remove {
    background: transparent;
    border: none;
    color: #ff3b30;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.cart-user-info {
    margin-bottom: 1rem;
}

.cart-user-info label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}

.cart-user-info input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
}

.btn-checkout:hover {
    background: #c3a033;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    background: #ddd;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* ===== Modal Mini para Selección de Tamaño ===== */
#size-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

#size-modal .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.size-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    padding: 1.5rem;
    z-index: 1;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.size-modal-content h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.size-option {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.size-option:hover {
    border-color: var(--gold);
    background: #fff9e6;
}

.size-option strong {
    display: block;
    font-size: 1rem;
    color: #222;
}

.size-option span {
    font-size: 0.85rem;
    color: #666;
}

.size-cancel {
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}