/* Cart Page - Header elrejtése mobilon */
.woocommerce-cart .site-header {
    display: none;
}

.lapizza-cart {
    min-height: 100vh;
    background: #1E1C1F;
    padding: 20px 16px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cart-title {
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.cart-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-back img {
    width: 28px;
    height: 28px;
}

.lapizza-cart-empty {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.empty-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.cart-empty-text {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    opacity: 0.7;
    margin-bottom: 24px;
}

.back-to-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #4285F4;
    border-radius: 10px;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cart-item-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item-name {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* Extra feltétek */
.cart-item-extras {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-extras .extras-label {
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    text-decoration: underline;
}

.cart-item-extras .extra-name {
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    padding-left: 8px;
}

/* Bottom row: qty + price */
.cart-item-bottom {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-qty {
    color: #fff;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #D9D9D91A;
    border-radius: 8px;
    padding: 4px 10px;
}

.cart-item-qty .qty-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty .qty-value {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.cart-item-price .woocommerce-Price-amount {
    color: #fff;
}

/* Remove button */
.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-item-remove:hover {
    color: #fff;
}

/* Cart Footer */
.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #1E1C1F;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    height: 52px;
    background: #4285F4;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.checkout-btn span {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.checkout-total {
    font-size: 18px !important;
}

/* Add padding at bottom for fixed footer */
.woocommerce-cart-form {
    padding-bottom: 80px;
}

/* ===========================================
   Desktop - Cart
   =========================================== */
@media (min-width: 1024px) {
    /* Header megjelenítése desktopon */
    .woocommerce-cart .site-header {
        display: flex;
    }

    .lapizza-cart {
        min-height: auto;
        max-width: none;
        margin: 20px 16px 40px;
        padding: 32px 40px;
        border-radius: 10px;
        background: #1E1C1F;
    }


    .cart-header {
        margin-bottom: 32px;
    }

    .cart-title {
        font-size: 28px;
    }

    .cart-back img {
        width: 32px;
        height: 32px;
    }

    /* Cart Items */
    .cart-items {
        gap: 20px;
    }

    .cart-item {
        padding-bottom: 20px;
    }

    .cart-item-image {
        width: 90px;
        height: 90px;
        border-radius: 10px;
    }

    .cart-item-name {
        font-size: 17px;
    }

    .cart-item-extras .extras-label,
    .cart-item-extras .extra-name {
        font-size: 12px;
    }

    .cart-item-qty {
        padding: 6px 14px;
        gap: 16px;
    }

    .cart-item-qty .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .cart-item-qty .qty-value {
        font-size: 16px;
    }

    .cart-item-price {
        font-size: 18px;
    }

    .cart-item-remove {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    /* Cart Footer */
    .cart-footer {
        position: static;
        padding: 0;
        margin-top: 32px;
        background: transparent;
    }

    .checkout-btn {
        height: 56px;
        border-radius: 12px;
    }

    .checkout-btn span {
        font-size: 17px;
    }

    .checkout-total {
        font-size: 20px !important;
    }

    .woocommerce-cart-form {
        padding-bottom: 0;
    }

    /* Empty cart desktop */
    .lapizza-cart-empty {
        min-height: auto;
    }

    .empty-cart-content {
        padding: 60px 40px;
    }

    .cart-empty-text {
        font-size: 20px;
    }

    .back-to-shop-btn {
        padding: 16px 40px;
        font-size: 17px;
    }
}
