/* Dibaart template store — horizontal catalogue */
.shop .product-carousel {
    position: relative;
}

.shop .product-carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.shop .product-carousel-status {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: rgba(255, 255, 255, .68);
    font-size: .74rem;
}

.shop .product-carousel-status strong {
    color: #fff;
    font-size: 1rem;
}

.shop .product-carousel-controls {
    display: flex;
    gap: 8px;
}

.shop .product-carousel-button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.shop .product-carousel-button:hover,
.shop .product-carousel-button:focus-visible {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .52);
    transform: translateY(-1px);
}

.shop .product-carousel-button:focus-visible {
    outline: 3px solid rgba(103, 214, 228, .42);
    outline-offset: 2px;
}

.shop .product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(292px, 374px);
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .35) rgba(255, 255, 255, .08);
    padding: 2px 2px 19px;
    direction: rtl;
}

.shop .product-grid::-webkit-scrollbar {
    height: 8px;
}

.shop .product-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
    border-radius: 99px;
}

.shop .product-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .34);
    border-radius: 99px;
}

.shop .product-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .13);
}

.shop .product-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
}

.shop .product-preview {
    height: 285px;
    flex: 0 0 285px;
}

.shop .product-preview img {
    background: #e9e7e1;
}

.shop .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.shop .product-body > div:first-child {
    min-height: 22px;
}

.shop .product-body p {
    min-height: 50px;
    margin: 0;
}

.shop .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding: 15px 16px;
    border-radius: 12px;
    background: #f4f6fa;
}

.shop .product-price-row span {
    color: var(--muted);
    font-size: .65rem;
}

.shop .product-price-row strong {
    direction: rtl;
    color: var(--navy);
    font-size: .85rem;
    white-space: nowrap;
}

.shop .product-buy {
    align-items: center;
}

.shop .product-buy span {
    font-size: 1.05rem;
}

.shop .product-carousel-hint {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .48);
    font-size: .64rem;
}

@media (max-width: 980px) {
    .shop .product-grid {
        grid-auto-columns: minmax(280px, calc(50% - 9px));
    }
}

@media (max-width: 720px) {
    .shop .product-carousel-toolbar {
        align-items: flex-end;
    }

    .shop .product-grid {
        grid-auto-columns: minmax(272px, 88%);
        gap: 13px;
        margin-inline: -2px;
    }

    .shop .product-preview {
        height: 238px;
        flex-basis: 238px;
    }

    .shop .product-body {
        padding: 20px;
    }

    .shop .product-carousel-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop .product-grid {
        scroll-behavior: auto;
    }
}
