.section-auctionjapan {
    padding: 30px clamp(16px, 2.4vw, 38px) 56px;
}

.yahoo-market {
    width: 100%;
    color: #263127;
}

.yahoo-market__toolbar {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid rgba(74, 93, 61, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(232, 156, 89, 0.2), transparent 32%),
        linear-gradient(135deg, #f8faf4 0%, #eef3e7 100%);
    box-shadow: 0 18px 50px rgba(44, 62, 39, 0.08);
}

.yahoo-market__heading {
    max-width: 720px;
}

.yahoo-market__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #66775a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yahoo-market__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66a94f;
    box-shadow: 0 0 0 5px rgba(102, 169, 79, 0.13);
}

.yahoo-market__heading h1 {
    margin: 0;
    color: #2d382b;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.25;
}

.yahoo-market__heading p {
    margin: 8px 0 0;
    color: #71806c;
    font-size: 15px;
}

.yahoo-market__search {
    display: flex;
    gap: 10px;
    max-width: 780px;
    margin-top: 24px;
}

.yahoo-market__search-field {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 1px solid #d9e1d3;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(49, 67, 43, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yahoo-market__search-field:focus-within {
    border-color: #758a66;
    box-shadow: 0 0 0 4px rgba(117, 138, 102, 0.13);
}

.yahoo-market__search-field i {
    flex: 0 0 auto;
    margin-right: 12px;
    color: #86927d;
}

.yahoo-market__search-field input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #283027;
    font: inherit;
}

.yahoo-market__search-field input::placeholder {
    color: #9da79a;
}

.yahoo-market__search button {
    flex: 0 0 auto;
    min-width: 132px;
    height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: #526247;
    box-shadow: 0 10px 20px rgba(64, 82, 54, 0.2);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.yahoo-market__search-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.yahoo-market__search-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 164px;
}

.yahoo-market__search button:hover {
    background: #3e4e35;
    transform: translateY(-1px);
}

.yahoo-market__search button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.yahoo-market__result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(77, 96, 66, 0.13);
    color: #6b7866;
    font-size: 14px;
}

.yahoo-market__result-bar > div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yahoo-market__result-bar i {
    color: #849476;
}

.yahoo-market__result-bar strong {
    color: #34402f;
}

.yahoo-market__total {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.yahoo-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin: 0;
}

.yahoo-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e9df;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(42, 55, 38, 0.07);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.yahoo-product-card:hover {
    border-color: #c9d4c0;
    box-shadow: 0 18px 38px rgba(42, 55, 38, 0.14);
    transform: translateY(-5px);
}

.yahoo-product-card__link,
.yahoo-product-card__link:hover {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
}

.yahoo-product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid #eef1eb;
    background: linear-gradient(145deg, #f8f9f6, #eef1ec);
}

.yahoo-product-card__media img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    box-sizing: border-box;
    transition: transform 0.35s ease;
}

.yahoo-product-card:hover .yahoo-product-card__media img {
    transform: scale(1.035);
}

.yahoo-product-card__badges {
    position: absolute;
    top: 11px;
    left: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yahoo-product-card__badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(46, 57, 43, 0.84);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.yahoo-product-card__badge--buy {
    background: rgba(222, 109, 55, 0.92);
}

.yahoo-product-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 17px 18px 15px;
    flex-direction: column;
}

.yahoo-product-card__id {
    display: block;
    overflow: hidden;
    margin-bottom: 7px;
    color: #929b8f;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yahoo-product-card__body h2 {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    margin: 0 0 15px;
    color: #2d342c;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yahoo-product-card__price {
    margin-top: auto;
}

.yahoo-product-card__price > span {
    display: block;
    margin-bottom: 1px;
    color: #7a8575;
    font-size: 12px;
}

.yahoo-product-card__price strong {
    color: #dc6434;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.yahoo-product-card__buy-now {
    margin-top: 5px;
    color: #74806f;
    font-size: 12px;
}

.yahoo-product-card__buy-now strong {
    color: #505f48;
}

.yahoo-product-card__meta {
    margin-top: 14px;
    padding: 11px 0;
    border-top: 1px solid #edf0e9;
    border-bottom: 1px solid #edf0e9;
    color: #677063;
    font-size: 12px;
}

.yahoo-product-card__meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.yahoo-product-card__meta i {
    color: #d5784c;
}

.yahoo-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    color: #526247;
    font-size: 13px;
    font-weight: 700;
}

