.cart-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}
.cart-drawer-overlay.open {
    display: block;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
}
.cart-drawer.open {
    transform: translateX(0);
}
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}
.cart-drawer-header .cart-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.cart-drawer-header .cart-drawer-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.cart-drawer-header .cart-drawer-close:hover {
    background: #f0f0f0;
    color: #333;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-drawer-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
}
.cart-drawer-empty img {
    width: 60px;
    opacity: 0.4;
    margin-bottom: 16px;
}
.cart-drawer-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cart-drawer-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-drawer-item:last-child {
    border-bottom: none;
}
.cart-drawer-item .cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
    margin-right: 14px;
}
.cart-drawer-item .cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-drawer-item .cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-drawer-item .cart-item-variant {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.cart-drawer-item .cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-item .cart-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.cart-drawer-item .cart-item-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.cart-drawer-item .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}
.cart-drawer-item .qty-btn:hover {
    background: #e8e8e8;
}
.cart-drawer-item .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cart-drawer-item .qty-value {
    width: 32px;
    text-align: center;
    font-size: 13px;
    color: #333;
    user-select: none;
}
.cart-drawer-item .cart-item-remove {
    border: none;
    background: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.cart-drawer-item .cart-item-remove:hover {
    color: #e74c3c;
}
.cart-drawer-footer {
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px 20px;
    flex-shrink: 0;
}
.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
}
.cart-drawer-subtotal .subtotal-label {
    color: #666;
}
.cart-drawer-subtotal .subtotal-value {
    font-weight: 600;
    color: #333;
}
.cart-drawer-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    background: #00acec;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.cart-drawer-checkout:hover {
    background: #0095d0;
}
.cart-drawer-loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* Store page floating cart icon */
.store-cart-float {
    position: fixed;
    right: 15px;
    top: 80%;
    z-index: 5;
    cursor: pointer;
}
.store-cart-float .icon {
    position: relative;
    padding: 10px;
    background: #f4f4f4;
    border-radius: 50%;
}
.store-cart-float .icon img {
    width: 24px;
    height: 27px;
}
.store-cart-float .icon .num {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 10px;
    color: #00acec;
    text-align: center;
    background: #d6d6d6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width: 750px) {
    .cart-drawer {
        width: 85vw;
    }
}
