/* ============================================
   CARRITO DE COMPRAS
   ============================================ */

/* Botón flotante del carrito: mismos estilos base que .floating-cta (styles.css); solo posición encima del WhatsApp */
.floating-cta.btn-cart-float {
    bottom: 132px;
    right: 30px;
    z-index: 9998;
    display: none;
}

.floating-cta.btn-cart-float.cart-float-btn--visible {
    display: flex;
}

.floating-cta.btn-cart-float i {
    z-index: 2;
}

.floating-cta.btn-cart-float .cart-badge {
    z-index: 3;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e29117;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
    border: 2px solid #141414;
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   DRAWER (Panel lateral)
   ============================================ */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #141414 0%, #1a0d28 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-drawer.active {
    transform: translateX(0);
}

/* Header del drawer */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cart-drawer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-drawer-title i {
    color: #e29117;
}

.cart-drawer-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e29117;
    background: rgba(226, 145, 23, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.cart-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.cart-drawer-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* Paso 1: país de envío */
.cart-country-step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cart-country-step-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-country-step-hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #aaa;
}

.cart-country-step .form-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ccc;
}

.cart-country-step .form-label .req {
    color: #e74c3c;
}

.cart-country-step .form-input.form-select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
}

.btn-country-continue {
    margin-top: auto;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e29117, #c47a0f);
    color: #111;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-country-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(226, 145, 23, 0.35);
}

.cart-country-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1.5rem;
    background: rgba(226, 145, 23, 0.1);
    border-bottom: 1px solid rgba(226, 145, 23, 0.2);
    font-size: 0.82rem;
    color: #e8e8e8;
    flex-shrink: 0;
}

.cart-country-banner-text {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.cart-country-banner-text i {
    color: #e29117;
    flex-shrink: 0;
}

.cart-country-btn-change {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e29117;
    background: transparent;
    border: 1px solid rgba(226, 145, 23, 0.35);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.cart-country-btn-change:hover {
    background: rgba(226, 145, 23, 0.12);
}

.cart-list-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Cuerpo del drawer: lista de items */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-drawer-body::-webkit-scrollbar {
    width: 5px;
}

.cart-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(226, 145, 23, 0.3);
    border-radius: 4px;
}

/* Estado vacío */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: #666;
    text-align: center;
}

.cart-empty i {
    font-size: 3rem;
    color: #444;
}

.cart-empty p {
    font-size: 0.95rem;
}

/* Item del carrito */
.cart-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: cartItemIn 0.3s ease;
}

@keyframes cartItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-specs {
    font-size: 0.72rem;
    color: #888;
}

.cart-item-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e29117;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-qty-btn:hover {
    background: rgba(226, 145, 23, 0.2);
    border-color: #e29117;
}

.cart-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.cart-item-remove {
    align-self: flex-start;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #ef4444;
}

/* Footer del drawer */
.cart-drawer-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-total-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
}

.cart-total-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e29117;
}

.cart-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #e29117 0%, #3D073B 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(226, 145, 23, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 145, 23, 0.4);
}

.btn-checkout:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-clear-cart:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
}

/* ============================================
   CHECKOUT (dentro del drawer)
   ============================================ */
.cart-checkout {
    display: none;
    flex-direction: column;
    height: 100%;
}

.cart-checkout.active {
    display: flex;
}

.cart-checkout-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.btn-back-cart {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-back-cart:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cart-checkout-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.cart-checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.cart-checkout-body::-webkit-scrollbar {
    width: 5px;
}

.cart-checkout-body::-webkit-scrollbar-thumb {
    background: rgba(226, 145, 23, 0.3);
    border-radius: 4px;
}

.checkout-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
}

.checkout-summary-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.82rem;
    color: #ccc;
}

.checkout-summary-item--no-price {
    justify-content: flex-start;
}

.checkout-summary-item .qty {
    color: #888;
}

.checkout-summary-line {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.84rem;
    color: #ddd;
}

.checkout-summary-line:last-of-type {
    border-bottom: none;
}

.checkout-summary-line-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout-summary-line-name {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.checkout-summary-line-money {
    flex-shrink: 0;
    font-weight: 700;
    color: #7bed9f;
    font-size: 0.9rem;
}

.checkout-summary-line-consultar {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.checkout-summary-line-meta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #777;
    text-align: right;
}

.checkout-summary-totals-wrap {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #aaa;
    padding: 0.25rem 0;
}

.checkout-summary-total-row--shipping span:last-child {
    color: #f0c674;
}

.checkout-summary-total-grand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(226, 145, 23, 0.25);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.checkout-summary-total-grand span:last-child {
    color: #e29117;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    color: #e29117;
    font-size: 0.95rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkout-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ccc;
}

.checkout-form .form-label i {
    color: #e29117;
    font-size: 0.85rem;
}

.checkout-form .form-input,
.checkout-form .form-textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.checkout-form .form-input:focus,
.checkout-form .form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #e29117;
    box-shadow: 0 0 0 3px rgba(226, 145, 23, 0.1);
}

.checkout-form .form-input::placeholder,
.checkout-form .form-textarea::placeholder {
    color: #555;
}

.checkout-form .form-textarea {
    resize: vertical;
    min-height: 70px;
}

.cart-checkout-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.btn-send-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-send-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   Modal costo de envío (Lottery, fuera de Chile)
   ============================================ */
.shipping-disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 10005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.shipping-disclaimer-modal.active {
    display: flex;
}

.shipping-disclaimer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    cursor: pointer;
}