.yahoo-product-card__footer i {
    transition: transform 0.2s ease;
}

.yahoo-product-card:hover .yahoo-product-card__footer i {
    transform: translateX(4px);
}

.yahoo-market__state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 220px;
    padding: 30px;
    border: 1px dashed #ccd6c5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.yahoo-market__state--warning {
    border-color: #e6c69c;
    background: #fff9f0;
}

.yahoo-market__state-icon {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #edf2e9;
    color: #64745a;
    font-size: 22px;
    place-items: center;
}

.yahoo-market__state h2,
.yahoo-market__state p {
    margin: 0;
}

.yahoo-market__state h2 {
    margin-bottom: 5px;
    font-size: 20px;
}

.yahoo-market__state p {
    color: #778273;
}

.yahoo-market__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
}

.yahoo-market__page-numbers {
    display: flex;
    gap: 7px;
}

.yahoo-market__page-numbers a,
.yahoo-market__page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid #dfe5da;
    border-radius: 10px;
    background: #fff;
    color: #53604e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yahoo-market__page-numbers a:hover,
.yahoo-market__page-numbers a.is-active,
.yahoo-market__page-nav:hover {
    border-color: #586a4c;
    background: #586a4c;
    color: #fff;
}

.yahoo-market__page-nav {
    gap: 8px;
    padding: 0 15px;
}

.yahoo-market__page-nav.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .section-auctionjapan {
        padding: 20px 12px 42px;
    }

    .yahoo-market__toolbar {
        border-radius: 16px;
    }

    .yahoo-market__search {
        flex-direction: column;
    }

    .yahoo-market__search button {
        width: 100%;
    }

    .yahoo-market__search-actions {
        width: 100%;
    }

    .yahoo-market__search-actions button {
        flex: 1;
    }

    .yahoo-market__result-bar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .yahoo-product-card__body {
        padding: 13px 13px 12px;
    }

    .yahoo-product-card__body h2 {
        min-height: 44px;
        font-size: 13px;
    }

    .yahoo-product-card__price strong {
        font-size: 21px;
    }

    .yahoo-product-card__meta {
        font-size: 11px;
    }

    .yahoo-product-card__footer span {
        font-size: 12px;
    }

    .yahoo-market__page-nav span {
        display: none;
    }

    .yahoo-market__page-nav {
        min-width: 42px;
        padding: 0;
    }
}

.yahoo-product-skeleton {
    overflow: hidden;
    border: 1px solid #d4bea0;
    border-radius: 12px;
    background: #fffaf1;
    box-shadow: 0 6px 0 rgba(165, 130, 82, 0.06);
}

.yahoo-product-skeleton__image,
.yahoo-product-skeleton__line,
.yahoo-product-skeleton__price,
.yahoo-product-skeleton__meta {
    position: relative;
    overflow: hidden;
    background: #e8ddca;
}

.yahoo-product-skeleton__image::after,
.yahoo-product-skeleton__line::after,
.yahoo-product-skeleton__price::after,
.yahoo-product-skeleton__meta::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    content: "";
    transform: translateX(-100%);
    animation: yahoo-skeleton-shimmer 1.45s infinite;
}

.yahoo-product-skeleton__image {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid #ded0bb;
}

.yahoo-product-skeleton__body {
    padding: 17px 18px 15px;
}

.yahoo-product-skeleton__line,
.yahoo-product-skeleton__price,
.yahoo-product-skeleton__meta {
    display: block;
    height: 12px;
    margin-bottom: 9px;
    border-radius: 999px;
}

.yahoo-product-skeleton__line--short {
    width: 38%;
    height: 8px;
}

.yahoo-product-skeleton__line--medium {
    width: 76%;
}

.yahoo-product-skeleton__price {
    width: 48%;
    height: 24px;
    margin-top: 20px;
}

.yahoo-product-skeleton__meta {
    width: 67%;
    height: 10px;
    margin-top: 18px;
}

@keyframes yahoo-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .yahoo-product-skeleton__image::after,
    .yahoo-product-skeleton__line::after,
    .yahoo-product-skeleton__price::after,
    .yahoo-product-skeleton__meta::after {
        animation: none;
    }
}

@media (max-width: 430px) {
    .yahoo-product-grid {
        grid-template-columns: 1fr;
    }

    .yahoo-product-card__media {
        aspect-ratio: 16 / 10;
    }

    .yahoo-market__page-numbers a {
        min-width: 36px;
        height: 38px;
    }
}

