/**
 * Shop archive visual update.
 * Shop rules are scoped to .sec-pcate.lcd-shop. Product-detail additions are
 * scoped to .single-product .lcd-smart-search; cart, checkout and account stay untouched.
 */

/* --------------------------------------------------------------------------
 * Shop frame and toolbar
 * -------------------------------------------------------------------------- */

.sec-pcate.lcd-shop {
    --lcd-brand: #E20932;
    --lcd-brand-dark: #BA0628;
    --lcd-ink: #0F172A;
    --lcd-muted: #64748B;
    --lcd-border: #DDE3EA;
    --lcd-surface: #FFFFFF;
    --lcd-soft: #F8FAFC;
    color: var(--lcd-ink);
    background: var(--lcd-surface);
}

.lcd-shop .pcate-wrap {
    padding-top: 16px;
    padding-bottom: 64px;
}

.lcd-shop .pcate .breadcrumb {
    margin-bottom: 12px;
}

.lcd-shop .lcd-shop-toolbar {
    gap: 16px;
    margin-bottom: 16px;
}

.lcd-shop .lcd-shop-toolbar .title-32 {
    color: var(--lcd-ink);
    font-size: clamp(2.4rem, 2.2vw, 3.2rem);
    line-height: 1.2;
}

/* Search H1 remains in the DOM and accessible to screen readers. */
.lcd-product-search .lcd-search-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lcd-shop .lcd-search-result-summary {
    margin: 5px 0 0;
    color: var(--lcd-muted);
    font-size: 1.35rem;
    line-height: 1.4;
}

.lcd-shop .lcd-search-result-count {
    color: var(--lcd-ink);
    font-weight: 700;
}

.lcd-shop .lcd-shop-toolbar .pcate-heads-right,
.lcd-shop .lcd-shop-toolbar .pcate-ctr {
    align-items: center;
}

.lcd-shop .lcd-shop-toolbar .ip-control {
    gap: 8px;
}

.lcd-shop .lcd-shop-toolbar .ip-feild,
.lcd-shop .lcd-shop-toolbar .re-select-main {
    min-width: 160px;
    max-width: 100%;
}

.lcd-shop .lcd-shop-toolbar .re-select-main,
.lcd-shop .lcd-shop-toolbar .select2-selection {
    min-height: 40px;
    color: var(--lcd-ink);
    background: var(--lcd-surface);
    border: 1px solid var(--lcd-border);
    border-radius: 6px;
}

.lcd-shop .lcd-shop-toolbar .re-select-main:focus,
.lcd-shop .lcd-shop-toolbar .select2-container--focus .select2-selection {
    border-color: var(--lcd-brand);
    box-shadow: 0 0 0 3px rgba(226, 9, 50, 0.12);
    outline: 0;
}

.lcd-shop .pcate-ctr-link {
    color: var(--lcd-muted);
    background: var(--lcd-soft);
    border: 1px solid var(--lcd-border);
    border-radius: 4px;
}

.lcd-shop .pcate-ctr-link.active {
    color: #FFFFFF;
    background: var(--lcd-brand);
    border-color: var(--lcd-brand);
}

.lcd-shop .pcate-ctr-link.active i {
    color: #FFFFFF;
}

@media (hover: hover) {
    .lcd-shop .pcate-ctr-link:hover {
        color: #FFFFFF;
        background: var(--lcd-brand-dark);
        border-color: var(--lcd-brand-dark);
    }

    .lcd-shop .pcate-ctr-link:hover i {
        color: #FFFFFF;
    }
}

