.hc-vendor-grid,
.hc-product-grid,
.hc-product-carousel,
.hc-shop-product-grid,
.hc-product-empty {
    --hc-border: var(--e-global-color-d184c93, #D3B4AA);
    --hc-text: var(--e-global-color-7475973, #000000);
    --hc-muted: var(--e-global-color-text, #7A7A7A);
    --hc-panel: var(--e-global-color-cb5416a, #FFFFFF);
    --hc-soft: var(--e-global-color-04a43ee, #F4E0DA);
    --hc-accent: var(--e-global-color-accent, #C99383);
    --hc-accent-dark: var(--e-global-color-200ba5e, #BA745F);
    --hc-accent-light: var(--e-global-color-6ca216d, #D8B2A7);
    position: relative;
    color: var(--hc-text);
    font-family: var(--e-global-typography-text-font-family, "Avenir"), Sans-serif;
}

@keyframes hcVendorCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hc-vendor-grid *,
.hc-vendor-grid *::before,
.hc-vendor-grid *::after,
.hc-product-grid *,
.hc-product-grid *::before,
.hc-product-grid *::after,
.hc-product-carousel *,
.hc-product-carousel *::before,
.hc-product-carousel *::after,
.hc-shop-product-grid *,
.hc-shop-product-grid *::before,
.hc-shop-product-grid *::after {
    box-sizing: border-box;
}

.hc-vendor-grid__filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin: 0 0 22px;
    border: 1px solid color-mix(in srgb, var(--hc-border) 70%, #fff);
    border-radius: 8px;
    background: var(--hc-panel);
}

.hc-vendor-grid__search,
.hc-vendor-grid__select,
.hc-vendor-grid__actions {
    min-width: 0;
}

.hc-vendor-grid__filters label {
    display: block;
    margin: 0 0 6px;
    color: var(--hc-muted);
    font-size: 13px;
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
}

.hc-vendor-grid__filters input,
.hc-vendor-grid__filters select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    background: #fff;
    color: var(--hc-text);
    font-size: 15px;
    line-height: 1.3;
}

.hc-vendor-grid__filters input:focus,
.hc-vendor-grid__filters select:focus {
    border-color: var(--hc-accent);
    outline: 2px solid color-mix(in srgb, var(--hc-accent) 24%, transparent);
    outline-offset: 1px;
}

.hc-vendor-grid__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hc-vendor-grid__submit,
.hc-vendor-grid__reset,
.hc-vendor-grid__pagination button {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: var(--e-global-typography-accent-font-weight, 900);
    line-height: 1.2;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hc-vendor-grid__submit {
    padding: 10px 16px;
    background: var(--hc-accent);
    color: #fff;
}

.hc-vendor-grid__submit:hover,
.hc-vendor-grid__submit:focus {
    background: var(--hc-accent-dark);
}

.hc-vendor-grid__reset {
    padding: 10px 12px;
    border-color: var(--hc-border);
    background: #fff;
    color: var(--hc-muted);
}

.hc-vendor-grid__reset:hover,
.hc-vendor-grid__reset:focus {
    border-color: #b5c2c8;
    color: var(--hc-text);
}

.hc-vendor-grid__results {
    position: relative;
    min-height: 180px;
}

.hc-vendor-grid.is-loading .hc-vendor-grid__results {
    opacity: 0.55;
    pointer-events: none;
}

.hc-vendor-grid__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
    margin: 0 0 14px;
    color: var(--hc-muted);
    font-size: 14px;
}

.hc-vendor-grid__cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px;
    align-items: stretch;
}

.hc-vendor-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hc-border) 72%, #fff);
    border-radius: 8px;
    background: var(--hc-panel);
    box-shadow: 0 10px 24px rgba(31, 42, 46, 0.07);
    animation: hcVendorCardIn 420ms ease both;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    will-change: transform;
}

.hc-vendor-card:nth-child(2) {
    animation-delay: 45ms;
}

.hc-vendor-card:nth-child(3) {
    animation-delay: 90ms;
}

.hc-vendor-card:nth-child(4) {
    animation-delay: 135ms;
}

.hc-vendor-card:hover,
.hc-vendor-card:focus-within {
    border-color: var(--hc-accent);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--hc-accent-dark) 24%, transparent);
    transform: translateY(-4px);
}

.hc-vendor-card__media {
    display: block;
    aspect-ratio: 16 / 7;
    background-color: var(--hc-soft);
    background-position: center;
    background-size: cover;
    transition: filter 180ms ease, transform 180ms ease;
}

.hc-vendor-card:hover .hc-vendor-card__media,
.hc-vendor-card:focus-within .hc-vendor-card__media {
    filter: saturate(1.08) contrast(1.03);
}

.hc-vendor-card__media.is-empty {
    background-color: var(--hc-soft);
}

.hc-vendor-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 44px 16px 16px;
}

.hc-vendor-card__avatar {
    position: absolute;
    top: -36px;
    left: 16px;
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 3px solid var(--hc-panel);
    border-radius: 8px;
    background: var(--hc-panel);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--hc-accent-dark) 22%, transparent);
}