/* Match the storefront's vintage floral, parchment and wooden-sign theme. */
.section-aucion,
.section-auctionjapan {
    background-color: #eee6d9;
    background-image: url("../../img/home/sec-1-bg.png");
    background-repeat: repeat;
    background-size: 680px auto;
}

.yahoo-market {
    --yahoo-ink: #463b33;
    --yahoo-muted: #7b7063;
    --yahoo-olive: #737955;
    --yahoo-olive-dark: #5f6545;
    --yahoo-rose: #a95550;
    --yahoo-gold: #c5a36e;
    --yahoo-paper: #fffaf1;
    --yahoo-paper-deep: #f1e5d2;
    color: var(--yahoo-ink);
}

.yahoo-market__toolbar {
    isolation: isolate;
    overflow: visible;
    border: 1px solid #cdb185;
    border-radius: 14px;
    background:
        linear-gradient(rgba(255, 250, 241, 0.93), rgba(244, 232, 213, 0.95)),
        url("../../img/home/sec-1-bg.png");
    box-shadow:
        0 9px 0 rgba(165, 128, 77, 0.08),
        0 16px 32px rgba(81, 63, 42, 0.11),
        inset 0 0 0 4px rgba(255, 255, 255, 0.42);
}

.yahoo-market__toolbar::before {
    position: absolute;
    z-index: -1;
    right: 22px;
    bottom: 18px;
    width: 160px;
    height: 68px;
    border-right: 1px solid rgba(166, 126, 70, 0.25);
    border-bottom: 1px solid rgba(166, 126, 70, 0.25);
    content: "";
}

.yahoo-market__toolbar::after {
    position: absolute;
    z-index: 0;
    top: -30px;
    right: 22px;
    width: 94px;
    height: 94px;
    background: url("../../img/home/1x/icon-rose.png") center / contain no-repeat;
    content: "";
    filter: drop-shadow(0 7px 8px rgba(80, 60, 42, 0.15));
    pointer-events: none;
}

.yahoo-market__heading,
.yahoo-market__search,
.yahoo-market__result-bar {
    position: relative;
    z-index: 1;
}

.yahoo-market__eyebrow {
    color: #966f55;
    letter-spacing: 0.12em;
}

.yahoo-market__live-dot {
    background: var(--yahoo-rose);
    box-shadow: 0 0 0 5px rgba(169, 85, 80, 0.12);
}

.yahoo-market__heading h1 {
    color: var(--yahoo-ink);
    font-weight: 700;
}

.yahoo-market__heading p {
    color: var(--yahoo-muted);
}

.yahoo-market__search-field {
    border-color: #d4bd98;
    border-radius: 9px;
    background: rgba(255, 253, 247, 0.96);
    box-shadow:
        inset 0 1px 0 #fff,
        0 5px 14px rgba(93, 70, 43, 0.08);
}

.yahoo-market__search-field:focus-within {
    border-color: #9c875f;
    box-shadow: 0 0 0 4px rgba(156, 135, 95, 0.14);
}

.yahoo-market__search-field i {
    color: #9b8768;
}

.yahoo-market__search button {
    border: 1px solid #83582f;
    border-radius: 9px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08), rgba(72, 38, 15, 0.12)),
        repeating-linear-gradient(4deg, #a87340 0, #a87340 8px, #b9824a 9px, #b9824a 14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 5px 0 #754a27,
        0 9px 18px rgba(91, 53, 26, 0.18);
    color: #fffdf7;
    text-shadow: 0 1px 1px rgba(55, 31, 14, 0.32);
}

