/* ====== СЕТКА ТОВАРОВ ====== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (min-width: 1200px) {
    .shop-grid { grid-template-columns: repeat(5, 1fr); }
}

.shop-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}
.shop-card:hover { transform: translateY(-2px); }

/* ====== КАРТОЧКА: ИЗОБРАЖЕНИЕ ====== */
.shop-card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f4f4f5;
    position: relative;
    overflow: hidden;
}

.shop-card-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
}

.shop-card-slide {
    min-width: 100%;
    height: 100%;
}

.shop-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f4f4f5;
    transition: opacity 0.3s;
}

.shop-card-slide img.loading { opacity: 0; }
.shop-card-slide img.loaded { opacity: 1; }

.shop-card-content {
    padding: 10px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shop-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Навигация слайдера в карточке */
.shop-card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
}
.shop-card:hover .shop-card-nav { opacity: 1; }
.shop-card-nav.prev { left: 4px; }
.shop-card-nav.next { right: 4px; }

.shop-card-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}
.shop-card-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
}
.shop-card-dot.active {
    background: white;
    width: 12px;
    border-radius: 3px;
}