:root:has(body.amsearch-open) {
    overflow: hidden !important;
    overscroll-behavior-y: none !important;
}
[data-amsearch-overlay] {
    top: var(--amsearch-overlay-top, 0px);
    touch-action: none;
    overscroll-behavior: none;
}
.amsearch-container {
    --amsearch-max-fallback: calc(100vh - 12.5rem);
    max-height: var(--amsearch-max-height, var(--amsearch-max-fallback));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 767px) {
    .amsearch-container {
        --amsearch-max-fallback: calc(100vh - 10.5rem);
    }
}
@supports (height: 100dvh) {
    .amsearch-container {
        --amsearch-max-fallback: calc(100dvh - 12.5rem);
    }
    @media (max-width: 767px) {
        .amsearch-container {
            --amsearch-max-fallback: calc(100dvh - 10.5rem);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .amsearch-container,
    .amsearch-container * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

[data-amsearch-skeleton-container] {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}
[data-amsearch-skeleton-row] {
    display: flex;
    align-items: center;
    width: 100%;
    height: 68px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}
[data-amsearch-skeleton-thumb] {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    flex-shrink: 0;
}
[data-amsearch-skeleton-body] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 0.75rem;
    min-width: 0;
}
[data-amsearch-skeleton-title] {
    height: 14px;
    width: 70%;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}
[data-amsearch-skeleton-price] {
    height: 12px;
    width: 35%;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
}
[data-amsearch-skeleton-button] {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: #e5e7eb;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
@keyframes amsearch-skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.25; }
}
[data-amsearch-skeleton-container] [data-amsearch-skeleton-thumb],
[data-amsearch-skeleton-container] [data-amsearch-skeleton-title],
[data-amsearch-skeleton-container] [data-amsearch-skeleton-price],
[data-amsearch-skeleton-container] [data-amsearch-skeleton-button] {
    animation: amsearch-skeleton-pulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    [data-amsearch-skeleton-container] [data-amsearch-skeleton-thumb],
    [data-amsearch-skeleton-container] [data-amsearch-skeleton-title],
    [data-amsearch-skeleton-container] [data-amsearch-skeleton-price],
    [data-amsearch-skeleton-container] [data-amsearch-skeleton-button] {
        animation: none !important;
    }
}
[data-amsearch-products-header] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}
[data-amsearch-products-title] {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
@media (min-width: 768px) {
    [data-amsearch-products-title] {
        font-size: 1.125rem;
    }
}
[data-amsearch-view-all] a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #e11d48);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.5rem;
    box-sizing: border-box;
    text-decoration: none;
}
[data-amsearch-view-all] a:hover {
    text-decoration: underline;
}
[data-amsearch-products-list] {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
[data-amsearch-zero-query] {
    padding: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
[data-amsearch-section-title] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
[data-amsearch-pill-list] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
[data-amsearch-pill] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 150ms ease-in-out;
}
[data-amsearch-pill]:hover {
    background-color: #e5e7eb;
}
[data-amsearch-cat-grid] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
[data-amsearch-cat-link] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #1f2937;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 150ms ease-in-out;
}
[data-amsearch-cat-link]:hover {
    text-decoration: underline;
    background-color: #f9fafb;
}
[data-amsearch-cat-link] span:last-child {
    color: #9ca3af;
    margin-left: 0.5rem;
}
[data-amsearch-bestseller-cta] {
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    min-height: 44px;
    box-sizing: border-box;
}
[data-amsearch-bestseller-cta] > span {
    color: #4b5563;
}
[data-amsearch-bestseller-link] {
    font-weight: 600;
    color: var(--color-primary, #e11d48);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.5rem;
    box-sizing: border-box;
}
[data-amsearch-bestseller-link]:hover {
    text-decoration: underline;
}
[data-amsearch-bestseller-link] span:last-child {
    margin-left: 0.25rem;
}

body.amsearch-open > div[data-theme][dir],
body:has([data-amsearch-overlay]:not([style*="none"])) > div[data-theme][dir],
body:has(.amsearch-container:not([style*="none"])) > div[data-theme][dir],
body.amsearch-open [id*="chat"],
body.amsearch-open [class*="chatarmin"],
body:has([data-amsearch-overlay]:not([style*="none"])) [id*="chat"],
body:has([data-amsearch-overlay]:not([style*="none"])) [class*="chatarmin"],
body:has(.amsearch-container:not([style*="none"])) [id*="chat"],
body:has(.amsearch-container:not([style*="none"])) [class*="chatarmin"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 640px) {
    .amsearch-container .am-search-sidebar,
    .amsearch-container .am-search-content {
        padding-top: 0.5rem !important;
    }
    .amsearch-container [data-amsearch-products-header] {
        margin-bottom: 0.25rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    .amsearch-container .amsearch-products-list,
    .amsearch-container [data-amsearch-products-list] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.375rem !important;
        padding: 0 0.25rem !important;
    }
    .amsearch-container template,
    .amsearch-container [data-amsearch-products-list] > template {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    .amsearch-container [data-amsearch-products-list] > :not(template),
    .amsearch-container .item.product.product-item {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0.45rem 0.5rem !important;
        min-height: 76px !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border-radius: var(--radius-md, 0.375rem) !important;
        overflow: visible !important;
    }
    .amsearch-container .product-item .product-item-photo {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        margin: 0 0.625rem 0 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1 !important;
        border-radius: var(--radius-sm, 0.25rem) !important;
    }
    .amsearch-container .product-item .product-item-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .amsearch-container .product-item .product-info {
        text-align: left !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .amsearch-container .product-item .product-card-title {
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        font-size: 0.8125rem !important;
        line-height: 1.15rem !important;
        font-weight: 600 !important;
    }
    .amsearch-container .product-item .product-item-link {
        min-height: unset !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
        font-size: 0.8125rem !important;
        line-height: 1.15rem !important;
    }
    .amsearch-container .product-item .product-card-price {
        padding-top: 0.125rem !important;
        margin: 0 !important;
        text-align: left !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.25rem 0.375rem !important;
    }
    .amsearch-container .product-item .price-box:not(.popy-price-panel--xsearch) {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 0.25rem !important;
    }
    .amsearch-container .product-item .popy-price-panel--xsearch {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        padding: 0.35rem 0.45rem !important;
        margin-top: 0.25rem !important;
    }
    .amsearch-container .product-item .popy-price-panel--xsearch .popy-price-panel__body {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: auto !important;
        min-width: 0 !important;
        gap: 0.05rem !important;
    }
    .amsearch-container .product-item .popy-price-panel--xsearch:not(:has(> .popy-price-panel__badge:not([hidden]))) .popy-price-panel__body {
        align-items: center !important;
        text-align: center !important;
    }
    .amsearch-container .product-item .price-box :is(.final-price, .special-price, .normal-price) .price {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
    .amsearch-container .product-item .price-box .old-price .price {
        font-size: 0.75rem !important;
        text-decoration: line-through !important;
        opacity: 1 !important;
        color: #64748b !important;
    }
    .amsearch-container .product-item :is(.baseprice, .baseprice *, .baseprice .price) {
        font-size: 0.75rem !important;
        font-weight: 400 !important;
        color: #555a64 !important;
        opacity: 1 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    .amsearch-container .product-item .baseprice .font-bold {
        display: none !important;
    }
    .amsearch-container .product-item .product-actions {
        margin: 0 0 0 0.5rem !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .amsearch-container .product-item .action-addtocart.btn {
        min-width: 44px !important;
        min-height: 44px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: var(--radius-md, 0.375rem) !important;
    }
    .amsearch-container .product-item .action-addtocart.btn span.inline,
    .amsearch-container .product-item .action-addtocart.btn svg {
        display: none !important;
    }
    .amsearch-container .product-item .action-addtocart.btn::after {
        content: '+' !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
        font-weight: 600 !important;
    }
    .amsearch-container .product-item [data-amsearch-rating],
    .amsearch-container .product-item .reviews-actions {
        display: none !important;
    }
}
