/* Vendor online-shop catalog (vendor profile) */
.shop-catalog {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 28px;
    margin: 32px 0 40px;
    scroll-margin-top: 90px;
}

.shop-catalog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 2px solid #F3F4F6;
}

.shop-catalog-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    text-align: left;
}

.shop-catalog-title i {
    color: #7B1E3A;
    font-size: 22px;
}

.shop-catalog-sub {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6B7280;
}

.shop-catalog-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #7B1E3A;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.shop-catalog-visit:hover {
    background: #64172F;
    color: #fff;
}

.shop-catalog-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.shop-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-catalog-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.shop-catalog-tab span {
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
}

.shop-catalog-tab:hover {
    border-color: #7B1E3A;
    color: #7B1E3A;
}

.shop-catalog-tab.is-active {
    background: #7B1E3A;
    border-color: #7B1E3A;
    color: #fff;
}

.shop-catalog-tab.is-active span {
    color: rgba(255, 255, 255, 0.75);
}

.shop-catalog-search {
    position: relative;
    display: block;
    max-width: 420px;
}

.shop-catalog-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
    pointer-events: none;
}

.shop-catalog-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 38px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    background: #F9FAFB;
}

.shop-catalog-search input:focus {
    outline: none;
    border-color: #7B1E3A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123, 30, 58, 0.12);
}

.shop-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.sc-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #EEF0F3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.sc-card:hover {
    border-color: #E3D3D8;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
    transform: translateY(-2px);
}

.sc-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #F8F6F4;
    padding: 12px;
}

.sc-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-noimg {
    color: #D1C4C8;
    font-size: 40px;
}

.sc-card.is-out .sc-img img {
    opacity: 0.55;
}

.sc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sc-badge--sale {
    background: #DC2626;
    color: #fff;
}

.sc-badge--out {
    background: #4B5563;
    color: #fff;
}

.sc-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    flex: 1;
}

.sc-winery {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7B1E3A;
}

.sc-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-meta {
    font-size: 13px;
    color: #4B5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    font-size: 12px;
    color: #6B7280;
}

.sc-facts i {
    font-style: normal;
    color: #D1D5DB;
}

.sc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.sc-price {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.sc-price s {
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    margin-left: 2px;
}

.sc-buy {
    font-size: 12px;
    font-weight: 700;
    color: #7B1E3A;
    white-space: nowrap;
}

.shop-catalog-empty {
    margin: 24px 0;
    text-align: center;
    color: #6B7280;
}

.shop-catalog-empty[hidden],
.shop-catalog-more-btn[hidden] {
    display: none;
}

.shop-catalog-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.shop-catalog-count {
    font-size: 13px;
    color: #9CA3AF;
}

.shop-catalog-more-btn {
    padding: 10px 26px;
    border: 1px solid #7B1E3A;
    border-radius: 10px;
    background: #fff;
    color: #7B1E3A;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.shop-catalog-more-btn:hover {
    background: #7B1E3A;
    color: #fff;
}

/* Phones: one swipeable row of tabs, no scrollbar; the fading right edge
   hints that there is more. */
@media (max-width: 640px) {
    .shop-catalog-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -14px;
        padding-right: 28px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }

    .shop-catalog-tabs::-webkit-scrollbar,
    .shop-teaser-cats::-webkit-scrollbar,
    .shop-teaser-strip::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 640px) {
    .shop-catalog {
        margin-top: 24px;
        padding: 18px 14px;
        border-radius: 12px;
    }

    .shop-catalog-title {
        font-size: 20px;
    }

    .shop-catalog-visit {
        width: 100%;
        justify-content: center;
    }

    .shop-catalog-search {
        max-width: none;
    }

    .shop-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sc-body {
        padding: 10px;
    }

    .sc-name {
        font-size: 14px;
    }

    .sc-meta {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .sc-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ============================================
   "Buy the wines online" block on service pages
   ============================================ */
.shop-teaser {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 24px 0;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #EBDDE2;
    background: linear-gradient(180deg, #FBF6F7 0%, #FFFFFF 60%);
}

.shop-teaser-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.shop-teaser-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #7B1E3A;
    color: #fff;
    font-size: 18px;
}

.shop-teaser-head h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1F2937;
    text-align: left;
}

.shop-teaser-head p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6B7280;
}

.shop-teaser-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.shop-teaser-cats a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.shop-teaser-cats a span {
    font-size: 11px;
    color: #9CA3AF;
}

.shop-teaser-cats a:hover {
    border-color: #7B1E3A;
    color: #7B1E3A;
}

.shop-teaser-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.shop-teaser-item {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border: 1px solid #EEF0F3;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.shop-teaser-item:hover {
    border-color: #E3D3D8;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.shop-teaser-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #F8F6F4;
    padding: 8px;
}

.shop-teaser-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-teaser-winery {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7B1E3A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-teaser-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-teaser-price {
    margin-top: auto;
    padding-top: 4px;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.shop-teaser-price s {
    font-size: 12px;
    font-weight: 500;
    color: #9CA3AF;
}

.shop-teaser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.shop-teaser-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid #7B1E3A;
    border-radius: 10px;
    background: #fff;
    color: #7B1E3A;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.shop-teaser-btn:hover {
    background: #FBF1F4;
    color: #64172F;
}

.shop-teaser-btn--primary {
    background: #7B1E3A;
    color: #fff;
}

.shop-teaser-btn--primary:hover {
    background: #64172F;
    color: #fff;
}

/* Service page on mobile reorders its blocks (gallery 1, about 2, booking 3,
   content 4): keep the shop after the booking form, never above the gallery. */
@media (max-width: 1024px) {
    .shop-teaser {
        order: 4;
    }
}

@media (max-width: 640px) {
    .shop-teaser {
        margin: 16px 0;
        padding: 18px 14px;
    }

    .shop-teaser-head h2 {
        font-size: 17px;
    }

    .shop-teaser-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .shop-teaser-strip {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 148px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .shop-teaser-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}
