/* Product search and carousel styles are kept separate for easier maintenance. */
.catalog-search {
    margin: 30px 0 10px;
    max-width: 730px;
}

.catalog-search-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-search-row input[type="search"] {
    flex: 1 1 280px;
    margin-top: 7px;
}

.catalog-search-row .button {
    min-height: 49px;
    white-space: nowrap;
}

.catalog-search-row .text-link {
    padding: 12px 0;
}

.search-count {
    margin-top: 28px;
    color: var(--muted);
}

.product-copy h2 {
    font: 1.45rem Georgia, serif;
    letter-spacing: 0;
    line-height: 1.3;
}

.carousel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 38px;
}

.carousel-status {
    color: var(--muted);
    font-size: .9rem;
}

.carousel-buttons {
    display: flex;
    gap: 8px;
}

.carousel-buttons button,
.gallery-controls button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    min-width: 46px;
    min-height: 44px;
    padding: 7px 12px;
    cursor: pointer;
}

.carousel-buttons button:disabled {
    cursor: default;
    opacity: .45;
}

.home-product-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    grid-template-columns: none;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 2px 2px 12px;
    margin-top: 12px;
}

.home-product-carousel .product-card {
    scroll-snap-align: start;
}

.home-product-carousel .product-image img {
    max-height: 440px;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.gallery-controls span {
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 700px) {
    .home-product-carousel {
        grid-auto-columns: 87%;
        gap: 14px;
    }

    .gallery-controls button {
        font-size: .85rem;
        padding: 6px 8px;
    }
}
