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

html, body {
    font-family: IBM Plex Sans;
    color: white;
    background: #171717;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.cart-page {
    padding-bottom: 140px;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 60px;
    color: #171717;
}

.cart-title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10rem;
}

/* HEADER */

header {

    top: 0;
    left: 0;
    width: 100%;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    width: 150px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.cart-icon {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
}

.cart-icon img {
    width: 32px;
    height: 32px;
    transform: translateY(1.2px);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: red;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ITEMS LIST */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 100px;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #333;
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.cart-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.cart-item-size {
    color: #7d7d7d;
    margin-bottom: 1rem;
}

/* QUANTITY CONTROLS */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #171717;
    background: transparent;
    color: #171717;
    cursor: pointer;
    font-size: 1rem;
}

.qty-value {
    font-size: 1.1rem;
}

/* PRICE */
.cart-item-price {
    text-align: right;
    font-size: 1.2rem;
}

/* SUMMARY */
.cart-summary {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    color: white;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.total-price-line {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.checkout-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: white;
    border: none;
    color: #131514;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 2rem;
    text-align: center; 
    text-decoration: none; 
    border-radius: 6px;        
    transition: background 0.2s, color 0.2s;
}

.checkout-btn:hover {
    background: rgba(169, 99, 255, 0.703);
    color: white;
}
