.cart {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: white;
}

.empty-cart-img {
    max-width: 300px;
    animation: fade-right 1000ms forwards cubic-bezier(0.017, 0.37, 0.19, 1.08);
    transform: translateX(-1000px);
    filter: contrast(130%) saturate(120%);
    z-index: 101;
}

.cart .empty-basket-title {
    color: var(--dark-color);
    font-size: 30px;
}

.empty-basket-title {
    font-size: 2.5rem;
    background-color: var(--dark-color);
    margin: 1.5rem 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--red-color) 0%, #cc0000 100%);
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(255, 77, 77, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.continue-shopping i {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 77, 77, 0.3);
}

.continue-shopping:hover i {
    transform: translateX(3px);
}

.continue-shopping:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(255, 77, 77, 0.2);
}

/* Animated background effect */
.continue-shopping::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transition: left 0.6s;
}

.continue-shopping:hover::after {
    left: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.basket-ground {
    background: var(--border-main-color);
    height: 96px;
    width: 270px;
    border-radius: 50%;
    position: absolute;
    top: 180px;
    z-index: 100;
    animation: fade-right 800ms forwards cubic-bezier(0.017, 0.37, 0.19, 1.08);
    transform: translateX(-1000px);
}

@keyframes fade-right {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    to {
        opacity: 100%;
        transform: translateX(0); /* End at the original position */
    }
}

.cart-not-empty {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 85%;
    margin: 50px 0;
}

.cart-products {
    flex: 9;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 20px;
    height: fit-content;
    transition: all 0.3s ease;
}

.cart-items-title {
    display: flex;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3436;
    font-size: 15px;
}

.cart-items {
    display: flex;
    position: relative;
    padding: 20px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.cart-items:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.cart-product-info {
    flex: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product-info img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-product-info img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-product-info-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-product-info-name {
    font-weight: 600;
    color: #2d3436;
    font-size: 16px;
    margin: 0;
}

.cart-product-info-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-product-info-name a:hover {
    color: var(--red-color);
}

.cart-product-info-brand {
    font-size: 13px;
    color: #636e72;
    margin: 0;
}

.cart-count-info {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.minus-btn, .plus-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f1f3f5;
    color: #636e72;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.minus-btn:hover, .plus-btn:hover {
    background: var(--red-color);
    color: white;
    transform: scale(1.05);
}

.cart-count-info p {
    min-width: 36px;
    text-align: center;
    font-weight: 500;
    margin: 0;
    color: #2d3436;
}

.cart-price-info {
    flex: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 20px;
}

.cart-price-sum {
    font-weight: 700;
    color: #2d3436;
    font-size: 16px;
}

.cart-price-each {
    font-size: 12px;
    color: #636e72;
    white-space: nowrap;
}

.cart-remove-button {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cart-remove-button a {
    padding: 8px 16px;
    border-radius: 6px;
    background: #ffe3e3;
    color: #ff6b6b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cart-remove-button a:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-1px);
}

/**/
.cart-checkout {
    min-width: 205px;
    flex: 3;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--border-main-color);
    height: fit-content;
}

.cart-checkout-div {
    line-height: 30px;
    color: #444444;
    padding: 15px 23px;
    font-size: 14px;
}

.cart-checkout-div-div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkout-btn {
    text-decoration: none;
    text-align: center;
    padding: 6px 15px;
    box-sizing: border-box;
    border-radius: 6px;
    background-color: var(--red-color);
    color: white;
    width: 100%;
    margin: 25px auto 15px;
    display: block;
}

.continue-shopping-1 {
    text-decoration: none;
    text-align: center;
    padding: 6px 15px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid var(--border-main-color);
    color: var(--dark-color);
    width: 100%;
    margin: auto auto;
    display: block;
}

.cart-checkout-prices {
    text-align: right;
}

/**/
.cart-remove-button-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .cart-items {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }

    .cart-remove-button {
        display: none;
    }

    .cart-product-info {
        flex: 1 1 100%;
    }

    .cart-price-info {
        align-items: flex-start;
        padding-right: 0;
    }


    .cart-count-info {
        margin-right: 30px;
    }

    .cart-remove-button-mobile {
        position: absolute;
        display: inline-block;
        bottom: 40%;
        right: 10px;
    }

    .cart-remove-button-mobile a {
        color: red;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-remove-button-mobile a:hover {
        padding: 6px;
        border-radius: 50%;
        background: #ffe3e3;
    }

    .cart-not-empty {
        width: 98%;
    }
}