.tfgpd-carousel {
    --tfgpd-gap: 20px;
    --tfgpd-basis: var(--tfgpd-desktop-basis, calc((100% - 100px) / 6));
    box-sizing: border-box;
    color: #222;
    font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 24px 0;
    max-width: 100%;
    position: relative;
}

.tfgpd-carousel *,
.tfgpd-carousel *::before,
.tfgpd-carousel *::after {
    box-sizing: border-box;
}

.tfgpd-screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.tfgpd-header-search {
    --tfgpd-header-height: 50px;
    box-sizing: border-box;
    color: #fff;
    font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 100%;
    min-width: 0;
    position: relative;
    width: 100%;
    z-index: 999;
}

.tfgpd-header-search *,
.tfgpd-header-search *::before,
.tfgpd-header-search *::after {
    box-sizing: border-box;
}

.tfgpd-header-search-form {
    display: flex;
    margin: 0;
    position: relative;
    width: 100%;
}

.tfgpd-header-search-input {
    appearance: none;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    height: var(--tfgpd-header-height);
    line-height: 1.3;
    margin: 0;
    min-height: var(--tfgpd-header-height);
    padding: 9px 48px 9px 14px;
    transition: background-color 0.2s ease;
    width: 100%;
}

.tfgpd-header-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border: 0 !important;
    box-shadow: none;
    color: #fff;
    outline: none;
}

.tfgpd-header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

.tfgpd-header-search-input::-webkit-search-cancel-button {
    display: none;
}

.tfgpd-header-search button.tfgpd-header-search-button {
    align-items: center;
    appearance: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    font: inherit;
    height: var(--tfgpd-header-height);
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    max-width: 44px;
    min-height: 0;
    min-width: 44px;
    padding: 0 !important;
    position: absolute;
    right: 0;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none;
    top: 0;
    transition: background-color 0.2s ease;
    transform: none !important;
    width: 44px;
}

.tfgpd-header-search button.tfgpd-header-search-button:hover,
.tfgpd-header-search button.tfgpd-header-search-button:focus,
.tfgpd-header-search button.tfgpd-header-search-button:focus-visible,
.tfgpd-header-search button.tfgpd-header-search-button:active {
    background-color: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    outline: none;
    transform: none !important;
}

.tfgpd-header-search button.tfgpd-header-search-button svg,
.tfgpd-header-search button.tfgpd-header-search-button svg path {
    fill: none !important;
    stroke: #fff !important;
}

.tfgpd-header-search button.tfgpd-header-search-button svg {
    display: block;
    height: 20px;
    stroke-linecap: round;
    stroke-width: 2;
    transform: none !important;
    width: 20px;
}

.tfgpd-header-loading .tfgpd-header-search-button svg {
    animation: tfgpd-search-pulse 0.8s ease-in-out infinite alternate;
}

