.product-search {
    --ink: #343e35;
    --muted: #70756c;
    --line: #e5e6de;
    --accent: #53664e;
    background: #fcfcf8;
    color: var(--ink);
    padding-top: 110px;
    font-family: 'Open Sans',sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.product-search * {
    box-sizing: border-box;
}

.product-search [hidden] {
    display: none !important;
}

.product-search button, .product-search input, .product-search select {
    font: inherit;
}

.product-search button, .product-search a, .product-search input, .product-search select, .product-search summary {
    touch-action: manipulation;
}

.product-search :focus-visible {
    outline: 3px solid #8b9e7e;
    outline-offset: 4px;
}

.product-search a {
    color: inherit;
}

.search-hero {
    background: #f0f1e9;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.search-hero .container {
    position: relative;
    padding-top: 48px;
    padding-bottom: 44px;
}

.search-eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin: 0 0 14px;
}

.product-search h1 {
    font-family: 'Playfair Display',serif;
    font-size: 48px;
    line-height: 1.25;
    margin: 0 0 16px;
    font-weight: 400;
    letter-spacing: -1px;
}

.search-intro {
    max-width: 560px;
    margin: 0;
    color: #636d60;
    font-size: 14px;
}

.search-hero-flower {
    position: absolute;
    right: 45px;
    top: -45px;
    font-size: 270px;
    line-height: 1.2;
    color: #dfe4d6;
    transform: rotate(15deg);
    pointer-events: none;
}

.search-layout {
    display: grid;
    grid-template-columns: 255px minmax(0,1fr);
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 70px;
}

.search-layout:before, .search-layout:after {
    display: none;
}

.search-sidebar {
    min-width: 0;
}

.search-filter-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 20px;
}

.search-filter-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.search-filter-panel > summary::-webkit-details-marker {
    display: none;
}

.search-filter-panel > summary .ti-filter {
    font-size: 14px;
    margin-right: 8px;
}

.search-filter-panel[open] > summary>.ti-angle-down {
    transform: rotate(180deg);
}

.search-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 0 24px;
}

.search-filter-heading small {
    max-width: 125px;
}

.search-text-button {
    padding: 0;
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px !important;
    white-space: nowrap;
}

.search-filter-group {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 23px;
    margin: 0 0 23px;
    min-width: 0;
}

.search-filter-group legend, .search-filter-group>label {
    font-size: 13px;
    font-weight: 600;
    border: 0;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.5;
    color: var(--ink);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap>.ti {
    position: absolute;
    left: 12px;
    top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.product-search input[type=search], .product-search input[type=number] {
    width: 100%;
    border: 1px solid #d7dbd1;
    border-radius: 7px;
    background: #fff;
    height: 44px;
    padding: 10px;
    color: var(--ink);
    margin: 0;
    box-shadow: none;
}

.product-search input[type=search] {
    padding-left: 34px;
    font-size: 12px;
}

.search-check-list {
    max-height: 238px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd1c3 transparent;
    padding: 2px 5px 2px 1px;
}

.search-subcategory-dropdown {
    position: relative;
}

.search-subcategory-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7dbd1;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    list-style: none;
}

.search-subcategory-dropdown > summary::-webkit-details-marker {
    display: none;
}

.search-subcategory-dropdown[open] > summary {
    border-color: var(--accent);
}

.search-subcategory-dropdown[open] > summary .ti {
    transform: rotate(180deg);
}

.search-subcategory-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 4;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px #343e3520;
}

.search-subcategory-options .search-input-wrap {
    margin-bottom: 12px;
}

.search-subcategory-options .search-check-list {
    max-height: 220px;
    overscroll-behavior: contain;
}

.search-subcategory-empty {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.search-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    margin: 0 0 12px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.6;
}

.search-checkbox:last-child {
    margin-bottom: 0;
}

.search-checkbox input {
    appearance: auto;
    position: static;
    opacity: 1;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.search-swatches {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px 6px;
}

.search-swatch {
    position: relative;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    margin: 0;
    padding: 3px 0;
}

.search-swatch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.search-swatch-dot {
    display: block;
    position: relative;
    width: 28px;
    height: 28px;
    margin: 2px auto 7px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #00000015;
}

.search-swatch input:checked+.search-swatch-dot {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.search-swatch input:checked+.search-swatch-dot:after {
    content: '✓';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
    color: #35452f;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
}

.search-swatch input:focus-visible+.search-swatch-dot {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.search-color-pink {
    background: #e6b3bb;
}

.search-color-purple {
    background: #ac92c7;
}

.search-color-red {
    background: #b54e53;
}

.search-color-white {
    background: #faf9f4;
}

.search-color-black {
    background: #343434;
}

.search-color-blue {
    background: #82a9cb;
}

.search-color-green {
    background: #8eaa82;
}

.search-color-orange {
    background: #e5a068;
}

.search-color-yellow {
    background: #e6cd75;
}

.search-price {
    border: 0;
    margin: 0;
    padding: 0;
}

.search-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.search-price-inputs label {
    min-width: 0;
    font-size: 11px;
    font-weight: 400;
    flex: 1;
}

.search-price-inputs input {
    margin-top: 6px !important;
}

.search-price-inputs>span {
    margin-top: 18px;
}

.product-search small {
    font-size: 11px;
    color: var(--muted);
}

.search-products {
    min-width: 0;
}

.search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line);
}

.search-toolbar h2 {
    font-family: 'Playfair Display',serif;
    font-size: 25px;
    font-weight: 400;
    margin: 0 0 5px;
    line-height: 1.3;
}

.search-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.search-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    font-size: 12px;
}

