.opencart-error {
    background-color: #FFFC94;
    color: red;
    padding: 10px;
    border-radius: 4px;
}

/* для блока в тексте (не сайдбокс) */
.opencart-products-article {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0px 10px;
    -webkit-overflow-scrolling: touch; /* скролл на iOS */
    overflow-y: hidden !important;
    padding: 10px 0; /* Добавляем паддинг по краям, чтобы карточка не упиралась */
}

/* скрытие стандартного скроллбар на мобильных */
@media (hover: none) and (pointer: coarse) {
    .opencart-products-article {
        scrollbar-width: none;
    }
    
    .opencart-products-article::-webkit-scrollbar {
        display: none;
    }
}

/* товары в сайдбаре (вертикальная колонка) */
.opencart-products-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.opencart-products-sidebar .opencart-product-card {
    border-bottom: 1px solid #EBEDF3;
}

/* индикаторы прокрутки */
.scroll-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: -280px;
    margin-bottom: 250px;
    pointer-events: none;
    display: none;
}

.scroll-arrow {
    pointer-events: auto;
    background: white;
    /* border: 2px solid #FFC202; */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
    position: relative;
    z-index: 10;
}

.scroll-arrow:hover:not(:disabled) {
    background: black;
    color: white;
    transform: scale(1.1);
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.scroll-arrow-left {
    margin-left: -20px;
}

.scroll-arrow-right {
    margin-right: -20px;
}

/* общее карточки товара */
.opencart-product-card {
    flex: 0 0 auto;
    /* border-radius: 10px; */
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.opencart-product-card:hover {
    /* border: 1px solid black; */
    transform: scale(1.05);
    
}

/* Для товаров в статье - фиксированная ширина */
.opencart-products-article .opencart-product-card {
    width: 33.3%;
    padding: 0 .75rem;
}

/* Для товаров в сайдбаре - 100% ширина */
.opencart-products-sidebar .opencart-product-card {
    width: 100%;
    min-height: auto;
}

.opencart-product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.opencart-product-card img {
    margin: 0 auto;
    display: block;
    mix-blend-mode: darken;
    width: 100%;
    max-height: 195px;
    object-fit: cover;
    border-radius: 10px;
    padding: 0.3rem 0;
    margin-bottom: 0.65rem;
}

.product-price {
    font-weight: bold;
    font-size: 20px;
    /* min-height: 40px; */
    margin-bottom: .5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin: 0;
}

.price-old {
    color: #999;
    font-size: 18px;
    margin-left: 10px;
    color: red;
    font-weight: 400;
}

/* название */
.product-name {
    line-height: 1.3;
    font-size: 15px;
    flex: 1;
    border: 0;
    margin-bottom: 20px;
    outline: 0;
    padding-bottom: 0.3rem;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    color: rgb(40, 42, 43);
    margin-bottom: .5rem;
    font-family: 'Inter', sans-serif;
}

/* звезды рейтинга */
.product-rating {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* отзывы */
.product-reviews {
    font-size: 15px;
    color: #666;
    margin-top: 0px;
    text-align: center;
    margin-bottom: 10px;
}

/* div::-webkit-scrollbar {
  display: none; 
  height: 0;
} */

/* слово Реклама */
h4.product-name {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0;
}

/* курсор (наведение) */
.opencart-products-article:active {
    cursor: grabbing;
    /* transform: scale(2); */
}

.entry-content .product-name {
    margin: 0px;
}

.entry-content .product-rating p {
    margin: 0px;
}

/* адаптивчик */
@media (max-width: 768px) {
    .opencart-products-article .opencart-product-card {
        width: 240px;
    }
    
    .opencart-product-card img {
        height: 160px;
    }
    
    .scroll-indicators {
        display: none; /* Скрываем стрелки на мобильных */
    }
}

@media (max-width: 480px) {
    .opencart-products-article .opencart-product-card {
        width: 200px;
    }
    
    .product-price {
        font-size: 1.1em;
    }
    
    .product-name {
        font-size: 13px;
        height: 52px;
    }
}



