/* Search suggestions used only by templates3. */
.tw-site-header .ss-wrap {
    position: relative;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.tw-site-header .ss-input-thinking {
    padding-right: 76px !important;
}

.tw-site-header .ss-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 48px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid #deded8;
    border-top-color: var(--tw-ink, #111);
    border-radius: 50%;
    pointer-events: none;
    animation: tw-search-spin .65s linear infinite;
}

@keyframes tw-search-spin {
    to { transform: rotate(360deg); }
}

.tw-site-header .ss-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 300;
    width: min(760px, calc(100vw - 30px));
    max-width: calc(100vw - 30px);
    max-height: min(620px, calc(100vh - 150px));
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 1px solid var(--tw-line, #efefeb);
    border-radius: 14px;
    background: var(--tw-card, #fff);
    box-shadow: 0 22px 54px rgba(17, 17, 17, .15), 0 4px 14px rgba(17, 17, 17, .06);
    color: var(--tw-ink, #111);
    scrollbar-color: #c9c9c2 transparent;
    scrollbar-width: thin;
}

.tw-site-header .ss-wrap-open .ss-box {
    display: flex !important;
    flex-direction: column;
}

.tw-site-header .ss-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #c9c9c2 transparent;
    scrollbar-width: thin;
}

.tw-site-header .ss-content::-webkit-scrollbar {
    width: 6px;
}

.tw-site-header .ss-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9c9c2;
}

.tw-site-header .ss-box::-webkit-scrollbar {
    width: 6px;
}

.tw-site-header .ss-box::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9c9c2;
}

.tw-site-header .ss-group {
    display: block;
}

.tw-site-header .ss-group + .ss-group {
    border-top: 1px solid var(--tw-line, #efefeb);
}

.tw-site-header .ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px 12px;
    background: #fff;
}

