/* Cart Popup */
.aws-cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
}

.aws-cart-popup.is-open {
    display: block;
}

.aws-cart-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.aws-cart-popup__content {
    position: absolute;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.aws-cart-popup--right .aws-cart-popup__content {
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.aws-cart-popup--right.is-open .aws-cart-popup__content {
    transform: translateX(0);
}

.aws-cart-popup--center .aws-cart-popup__content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    width: 450px;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.aws-cart-popup--center.is-open .aws-cart-popup__content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.aws-cart-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.aws-cart-popup__header h3 {
    margin: 0;
    font-size: 18px;
}

.aws-cart-popup__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    color: #666;
}

.aws-cart-popup__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.aws-cart-popup__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aws-cart-popup__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.aws-cart-popup__item:last-child {
    border-bottom: none;
}

.aws-cart-popup__item-image {
    width: 60px;
    flex-shrink: 0;
}

.aws-cart-popup__item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.aws-cart-popup__item-details {
    flex: 1;
}

.aws-cart-popup__item-details h4 {
    margin: 0 0 4px;
    font-size: 14px;
}

.aws-cart-popup__item-qty {
    font-size: 13px;
    color: #666;
}

.aws-cart-popup__item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.aws-cart-popup__footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.aws-cart-popup__total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
}

.aws-cart-popup__buttons {
    display: flex;
    gap: 10px;
}

.aws-cart-popup__buttons .button {
    flex: 1;
    text-align: center;
}

.aws-cart-popup__empty {
    text-align: center;
    color: #666;
    padding: 40px 0;
}