.tfgpd-header-results {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(35, 35, 35, 0.16);
    left: 0;
    margin-top: 7px;
    max-height: min(420px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    z-index: 1000;
}

.tfgpd-header-results[hidden] {
    display: none;
}

.tfgpd-header-result {
    align-items: center;
    border-radius: 6px;
    color: #222 !important;
    display: flex;
    gap: 11px;
    min-height: 70px;
    padding: 7px 9px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}

.tfgpd-header-result + .tfgpd-header-result {
    border-top: 1px solid #f0f0f0;
}

.tfgpd-header-result:hover,
.tfgpd-header-result:focus-visible,
.tfgpd-header-result.is-active {
    background: #f5f7f4;
    color: #222;
    outline: none;
}

.tfgpd-header-result-image {
    align-items: center;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    display: flex;
    flex: 0 0 56px;
    height: 56px;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    width: 56px;
}

.tfgpd-header-result-image img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.tfgpd-header-result-placeholder {
    background: #f3f3f3;
    display: block;
    height: 100%;
    width: 100%;
}

.tfgpd-header-result-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.tfgpd-header-result-name {
    display: -webkit-box;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tfgpd-header-result-price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.tfgpd-header-result-price del {
    color: #888;
    font-size: 11px;
}

.tfgpd-header-result-price ins {
    color: var(--tfgpd-accent, #ea4e00);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tfgpd-header-no-results {
    color: #666;
    font-size: 13px;
    padding: 16px 12px;
    text-align: center;
}

@keyframes tfgpd-search-pulse {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

.tfgpd-search {
    display: flex;
    gap: 10px;
    margin: 0 auto 8px;
    max-width: 760px;
    width: 100%;
}

.tfgpd-search-field {
    flex: 1 1 auto;
    position: relative;
}

.tfgpd-search-input {
    appearance: none;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    color: #222;
    font: inherit;
    font-size: 15px;
    height: 46px;
    line-height: 1.3;
    padding: 10px 44px 10px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.tfgpd-search-input:focus {
    border-color: var(--tfgpd-accent, #ea4e00);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfgpd-accent, #ea4e00) 18%, transparent);
    outline: none;
}

.tfgpd-search-input::-webkit-search-cancel-button {
    display: none;
}

.tfgpd-search-clear {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: #777;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 25px;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 4px;
    top: 3px;
    width: 40px;
}

.tfgpd-search-clear[hidden] {
    display: none;
}

.tfgpd-search-clear:hover,
.tfgpd-search-clear:focus-visible {
    color: #222;
    outline: none;
}

.tfgpd-search-submit {
    appearance: none;
    background: var(--tfgpd-button, #44b121);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-width: 105px;
    padding: 10px 20px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.tfgpd-search-submit:hover,
.tfgpd-search-submit:focus-visible {
    background: var(--tfgpd-button-hover, #3a971c);
    outline: none;
}

.tfgpd-search-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.tfgpd-search-status {
    color: #666;
    font-size: 13px;
    min-height: 20px;
    margin: 0 auto 10px;
    max-width: 760px;
    text-align: left;
}

.tfgpd-searching .tfgpd-track {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.tfgpd-heading {
    margin-bottom: 14px;
}

.tfgpd-title {
    color: inherit;
    font: inherit;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.tfgpd-navigation {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.tfgpd-navigation[hidden] {
    display: none;
}

.tfgpd-arrow {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 28px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 38px;
}

.tfgpd-arrow:not(:disabled):hover,
.tfgpd-arrow:not(:disabled):focus-visible {
    background: var(--tfgpd-accent, #ea4e00);
    border-color: var(--tfgpd-accent, #ea4e00);
    color: #fff;
    outline: none;
}

.tfgpd-arrow:disabled {
    cursor: default;
    opacity: 0.35;
}

.tfgpd-track {
    display: grid;
    gap: var(--tfgpd-gap);
    grid-auto-columns: var(--tfgpd-basis);
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 9px 4px;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.tfgpd-track::-webkit-scrollbar {
    display: none;
}

.tfgpd-track:focus-visible {
    border-radius: 10px;
    outline: 2px solid var(--tfgpd-accent, #ea4e00);
    outline-offset: 3px;
}

.tfgpd-product {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(70, 70, 70, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.tfgpd-media {
    aspect-ratio: 1 / 1;
    padding: 15px;
    position: relative;
}

.tfgpd-media > a {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
}

.tfgpd-media img {
    display: block;
    height: 100%;
    max-height: 190px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.tfgpd-image-placeholder {
    background: #f5f5f5;
    border-radius: 8px;
    display: block;
    height: 100%;
    width: 100%;
}

.tfgpd-badge {
    background: var(--tfgpd-accent, #ea4e00);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    left: 10px;
    line-height: 1;
    padding: 7px 9px;
    position: absolute;
    top: 10px;
    z-index: 1;
}

.tfgpd-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 15px 15px;
    text-align: center;
}

.tfgpd-manufacturer {
    color: #777;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tfgpd-product-title {
    color: #222;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 10px;
    min-height: 2.8em;
}

.tfgpd-product-title a {
    color: inherit;
    text-decoration: none;
}

.tfgpd-product-title a:hover,
.tfgpd-product-title a:focus-visible {
    color: var(--tfgpd-accent, #ea4e00);
}

.tfgpd-price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    justify-content: center;
    margin: auto 0 12px;
    min-height: 24px;
}

.tfgpd-price del {
    color: #777;
    font-size: 12px;
    text-decoration-thickness: 1px;
}

.tfgpd-price ins {
    color: var(--tfgpd-accent, #ea4e00);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.tfgpd-buy-button {
    background: var(--tfgpd-button, #44b121);
    border-radius: 6px;
    color: #fff !important;
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tfgpd-buy-button:hover,
.tfgpd-buy-button:focus-visible {
    background: var(--tfgpd-button-hover, #3a971c);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.tfgpd-status {
    background: #f7f7f7;
    border-left: 4px solid #999;
    margin: 20px 0;
    padding: 12px 15px;
}

.tfgpd-error {
    border-left-color: #b32d2e;
}

@media (max-width: 1023px) {
    .tfgpd-carousel {
        --tfgpd-basis: var(--tfgpd-tablet-basis, calc((100% - 40px) / 3));
    }
}

@media (max-width: 767px) {
    .tfgpd-carousel {
        --tfgpd-basis: var(--tfgpd-mobile-basis, calc((100% - 12px) / 2));
        --tfgpd-gap: 12px;
    }

    .tfgpd-product-title {
        font-size: 13px;
    }

    .tfgpd-content {
        padding: 0 10px 10px;
    }

    .tfgpd-media {
        padding: 10px;
    }

    .tfgpd-search {
        gap: 8px;
    }

    .tfgpd-search-input {
        font-size: 14px;
    }

    .tfgpd-search-submit {
        min-width: auto;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tfgpd-track {
        scroll-behavior: auto;
    }

    .tfgpd-arrow,
    .tfgpd-buy-button {
        transition: none;
    }
}
