/*
 * Search results tile refresh.
 * Scoped to the product search template so category/product related cards keep their own layout.
 */

body.search-results {
    --dm-search-red: #ff3b3b;
    --dm-search-red-deep: #e2231f;
    --dm-search-red-rgb: 255, 59, 59;
    --dm-search-surface: #15171f;
    --dm-search-surface-2: #101218;
    --dm-search-line: rgba(255, 255, 255, 0.08);
    --dm-search-muted: #9aa0ac;
    --dm-search-dim: #6b7280;
    --dm-search-green: #34d399;
}

body.search-results .dm-search-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 54px 0 46px;
    overflow: hidden;
    background:
        radial-gradient(680px 320px at 50% -10%, rgba(var(--dm-search-red-rgb), 0.16), transparent 60%),
        radial-gradient(900px 500px at 85% 120%, rgba(120, 40, 255, 0.1), transparent 60%),
        linear-gradient(180deg, #0d0e14 0%, #0a0a0f 100%);
    border-bottom: 1px solid var(--dm-search-line);
    text-align: center;
}

body.search-results .dm-search-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(700px 320px at 50% 0, #000, transparent 75%);
    mask-image: radial-gradient(700px 320px at 50% 0, #000, transparent 75%);
}

body.search-results .dm-search-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--dm-search-red-rgb), 0.55), transparent);
}

body.search-results .dm-search-hero__bg,
body.search-results .dm-search-hero__rings,
body.search-results .dm-search-hero__glow {
    display: none;
}

body.search-results .dm-search-hero__container,
body.search-results .dm-search-hero__content {
    position: relative;
    z-index: 2;
}

body.search-results .dm-search-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    margin: 0 auto;
    text-align: center;
}

body.search-results .dm-search-hero__breadcrumbs {
    justify-content: center;
    margin: 0 0 22px;
    color: var(--dm-search-dim);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

body.search-results .dm-search-hero__breadcrumbs a {
    color: var(--dm-search-muted);
    text-decoration: none;
}

body.search-results .dm-search-hero__breadcrumbs a:hover {
    color: #fff;
}

body.search-results .dm-search-hero__breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.5;
}

body.search-results .dm-search-hero__breadcrumbs .current {
    color: var(--dm-search-red);
}

body.search-results .dm-search-hero__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.32em;
    margin: 0;
    font-family: var(--font-heading, "Outfit", "Inter", sans-serif);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

body.search-results .dm-search-hero__title-top {
    display: inline;
    color: #fff;
    text-transform: none;
}

body.search-results .dm-search-hero__title-accent {
    position: relative;
    display: inline;
    background: linear-gradient(180deg, #ff6a6a, var(--dm-search-red-deep));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 26px rgba(var(--dm-search-red-rgb), 0.45));
    font-style: normal;
}

body.search-results .dm-search-hero__subtitle {
    margin: 16px 0 0;
    color: var(--dm-search-muted);
    font-size: 15.5px;
    font-weight: 500;
}

body.search-results .dm-search-hero__subtitle strong {
    color: #fff;
    font-weight: 700;
}

body.search-results .dm-search-hero__search-wrap {
    width: 100%;
    max-width: 660px;
    margin: 30px 0 0;
}

body.search-results .dm-search-hero__form {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.search-results .dm-search-hero__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(31, 34, 43, 0.9), rgba(18, 20, 26, 0.9));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.search-results .dm-search-hero__input-wrap:focus-within {
    border-color: rgba(var(--dm-search-red-rgb), 0.55);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 4px rgba(var(--dm-search-red-rgb), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.search-results .dm-search-hero__search-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    color: var(--dm-search-dim);
}

body.search-results .dm-search-hero__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15.5px;
    font-weight: 500;
}

body.search-results .dm-search-hero__input::placeholder {
    color: #5b626f;
}

body.search-results .dm-search-hero__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(180deg, #ff4747, var(--dm-search-red-deep));
    box-shadow: 0 10px 26px rgba(var(--dm-search-red-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

body.search-results .dm-search-hero__submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

body.search-results .dm-search-hero__submit svg {
    width: 16px;
    height: 16px;
}

body.search-results .dm-search-hero__meta {
    margin-top: 18px;
}

body.search-results .dm-search-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid var(--dm-search-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dm-search-muted);
    font-size: 13px;
    font-weight: 700;
}

body.search-results .dm-search-hero__count::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dm-search-green);
    box-shadow: 0 0 12px var(--dm-search-green);
}

body.search-results .dm-search-hero__popular {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 820px);
    margin: 16px auto 0;
    gap: 10px;
}

