/* ==========================================================================
   Dorano Floating Cart Popup — Two-button layout with checkmark animation
   ========================================================================== */

.dorano-floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    width: min(380px, calc(100vw - 48px));
    background: var(--dorano-white);
    border-radius: 12px;
    box-shadow: var(--dorano-shadow-lg);
    border: 1px solid var(--dorano-light-gray);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.dorano-floating-cart.dorano-floating-cart--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dorano-floating-cart--rtl {
    right: auto;
    left: 24px;
}

/* Close button */
.dorano-floating-cart__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dorano-text-light);
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--dorano-transition);
    z-index: 2;
}

.dorano-floating-cart--rtl .dorano-floating-cart__close {
    right: auto;
    left: 8px;
}

.dorano-floating-cart__close:hover {
    color: var(--dorano-main);
}

/* Body */
.dorano-floating-cart__body {
    display: flex;
    gap: 14px;
    padding: 16px 16px 12px;
    align-items: center;
}

.dorano-floating-cart__image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dorano-off-white);
}

.dorano-floating-cart__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dorano-floating-cart__details {
    flex: 1;
    min-width: 0;
}

.dorano-floating-cart__message {
    font-size: 12px;
    font-weight: 600;
    color: var(--dorano-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Checkmark animation */
.dorano-floating-cart__checkmark {
    color: #2ecc71;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease 0.2s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s;
}

.dorano-floating-cart--visible .dorano-floating-cart__checkmark {
    opacity: 1;
    transform: scale(1);
}

.dorano-floating-cart__product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dorano-main);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dorano-floating-cart__product-price {
    font-size: 13px;
    color: var(--dorano-text-light);
    margin: 0;
}

/* Two-button actions */
.dorano-floating-cart__actions {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--dorano-light-gray);
}

.dorano-floating-cart__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--dorano-transition);
    border: none;
}

.dorano-floating-cart__btn--continue {
    background: var(--dorano-off-white);
    color: var(--dorano-main);
}

.dorano-floating-cart__btn--continue:hover {
    background: var(--dorano-light-gray);
}

.dorano-floating-cart__btn--checkout {
    background: var(--dorano-gold);
    color: var(--dorano-main);
}

.dorano-floating-cart__btn--checkout:hover {
    background: var(--dorano-gold-light);
    color: var(--dorano-main);
}

/* Progress bar */
.dorano-floating-cart__progress {
    height: 3px;
    background: var(--dorano-light-gray);
}

.dorano-floating-cart__progress-bar {
    height: 100%;
    background: var(--dorano-gold);
    width: 100%;
    transform-origin: left;
    transition: none;
}

.dorano-floating-cart__progress-bar.dorano-floating-cart__progress-bar--animating {
    transition: transform 3s linear;
    transform: scaleX(0);
}

/* Mobile */
@media (max-width: 544px) {
    .dorano-floating-cart {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .dorano-floating-cart--rtl {
        right: 12px;
        left: 12px;
    }
}
