﻿.shopping-cart {
    background: white;
    width: 420px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

.cart-header {
    padding: 20px 20px 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.cart-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.free-shipping-banner {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid #0088cc;
}

.shipping-icon {
    width: 24px;
    height: 24px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.shipping-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.urgency-banner {
    background: #fff8f0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #ff6b35;
}

.urgency-icon {
    color: #ff6b35;
    font-size: 16px;
}

.urgency-text {
    font-size: 13px;
    color: #333;
}

.timer {
    color: #ff6b35;
    font-weight: 600;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.product-image {
    width: 80px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-details {
    flex: 1;
}

.product-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

.product-warranty {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

    .qty-btn:hover {
        border-color: #999;
        background: #f8f9fa;
    }

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
}

.action-icons {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    gap: 8px;
}

.action-icon {
    width: 20px;
    height: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

    .action-icon:hover {
        color: #666;
    }

.bottom-section {
    flex-shrink: 0;
    background: #fff;
}

.service-icons {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.service-icon {
    width: 24px;
    height: 24px;
    color: #666;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.subtotal-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.subtotal-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.view-cart-btn {
    width: 100%;
    background: white;
    border: 2px solid #333;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s;
}

    .view-cart-btn:hover {
        background: #333;
        color: white;
    }

.checkout-btn {
    width: 100%;
    background: #0088cc;
    border: none;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .checkout-btn:hover {
        background: #25aff3;
    }


.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}




/* Laptop placeholder */
.laptop-placeholder {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}
/* Progress Bar Styles */
.progress-container {
    width: 100%;
    max-width: 350px;
    margin: 40px auto;
    text-align: center;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: repeating-linear-gradient( 45deg, #25aff3, #25aff3 10px, #8bd9ff 10px, #8bd9ff 20px );
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-icon {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 2px solid #25aff3;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25aff3;
    font-size: 16px;
    transition: right 0.5s ease;
    z-index: 10;
}

.truck-flip-x {
    transform: scaleX(1);
}

.message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #25aff3;
    opacity: 0;
    transition: all 0.3s ease;
    min-height: 20px;
}

    .message.show {
        opacity: 1;
    }

.remaining-message {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    opacity: 1;
    transition: all 0.3s ease;
}

    .remaining-message.hide {
        opacity: 0;
    }

.subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.popup {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .close-btn:hover {
        background: #f5f5f5;
        color: #333;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
        font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fafafa;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.date-time-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .icons-container {
        gap: 20px;
    }

    .icon-button {
        width: 70px;
        height: 70px;
    }

    .icon {
        font-size: 28px;
    }

    .popup {
        padding: 20px;
    }
}

.btn-custom {
    border: none;
    background: none;
}

.cart-footer {
    background-color: #f5f5f5;
    padding: 0px;
    border-top: 1px solid #ddd;
    position: sticky;
    bottom: 75px;
}


.view-cart-btn,
.checkout-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    text-align: center;
}