body.search-results .dm-search-hero__popular-label {
    color: var(--dm-search-dim);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1;
    text-transform: uppercase;
}

body.search-results .dm-search-hero__popular-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

body.search-results .dm-search-hero__popular-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(16, 18, 24, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #d9dde6;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.search-results .dm-search-hero__popular-link:hover,
body.search-results .dm-search-hero__popular-link:focus-visible {
    border-color: rgba(var(--dm-search-red-rgb), 0.45);
    background: rgba(var(--dm-search-red-rgb), 0.12);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

body.search-results .dm-category-products {
    padding-top: 8px;
    padding-bottom: 40px;
}

body.search-results .dm-category-products .woocommerce ul.products,
body.search-results .woocommerce ul.products,
body.search-results ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 22px !important;
    max-width: var(--container-max, 1240px);
    margin: 34px auto 0 !important;
    padding: 0 24px 40px !important;
    list-style: none !important;
}

body.search-results ul.products::before,
body.search-results ul.products::after,
body.search-results .woocommerce ul.products::before,
body.search-results .woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

body.search-results ul.products > li.product,
body.search-results .woocommerce ul.products > li.product,
body.search-results .dm-product-card {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none;
}

body.search-results .dm-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--dm-search-line);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--dm-search-surface) 0%, var(--dm-search-surface-2) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

body.search-results .dm-product-card::before {
    content: none;
}

body.search-results .dm-product-card::after {
    content: none;
}

body.search-results .dm-product-card:hover {
    z-index: 2;
    transform: translateY(-6px);
    border-color: rgba(var(--dm-search-red-rgb), 0.5);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(var(--dm-search-red-rgb), 0.25),
        0 18px 40px rgba(var(--dm-search-red-rgb), 0.12);
}

body.search-results .dm-product-card:hover::after,
body.search-results .dm-product-card:focus-within::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

body.search-results .dm-product-card__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

body.search-results .dm-product-card__image {
    position: relative;
    width: 100%;
    height: 164px;
    min-height: 164px;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #0c0d12;
}

body.search-results .dm-product-card__image::after {
    content: none;
    display: none;
}

body.search-results .dm-product-card__img,
body.search-results .dm-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

body.search-results .dm-product-card:hover .dm-product-card__img,
body.search-results .dm-product-card:hover .dm-product-card__image img {
    transform: scale(1.07);
}

body.search-results .dm-product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 5;
    display: flex;
    pointer-events: none;
}

body.search-results .dm-product-card__badges-left,
body.search-results .dm-product-card__badges-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

body.search-results .dm-product-card__sale-badge,
body.search-results .dm-product-card__soldout,
body.search-results .dm-badge--old-games {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    padding: 5px 10px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff4747, var(--dm-search-red-deep));
    box-shadow: 0 6px 16px rgba(var(--dm-search-red-rgb), 0.4);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

body.search-results .dm-product-card__sale-badge {
    display: none !important;
}

body.search-results .dm-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 0 15px 14px;
}

body.search-results .dm-product-card__title {
    display: block;
    min-height: 0;
    margin: 0;
    overflow: visible;
    color: #fff;
    font-family: var(--font-heading, "Outfit", "Inter", sans-serif);
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-shadow: none;
    transform: none;
}

body.search-results .dm-product-card:hover .dm-product-card__title {
    color: #fff;
    text-shadow: none;
    transform: none;
}

