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

body{
    font-family: "League Spartan", sans-serif;
    background-color: #f8f8f8;
}

.js-cart-body{
    margin-top: 140px;
    display: flex;
    gap: 30px;
    padding: 20px clamp(15px, 3vw, 40px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 140px);
    transition: 0.2s ease-in-out;
}

/* Cart Body */
.cart-body{
    flex: 1;
    min-width: 0;
}

.cart-page-title{
    font-size: 32px;
    margin-bottom: 25px;
    font-family: 'League Spartan', sans-serif;
    color: #333;
    font-weight: 700;
}

.cart-render{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product Card */
.browse-card{
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    align-items: flex-start;
    height: fit-content;  /* Add this */
}

.browse-card:hover{
    border-color: #ee0652;
    box-shadow: 0 4px 15px rgba(238, 6, 82, 0.1);
}

.browse-card-img{
    flex-shrink: 0;
    width: 180px;
    height: fit-content;  /* Add this */
}

.browse-card-img img{
    width: 180px;
    height: auto;  /* Change from 180px to auto */
    max-height: 200px;  /* Add this to limit height */
    object-fit: cover;
    border-radius: 8px;
}

.browse-card-information{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    height: fit-content;  /* Add this */
}

.browse-card-details{
    width: 100%;
}

.browse-card-information-area-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "League Spartan", sans-serif;
}

.browse-card-brand{
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.browse-card-about{
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.browse-card-price{
    font-size: 22px;
    font-weight: 700;
    color: #ee0652;
    margin-top: 8px;
}

/* Quantity Controls */
.browse-card-actions{
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;  /* Change from 10px to auto */
}

.quantity-controls{
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    background: #f8f8f8;
}

.quantity-btn{
    width: 35px;
    height: 35px;
    border: none;
    background-color: #ee0652;
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover{
    background-color: #c00545;
    transform: none;
}

.quantity-btn:active{
    transform: none;
}

.quantity-input{
    width: 50px;
    height: 35px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: "League Spartan", sans-serif;
}

.quantity-input:focus{
    outline: none;
}

/* Remove input number arrows */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* Cart Buttons */
.cart-buttons{
    display: flex;
    gap: 10px;
}

.remove-product-cart-button{
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #ee0652;
    color: #ee0652;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "League Spartan", sans-serif;
}

.remove-product-cart-button:hover{
    background-color: #ee0652;
    color: white;
    transform: none;
}

/* Checkout Section */
.cart-checkout{
    width: 380px;
    flex-shrink: 0;
}

.checkout-sticky{
    position: sticky;
    top: 140px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.checkout-title{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    font-family: "League Spartan", sans-serif;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.checkout-item{
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-family: "League Spartan", sans-serif;
    font-size: 15px;
    color: #666;
}

.checkout-item.total{
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.checkout-item span:last-child{
    font-weight: 600;
    color: #333;
}

.checkout-item.total span:last-child{
    color: #ee0652;
    font-size: 24px;
}

.checkout-btn{
    width: 100%;
    padding: 15px;
    background-color: #ee0652;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: "League Spartan", sans-serif;
    box-shadow: 0 4px 15px rgba(238, 6, 82, 0.3);
}

.checkout-btn:hover{
    background-color: #c00545;
    transform: none;
    box-shadow: 0 6px 20px rgba(238, 6, 82, 0.4);
}

.checkout-btn:active{
    transform: none;
}

.continue-shopping{
    width: 100%;
    padding: 12px;
    background-color: white;
    color: #ee0652;
    border: 2px solid #ee0652;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-family: "League Spartan", sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
}

.continue-shopping:hover{
    background-color: #fff5f8;
}

/* Empty Cart */
.no-cart-div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
    min-height: 400px;
}

.no-cart-icon{
    margin-bottom: 30px;
}

.no-cart-icon img{
    width: 120px;
    height: 120px;
    opacity: 0.3;
}

.no-cart-text h1{
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    font-family: "League Spartan", sans-serif;
}

.no-cart-text p{
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    font-family: "League Spartan", sans-serif;
}

.shop-now-btn{
    padding: 15px 40px;
    background-color: #ee0652;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "League Spartan", sans-serif;
    box-shadow: 0 4px 15px rgba(238, 6, 82, 0.3);
}

.shop-now-btn:hover{
    background-color: #c00545;
    transform: none;
    box-shadow: 0 6px 20px rgba(238, 6, 82, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-checkout{
        width: 320px;
    }
    
    .browse-card-img{
        width: 150px;
    }
    
    .browse-card-img img{
        width: 150px;
        height: 150px;
    }
    
    .browse-card-brand{
        font-size: 18px;
    }
    
    .browse-card-about{
        font-size: 14px;
    }
    
    .browse-card-price{
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .js-cart-body{
        flex-direction: column;
        margin-top: 90px;
        padding: 15px;
    }
    
    .cart-checkout{
        width: 100%;
        order: -1;
    }
    
    .checkout-sticky{
        position: relative;
        top: 0;
    }
    
    .browse-card{
        flex-direction: row;
        gap: 15px;
    }
    
    .browse-card-img{
        width: 120px;
    }
    
    .browse-card-img img{
        width: 120px;
        height: 120px;
    }
    
    .browse-card-brand{
        font-size: 16px;
    }
    
    .browse-card-about{
        font-size: 13px;
    }
    
    .browse-card-price{
        font-size: 18px;
    }
    
    .browse-card-actions{
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quantity-controls{
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cart-page-title{
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .browse-card{
        flex-direction: column;
        padding: 15px;
    }
    
    .browse-card-img{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .browse-card-img img{
        width: 100%;
        max-width: 250px;
        height: auto;
    }
    
    .browse-card-actions{
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quantity-controls{
        justify-content: center;
    }
    
    .cart-buttons{
        width: 100%;
    }
    
    .remove-product-cart-button{
        width: 100%;
    }
    
    .checkout-title{
        font-size: 20px;
    }
    
    .checkout-item{
        font-size: 14px;
    }
    
    .checkout-item.total{
        font-size: 16px;
    }
    
    .checkout-item.total span:last-child{
        font-size: 20px;
    }
}

/* Additional utility classes */
.text-center{
    text-align: center;
}

.mt-20{
    margin-top: 20px;
}

.mb-20{
    margin-bottom: 20px;
}

/* Loading state (optional) */
.loading{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading::after{
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ee0652;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Size display */
.browse-card-size{
    font-size: 14px;
    color: #666;
    font-family: "League Spartan", sans-serif;
    margin: 5px 0;
}

.browse-card-size strong{
    color: #ee0652;
    font-weight: 700;
}

/* Cart action row for quantity display */
.cart-action-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.quantity-display{
    font-family: "League Spartan", sans-serif;
    font-size: 15px;
    color: #666;
}

.quantity-display strong{
    color: #333;
    font-weight: 700;
    font-size: 16px;
}

/* Responsive for quantity display */
@media (max-width: 768px) {
    .cart-action-row{
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quantity-display{
        text-align: center;
    }
}