.tw-site-header .ss-header-text {
    color: var(--tw-ink, #111);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.tw-site-header .ss-header-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--tw-soft, #fafaf8);
    color: var(--tw-muted, #555);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.tw-site-header .ss-group-categories .ss-header-count {
    display: none;
}

.tw-site-header .ss-results {
    display: grid;
    padding: 0 12px 14px;
}

.tw-site-header .ss-result {
    min-width: 0;
}

.tw-site-header .ss-results-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 16px;
}

.tw-site-header .ss-category-column {
    min-width: 0;
}

.tw-site-header .ss-category-column-title {
    padding: 0 0 6px;
    border-bottom: 1px solid #deded8;
    color: var(--tw-ink, #111);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tw-site-header .ss-category-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    min-height: 40px;
    gap: 8px;
    padding: 7px 1px;
    border: 0;
    border-bottom: 1px solid #f0f0ec;
    border-radius: 0;
    background: transparent;
    color: var(--tw-ink, #111) !important;
    text-decoration: none !important;
    transition: color .16s ease, padding .16s ease;
}

.tw-site-header .ss-category-link:hover,
.tw-site-header .ss-category-link:focus,
.tw-site-header .ss-category-link.ss-option-active {
    background: transparent;
    outline: 0;
    padding-left: 5px;
}

.tw-site-header .ss-category-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.tw-site-header .ss-category-title,
.tw-site-header .ss-category-parent {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tw-site-header .ss-category-title {
    color: var(--tw-ink, #111);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.tw-site-header .ss-category-parent {
    color: var(--tw-soft-muted, #777);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.tw-site-header .ss-category-arrow {
    color: #aaa9a2;
    font-size: 15px;
    line-height: 1;
    transition: color .16s ease, transform .16s ease;
}

.tw-site-header .ss-category-link:hover .ss-category-arrow,
.tw-site-header .ss-category-link:focus .ss-category-arrow,
.tw-site-header .ss-category-link.ss-option-active .ss-category-arrow {
    color: var(--tw-ink, #111);
    transform: translateX(2px);
}

.tw-site-header .ss-results-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tw-site-header .ss-product-link {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--tw-ink, #111) !important;
    text-decoration: none !important;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tw-site-header .ss-product-link:hover,
.tw-site-header .ss-product-link:focus,
.tw-site-header .ss-product-link.ss-option-active {
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, .10);
    color: var(--tw-ink, #111) !important;
    outline: 0;
    transform: translateY(-2px);
}

.tw-site-header .ss-result-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 340 / 430;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f3f1;
}

.tw-site-header .ss-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
}

.tw-site-header .ss-result-image-empty:before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #cfcfc8;
    border-radius: 4px;
    box-shadow: inset 0 -7px 0 #deded8;
}

.tw-site-header .ss-result-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 5px 10px;
    text-align: center;
}

.tw-site-header .ss-result-producer {
    max-width: 100%;
    overflow: hidden;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.tw-site-header .ss-result-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--tw-ink, #111);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.22;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tw-site-header .ss-result-price {
    max-width: 100%;
    overflow: hidden;
    margin-top: auto;
    padding-top: 2px;
    color: var(--tw-sale, #9b241c);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.12;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tw-site-header .ss-footer {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    border-top: 1px solid var(--tw-line, #efefeb);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.tw-site-header .ss-all-results {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 58px;
    padding: 8px 14px 8px 17px;
    border: 0;
    border-radius: 0 0 13px 13px;
    background: #fff;
    color: var(--tw-ink, #111);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: left;
    transition: background-color .16s ease, color .16s ease;
}

/* The legacy header theme positions every search button absolutely. Keep the
   suggestions CTA in normal document flow so it cannot cover result cards. */
.tw-site-header .header-search .ss-footer > button.ss-all-results {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 58px !important;
    min-height: 58px;
    margin: 0 !important;
    padding: 8px 14px 8px 17px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--tw-ink, #111) !important;
    line-height: 1 !important;
    transform: none !important;
}

.tw-site-header .header-search .ss-footer > button.ss-all-results:before {
    display: none !important;
    content: none !important;
}

.tw-site-header .ss-all-results:hover,
.tw-site-header .ss-all-results:focus {
    background: var(--tw-soft, #fafaf8);
    color: var(--tw-ink, #111);
    outline: 0;
}

.tw-site-header .ss-all-results-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.tw-site-header .ss-all-results-copy strong {
    color: var(--tw-ink, #111);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.tw-site-header .ss-all-results-copy small {
    color: var(--tw-soft-muted, #777);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.tw-site-header .ss-all-results-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tw-ink, #111);
    color: #fff;
    font-size: 16px;
}

.tw-site-header .ss-message {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 16px 18px;
    color: var(--tw-muted, #555);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.tw-site-header .ss-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tw-soft, #fafaf8);
    color: var(--tw-ink, #111);
}

@media (max-width: 991px) {
    .tw-site-header .ss-box {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: auto;
        max-height: calc(100vh - 145px);
        padding-bottom: 0;
        border-radius: 12px;
        box-shadow: 0 20px 48px rgba(17, 17, 17, .2);
    }

    .tw-site-header .ss-content {
        order: 3;
        max-height: none;
    }

    .tw-site-header .ss-box > .ss-group-categories {
        order: 1;
        flex: 0 0 auto;
    }

    .tw-site-header .ss-footer {
        display: block !important;
        position: relative !important;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 2;
        order: 2;
    }

    .tw-site-header .ss-results {
        padding-top: 6px;
    }

    .tw-site-header .ss-all-results {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .tw-site-header .ss-results-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .tw-site-header .ss-results-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .tw-site-header .ss-wrap,
    .tw-site-header .ss-box,
    .tw-site-header .ss-group,
    .tw-site-header .ss-results,
    .tw-site-header .ss-category-column,
    .tw-site-header .ss-result,
    .tw-site-header .ss-option {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .tw-site-header .ss-box {
        width: 100%;
        padding-bottom: 0;
        overflow-x: hidden;
    }

    .tw-site-header .ss-content {
        max-height: none;
        order: 3;
    }

    .tw-site-header .ss-box > .ss-group-categories {
        order: 1;
        flex: 0 0 auto;
    }

    .tw-site-header .ss-header {
        padding: 11px 11px 7px;
    }

    .tw-site-header .ss-header-text {
        font-size: 12px;
    }

    .tw-site-header .ss-header-count {
        min-width: 21px;
        height: 21px;
        padding: 0 6px;
        font-size: 10px;
    }

    .tw-site-header .ss-results {
        padding: 6px 7px 8px;
    }

    .tw-site-header .ss-results-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tw-site-header .ss-category-column-title {
        padding-bottom: 4px;
        font-size: 10px;
    }

    .tw-site-header .ss-category-link {
        min-height: 34px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .tw-site-header .ss-category-title {
        font-size: 11px;
    }

    .tw-site-header .ss-category-parent {
        display: none;
    }

    .tw-site-header .ss-category-arrow {
        font-size: 13px;
    }

    .tw-site-header .ss-results-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .tw-site-header .ss-product-link {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: stretch;
        min-height: 66px;
        border-color: #efefeb;
        background: #fff;
    }

    .tw-site-header .ss-product-link:hover,
    .tw-site-header .ss-product-link:focus,
    .tw-site-header .ss-product-link.ss-option-active {
        box-shadow: none;
        transform: none;
    }

    .tw-site-header .ss-result-image {
        width: 52px;
        height: 66px;
        aspect-ratio: auto;
        border-radius: 4px 0 0 4px;
    }

    .tw-site-header .ss-result-copy {
        align-items: flex-start;
        gap: 3px;
        padding: 6px 5px;
        overflow: hidden;
        text-align: left;
    }

    .tw-site-header .ss-result-producer {
        font-size: 8px;
    }

    .tw-site-header .ss-result-title {
        width: 100%;
        font-size: 11px;
        line-height: 1.18;
        text-align: left;
    }

    .tw-site-header .ss-result-price {
        width: 100%;
        padding-top: 0;
        font-size: 11px;
        text-align: left;
    }

    .tw-site-header .ss-footer {
        display: block !important;
        position: relative !important;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 2;
        order: 2;
        padding: 0;
        border-top: 0;
        border-bottom: 1px solid var(--tw-line, #efefeb);
    }

    .tw-site-header .ss-all-results {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 50px;
        padding: 6px 10px 6px 12px;
        border-radius: 0;
    }

    .tw-site-header .header-search .ss-footer > button.ss-all-results {
        height: 50px !important;
        min-height: 50px;
        padding: 6px 10px 6px 12px !important;
    }

    .tw-site-header .ss-all-results-copy strong {
        font-size: 12px;
    }

    .tw-site-header .ss-all-results-copy small {
        font-size: 10px;
    }

    .tw-site-header .ss-all-results-arrow {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-site-header .ss-product-link,
    .tw-site-header .ss-category-link,
    .tw-site-header .ss-category-arrow {
        transition: none;
    }
}