/* Bullets always visible inline (reveal-on-hover reverted) */
body.search-results .dm-product-card__features {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    gap: 6px;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 4px 0 0;
    padding: 0;
    overflow: visible;
    border-bottom: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    text-align: left;
    transform: none;
    visibility: visible;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.search-results .dm-product-card__features::before {
    display: none;
}

body.search-results .dm-product-card:hover .dm-product-card__features,
body.search-results .dm-product-card:focus-within .dm-product-card__features {
    max-height: none;
    opacity: 1;
    transform: none;
    visibility: visible;
}

body.search-results .dm-product-card__feature {
    position: relative;
    display: -webkit-box !important;
    min-width: 0;
    min-height: 0 !important;
    padding-left: 24px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: #e7e9ee;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
}

body.search-results .dm-product-card__feature::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 50%;
    background:
        rgba(52, 211, 153, 0.14)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / 11px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3);
}

body.search-results .dm-product-card:hover .dm-product-card__feature::before {
    transform: none;
}

body.search-results .dm-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--dm-search-line);
}

body.search-results .dm-product-card:hover .dm-product-card__footer {
    border-color: var(--dm-search-line);
}

body.search-results .dm-product-card__price-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
}

body.search-results .dm-product-card__price-label {
    margin: 0 0 3px;
    color: var(--dm-search-dim);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.search-results .dm-product-card__price {
    color: #fff;
    font-family: var(--font-heading, "Outfit", "Inter", sans-serif);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: none;
}

body.search-results .dm-product-card:hover .dm-product-card__price {
    color: #fff;
    text-shadow: none;
}

body.search-results .dm-product-card__regular-price {
    margin-right: 6px;
    color: var(--dm-search-dim);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: line-through;
}

body.search-results .dm-product-card__sale-price {
    color: var(--dm-search-red);
    text-decoration: none;
}

body.search-results .dm-product-card__sale-price-stack {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
}

body.search-results .dm-product-card__cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff4747, var(--dm-search-red-deep));
    box-shadow: 0 8px 20px rgba(var(--dm-search-red-rgb), 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.search-results .dm-product-card:hover .dm-product-card__cta {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ff5252, var(--dm-search-red-deep)) !important;
    box-shadow: 0 14px 28px rgba(var(--dm-search-red-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.search-results .dm-product-card__cta svg {
    width: 20px;
    height: 20px;
}

body.search-results .dm-product-card__platforms {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    gap: 6px;
}

body.search-results .dm-platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(10, 11, 16, 0.7);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

body.search-results .dm-platform-badge__logo {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1) !important;
    opacity: 1;
}

body.search-results .woocommerce-result-count,
body.search-results .woocommerce-ordering {
    margin: 18px 24px 0;
}

body.search-results .woocommerce-ordering select {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background-color: rgba(16, 18, 24, 0.9);
    color: #fff;
    font-size: 13px;
}

body.search-results nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    max-width: var(--container-max, 1240px);
    margin: 4px auto 64px !important;
    padding: 0 24px;
}

body.search-results nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 !important;
    padding: 10px;
    border: 1px solid var(--dm-search-line);
    border-radius: 16px;
    background: rgba(13, 14, 20, 0.92);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    list-style: none;
}

body.search-results nav.woocommerce-pagination ul.page-numbers li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none;
}

body.search-results nav.woocommerce-pagination a.page-numbers,
body.search-results nav.woocommerce-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #d8dce6;
    font-family: var(--font-heading, "Outfit", "Inter", sans-serif);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.search-results nav.woocommerce-pagination a.page-numbers:hover,
