* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.cart-container {
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    flex: 2;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-cart-items {
    display: flex;
    flex-direction: column;
    flex: 2;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-header {
    display: grid;
    grid-template-columns: 90px 1fr 80px 100px 80px 80px 80px 100px;
    gap: 10px;
    padding: 10px 0px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
    background-color: #FFFAF4;
    justify-content: center;
}

.cart-header span {
    font-weight: 600;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr 80px 100px 80px 80px 80px 100px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #FFFAF4;
}

.cart-item:last-child {
    border-bottom: none;
}

.empty-cart {
    font-size: 32px;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    /* flex: 1; */
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.product-name {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.product-availibility {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.product-price {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-align: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;

}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.quantity-btn.plus {
    background: #000;
    color: white;
    border-color: #000;
}

.quantity-btn.plus:hover {
    background: #333;
}

.quantity-display {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    /* min-width: 20px; */
    text-align: center;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    width: 28px;
    height: 28px;
}

.size-select {
    padding: 6px 8px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.color-selector {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    border: 2px solid #e7e7e7;
    box-shadow: 0 0 0 1px #ddd;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
}


.order-summary {
    flex: 1;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-card {
    background: #FFFAF4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-header {
    font-weight: 600;
    font-size: 18px;
    padding: 25px 25px 0 25px;
    margin-bottom: 20px;
}

.delivery-tabs {
    display: flex;
    margin: 0 25px 20px 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.delivery-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: none;
}

.delivery-tab.active {
    background: #000;
    color: white;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    margin-bottom: 12px;
}

.summary-line span:first-child {
    font-size: 14px;
    color: #666;
}

.summary-line span:last-child {
    font-weight: 500;
    font-size: 14px;
}

.total-line {
    border-top: 2px solid #f0f0f0;
    padding: 20px 25px;
    margin-top: 20px;
}

.total-line span:last-child {
    font-weight: 600;
    font-size: 16px;
}

.coupon-section {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}

.coupon-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.coupon-input::placeholder {
    color: #999;
}

.apply-btn {
    padding: 12px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.apply-btn:hover {
    background: #333;
}

.checkout-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #333;
}

.continue-btn {
    width: 25%;
    margin-top: 15px;
    padding: 10px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.continue-btn:hover {
    background-color: #333;
}

.parent-container-for-empty-cart-and-continue-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

@media (max-width: 768px) {
    .cart-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .cart-header {
        display: none;
    }

    .cart-items {
        display: none;
    }

    .mobile-cart-items {
        display: flex !important;
    }

    .product-image {
        width: 100%;
        height: 100px;
    }

    .quantity-display {
        width: 40px;
        height: 18px;
        font-size: 16px;
    }

    .quantity-btn {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }

    .color-selector {
        border-radius: unset !important;
    }

    #shippingAddressModal .main-address,
    .full-address {
        /* word-wrap: normal; */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 60%;
    }

    #shippingAddressModal .store-card {
        height: 80px;
        border-radius: 10px;
        padding: 5px 10px;
    }
    

    .main-content {
        padding: 0px;
    }
}

#addCardModal .main-modal-dialog-container {
    max-width: 800px;
    width: 100%;
}