.hdc-home-product-tabs {
    width: min(100%, var(--hdc-hpt-max-width, 1440px));
    max-width: 100%;
    min-width: 0;
    margin: var(--hdc-hpt-margin-top, 20px) auto var(--hdc-hpt-margin-bottom, 24px);
    padding: 0 var(--hdf-page-gutter, 24px);
    border: 0;
    outline: 0;
    box-shadow:none;
    box-sizing: border-box;
    color: var(--hdc-hpt-tab-color, #111827);
    overflow-x: hidden;
    overflow-x: clip;
}

.hdc-home-product-tabs__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
    padding: var(--hdc-hpt-padding-top, 28px) var(--hdc-hpt-padding-right, 28px) var(--hdc-hpt-padding-bottom, 28px) var(--hdc-hpt-padding-left, 28px);
    border: 0;
    border-radius: var(--hdc-hpt-radius, 12px);
    outline: 0;
    background: var(--hdc-hpt-section-background, #FFFFFF);
    box-shadow:none;
}

.hdc-home-product-tabs__header {
    display: flex;
    justify-content: center;
    margin: 0 0 var(--hdc-hpt-header-gap, 28px);
    border-bottom: var(--hdc-hpt-divider-height, 1px) solid var(--hdc-hpt-accent, #15803D);
}

.hdc-home-product-tabs__tablist {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--hdc-hpt-tab-gap, 12px);
    max-width: 100%;
    padding-bottom: 12px;
}

.hdc-home-product-tabs__tab {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 20px;
    border: 1px solid #E5E7EB;
    border-radius: var(--hdc-radius-pill, 999px);
    background: #F3F4F6;
    box-shadow:none;
    color: var(--hdc-hpt-tab-muted, #111827);
    cursor: pointer;
    font-family: var(--hdc-font-ui, inherit);
    font-size: var(--hdc-hpt-tab-size, 16px);
    font-weight: var(--hdc-hpt-tab-weight, 700);
    line-height: 1.18;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hdc-home-product-tabs__tab::after {
    position: absolute;
    right: 50%;
    bottom: calc(-12px - var(--hdc-hpt-divider-height, 1px));
    width: 0;
    height: max(2px, var(--hdc-hpt-divider-height, 1px));
    border-radius: 999px;
    background: var(--hdc-hpt-accent, #15803D);
    content: "";
    transform: translateX(50%);
    transition: width 180ms ease;
}

.hdc-home-product-tabs__tab:hover:not(.is-active),
.hdc-home-product-tabs__tab:focus-visible:not(.is-active) {
    border-color: #D1D5DB;
    background: #E5E7EB;
    color: #111827;
}

.hdc-home-product-tabs__tab.is-active {
    border-color: var(--hdc-hpt-rating-color, #F97316);
    background: var(--hdf-color-primary, #F97316);
    box-shadow:none;
    color: var(--hdf-color-on-primary, #FFFFFF);
}

.hdc-home-product-tabs__tab.is-active:hover,
.hdc-home-product-tabs__tab.is-active:focus-visible {
    border-color: var(--hdf-color-primary-hover, #EA580C);
    background: var(--hdf-color-primary-hover, #EA580C);
    color: var(--hdf-color-on-primary-hover, #FFFFFF);
    box-shadow:none;
}

.hdc-home-product-tabs__tab.is-active::after {
    width: min(100%, var(--hdc-hpt-active-line-width, 100px));
}

.hdc-home-product-tabs__tab:focus-visible {
    outline: var(--hdf-focus-ring-width, 3px) solid var(--hdf-focus-ring-color, #2271B1);
    outline-offset: var(--hdf-focus-ring-offset, 2px);
}

.hdc-home-product-tabs__panels,
.hdc-home-product-tabs__panel,
.hdc-home-product-tabs__layout,
.hdc-home-product-tabs__big-card,
.hdc-home-product-tabs__products {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hdc-home-product-tabs__panel[hidden] { display: none; }

.hdc-home-product-tabs__layout {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, var(--hdc-hpt-big-card-width, 360px)) minmax(0, 1fr);
    gap: var(--hdc-hpt-layout-gap, 28px);
    align-items: stretch;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-card {
    display: grid;
    min-width: 0;
    min-height: var(--hdc-hpt-big-card-min-height, 650px);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: var(--hdc-hpt-big-card-content-gap, 12px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hdc-hpt-big-card-title, #111827);
    box-sizing: border-box;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-surface {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: var(--hdc-hpt-big-card-content-gap, 12px);
    padding: var(--hdc-hpt-big-card-padding, 16px);
    border: var(--hdc-hpt-big-card-border-width, 1px) solid var(--hdc-hpt-accent, #15803D);
    border-radius: var(--hdc-hpt-big-card-radius, 12px);
    background: var(--hdc-hpt-big-card-background, #FFFFFF);
    box-sizing: border-box;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-tags {
    display: flex;
    min-height: var(--hdc-hpt-big-card-tag-height, 24px);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hdc-home-product-tabs .hdc-home-product-tabs__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hdc-hpt-big-card-tag-height, 24px);
    padding: 0 10px;
    border: 1px solid currentColor;
    border-radius: var(--hdc-hpt-big-card-tag-radius, 999px);
    background: var(--hdc-hpt-primary-tag-bg, #FFFFFF);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-sizing: border-box;
}

.hdc-home-product-tabs .hdc-home-product-tabs__tag--primary {
    background: var(--hdc-hpt-primary-tag-bg, #FFFFFF);
    color: var(--hdc-hpt-primary-tag-text, #15803D);
}

.hdc-home-product-tabs .hdc-home-product-tabs__tag--secondary {
    margin-left: auto;
    background: var(--hdc-hpt-secondary-tag-bg, #FFFFFF);
    color: var(--hdc-hpt-secondary-tag-text, #DC2626);
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-image {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 250px;
    margin: 0;
    padding: var(--hdc-hpt-big-card-image-padding, 0px);
    aspect-ratio: var(--hdc-hpt-big-card-image-ratio, 1 / 1);
    place-items: center;
    overflow: hidden;
    border: var(--hdc-hpt-big-image-border-width, 1px) solid var(--hdc-hpt-big-image-border, #E5E7EB);
    border-radius: var(--hdc-hpt-big-image-radius, 0px);
    background: #FFFFFF;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    transition: transform 180ms ease;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-image:hover img,
.hdc-home-product-tabs .hdc-home-product-tabs__big-image:focus-visible img {
    transform: scale(1.015);
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--hdc-hpt-big-card-content-gap, 12px);
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--hdf-color-link, #05658A);
    font-family: var(--hdc-font-heading, inherit);
    font-size: var(--hdc-hpt-big-title-size, 20px);
    font-weight: 700;
    line-height: 1.23;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-title a {
    color: var(--hdf-color-link, #05658A);
    text-decoration: none;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-title a:hover,
.hdc-home-product-tabs .hdc-home-product-tabs__big-title a:focus-visible {
    color: var(--hdf-color-link-hover, var(--hdf-color-link, #05658A));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    flex-wrap: wrap;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-price {
    color: var(--hdc-hpt-big-card-title, #111827);
    font-family: var(--hdc-font-heading, inherit);
    font-size: var(--hdc-hpt-big-price-size, 20px);
    font-weight: 700;
    line-height: 1.2;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-price del {
    display: block;
    margin-bottom: 2px;
    color: #6B7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-price ins {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.hdc-home-product-tabs .hdc-home-product-tabs__stock-badge {
    display: inline-flex;
    min-height: var(--hdc-hpt-big-stock-height, 28px);
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--hdc-hpt-stock-bg, #ECFDF5);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.hdc-home-product-tabs .hdc-home-product-tabs__stock-badge.is-instock {
    background: var(--hdc-hpt-stock-bg, #ECFDF5);
    color: var(--hdc-hpt-stock-text, #15803D);
}
.hdc-home-product-tabs .hdc-home-product-tabs__stock-badge.is-backorder {
    background: #FFFBEB;
    color: #92400E;
}
.hdc-home-product-tabs .hdc-home-product-tabs__stock-badge.is-outofstock {
    background: #FEF2F2;
    color: #991B1B;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-rating-row {
    display: flex;
    min-height: 22px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-stars .star-rating {
    float: none;
    margin: 0;
    color: var(--hdc-hpt-rating-color, #F97316);
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-rating-meta,
.hdc-home-product-tabs .hdc-home-product-tabs__big-supporting-note {
    color: var(--hdc-hpt-big-card-text, #6B7280);
    font-size: 13px;
    line-height: 1.45;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-supporting-note {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-trust-section {
    width: 100%;
    padding: 10px;
    border: var(--hdc-hpt-big-trust-border-width, 1px) solid var(--hdc-hpt-highlight-border, #E5E7EB);
    border-radius: var(--hdc-hpt-big-trust-radius, 10px);
    background: var(--hdc-hpt-big-card-background, #FFFFFF);
    box-sizing: border-box;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-highlights li {
    display: flex;
    min-width: 0;
    min-height: var(--hdc-hpt-big-highlight-height, 48px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
    border: 1px solid var(--hdc-hpt-highlight-border, #E5E7EB);
    border-radius: var(--hdc-hpt-big-trust-item-radius, 10px);
    background: var(--hdc-hpt-highlight-bg, #FFFFFF);
    color: var(--hdc-hpt-highlight-text, #4B5563);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
}

.hdc-home-product-tabs .hdc-home-product-tabs__highlight-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hdc-hpt-accent, #15803D);
    border-radius: 999px;
    color: var(--hdc-hpt-accent, #15803D);
}

.hdc-home-product-tabs .hdc-home-product-tabs__highlight-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hdc-home-product-tabs .hdc-home-product-tabs__highlight-label {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-button {
    display: inline-flex;
    width: 100%;
    min-height: var(--hdc-hpt-big-button-height, 46px);
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 18px;
    border: 1px solid var(--hdf-color-primary, #F97316);
    border-radius: var(--hdc-hpt-big-button-radius, 7px);
    background: var(--hdf-color-primary, #F97316);
    color: var(--hdf-color-on-primary, #FFFFFF);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.hdc-home-product-tabs .hdc-home-product-tabs__big-button:hover,
.hdc-home-product-tabs .hdc-home-product-tabs__big-button:focus-visible {
    border-color: var(--hdf-color-primary-hover, #EA580C);
    background: var(--hdf-color-primary-hover, #EA580C);
    color: var(--hdf-color-on-primary, #FFFFFF);
}

.hdc-home-product-tabs__products {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: var(--hdc-hpt-row-gap, 5px);
    column-gap: var(--hdc-hpt-column-gap, 0px);
    align-content: start;
}

.hdc-home-product-tabs__product {
    position: relative;
    min-width: 0;
    height: 100%;
}

.hdc-home-product-tabs__product:hover,
.hdc-home-product-tabs__product:focus-within { z-index: 20; }

.hdc-home-product-tabs__empty {
    grid-column: 1 / -1;
    align-self: center;
    margin: 0;
    padding: 28px;
    color: var(--hdc-hpt-big-card-text, #4B5563);
    text-align: center;
}

@media (max-width: 1180px) {
    .hdc-home-product-tabs__inner {
        padding: var(--hdc-hpt-tablet-padding-y, 22px) var(--hdc-hpt-tablet-padding-x, 20px);
    }

    .hdc-home-product-tabs__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-card {
        min-height: 0;
        gap: 14px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-surface {
        min-height: 0;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-image {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-image img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        transform: none;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-image:hover img,
    .hdc-home-product-tabs .hdc-home-product-tabs__big-image:focus-visible img {
        transform: none;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hdc-home-product-tabs__products {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        padding-bottom: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hdc-home-product-tabs__products::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .hdc-home-product-tabs__product {
        flex: 0 0 calc((100% - 15px) / 2.5);
        max-width: calc((100% - 15px) / 2.5);
        min-width: calc((100% - 15px) / 2.5);
        scroll-snap-align: start;
    }
}

@media (max-width: 680px) {
    .hdc-home-product-tabs {
        margin-top: var(--hdc-hpt-margin-top, 20px);
        margin-bottom: max(12px, var(--hdc-hpt-margin-bottom, 24px));
        padding-inline: 12px;
    }

    .hdc-home-product-tabs__inner {
        padding: var(--hdc-hpt-mobile-padding-y, 18px) var(--hdc-hpt-mobile-padding-x, 14px);
    }

    .hdc-home-product-tabs__header {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .hdc-home-product-tabs__tablist {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        justify-content: center;
    }

    .hdc-home-product-tabs__tab {
        width: 100%;
        min-width: 0;
        min-height: 32px;
        padding-inline: 4px;
        overflow: hidden;
        font-size: clamp(9px, 2.7vw, 12px);
        line-height: 1.1;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hdc-home-product-tabs__layout {
        gap: 18px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-card {
        gap: 10px;
        padding: 0;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-surface {
        padding: max(14px, var(--hdc-hpt-big-card-padding, 16px));
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-image {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-highlights li {
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding-inline: 4px;
        text-align: center;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__highlight-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .hdc-home-product-tabs__products {
        gap: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hdc-home-product-tabs__product {
        flex-basis: calc((100% - 5px) / 1.5);
        max-width: calc((100% - 5px) / 1.5);
        min-width: calc((100% - 5px) / 1.5);
    }
}

@media (max-width: 420px) {
    .hdc-home-product-tabs {
        padding-inline: 8px;
    }

    .hdc-home-product-tabs__inner {
        padding-inline: 10px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-surface {
        padding: 12px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__tag {
        min-height: 22px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-image {
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-title {
        font-size: min(var(--hdc-hpt-big-title-size, 20px), 19px);
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__big-highlights {
        gap: 4px;
    }

    .hdc-home-product-tabs .hdc-home-product-tabs__highlight-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdc-home-product-tabs__tab,
    .hdc-home-product-tabs__tab::after,
    .hdc-home-product-tabs .hdc-home-product-tabs__big-button,
    .hdc-home-product-tabs .hdc-home-product-tabs__big-image img {
        transition: none;
    }
}