.search-sort>span {
    white-space: nowrap;
}

.search-sort select {
    height: 42px;
    max-width: 185px;
    border: 1px solid #d7dbd1;
    border-radius: 7px !important;
    background: #fff;
    padding: 0 10px;
    color: var(--ink);
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-chips:not(:empty) {
    margin-top: 18px;
}

.search-chip {
    border: 1px solid #dce1d3;
    background: #edf0e6;
    color: #46543f;
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 11px !important;
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.search-chip span {
    margin-left: 7px;
}

#search-status {
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0;
    min-height: 19px;
}

.search-error {
    padding: 14px;
    background: #f7eae5;
    border-radius: 8px;
    margin-bottom: 20px;
}

#search-results {
    transition: opacity .15s;
}

#search-results[aria-busy=true] {
    opacity: .45;
    pointer-events: none;
}

.search-product-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 30px 22px;
}

.search-product-card {
    min-width: 0;
}

.search-product-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #eeeee6;
    border-radius: 10px;
    aspect-ratio: 5/6;
}

.search-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.search-product-image:hover img {
    transform: scale(1.035);
}

.search-badge, .search-stock {
    position: absolute;
    left: 12px;
    padding: 4px 9px;
    font-size: 10px;
    border-radius: 4px;
    background: #fffaf2;
    color: #6f563a;
}

.search-badge {
    top: 12px;
}

.search-stock {
    bottom: 12px;
}

.search-product-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffffed;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
}

.search-product-category {
    font-size: 10px;
    letter-spacing: .5px;
    color: var(--muted);
    margin: 15px 0 5px;
}

.search-product-card h3 {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 6px;
    font-family: inherit;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.search-product-price {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.search-product-price s {
    font-size: 11px;
    color: #85887e;
    font-weight: 400;
    margin-left: 6px;
}

.search-empty {
    text-align: center;
    padding: 42px 20px 65px;
    background: #f7f7f1;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.search-empty h2 {
    font: 400 29px/1.4 'Playfair Display',serif;
    margin: 15px 0 12px;
}

.search-empty p {
    max-width: 390px;
    margin: 0 auto 25px;
    color: var(--muted);
}

.search-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    background: var(--accent);
    color: #fff !important;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.search-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    margin-top: 35px;
    padding-top: 25px;
    font-size: 12px;
}

.search-pagination>a {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.search-pagination>span {
    color: var(--muted);
}

@media (min-width:992px) {
    .search-filter-panel > summary {
        pointer-events: none;
    }

    .search-filter-panel > summary>.ti-angle-down {
        display: none;
    }
}

@media (max-width:991px) {
    .product-search {
        padding-top: 85px;
    }

    .search-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .search-hero .container {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .product-search h1 {
        font-size: 38px;
    }

    .search-hero-flower {
        right: -30px;
        opacity: .5;
    }

    .search-intro {
        position: relative;
        z-index: 1;
        max-width: 80%;
    }

    .search-filter-panel {
        padding: 16px 20px;
    }

    .search-check-list {
        max-height: 190px;
    }

    .search-filter-heading small {
        max-width: none;
    }

    .search-swatches {
        grid-template-columns: repeat(9,minmax(0,1fr));
    }

    .search-price-inputs {
        max-width: 350px;
    }

    .search-product-grid {
        gap: 25px 18px;
    }
}

@media (max-width:575px) {
    .product-search {
        padding-top: 80px;
    }

    .search-hero .container {
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .product-search h1 {
        font-size: 32px;
    }

    .search-eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .search-intro {
        max-width: 95%;
        font-size: 12px;
    }

    .search-hero-flower {
        font-size: 190px;
        right: -50px;
        top: -15px;
        opacity: .35;
    }

    .search-layout {
        padding-top: 22px;
        padding-bottom: 40px;
    }

    .search-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .search-toolbar h2 {
        font-size: 23px;
    }

    .search-sort {
        width: 100%;
        justify-content: space-between;
    }

    .search-sort select {
        max-width: 220px;
        flex: 1;
    }

    .search-product-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 25px 13px;
    }

    .search-product-card h3 {
        font-size: 13px;
    }

    .search-product-price {
        font-size: 12px;
    }

    .search-product-price s {
        display: block;
        margin: 2px 0 0;
    }

    .search-swatches {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }

    .search-empty {
        padding: 25px 15px 35px;
    }

    .search-empty h2 {
        font-size: 24px;
    }

    .search-pagination {
        font-size: 11px;
        gap: 6px;
    }

    .search-pagination>a {
        padding: 8px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .product-search * {
        transition: none !important;
    }
}
