/* ==========================================
   KORPA - GLAVNA STRANICA
========================================== */

.cart-page {
    padding: 80px 6%;
    min-height: 75vh;
    background: #f8f7f6;
}

.cart-container {
    max-width: 1250px;
    margin: 0 auto;
}


/* ==========================================
   NASLOV
========================================== */

.cart-container h1 {
    text-align: center;

    margin: 0 0 55px;

    font-size: 30px;

    font-weight: 500;

    letter-spacing: 4px;

    color: #222;
}


/* ==========================================
   PROIZVOD
========================================== */

.cart-item {

    display: grid;

    grid-template-columns: 150px 1fr auto auto 40px;

    align-items: center;

    gap: 30px;

    background: #fff;

    padding: 25px;

    margin-bottom: 18px;

    border: 1px solid #e9e7e5;

    transition: 0.25s ease;
}


.cart-item:hover {

    box-shadow: 0 8px 30px rgba(0,0,0,0.06);

}


/* ==========================================
   SLIKA
========================================== */

.cart-item img {

    width: 150px;

    height: 185px;

    object-fit: cover;

    display: block;
}


/* ==========================================
   INFORMACIJE
========================================== */

.cart-item-info {

    align-self: center;
}


.cart-item-info h3 {

    margin: 0 0 12px;

    font-size: 18px;

    font-weight: 500;

    letter-spacing: 1px;

    color: #222;
}


.cart-item-info p {

    margin: 7px 0;

    font-size: 14px;

    color: #777;
}


.cart-item-info strong {

    color: #333;

}


.cart-price {

    margin-top: 15px !important;

    font-size: 16px !important;

    font-weight: 600;

    color: #222 !important;
}


/* ==========================================
   KOLIČINA
========================================== */

.cart-quantity {

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #ddd;

    height: 42px;
}


.cart-quantity button {

    width: 40px;

    height: 40px;

    border: none;

    background: white;

    cursor: pointer;

    font-size: 18px;

    color: #333;

    transition: 0.2s;
}


.cart-quantity button:hover {

    background: #f5f4f3;

}


.cart-quantity span {

    width: 35px;

    text-align: center;

    font-size: 14px;

    color: #222;
}


/* ==========================================
   UKUPNA CIJENA PROIZVODA
========================================== */

.cart-item-total {

    min-width: 100px;

    text-align: right;

    font-size: 16px;

    color: #222;

}


/* ==========================================
   DELETE
========================================== */

.remove-item {

    width: 35px;

    height: 35px;

    border: none;

    background: transparent;

    cursor: pointer;

    color: #999;

    font-size: 15px;

    transition: 0.2s;
}


.remove-item:hover {

    color: #222;

    transform: scale(1.1);

}


/* ==========================================
   SAŽETAK KORPE
========================================== */

.cart-summary {

    width: 400px;

    max-width: 100%;

    margin-left: auto;

    margin-top: 45px;

    padding: 30px;

    background: white;

    border: 1px solid #e9e7e5;

}


.summary-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 17px;

    font-size: 14px;

    color: #555;
}


.summary-row strong {

    color: #222;

    font-weight: 500;
}


/* ==========================================
   UKUPNO
========================================== */

.summary-total {

    border-top: 1px solid #ddd;

    padding-top: 22px;

    margin-top: 20px;

    font-size: 18px;

    color: #222;
}


.summary-total strong {

    font-size: 20px;

    font-weight: 600;
}


/* ==========================================
   CHECKOUT
========================================== */

.checkout-btn {

    width: 100%;

    height: 52px;

    margin-top: 25px;

    border: none;

    background: #222;

    color: white;

    cursor: pointer;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 2px;

    transition: 0.25s ease;
}


.checkout-btn:hover {

    background: #444;

    transform: translateY(-1px);

}


/* ==========================================
   NASTAVI KUPOVINU
========================================== */

.continue-shopping {

    display: block;

    text-align: center;

    margin-top: 20px;

    color: #555;

    font-size: 13px;

    letter-spacing: 1px;

    text-decoration: none;

    transition: 0.2s;
}


.continue-shopping:hover {

    color: #111;

}


/* ==========================================
   PRAZNA KORPA
========================================== */

.empty-cart {

    background: white;

    text-align: center;

    padding: 100px 30px;

    border: 1px solid #e9e7e5;
}


.empty-cart i {

    font-size: 45px;

    color: #777;

    margin-bottom: 25px;
}


.empty-cart h2 {

    margin: 0 0 12px;

    font-size: 22px;

    font-weight: 500;
}


.empty-cart p {

    margin-bottom: 30px;

    color: #777;

    font-size: 14px;
}


.empty-cart .continue-shopping {

    display: inline-block;

    margin: 0;

    padding: 15px 30px;

    background: #222;

    color: white;
}


/* ==========================================
   BROJ NA KORPI
========================================== */

.cart-icon {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


#cartCount {

    position: absolute;

    top: -9px;

    right: -11px;

    width: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #222;

    color: white;

    font-size: 10px;

    font-weight: 500;

    line-height: 1;
}


/* ==========================================
   MOBILNI
========================================== */

@media (max-width: 800px) {

    .cart-page {

        padding: 50px 20px;

    }


    .cart-item {

        grid-template-columns: 100px 1fr;

        gap: 18px;

        padding: 18px;

    }


    .cart-item img {

        width: 100px;

        height: 130px;

    }


    .cart-quantity {

        width: fit-content;

    }


    .cart-item-total {

        text-align: left;

    }


    .remove-item {

        position: absolute;

        right: 15px;

        top: 15px;

    }


    .cart-item {

        position: relative;

    }


    .cart-summary {

        width: 100%;

    }

}