.image{
    width: 1100px;
    height: 250px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
}

.categories-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 20px;
}

.categories-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: 1100px;
}

.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    height: 150px;
    width: 250px;
    border-radius: 15px;
    flex: 0 0 45%; 
    scroll-snap-align: start;
    color: var(--text-light);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-box:hover {
    background: rgba(35, 65, 148, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.category-box p{
    font-size: 20px;
    font-weight: 900;
    position: relative;
    top: 10px;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.category-box img{
    width: 70%;
    height: auto;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--accent-cyan);
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(35, 65, 148, 0.4);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.out_brands h1{
    font-size: 25px;
    font-weight: 900;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brands-wrapper{
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
}

.crm-platforms-logo {
    display: flex;
    align-items: center;
    height: 200px;
    width: 1100px;
    margin: 0 auto;
    margin-bottom: 30px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
  
.crm-platforms-logo__items {
    flex-shrink: 0;
    font-size: clamp(1.125rem, 0.8023rem + 1.2064vw, 2.25rem);
    line-height: 1.5;
    font-weight: 900;
    text-transform: uppercase;
    animation: running-animation 20s linear infinite;
    white-space: nowrap;
}
  
.crm-platforms-logo__item {
    padding: 0px 20px;
    width: 150px;
    filter: brightness(1.1) contrast(1.1);
    transition: filter 0.3s ease;
}

.crm-platforms-logo:hover .crm-platforms-logo__items {
    animation-play-state: paused;
}

.crm-platforms-logo__item:hover {
    filter: brightness(1.3) contrast(1.2);
}

.orders{
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    width: 300px;
    height: 200px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.orders:hover{
    transform: translateY(-5px);
    background: rgba(35, 65, 148, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.orders span{
    margin-left: 10px;
    font-size: 23px;
}

.items_out{
    display:flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    width: 300px;
    height: 200px;
    margin-left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.favorites{
    margin-right: 20px;
}

.items_out:hover{
    transform: translateY(-5px);
    background: rgba(35, 65, 148, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.items_out span{
    margin-left: 10px;
    font-size: 23px;
}

.items_out p{
    margin-left: 1rem;
}

.image_boxes{
    display:flex;
    align-items: center;
    justify-content: left;
    font-weight: bold;
    width: 450px;
    height: 200px;
    margin-left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.image_boxes img{
    width: 450px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.image_boxes:hover{
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.image_boxes:hover img {
    filter: brightness(1.2) contrast(1.2);
    transform: scale(1.05);
}

.our_popular_products{
    margin-top: 70px;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


.container_products {
    display: flex;
    justify-content: center;
}

.cards_wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.card {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.98);
}

.card__image img {
    width: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__prices {
    min-height: 40px;
    margin: 10px 0;
}

.card__price--discount {
    color: rgba(0, 0, 0, 0.819);
    font-size: 18px;
    font-weight: bold;
}

.card__price--common {
    text-decoration: line-through;
    color: gray;
}

.card__title {
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 40px;
    font-weight: 600;
    display: block;
    margin: 10px 0;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    min-height: 48px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.card__title:hover {
    color: var(--primary-blue);
}

.card p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #555;
}

.card__func{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card__add {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-cyan));
    color: #fff;
    border: none;
    padding: 10px;
    width: 140px;
    cursor: pointer;
    border-radius: 8px;
    margin-left: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(35, 65, 148, 0.3);
}

.card__add:hover {
    background: linear-gradient(45deg, var(--secondary-blue), #00b8e6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 65, 148, 0.5);
}

.card__bottom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: auto; 
}

.description {
    flex-grow: 1; 
    min-height: 60px; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.card__func a{
    color: #999999;
    transition: all 0.3s ease;
    font-size: 18px;
}

.card__func a:hover{
    color: var(--accent-cyan);
    transform: scale(1.2);
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.button-cart{
    border: none;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-cyan)) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 65, 148, 0.3);
}

.button-cart:hover{
    background: linear-gradient(45deg, var(--secondary-blue), #00b8e6) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 65, 148, 0.5);
}

.button-cart:active{
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(35, 65, 148, 0.4);
}

@media (min-width: 1024px) {
    .categories-wrapper {
        overflow-x: hidden; 
        justify-content: flex-start; 
        max-width: 100%; 
    }

    .category-box {
        flex: 0 0 30%; 
    }

    .prev-btn, .next-btn {
        display: block;
    }
}

@media (max-width: 1024px){
    .container-car{
        display: none;
    }
    .cards_wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .image_boxes{
        display: none;
    }

    .items_out p{
        margin-left: 15px;
    }

    .orders p{
        margin-left: 10px;
    }
}

@keyframes running-animation {
    0% {
        transform: translateZ(0);
    }
  
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}