body.search-results nav.woocommerce-pagination a.page-numbers:focus-visible {
    border-color: rgba(var(--dm-search-red-rgb), 0.5);
    background: rgba(var(--dm-search-red-rgb), 0.12);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(var(--dm-search-red-rgb), 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.search-results nav.woocommerce-pagination span.page-numbers.current {
    border-color: rgba(var(--dm-search-red-rgb), 0.9);
    background: linear-gradient(180deg, #ff4747, var(--dm-search-red-deep));
    box-shadow: 0 10px 26px rgba(var(--dm-search-red-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #fff;
}

body.search-results nav.woocommerce-pagination a.page-numbers.prev,
body.search-results nav.woocommerce-pagination a.page-numbers.next {
    min-width: 46px;
    color: #fff;
}

body.search-results nav.woocommerce-pagination a.page-numbers i {
    display: block;
    font-size: 18px;
    line-height: 1;
}

body.search-results .woocommerce-info {
    max-width: 760px;
    margin: 34px auto 60px !important;
    padding: 28px !important;
    border: 1px solid var(--dm-search-line) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, var(--dm-search-surface), var(--dm-search-surface-2)) !important;
    color: var(--dm-search-muted) !important;
    text-align: center;
}

@media (min-width: 1200px) {
    body.search-results .dm-category-products .woocommerce ul.products,
    body.search-results .woocommerce ul.products,
    body.search-results ul.products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body.search-results .dm-search-hero {
        padding: 40px 0 34px;
    }

    body.search-results .dm-search-hero__search-wrap {
        margin-top: 22px;
    }

    body.search-results .dm-search-hero__popular {
        align-items: flex-start;
        width: 100%;
        margin-top: 14px;
        gap: 8px;
        overflow: hidden;
    }

    body.search-results .dm-search-hero__popular-label {
        padding-left: 2px;
    }

    body.search-results .dm-search-hero__popular-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.search-results .dm-search-hero__popular-list::-webkit-scrollbar {
        display: none;
    }

    body.search-results .dm-search-hero__popular-link {
        min-height: 30px;
        padding: 0 11px;
        font-size: 11.5px;
    }

    body.search-results .dm-search-hero__input-wrap {
        gap: 8px;
        padding: 7px 7px 7px 14px;
        border-radius: 14px;
    }

    body.search-results .dm-search-hero__submit {
        width: 46px;
        padding: 0;
        justify-content: center;
    }

    body.search-results .dm-search-hero__submit span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.search-results .dm-category-products .woocommerce ul.products,
    body.search-results .woocommerce ul.products,
    body.search-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-top: 24px !important;
        padding: 0 12px 34px !important;
    }

    body.search-results .dm-product-card {
        border-radius: 14px;
    }

    body.search-results .dm-product-card::after {
        display: none;
    }

    body.search-results .dm-product-card__image {
        height: 118px;
        min-height: 118px;
    }

    body.search-results .dm-product-card__content {
        padding: 0 10px 10px !important;
        gap: 7px !important;
    }

    body.search-results .dm-product-card__title {
        min-height: 0 !important;
        display: block;
        overflow: visible;
        -webkit-box-orient: initial;
        -webkit-line-clamp: initial;
        font-size: 12.5px;
        line-height: 1.28;
    }

    body.search-results .dm-product-card__features {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0 !important;
    }

    body.search-results .dm-product-card__footer {
        gap: 7px !important;
        margin-top: 1px !important;
        padding-top: 7px !important;
    }

    body.search-results .dm-product-card__price-label {
        margin-bottom: 2px !important;
    }

    body.search-results .dm-product-card__price {
        font-size: 16px;
    }

    body.search-results .dm-product-card__regular-price {
        font-size: 11px;
    }

    body.search-results .dm-product-card__cta {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    body.search-results .dm-product-card__cta svg {
        width: 17px;
        height: 17px;
    }

    body.search-results .dm-product-card__platforms {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    body.search-results .dm-platform-badge {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    body.search-results .dm-platform-badge__logo {
        width: 14px;
        height: 14px;
    }

    body.search-results nav.woocommerce-pagination {
        margin: 0 auto 52px !important;
        padding: 0 12px;
    }

    body.search-results nav.woocommerce-pagination ul.page-numbers {
        gap: 7px;
        max-width: 100%;
        padding: 8px;
        border-radius: 14px;
    }

    body.search-results nav.woocommerce-pagination a.page-numbers,
    body.search-results nav.woocommerce-pagination span.page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 12px;
    }

    body.search-results nav.woocommerce-pagination a.page-numbers.prev,
    body.search-results nav.woocommerce-pagination a.page-numbers.next {
        min-width: 38px;
    }
}

@media (max-width: 380px) {
    body.search-results .dm-category-products .woocommerce ul.products,
    body.search-results .woocommerce ul.products,
    body.search-results ul.products {
        gap: 10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.search-results .dm-product-card__title {
        font-size: 12px;
    }
}

@media (hover: none) {
    body.search-results .dm-product-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.search-results .dm-product-card,
    body.search-results .dm-product-card__img,
    body.search-results .dm-product-card__image img,
    body.search-results .dm-product-card__features,
    body.search-results .dm-product-card__cta,
    body.search-results .dm-search-hero__submit {
        transition: none;
    }
}

/* ===== REDESIGN (i): visible % OFF badge, bigger image, price row, full-width button ===== */
body.search-results .dm-product-card__image{height:176px;min-height:176px}
body.search-results .dm-product-card__image::after{content:"";display:block;position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(10,10,15,.55));pointer-events:none}
body.search-results .dm-product-card__sale-badge{display:inline-flex!important;align-items:center;padding:6px 11px;border-radius:8px;background:linear-gradient(180deg,#ff5252,var(--dm-search-red-deep));box-shadow:0 6px 18px rgba(var(--dm-search-red-rgb),.5),inset 0 1px 0 rgba(255,255,255,.25);color:#fff;font-size:12px;font-weight:900;line-height:1;letter-spacing:.4px;text-transform:uppercase}
body.search-results .dm-product-card__footer{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:auto;padding-top:13px;border-top:1px solid var(--dm-search-line)}
body.search-results .dm-product-card__price-wrap{display:flex;flex-direction:row;align-items:baseline;gap:9px;min-width:0;line-height:1}
body.search-results .dm-product-card__price-label{margin:0;align-self:center;color:var(--dm-search-dim);font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
body.search-results .dm-product-card__price{font-size:22px;font-weight:900;color:#fff}
body.search-results .dm-product-card__sale-price-stack{display:inline-flex;align-items:baseline;gap:8px;flex-direction:row-reverse;flex-wrap:nowrap}
body.search-results .dm-product-card__sale-price{font-size:22px;font-weight:900;color:#fff;text-decoration:none}
body.search-results .dm-product-card__regular-price{margin:0;font-size:13.5px;font-weight:600;color:var(--dm-search-dim);text-decoration:line-through}
body.search-results .dm-product-card__cta{display:flex;width:100%;min-width:0;align-items:center;justify-content:center;gap:8px;height:46px;border:0;border-radius:11px;background:linear-gradient(180deg,#ff4747,var(--dm-search-red-deep));box-shadow:0 10px 24px rgba(var(--dm-search-red-rgb),.36),inset 0 1px 0 rgba(255,255,255,.2);color:#fff;font-family:"Outfit","Inter",sans-serif;font-size:14px;font-weight:800;letter-spacing:.3px;transition:filter .15s ease,box-shadow .18s ease}
body.search-results .dm-product-card__cta::before{content:"View Product"}
body.search-results .dm-product-card__cta svg{width:18px;height:18px}
body.search-results .dm-product-card:hover .dm-product-card__cta{filter:brightness(1.07);transform:none;background:linear-gradient(180deg,#ff5252,var(--dm-search-red-deep))!important;box-shadow:0 12px 26px rgba(var(--dm-search-red-rgb),.45),inset 0 1px 0 rgba(255,255,255,.2)}

/* fix: keep the % OFF badge pinned top-left of the image (container was rendering as a full-size block and getting clipped) */
body.search-results .dm-product-card__image{position:relative}
body.search-results .dm-product-card__badges{position:absolute!important;top:11px!important;left:11px!important;right:auto!important;bottom:auto!important;z-index:6!important;display:flex!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;pointer-events:none}
body.search-results .dm-product-card__badges-left{display:flex!important;gap:6px;flex-wrap:wrap;width:auto!important;height:auto!important}
body.search-results .dm-product-card__sale-badge{width:auto!important;height:auto!important}

/* ===== FLIP CARD (search only): hover flips to full "What's included" ===== */
body.search-results .dm-product-card{perspective:1600px}
body.search-results .dm-product-card:hover{transform:none}
body.search-results .dm-flip{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
body.search-results .dm-product-card:hover .dm-flip,body.search-results .dm-product-card:focus-within .dm-flip{transform:rotateY(180deg)}
body.search-results .dm-flip__front{display:flex;flex-direction:column;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden}
body.search-results .dm-flip__back{position:absolute;inset:0;display:flex;flex-direction:column;gap:11px;padding:18px 16px 16px;text-decoration:none;color:#fff;overflow:hidden;border-radius:16px;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateY(180deg);background:radial-gradient(440px 230px at 50% 0,rgba(var(--dm-search-red-rgb),.16),transparent 60%),linear-gradient(180deg,var(--dm-search-surface),var(--dm-search-surface-2))}
body.search-results .dm-flip__back-head{flex:0 0 auto;font-family:"Outfit","Inter",sans-serif;font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--dm-search-red)}
body.search-results .dm-flip__back-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;flex:1 1 auto;min-height:0;overflow:auto}
body.search-results .dm-flip__back-list li{position:relative;padding-left:25px;font-size:12.5px;font-weight:500;line-height:1.35;color:#e7e9ee}
body.search-results .dm-flip__back-list li::before{content:"";position:absolute;left:0;top:1px;width:16px;height:16px;border-radius:50%;background:rgba(52,211,153,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;box-shadow:inset 0 0 0 1px rgba(52,211,153,.32)}
body.search-results .dm-flip__back-cta{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:11px;background:linear-gradient(180deg,#ff4747,var(--dm-search-red-deep));color:#fff;font-family:"Outfit","Inter",sans-serif;font-size:14px;font-weight:800;letter-spacing:.3px;box-shadow:0 10px 24px rgba(var(--dm-search-red-rgb),.36),inset 0 1px 0 rgba(255,255,255,.2)}
body.search-results .dm-flip__back-cta svg{width:18px;height:18px}
body.search-results .dm-product-card__platforms{transition:opacity .25s ease}
body.search-results .dm-product-card:hover .dm-product-card__platforms{opacity:0}

/* fix overlay anchoring on flip front: badge top-left, platforms top-right */
body.search-results .dm-product-card{position:relative}
body.search-results .dm-product-card__image{position:relative!important}
body.search-results .dm-product-card__platforms{position:absolute!important;top:11px!important;right:11px!important;left:auto!important;bottom:auto!important;z-index:7!important}
body.search-results .dm-product-card__badges{position:absolute!important;top:11px!important;left:11px!important;right:auto!important;bottom:auto!important;z-index:7!important}

/* fix: remove the dark image overlay (black band) + ensure image fully covers; title height stays dynamic */
body.search-results .dm-product-card__image::after{content:none!important;display:none!important;background:none!important}
body.search-results .dm-product-card__image{background:#0c0d12}
body.search-results .dm-product-card__img,body.search-results .dm-product-card__image img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center;display:block}
body.search-results .dm-product-card__title{display:block!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;overflow:visible!important;min-height:0!important;font-size:15.5px}

/* title fallback: no clamp; the tile grows with long product names */
body.search-results .dm-product-card__title{display:block!important;-webkit-box-orient:initial!important;-webkit-line-clamp:unset!important;overflow:visible!important;min-height:0!important;max-height:none!important;font-size:15.5px;line-height:1.3}

/* image: show full thumbnail at native 345x198 aspect (no side-crop); title: dynamic height + balanced wrap */
body.search-results .dm-product-card__image{aspect-ratio:345/198!important;height:auto!important;min-height:0!important}
body.search-results .dm-product-card__title{display:block!important;-webkit-box-orient:initial!important;-webkit-line-clamp:unset!important;overflow:visible!important;min-height:0!important;max-height:none!important;font-size:15.5px;line-height:1.28;text-wrap:balance}

/* title: keep full text visible; card and flip viewport grow to fit */
body.search-results .dm-product-card__title{min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
body.search-results .dm-product-card,
body.search-results .dm-flip,
body.search-results .dm-flip__front{height:auto!important;min-height:100%}