.hc-vendor-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-vendor-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 26px;
    margin: 0 0 9px;
}

.hc-vendor-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
    line-height: 1.2;
    white-space: nowrap;
}

.hc-vendor-badge--category {
    background: var(--hc-soft);
    color: var(--hc-accent-dark);
}

.hc-vendor-card__canton {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--hc-soft);
}

.hc-vendor-card__canton strong {
    color: var(--hc-text);
    font-size: 13px;
    font-weight: var(--e-global-typography-accent-font-weight, 900);
    line-height: 1.2;
    white-space: nowrap;
}

.hc-vendor-card__title {
    margin: 0 0 14px;
    font-size: clamp(18px, 2vw, 21px);
    font-family: var(--e-global-typography-primary-font-family, "Avenir"), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight, 900);
    line-height: 1.22;
}

.hc-vendor-card__title a {
    color: var(--hc-text);
    text-decoration: none;
}

.hc-vendor-card__title a:hover,
.hc-vendor-card__title a:focus {
    color: var(--hc-accent-dark);
    text-decoration: underline;
}

.hc-vendor-card__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--hc-border) 52%, #fff);
    color: var(--hc-muted);
    font-size: 13px;
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
}

.hc-vendor-card__footer span {
    display: block;
    text-align: center;
}

.hc-vendor-grid .hc-vendor-card__footer a,
.hc-vendor-grid .hc-vendor-card__footer a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--hc-accent);
    border-radius: 7px;
    background: var(--hc-accent);
    color: #fff !important;
    font-size: 14px;
    font-weight: var(--e-global-typography-accent-font-weight, 900);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hc-vendor-grid .hc-vendor-card__footer a:hover,
.hc-vendor-grid .hc-vendor-card__footer a:focus {
    border-color: var(--hc-accent-dark);
    background: var(--hc-accent-dark);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.hc-vendor-grid__empty {
    padding: 30px 18px;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-soft);
    text-align: center;
}

.hc-vendor-grid__empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.hc-vendor-grid__empty p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--hc-muted);
}

.hc-vendor-grid__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 24px 0 0;
}

.hc-vendor-grid__pagination button {
    min-width: 42px;
    padding: 9px 12px;
    border-color: var(--hc-border);
    background: #fff;
    color: var(--hc-text);
}

.hc-vendor-grid__pagination button:hover,
.hc-vendor-grid__pagination button:focus,
.hc-vendor-grid__pagination button.is-active {
    border-color: var(--hc-accent);
    background: var(--hc-accent);
    color: #fff;
}

.hc-vendor-grid__pagination button:disabled {
    cursor: default;
    opacity: 0.55;
}

.hc-product-section-title {
    margin: 0 0 18px;
    color: var(--hc-text);
    font-family: var(--e-global-typography-primary-font-family, "Avenir"), Sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: var(--e-global-typography-primary-font-weight, 900);
    line-height: 1.15;
}

.hc-product-grid {
    margin: 0;
}

.hc-product-grid__items {
    display: grid !important;
    grid-template-columns: repeat(var(--hc-product-columns, 3), minmax(0, 1fr)) !important;
    gap: 20px;
    align-items: stretch;
}

.hc-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hc-border) 72%, #fff);
    border-radius: 8px;
    background: var(--hc-panel);
    box-shadow: 0 10px 24px rgba(31, 42, 46, 0.07);
    animation: hcVendorCardIn 420ms ease both;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hc-product-card:hover,