.shipping-disclaimer-panel--order-review {
    max-width: min(480px, calc(100vw - 2rem));
}

.order-review-content {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-bottom: 0.75rem;
}

.order-review-section {
    margin-bottom: 1rem;
}

.order-review-country {
    padding: 0.65rem 0.75rem;
    background: rgba(226, 145, 23, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.order-review-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.order-review-country-name {
    color: #fff;
}

.order-review-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e29117;
    margin-bottom: 0.5rem;
}

.order-review-line {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}

.order-review-line:last-child {
    border-bottom: none;
}

.order-review-line-name {
    display: block;
    color: #ddd;
}

.order-review-line-money {
    float: right;
    color: #7bed9f;
    font-weight: 600;
}

.order-review-line-meta {
    clear: both;
    font-size: 0.72rem;
    color: #888;
    margin-top: 0.2rem;
}

.order-review-line-consultar {
    float: right;
    color: #b8b8c8;
    font-size: 0.78rem;
}

.order-review-totals {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-review-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    padding: 0.35rem 0;
    color: #ccc;
}

.order-review-total-row span:last-child {
    color: #e8e8e8;
    font-weight: 600;
}

.order-review-lottery-block {
    margin: 0.75rem 0;
}

.order-review-lottery-intro {
    margin-bottom: 0.65rem !important;
}

.order-review-shipping-total {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.order-review-disclaimer-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #9a9aaa;
}

.order-review-total-grand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.65rem;
    padding: 0.65rem 0.5rem;
    background: rgba(226, 145, 23, 0.12);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.order-review-total-grand span:last-child {
    color: #7bed9f;
    font-size: 1.05rem;
}

.order-review-footer-note {
    margin-top: 0.75rem !important;
}

.checkout-country-hint {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.35;
}

.checkout-phone-code-wrap {
    flex: 0 1 240px;
    min-width: 0;
}

.checkout-form .checkout-phone-code-wrap .form-select {
    font-size: 0.78rem;
}

.shipping-disclaimer-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(85vh, 560px);
    overflow-y: auto;
    background: linear-gradient(160deg, #1c1c24 0%, #12121a 100%);
    border: 1px solid rgba(226, 145, 23, 0.4);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    font-family: 'Inter', sans-serif;
    color: #e8e8e8;
}

.shipping-disclaimer-panel h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shipping-disclaimer-panel h3 i {
    color: #e29117;
}

.shipping-disclaimer-intro {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #b8b8c8;
}

.shipping-disclaimer-intro strong {
    color: #e29117;
}

.shipping-disclaimer-table-wrap {
    overflow-x: auto;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shipping-disclaimer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.shipping-disclaimer-table th,
.shipping-disclaimer-table td {
    padding: 0.5rem 0.55rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shipping-disclaimer-table th {
    background: rgba(226, 145, 23, 0.12);
    color: #e29117;
    font-weight: 600;
    white-space: nowrap;
}

.shipping-disclaimer-table td:nth-child(2),
.shipping-disclaimer-table td:nth-child(4) {
    white-space: nowrap;
    color: #7bed9f;
    font-weight: 600;
}

.shipping-disclaimer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.5rem;
    margin-bottom: 1rem;
    background: rgba(226, 145, 23, 0.08);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.shipping-disclaimer-total span:last-child {
    color: #7bed9f;
    font-size: 1.05rem;
}

.shipping-disclaimer-note {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #888;
}

.shipping-disclaimer-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.shipping-disclaimer-actions button {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.shipping-disclaimer-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shipping-disclaimer-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

.shipping-disclaimer-btn-ok {
    background: linear-gradient(135deg, #e29117, #c47a0f);
    color: #111;
}

.shipping-disclaimer-btn-ok:hover {
    transform: translateY(-1px);
}

/* ============================================
   TOAST de notificación
   ============================================ */
/* Abajo a la izquierda: no tapa los FAB (carrito + WhatsApp) a la derecha */
.cart-toast {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 24px;
    background: linear-gradient(135deg, #1a1a1a, #2d1b69);
    border: 1px solid rgba(226, 145, 23, 0.3);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    z-index: 10003;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: min(320px, calc(100vw - 40px));
}

.cart-toast.visible {
    transform: translateX(0);
    pointer-events: auto;
}

.cart-toast i {
    color: #25D366;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================
   BOTÓN "Agregar al carrito" en catálogo
   ============================================ */
.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin-top: 0.5rem;
    background: transparent;
    color: #e29117;
    border: 1px solid rgba(226, 145, 23, 0.35);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-add-cart:hover {
    background: rgba(226, 145, 23, 0.12);
    border-color: #e29117;
}

.btn-add-cart i {
    font-size: 0.82rem;
}

/* Botón en detalle de producto */
.btn-add-cart-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    margin-top: 0.75rem;
    background: transparent;
    color: #e29117;
    border: 2px solid #e29117;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-add-cart-detail:hover {
    background: rgba(226, 145, 23, 0.12);
    transform: translateY(-2px);
}

.btn-add-cart-detail i {
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
    }

    .cart-toast {
        left: 16px;
        bottom: 20px;
        max-width: min(320px, calc(100vw - 32px));
    }

    /* Misma pila que .floating-cta en móvil: 70px alto + 20px bottom + ~14px separación */
    .floating-cta.btn-cart-float {
        bottom: 126px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .cart-drawer-header,
    .cart-drawer-body,
    .cart-drawer-footer,
    .cart-checkout-header,
    .cart-checkout-body,
    .cart-checkout-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cart-item-img {
        width: 52px;
        height: 52px;
    }
}