.yahoo-market__search button:hover {
    background:
        linear-gradient(rgba(255, 255, 255, 0.11), rgba(72, 38, 15, 0.08)),
        repeating-linear-gradient(4deg, #986334 0, #986334 8px, #aa7440 9px, #aa7440 14px);
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 3px 0 #704522,
        0 7px 15px rgba(91, 53, 26, 0.18);
}

.yahoo-market__search .yahoo-market__search-all {
    border-color: #555d3e;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08), rgba(42, 48, 28, 0.12)),
        repeating-linear-gradient(4deg, #747b55 0, #747b55 8px, #818962 9px, #818962 14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 5px 0 #555d3e,
        0 9px 18px rgba(60, 67, 43, 0.18);
}

.yahoo-market__search .yahoo-market__search-all:hover {
    background:
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(42, 48, 28, 0.1)),
        repeating-linear-gradient(4deg, #666e49 0, #666e49 8px, #747c55 9px, #747c55 14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 3px 0 #4f5639,
        0 7px 15px rgba(60, 67, 43, 0.18);
}

.yahoo-market__result-bar {
    border-top-color: rgba(151, 119, 76, 0.22);
    color: var(--yahoo-muted);
}

.yahoo-market__result-bar i,
.yahoo-market__result-bar strong {
    color: var(--yahoo-olive-dark);
}

.yahoo-market__total {
    border: 1px solid rgba(183, 151, 104, 0.32);
    background: rgba(255, 250, 240, 0.75);
}

.yahoo-product-card {
    border-color: #d4bea0;
    border-radius: 12px;
    background:
        linear-gradient(rgba(255, 253, 248, 0.96), rgba(255, 250, 241, 0.96)),
        url("../../img/home/sec-1-bg.png");
    box-shadow:
        0 6px 0 rgba(165, 130, 82, 0.08),
        0 11px 24px rgba(73, 57, 38, 0.09);
}

.yahoo-product-card:hover {
    border-color: #b99c71;
    box-shadow:
        0 8px 0 rgba(165, 130, 82, 0.1),
        0 18px 34px rgba(73, 57, 38, 0.15);
    transform: translateY(-4px);
}

.yahoo-product-card__media {
    border-bottom-color: #ded0bb;
    background:
        linear-gradient(rgba(247, 241, 230, 0.88), rgba(238, 229, 213, 0.9)),
        url("../../img/home/sec-1-bg.png");
}

.yahoo-product-card__badge {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(103, 108, 76, 0.92);
    box-shadow: 0 3px 8px rgba(57, 48, 35, 0.14);
}

.yahoo-product-card__badge--buy {
    background: rgba(157, 76, 72, 0.93);
}

.yahoo-product-card__id {
    color: #9a8e7e;
}

.yahoo-product-card__body h2 {
    color: var(--yahoo-ink);
}

.yahoo-product-card__price > span,
.yahoo-product-card__buy-now,
.yahoo-product-card__meta {
    color: var(--yahoo-muted);
}

.yahoo-product-card__price strong {
    color: var(--yahoo-rose);
}

.yahoo-product-card__buy-now strong {
    color: var(--yahoo-olive-dark);
}

.yahoo-product-card__meta {
    border-color: #e6dac8;
}

.yahoo-product-card__meta i {
    color: #a97552;
}

.yahoo-product-card__footer {
    color: var(--yahoo-olive-dark);
}

.yahoo-market__state {
    border-color: #cdb590;
    background:
        linear-gradient(rgba(255, 251, 243, 0.93), rgba(245, 233, 215, 0.93)),
        url("../../img/home/sec-1-bg.png");
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.yahoo-market__state--warning {
    border-color: #c99c7b;
}

.yahoo-market__state-icon {
    border: 1px solid #cdb590;
    background: #ede1cf;
    color: var(--yahoo-olive-dark);
}

.yahoo-market__page-numbers a,
.yahoo-market__page-nav {
    border-color: #cdb58f;
    border-radius: 8px;
    background: #fffaf1;
    color: #75634e;
    box-shadow: 0 3px 0 rgba(150, 113, 65, 0.11);
}

.yahoo-market__page-numbers a:hover,
.yahoo-market__page-numbers a.is-active,
.yahoo-market__page-nav:hover {
    border-color: #6f7552;
    background: var(--yahoo-olive);
    color: #fff;
}

@media (max-width: 767px) {
    .yahoo-market__toolbar::after {
        top: -22px;
        right: 12px;
        width: 70px;
        height: 70px;
        opacity: 0.82;
    }

    .yahoo-market__heading {
        padding-right: 45px;
    }
}

@media (max-width: 520px) {
    .yahoo-market__search-actions {
        flex-direction: column;
    }
}

/* Compact catalog: keep the vintage theme while fitting six products per row. */
.yahoo-market__toolbar--compact {
    display: grid;
    grid-template-columns: minmax(145px, 0.72fr) minmax(480px, 1.85fr) minmax(150px, auto);
    align-items: center;
    gap: 18px;
    min-height: 0;
    margin-bottom: 22px;
    padding: 17px 22px;
}

.yahoo-market__toolbar--compact::before {
    right: 14px;
    bottom: 10px;
    width: 108px;
    height: 42px;
}

.yahoo-market__toolbar--compact::after {
    top: -19px;
    right: 13px;
    width: 64px;
    height: 64px;
    opacity: 0.84;
}

.yahoo-market__toolbar--compact .yahoo-market__heading {
    min-width: 0;
    max-width: none;
    padding-right: 0;
}

.yahoo-market__toolbar--compact .yahoo-market__eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
}

.yahoo-market__toolbar--compact .yahoo-market__heading h1 {
    overflow: hidden;
    margin: 0;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yahoo-market__toolbar--compact .yahoo-market__heading p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.yahoo-market__toolbar--compact .yahoo-market__search {
    align-items: stretch;
    gap: 7px;
    max-width: none;
    margin-top: 0;
}

.yahoo-market__toolbar--compact .yahoo-market__search-field {
    height: 44px;
    padding: 0 13px;
}

.yahoo-market__toolbar--compact .yahoo-market__search-field i {
    margin-right: 8px;
}

.yahoo-market__toolbar--compact .yahoo-market__search-actions {
    gap: 7px;
}

.yahoo-market__toolbar--compact .yahoo-market__search-actions button {
    min-width: 124px;
    height: 40px;
    margin-bottom: 4px;
    padding: 0 13px;
    font-size: 11px;
}

.yahoo-market__toolbar--compact .yahoo-market__result-bar {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
    margin-top: 0;
    padding: 0 58px 0 16px;
    border-top: 0;
    border-left: 1px solid rgba(151, 119, 76, 0.22);
    font-size: 11px;
}

.yahoo-market__toolbar--compact .yahoo-market__result-bar > div:first-child {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 6px;
}

.yahoo-market__toolbar--compact .yahoo-market__result-bar > div:first-child i {
    grid-row: 1 / 3;
}

.yahoo-market__toolbar--compact .yahoo-market__result-bar strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yahoo-market__toolbar--compact .yahoo-market__total {
    padding: 5px 8px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.yahoo-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.yahoo-product-card {
    border-radius: 10px;
}

.yahoo-product-card__media {
    aspect-ratio: 1 / 0.82;
}

.yahoo-product-card__media img {
    padding: 6px;
}

.yahoo-product-card__badges {
    top: 7px;
    left: 7px;
    gap: 4px;
}

.yahoo-product-card__badge {
    padding: 3px 6px;
    font-size: 10px;
}

.yahoo-product-card__body {
    padding: 10px 10px 9px;
}

.yahoo-product-card__id {
    margin-bottom: 4px;
    font-size: 10px;
}

.yahoo-product-card__body h2 {
    min-height: 38px;
    margin-bottom: 9px;
    font-size: 12px;
    line-height: 1.55;
}

.yahoo-product-card__price > span,
.yahoo-product-card__buy-now {
    font-size: 11px;
}

.yahoo-product-card__price strong {
    font-size: clamp(18px, 1.45vw, 22px);
}

.yahoo-product-card__price small {
    display: inline-block;
    margin-left: 3px;
    color: var(--yahoo-muted);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.yahoo-product-card__buy-now {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yahoo-product-card__meta {
    margin-top: 8px;
    padding: 7px 0;
    font-size: 10px;
}

.yahoo-product-card__meta span {
    gap: 4px;
}

.yahoo-product-card__footer {
    padding-top: 7px;
    font-size: 11px;
}

.yahoo-product-card__footer span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1250px) {
    .yahoo-market__toolbar--compact {
        grid-template-columns: minmax(140px, 0.65fr) minmax(390px, 1.7fr);
    }

    .yahoo-market__toolbar--compact .yahoo-market__result-bar {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        padding: 9px 58px 0 0;
        border-top: 1px solid rgba(151, 119, 76, 0.18);
        border-left: 0;
    }

    .yahoo-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1251px) {
    .yahoo-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .yahoo-market__toolbar--compact {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 17px;
    }

    .yahoo-market__toolbar--compact .yahoo-market__search {
        flex-direction: column;
    }

    .yahoo-market__toolbar--compact .yahoo-market__search-actions button {
        height: 42px;
        margin-bottom: 4px;
    }

    .yahoo-market__toolbar--compact .yahoo-market__result-bar {
        grid-column: auto;
        grid-template-columns: 1fr;
        padding-right: 0;
    }

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

    .yahoo-product-card__body h2 {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .yahoo-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yahoo-product-card__footer span {
        font-size: 10px;
    }
}