.hc-product-card:focus-within {
    border-color: var(--hc-accent);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--hc-accent-dark) 24%, transparent);
    transform: translateY(-4px);
}

.hc-product-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--hc-soft);
}

.hc-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.hc-product-card:hover .hc-product-card__media img,
.hc-product-card:focus-within .hc-product-card__media img {
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.035);
}

.hc-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.hc-product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin: 0 0 9px;
}

.hc-product-card__badges span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 23px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--hc-soft);
    color: var(--hc-accent-dark);
    font-size: 12px;
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
    line-height: 1.2;
    white-space: nowrap;
}

.hc-product-card__title {
    margin: 0 0 10px;
    font-family: var(--e-global-typography-primary-font-family, "Avenir"), Sans-serif;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: var(--e-global-typography-primary-font-weight, 900);
    line-height: 1.25;
}

.hc-product-card__title a {
    color: var(--hc-text);
    text-decoration: none;
}

.hc-product-card__title a:hover,
.hc-product-card__title a:focus {
    color: var(--hc-accent-dark);
    text-decoration: underline;
}

.hc-product-card__vendor {
    display: inline-flex;
    align-self: flex-start;
    margin: -2px 0 10px;
    color: var(--hc-muted);
    font-size: 13px;
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
    line-height: 1.25;
    text-decoration: none;
}

.hc-product-card__vendor:hover,
.hc-product-card__vendor:focus {
    color: var(--hc-accent-dark);
    text-decoration: underline;
}

.hc-product-card__price {
    margin: auto 0 12px;
    color: var(--hc-accent-dark);
    font-size: 15px;
    font-weight: var(--e-global-typography-accent-font-weight, 900);
}

.hc-product-card__price del {
    color: var(--hc-muted);
    font-weight: var(--e-global-typography-text-font-weight, 300);
    opacity: 0.7;
}

.hc-product-card__price ins {
    color: var(--hc-accent-dark);
    text-decoration: none;
}

.hc-product-card__button,
.hc-product-card__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--hc-accent);
    border-radius: 7px;
    background: var(--hc-accent);
    color: #fff !important;
    font-size: 14px;
    font-weight: var(--e-global-typography-accent-font-weight, 900);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hc-product-card__button:hover,
.hc-product-card__button:focus {
    border-color: var(--hc-accent-dark);
    background: var(--hc-accent-dark);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.hc-product-carousel {
    position: relative;
}

.hc-product-carousel__header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
}

.hc-product-carousel__header .hc-product-section-title {
    margin: 0;
}

.hc-product-carousel__controls {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: calc(50% + 18px);
    left: -30px;
    right: -30px;
    z-index: 4;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.hc-product-carousel .hc-product-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 72px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    cursor: pointer;
    pointer-events: auto;
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
    appearance: none;
    -webkit-appearance: none;
}

.hc-product-carousel .hc-product-carousel__button span {
    display: block;
    width: 34px;
    height: 34px;
    border-top: 5px solid currentColor;
    border-left: 5px solid currentColor;
    transform: rotate(-45deg);
}

.hc-product-carousel .hc-product-carousel__button[data-hc-carousel-prev] span {
    transform: rotate(-45deg);
}

.hc-product-carousel .hc-product-carousel__button[data-hc-carousel-next] span {
    transform: rotate(135deg);
}

.hc-product-carousel .hc-product-carousel__button:hover,
.hc-product-carousel .hc-product-carousel__button:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    transform: scale(1.08);
}

.hc-product-carousel .hc-product-carousel__button:disabled {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    cursor: default;
    opacity: 0.28;
    transform: none;
}

.hc-product-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain;
    padding: 2px;
}

.hc-product-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.hc-product-carousel__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.hc-product-carousel__viewport.is-dragging a,
.hc-product-carousel__viewport.is-dragging img {
    pointer-events: none;
}

.hc-product-carousel__track {
    display: flex;
    gap: 18px;
    align-items: stretch;
    touch-action: pan-y;
}

.hc-product-carousel__slide {
    flex: 0 0 calc(var(--hc-carousel-card-width, 25%) - 14px);
    min-width: 0;
    scroll-snap-align: start;
}

.hc-product-carousel__slide .hc-product-card {
    height: 100%;
}

.hc-product-empty {
    padding: 28px 18px;
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    background: var(--hc-soft);
    color: var(--hc-muted);
    text-align: center;
}