.lcd-shop .lcd-mobile-filter-toggle {
    min-height: 40px;
    margin: 0;
    border-radius: 6px;
    background: var(--lcd-surface);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Two-column layout and filter sidebar
 * -------------------------------------------------------------------------- */

.lcd-shop .lcd-shop-layout {
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0;
}

.lcd-shop .lcd-shop-sidebar,
.lcd-shop .lcd-shop-products {
    width: auto;
    min-width: 0;
    padding: 0;
}

.lcd-shop .lcd-filter-panel {
    padding: 14px 16px 10px;
    background: var(--lcd-surface);
    border: 1px solid var(--lcd-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.lcd-shop .lcd-filter-panel > .c-text {
    margin: 0 0 6px;
    color: var(--lcd-ink);
    font-size: 1.5rem;
    font-weight: 700;
}

.lcd-shop .lcd-filter-panel .pcate-fillc {
    display: block;
    margin: 0;
}

.lcd-shop .lcd-filter-panel .pcate-fillc-item {
    width: 100%;
    padding: 12px 0;
    gap: 10px;
}

.lcd-shop .lcd-filter-panel .pcate-fillc-item:not(:last-child),
.lcd-shop .lcd-filter-group-category {
    border-bottom: 1px solid #E9EDF2;
}

.lcd-shop .lcd-filter-group-category {
    padding-bottom: 8px;
}

.lcd-shop .lcd-filter-group-category > .pcate-fillc-item,
.lcd-shop .lcd-filter-category-scroll > .pcate-fillc-item {
    padding: 0;
    border: 0;
}

.lcd-shop .lcd-filter-panel .fw-7 {
    margin-bottom: 8px;
    color: var(--lcd-ink);
    font-size: 1.5rem;
    line-height: 1.4;
}

.lcd-shop .lcd-filter-panel .pcate-fillc .recheck > .recheck-block ~ .pcate-more {
    padding-left: 24px;
}

.lcd-shop .lcd-filter-panel .recheck-item {
    display: flex;
    min-height: 32px;
    padding: 6px 2px;
    gap: 9px;
    align-items: flex-start;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lcd-shop .lcd-filter-panel .recheck-checkbox {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex: 0 0 17px;
    border: 1px solid #B9C2CF;
    border-radius: 4px;
    background: #FFFFFF;
}

.lcd-shop .lcd-filter-panel .recheck-item .recheck-text {
    min-width: 0;
    margin: 0;
    color: #475569;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lcd-shop .lcd-filter-panel .recheck > .recheck-block .recheck-text {
    color: var(--lcd-ink);
    font-weight: 500;
}

.lcd-shop .lcd-filter-panel .recheck-input:checked ~ .recheck-checkbox,
.lcd-shop .lcd-filter-panel .recheck-item.active .recheck-checkbox {
    background: var(--lcd-brand);
    border-color: var(--lcd-brand);
}

.lcd-shop .lcd-filter-panel .recheck-input:checked ~ .recheck-text,
.lcd-shop .lcd-filter-panel .recheck-item.active .recheck-text {
    color: var(--lcd-ink);
}

@media (hover: hover) {
    .lcd-shop .lcd-filter-panel .recheck-item:hover {
        background: #FFF5F7;
    }

    .lcd-shop .lcd-filter-panel .recheck-item:hover .recheck-text {
        color: var(--lcd-brand-dark);
    }
}

/* --------------------------------------------------------------------------
 * Producer and brand client-side search
 * -------------------------------------------------------------------------- */

.lcd-shop .lcd-filter-search {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 7px;
    align-items: center;
}

.lcd-shop .lcd-filter-search-icon {
    position: absolute;
    left: 11px;
    z-index: 1;
    display: inline-flex;
    color: #334155;
    pointer-events: none;
}

.lcd-shop .lcd-filter-search-input {
    width: 100%;
    height: 38px;
    padding: 7px 32px 7px 34px;
    color: var(--lcd-ink);
    font: inherit;
    font-size: 1.35rem;
    background: var(--lcd-surface);
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lcd-shop .lcd-filter-search-input::placeholder {
    color: #8491A3;
    opacity: 1;
}

.lcd-shop .lcd-filter-search-input:focus {
    border-color: var(--lcd-brand);
    box-shadow: 0 0 0 3px rgba(226, 9, 50, 0.1);
}

/* Category lists share the five-row scroll area; headings stay outside it. */
.lcd-shop .lcd-filter-scroll,
.lcd-shop .lcd-filter-group-category:not(.lcd-filter-section),
.lcd-shop .lcd-filter-category-scroll {
    max-height: 160px;
    padding: 0 6px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #B8BEC7 #F1F3F6;
    scrollbar-width: thin;
}

.lcd-shop .lcd-filter-scroll::-webkit-scrollbar,
.lcd-shop .lcd-filter-group-category:not(.lcd-filter-section)::-webkit-scrollbar,
.lcd-shop .lcd-filter-category-scroll::-webkit-scrollbar {
    width: 7px;
}

.lcd-shop .lcd-filter-scroll::-webkit-scrollbar-track,
.lcd-shop .lcd-filter-group-category:not(.lcd-filter-section)::-webkit-scrollbar-track,
.lcd-shop .lcd-filter-category-scroll::-webkit-scrollbar-track {
    background: #F1F3F6;
    border-radius: 999px;
}

.lcd-shop .lcd-filter-scroll::-webkit-scrollbar-thumb,
.lcd-shop .lcd-filter-group-category:not(.lcd-filter-section)::-webkit-scrollbar-thumb,
.lcd-shop .lcd-filter-category-scroll::-webkit-scrollbar-thumb {
    background: #B8BEC7;
    border-radius: 999px;
}

.lcd-shop .lcd-filter-scroll .recheck-item[hidden],
.lcd-shop .lcd-filter-empty[hidden] {
    display: none;
}

.lcd-shop .lcd-filter-empty {
    margin: 8px 0 2px;
    color: var(--lcd-muted);
    font-size: 1.3rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
 * Price range
 * -------------------------------------------------------------------------- */

.lcd-shop .lcd-filter-group-price .pcate-fillc-range {
    padding: 3px 1px 0;
}

.lcd-shop .lcd-filter-group-price .range-slider,
.lcd-shop .lcd-filter-group-price .range-slider .progress {
    height: 3px;
    border-radius: 999px;
}

.lcd-shop .lcd-filter-group-price .range-slider .progress {
    background: var(--lcd-brand);
}

.lcd-shop .lcd-filter-group-price .range-input input::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid var(--lcd-brand);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.lcd-shop .lcd-filter-group-price .range-input input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid var(--lcd-brand);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.lcd-shop .lcd-filter-group-price .range-flex {
    gap: 10px;
}

.lcd-shop .lcd-filter-group-price .range-item {
    min-width: 0;
    color: #334155;
    font-size: 1.3rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * Product result area and cards
 * -------------------------------------------------------------------------- */

.lcd-shop .lcd-shop-products > .pcate-block {
    margin: 0;
}

.lcd-shop .lcd-shop-products .woocommerce-result-count {
    margin: 0 0 14px;
    color: var(--lcd-muted);
    font-size: 1.35rem;
}

.lcd-shop .lcd-shop-products .woocommerce-ordering {
    margin: 0;
}

.lcd-shop .lcd-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.lcd-shop .lcd-product-grid.option-2 {
    grid-template-columns: minmax(0, 1fr);
}

.lcd-shop .lcd-product-grid > .lcd-product-card {
    width: auto;
    min-width: 0;
    height: 100%;
    padding: 0;
}

.lcd-shop .lcd-product-card-inner {
    position: relative;
    height: 100%;
    padding: 12px;
    overflow: hidden;
    background: var(--lcd-surface);
    border: 1px solid var(--lcd-border);
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
    .lcd-shop .lcd-product-card-inner:hover {
        border-color: #C5CDD8;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
        transform: translateY(-2px);
    }
}

.lcd-shop .lcd-product-card-inner .pro-img .box {
    padding-top: 44%;
    background: #FFFFFF;
    border-radius: 6px;
}

.lcd-shop .lcd-product-card-inner .pro-img .box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive grid image area: cards may grow, but images stay inside the frame.
 * Fixed per-breakpoint frame heights align product text across each grid row.
 * List-view geometry stays untouched; contain preserves every image ratio.
 */
.lcd-shop .lcd-product-grid:not(.option-2) .lcd-product-card-inner .pro-img {
    height: clamp(260px, 20vw, 280px);
    flex-shrink: 0;
}

.lcd-shop .lcd-product-grid:not(.option-2) .lcd-product-card-inner .pro-img .box {
    height: 100%;
    padding-top: 0;
    overflow: hidden;
}

.lcd-shop .lcd-product-grid:not(.option-2) .lcd-product-card-inner .pro-img .box img {
    top: 50%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.lcd-shop .lcd-product-card-inner .pro-tag {
    gap: 5px;
}

.lcd-shop .lcd-product-card-inner .pro-tag-item {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
}

.lcd-shop .lcd-product-card-inner .pro-desc {
    gap: 3px;
    padding-top: 8px;
}

.lcd-shop .lcd-product-card-inner .pro-cate {
    margin: 0;
    color: var(--lcd-muted);
    font-size: 1.2rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lcd-shop .lcd-product-card-inner .pro-cate ~ .pro-cate {
    display: none;
}

.lcd-shop .lcd-product-card-inner .pro-name {
    display: -webkit-box;
    min-height: 4.2rem;
    overflow: hidden;
    color: var(--lcd-ink);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lcd-shop .lcd-product-card-inner .pro-price {
    min-height: 2.4rem;
    margin-top: auto;
    padding-top: 3px;
    align-items: baseline;
    color: var(--lcd-brand);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.lcd-shop .lcd-product-card-inner .pro-price .price,
.lcd-shop .lcd-product-card-inner .pro-price bdi,
.lcd-shop .lcd-product-card-inner .pro-price ins {
    color: var(--lcd-brand);
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.lcd-shop .lcd-product-card-inner .pro-price del,
.lcd-shop .lcd-product-card-inner .pro-price del bdi {
    color: #94A3B8;
    font-size: 1.3rem;
    font-weight: 400;
}

.lcd-shop .lcd-product-card-inner > .button {
    margin-top: 10px;
    padding: 9px 12px;
    color: #FFFFFF;
    background: var(--lcd-brand);
    border: 1px solid var(--lcd-brand);
    border-radius: 6px;
}

@media (hover: hover) {
    .lcd-shop .lcd-product-card-inner > .button:hover {
        color: #FFFFFF;
        background: var(--lcd-brand-dark);
        border-color: var(--lcd-brand-dark);
    }
}

.lcd-shop .lcd-product-grid.option-2 .lcd-product-card-inner {
    padding: 14px;
    border-radius: 10px;
}

.lcd-shop .lcd-product-grid.option-2 .pro-img .box {
    padding-top: 100%;
}

.lcd-shop .lcd-product-grid.option-2 .pro-desc {
    padding-top: 0;
}

.lcd-shop .mona-empty-message-large {
    padding: 40px 20px;
    color: var(--lcd-muted);
    text-align: center;
    background: var(--lcd-soft);
    border: 1px solid var(--lcd-border);
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
 * Pagination and keyboard focus
 * -------------------------------------------------------------------------- */

.lcd-shop .pagination,
.lcd-shop .woocommerce-pagination {
    margin-top: 24px;
}

.lcd-shop .pagination ul.page-numbers,
.lcd-shop .woocommerce-pagination ul.page-numbers {
    gap: 8px;
    margin-top: 0;
}

.lcd-shop .pagination .page-numbers > li,
.lcd-shop .woocommerce-pagination .page-numbers > li {
    margin: 0;
}

.lcd-shop .pagination .page-numbers > li > .page-numbers,
.lcd-shop .woocommerce-pagination .page-numbers > li > .page-numbers {
    width: 36px;
    height: 36px;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid var(--lcd-border);
    border-radius: 5px;
}

.lcd-shop .pagination .page-numbers > li > .current,
.lcd-shop .woocommerce-pagination .page-numbers > li > .current {
    color: #FFFFFF;
    background: var(--lcd-brand);
    border-color: var(--lcd-brand);
}

@media (hover: hover) {
    .lcd-shop .pagination .page-numbers > li > a:hover,
    .lcd-shop .woocommerce-pagination .page-numbers > li > a:hover {
        color: #FFFFFF;
        background: var(--lcd-brand-dark);
        border-color: var(--lcd-brand-dark);
    }
}

.lcd-shop :where(a, button, select, input):focus-visible {
    outline: 2px solid var(--lcd-brand);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
 * Smart ECU search on product detail
 * -------------------------------------------------------------------------- */

.single-product .lcd-smart-search-anchor {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 18px 0 22px;
    justify-content: flex-end;
}

.single-product .lcd-smart-search {
    width: min(420px, 100%);
    margin-left: auto;
    color: #0F172A;
    transition: width 0.22s ease;
}

.single-product .lcd-smart-search.lcd-is-open {
    width: min(860px, 100%);
}

.single-product .lcd-smart-search.lcd-smart-search-fixed {
    position: fixed;
    top: 112px;
    z-index: 45;
    width: min(420px, calc(100vw - 48px));
    margin: 0;
}

.single-product .lcd-smart-search.lcd-smart-search-fixed.lcd-is-open,
.single-product .lcd-smart-search.lcd-smart-search-fixed.lcd-is-closing {
    width: min(760px, calc(100vw - 48px));
}

.single-product .lcd-smart-search-toggle {
    display: flex;
    width: 100%;
    min-height: 72px;
    padding: 10px 16px 10px 12px;
    gap: 12px;
    align-items: center;
    color: #0F172A;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #DDE3EA;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.single-product .lcd-smart-search.lcd-is-open .lcd-smart-search-toggle,
.single-product .lcd-smart-search.lcd-is-closing .lcd-smart-search-toggle {
    display: none;
}

.single-product .lcd-smart-search-icon,
.single-product .lcd-smart-search-panel-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.8rem;
    background: #E20932;
    border: 5px solid #FDE9ED;
    border-radius: 50%;
}

.single-product .lcd-smart-search-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.single-product .lcd-smart-search-title {
    color: #111827;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.single-product .lcd-smart-search-subtitle {
    color: #64748B;
    font-size: 1.3rem;
    line-height: 1.35;
}

.single-product .lcd-smart-search-chevron {
    display: inline-flex;
    color: #E20932;
    font-size: 1.4rem;
}

.single-product .lcd-smart-search-panel[hidden] {
    display: none;
}

.single-product .lcd-smart-search-panel {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.single-product .lcd-smart-search.lcd-is-open .lcd-smart-search-panel {
    opacity: 1;
    transform: translateY(0);
}

.single-product .lcd-smart-search-form {
    display: grid;
    grid-template-columns: 48px minmax(180px, 1fr) auto 38px;
    min-height: 82px;
    padding: 10px 12px;
    gap: 8px 10px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #DDE3EA;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.09);
}

.single-product .lcd-smart-search-input-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.single-product .lcd-smart-search-input {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 8px 12px;
    color: #0F172A;
    font: inherit;
    font-size: 1.4rem;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    outline: 0;
}

.single-product .lcd-smart-search-input:focus {
    border-color: #E20932;
    box-shadow: 0 0 0 3px rgba(226, 9, 50, 0.11);
}

.single-product .lcd-smart-search-submit,
.single-product .lcd-smart-search-close,
.single-product .lcd-smart-search-suggestion {
    font: inherit;
    border: 0;
    cursor: pointer;
}

.single-product .lcd-smart-search-submit {
    min-width: 72px;
    height: 42px;
    padding: 8px 17px;
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 700;
    background: #E20932;
    border-radius: 7px;
}

.single-product .lcd-smart-search-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 1.7rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
}

.single-product .lcd-smart-search-suggestions {
    display: flex;
    grid-column: 2 / -1;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.single-product .lcd-smart-search-suggestion {
    padding: 3px 9px;
    color: #475569;
    font-size: 1.2rem;
    line-height: 1.4;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
}

@media (hover: hover) {
    .single-product .lcd-smart-search-toggle:hover {
        border-color: #E20932;
        box-shadow: 0 7px 24px rgba(15, 23, 42, 0.12);
        transform: translateY(-1px);
    }

    .single-product .lcd-smart-search-submit:hover {
        background: #BA0628;
    }

    .single-product .lcd-smart-search-close:hover,
    .single-product .lcd-smart-search-suggestion:hover {
        color: #E20932;
        border-color: #E20932;
    }
}

.single-product .lcd-smart-search :where(button, input):focus-visible {
    outline: 2px solid #E20932;
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
 * Full search filters and compact result banner
 * -------------------------------------------------------------------------- */

.lcd-product-search .lcd-filter-master-search {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 8px;
    align-items: center;
}

.lcd-product-search .lcd-filter-master-icon {
    position: absolute;
    left: 11px;
    z-index: 1;
    display: inline-flex;
    color: #334155;
    pointer-events: none;
}

.lcd-product-search .lcd-filter-master-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 34px;
    color: var(--lcd-ink);
    font: inherit;
    font-size: 1.35rem;
    background: var(--lcd-surface);
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    outline: 0;
}

.lcd-product-search .lcd-filter-master-input:focus {
    border-color: var(--lcd-brand);
    box-shadow: 0 0 0 3px rgba(226, 9, 50, 0.1);
}

.lcd-product-search .lcd-filter-section[hidden] {
    display: none;
}

.lcd-product-search .lcd-filter-section {
    width: 100%;
    padding: 12px 0;
}

.lcd-product-search .lcd-filter-section:not(:last-of-type) {
    border-bottom: 1px solid #E9EDF2;
}

.lcd-product-search .lcd-search-results-column > .monaPostsList > .pcate-block {
    margin: 0;
}

.lcd-product-search .lcd-smart-search-result {
    display: flex;
    min-height: 70px;
    margin-bottom: 16px;
    padding: 10px 14px;
    gap: 11px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--lcd-border);
    border-left: 3px solid var(--lcd-brand);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lcd-product-search .lcd-smart-search-result-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--lcd-brand);
    border-radius: 50%;
}

.lcd-product-search .lcd-smart-search-result-copy {
    min-width: 0;
    flex: 1;
}

.lcd-product-search .lcd-smart-search-result-title,
.lcd-product-search .lcd-smart-search-result-subtitle {
    margin: 0;
}

.lcd-product-search .lcd-smart-search-result-title {
    color: var(--lcd-ink);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
}

.lcd-product-search .lcd-smart-search-result-keyword {
    color: var(--lcd-brand);
    overflow-wrap: anywhere;
}

.lcd-product-search .lcd-smart-search-result-subtitle {
    margin-top: 2px;
    color: var(--lcd-muted);
    font-size: 1.25rem;
    line-height: 1.35;
}

.lcd-product-search .lcd-smart-search-result-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lcd-product-search .lcd-smart-search-result-chip {
    padding: 3px 7px;
    color: #475569;
    font-size: 1.15rem;
    white-space: nowrap;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
 * Tablet
 * -------------------------------------------------------------------------- */

@media screen and (max-width: 1024px) {
    .single-product .lcd-smart-search,
    .single-product .lcd-smart-search.lcd-is-open {
        width: 100%;
        margin-left: 0;
    }

    .single-product .lcd-smart-search.lcd-smart-search-fixed {
        width: min(420px, calc(100vw - 32px));
    }

    .single-product .lcd-smart-search.lcd-smart-search-fixed.lcd-is-open,
    .single-product .lcd-smart-search.lcd-smart-search-fixed.lcd-is-closing {
        width: min(720px, calc(100vw - 32px));
    }

    .lcd-shop .lcd-shop-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .lcd-shop .lcd-shop-sidebar.pcate-fixed {
        width: min(420px, 92vw);
        padding: 58px 16px 24px;
    }

    .lcd-shop .lcd-shop-sidebar .lcd-filter-panel {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lcd-shop .lcd-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .lcd-shop .lcd-product-card-inner .pro-img .box {
        padding-top: 44%;
    }

    .lcd-shop .lcd-product-grid:not(.option-2) .lcd-product-card-inner .pro-img {
        height: clamp(220px, 24vw, 250px);
    }

    .lcd-shop .lcd-product-grid.option-2 .pro-img .box {
        padding-top: 100%;
    }
}

/* --------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */

@media screen and (max-width: 600px) {
    .single-product .lcd-smart-search-anchor {
        margin: 14px 0 18px;
    }

    .single-product .lcd-smart-search.lcd-smart-search-fixed {
        top: 88px;
        right: 10px;
        width: 58px;
    }

    .single-product .lcd-smart-search.lcd-smart-search-fixed.lcd-is-open,
    .single-product .lcd-smart-search.lcd-smart-search-fixed.lcd-is-closing {
        width: calc(100vw - 20px);
    }

    .single-product .lcd-smart-search.lcd-smart-search-fixed:not(.lcd-is-open):not(.lcd-is-closing) .lcd-smart-search-copy,
    .single-product .lcd-smart-search.lcd-smart-search-fixed:not(.lcd-is-open):not(.lcd-is-closing) .lcd-smart-search-chevron {
        display: none;
    }

    .single-product .lcd-smart-search.lcd-smart-search-fixed:not(.lcd-is-open):not(.lcd-is-closing) .lcd-smart-search-toggle {
        width: 58px;
        min-height: 58px;
        padding: 5px;
        justify-content: center;
    }

    .single-product .lcd-smart-search-toggle {
        min-height: 66px;
        padding: 9px 12px 9px 9px;
    }

    .single-product .lcd-smart-search-icon,
    .single-product .lcd-smart-search-panel-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 1.6rem;
    }

    .single-product .lcd-smart-search-form {
        grid-template-columns: 42px minmax(0, 1fr) 36px;
        padding: 10px;
    }

    .single-product .lcd-smart-search-input {
        grid-column: 2 / 3;
    }

    .single-product .lcd-smart-search-submit {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .single-product .lcd-smart-search-close {
        grid-column: 3;
        grid-row: 1;
    }

    .single-product .lcd-smart-search-suggestions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .lcd-product-search .lcd-smart-search-result {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .lcd-product-search .lcd-smart-search-result-chips {
        width: 100%;
        padding-left: 47px;
        justify-content: flex-start;
    }

    .lcd-shop .pcate-wrap {
        padding-bottom: 44px;
    }

    .lcd-shop .lcd-shop-toolbar {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .lcd-shop .lcd-shop-toolbar .pcate-heads-left {
        width: 100%;
    }

    .lcd-shop .lcd-shop-toolbar .pcate-heads-right {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
    }

    .lcd-shop .lcd-shop-toolbar .pcate-ctr {
        min-width: 0;
        flex: 1;
    }

    .lcd-shop .lcd-shop-toolbar .pcate-ctr-gr:first-child {
        min-width: 0;
        flex: 1;
    }

    .lcd-shop .lcd-shop-toolbar .ip-control,
    .lcd-shop .lcd-shop-toolbar .ip-feild,
    .lcd-shop .lcd-shop-toolbar .re-select-main {
        width: 100%;
        min-width: 0;
    }

    .lcd-shop .lcd-shop-toolbar .ip-control label {
        display: none;
    }

    .lcd-shop .lcd-shop-toolbar .pcate-ctr-gr:last-child {
        display: none;
    }

    .lcd-shop .lcd-product-grid {
        gap: 10px;
    }

    .lcd-shop .lcd-product-card-inner {
        padding: 9px;
        border-radius: 8px;
    }

    .lcd-shop .lcd-product-card-inner .pro-name {
        min-height: 3.8rem;
        font-size: 1.45rem;
    }

    .lcd-shop .lcd-product-card-inner .pro-price {
        font-size: 1.55rem;
    }

    .lcd-shop .lcd-product-card-inner .pro-img .box {
        padding-top: 62%;
    }

    .lcd-shop .lcd-product-grid:not(.option-2) .lcd-product-card-inner .pro-img {
        height: clamp(180px, 40vw, 220px);
    }

    .lcd-shop .lcd-product-grid.option-2 .pro-img .box {
        padding-top: 100%;
    }
}

@media screen and (max-width: 420px) {
    .lcd-shop .lcd-product-grid:not(.option-2) {
        grid-template-columns: minmax(0, 1fr);
    }

    .lcd-shop .lcd-product-card-inner .pro-img .box {
        padding-top: 44%;
    }

    .lcd-shop .lcd-product-grid.option-2 .lcd-product-card-inner {
        flex-direction: column;
    }

    .lcd-shop .lcd-product-grid.option-2 .pro-img {
        width: 100%;
        height: auto;
    }
}

/* Header product suggestions: shared desktop/mobile search form only. */
.lcd-header-search {
    position: relative;
}

.lcd-header-search .lcd-search-suggestions[hidden] {
    display: none;
}

.lcd-header-search .lcd-search-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    z-index: 160;
    width: min(480px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
    color: #172033;
}

.lcd-header-search .lcd-search-suggestions__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 8px;
}

.lcd-header-search .lcd-search-suggestions__heading {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
}

.lcd-header-search .lcd-search-suggestions__view-all {
    color: #E20932;
    font-size: 1.25rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.lcd-header-search .lcd-search-suggestions__view-all:hover,
.lcd-header-search .lcd-search-suggestions__view-all:focus-visible {
    color: #b30629;
    text-decoration: underline;
}

.lcd-header-search .lcd-search-suggestion {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) minmax(85px, auto);
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 8px 16px;
    color: inherit;
    text-decoration: none;
}

.lcd-header-search .lcd-search-suggestion + .lcd-search-suggestion {
    border-top: 1px solid #e8edf3;
}

.lcd-header-search .lcd-search-suggestion:hover,
.lcd-header-search .lcd-search-suggestion:focus-visible {
    background: #fff6f8;
    outline: none;
}

.lcd-header-search .lcd-search-suggestion__image {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.lcd-header-search .lcd-search-suggestion__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.lcd-header-search .lcd-search-suggestion__title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lcd-header-search .lcd-search-suggestion__meta {
    color: #66758a;
    font-size: 1.2rem;
    line-height: 1.3;
}

.lcd-header-search .lcd-search-suggestion__price {
    color: #E20932;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.lcd-header-search .lcd-search-suggestions__empty {
    margin: 0;
    padding: 18px 16px;
    color: #66758a;
    font-size: 1.3rem;
}

@media (max-width: 1199px) {
    .mobile-con .lcd-header-search .lcd-search-suggestions {
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(50vh, 420px);
    }
}

@media (max-width: 600px) {
    .mobile-con .lcd-header-search .lcd-search-suggestions__header {
        flex-wrap: wrap;
    }

    .mobile-con .lcd-header-search .lcd-search-suggestion {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    .mobile-con .lcd-header-search .lcd-search-suggestion__image {
        width: 48px;
        height: 48px;
    }

    .mobile-con .lcd-header-search .lcd-search-suggestion__price {
        grid-column: 2;
        text-align: left;
    }
}

/* Header suggestion request indicator; the icon box stays the same size. */
.lcd-header-search .header-srch-input button .icon i {
    width: 1em;
    height: 1em;
    text-align: center;
}

.lcd-header-search .header-srch-input button .icon .lcd-search-loading {
    animation: lcd-search-icon-spin 0.8s linear infinite;
}

@keyframes lcd-search-icon-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lcd-header-search .header-srch-input button .icon .lcd-search-loading {
        animation: none;
    }
}

/* Header mini-cart: position against the control group's viewport-safe right edge. */
@media screen and (max-width: 1024px) {
    .header .header-control {
        position: relative;
    }

    .header .header-control .header-cart {
        position: static;
    }

    .header .header-control .header-cart .pdp-cart {
        right: 0;
        width: min(32rem, calc(100vw - 3rem));
        max-width: calc(100vw - 3rem);
    }

    .header .header-control .header-cart .pdp-cart .pdp-cart-item .desc {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
    .header .header-control .header-cart .pdp-cart {
        top: calc(100% + 0.4rem);
    }
}

/* Touch Header dropdowns use click state instead of sticky :hover. */
@media screen and (max-width: 1024px) and (hover: none),
       screen and (max-width: 1024px) and (pointer: coarse) {
    .header .header-cart.lcd-header-dropdown-ready:not(.lcd-header-dropdown-open):hover .pdp-cart,
    .header .header-usr.lcd-header-dropdown-ready:not(.lcd-header-dropdown-open):hover .header-usr-hover {
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateY(0.5rem);
        transform: translateY(0.5rem);
    }

    .header .header-cart.lcd-header-dropdown-open .pdp-cart,
    .header .header-usr.lcd-header-dropdown-open .header-usr-hover {
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