.hc-shop-product-grid {
    position: relative;
}

.hc-shop-product-grid__filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin: 0 0 22px;
    border: 1px solid color-mix(in srgb, var(--hc-border) 70%, #fff);
    border-radius: 8px;
    background: var(--hc-panel);
}

.hc-shop-product-grid__search,
.hc-shop-product-grid__select,
.hc-shop-product-grid__actions {
    min-width: 0;
}

.hc-shop-product-grid__filters label {
    display: block;
    margin: 0 0 6px;
    color: var(--hc-muted);
    font-size: 13px;
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
}

.hc-shop-product-grid__filters input,
.hc-shop-product-grid__filters select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    background: #fff;
    color: var(--hc-text);
    font-size: 15px;
    line-height: 1.3;
}

.hc-shop-product-grid__filters input:focus,
.hc-shop-product-grid__filters select:focus {
    border-color: var(--hc-accent);
    outline: 2px solid color-mix(in srgb, var(--hc-accent) 24%, transparent);
    outline-offset: 1px;
}

.hc-shop-product-grid__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hc-shop-product-grid__submit,
.hc-shop-product-grid__reset,
.hc-shop-product-grid__pagination button {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: var(--e-global-typography-accent-font-weight, 900);
    line-height: 1.2;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hc-shop-product-grid__submit {
    padding: 10px 16px;
    background: var(--hc-accent);
    color: #fff;
}

.hc-shop-product-grid__submit:hover,
.hc-shop-product-grid__submit:focus {
    background: var(--hc-accent-dark);
    color: #fff;
}

.hc-shop-product-grid__reset {
    padding: 10px 12px;
    border-color: var(--hc-border);
    background: #fff;
    color: var(--hc-muted);
}

.hc-shop-product-grid__reset:hover,
.hc-shop-product-grid__reset:focus {
    border-color: #b5c2c8;
    color: var(--hc-text);
}

.hc-shop-product-grid__results {
    position: relative;
    min-height: 220px;
}

.hc-shop-product-grid.is-loading .hc-shop-product-grid__results {
    opacity: 0.55;
    pointer-events: none;
}

.hc-shop-product-grid__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
    margin: 0 0 14px;
    color: var(--hc-muted);
    font-size: 14px;
}

.hc-shop-product-grid__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 24px 0 0;
}

.hc-shop-product-grid__pagination button {
    min-width: 42px;
    padding: 9px 12px;
    border-color: var(--hc-border);
    background: #fff;
    color: var(--hc-text);
}

.hc-shop-product-grid__pagination button:hover,
.hc-shop-product-grid__pagination button:focus,
.hc-shop-product-grid__pagination button.is-active {
    border-color: var(--hc-accent);
    background: var(--hc-accent);
    color: #fff;
}

.hc-shop-product-grid__pagination button:disabled {
    cursor: default;
    opacity: 0.55;
}

@media (max-width: 1100px) {
    .hc-vendor-grid__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-vendor-grid__actions {
        grid-column: 1 / -1;
    }

    .hc-vendor-grid__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hc-product-grid__items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hc-product-carousel__slide {
        flex-basis: calc((100% - 18px) / 2);
    }

    .hc-shop-product-grid__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-shop-product-grid__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .hc-vendor-grid__filters,
    .hc-vendor-grid__cards,
    .hc-product-grid__items {
        grid-template-columns: 1fr !important;
    }

    .hc-vendor-grid__filters {
        padding: 12px;
    }

    .hc-shop-product-grid__filters {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .hc-vendor-grid__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hc-shop-product-grid__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hc-vendor-grid__submit,
    .hc-vendor-grid__reset,
    .hc-shop-product-grid__submit,
    .hc-shop-product-grid__reset {
        width: 100%;
    }

    .hc-vendor-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hc-product-carousel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hc-product-carousel__controls {
        left: 6px;
        right: 6px;
        margin-left: 0;
    }

    .hc-product-carousel .hc-product-carousel__button {
        width: 44px;
        height: 58px;
    }

    .hc-product-carousel .hc-product-carousel__button span {
        width: 26px;
        height: 26px;
        border-top-width: 4px;
        border-left-width: 4px;
    }

    .hc-product-carousel__slide {
        flex-basis: 82%;
    }
}
