/* Seller storefront only. Keep native catalogue actions in normal flow. */
#html-body.marketplace-index-storeview:not(.account) .page-title-wrapper {
    margin-bottom: var(--sp-8);
}

#html-body.marketplace-index-storeview:not(.account) .page-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin: 0;
}

#html-body.marketplace-index-storeview:not(.account) .columns {
    /* Override the legacy marketplace-wide !important stacking rule. */
    display: grid !important;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

#html-body.marketplace-index-storeview:not(.account) .columns > .column.main,
#html-body.marketplace-index-storeview:not(.account) .columns > .sidebar-main {
    float: none;
    width: auto !important;
    min-width: 0;
    padding: 0;
    margin: 0 !important;
}

#html-body.marketplace-index-storeview:not(.account) .columns > .sidebar-main {
    grid-column: 1;
    grid-row: 1;
    order: 0;
}

#html-body.marketplace-index-storeview:not(.account) .columns > .column.main {
    grid-column: 2;
    grid-row: 1;
}

.marketplace-index-storeview .prov-store-info {
    padding: var(--sp-5);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.marketplace-index-storeview .prov-store-info__logo {
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 0 auto var(--sp-4);
    object-fit: contain;
}

.marketplace-index-storeview .prov-store-info__reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--walnut);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.marketplace-index-storeview .prov-store-info__contact {
    margin: var(--sp-3) 0 var(--sp-4);
}

.marketplace-index-storeview .prov-store-info__contact .action {
    width: 100%;
    min-height: 44px;
    font-size: 0.9375rem;
    letter-spacing: 0;
}

.marketplace-index-storeview .prov-store-info__details > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    list-style: none;
    cursor: pointer;
    border-top: 1px solid var(--border);
    font-weight: 600;
}

.marketplace-index-storeview .prov-store-info__details > summary::-webkit-details-marker {
    display: none;
}

.marketplace-index-storeview .prov-store-info__details > summary::after {
    content: '+';
    font-family: var(--public-display);
    font-size: 1.25rem;
    font-weight: 400;
}

.marketplace-index-storeview .prov-store-info__details[open] > summary::after {
    content: '−';
}

.marketplace-index-storeview .prov-store-info__facts {
    margin: var(--sp-2) 0 var(--sp-4);
}

.marketplace-index-storeview .prov-store-info__facts dt {
    margin: var(--sp-3) 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--public-muted);
}

.marketplace-index-storeview .prov-store-info__facts dd {
    margin: 0;
}

.marketplace-index-storeview .prov-store-info__facts dd span {
    display: block;
}

.marketplace-index-storeview .prov-store-info__facts a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--foreground);
}

.marketplace-index-storeview .prov-store-info__policies {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-2);
}

.marketplace-index-storeview .prov-store-info__policies a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    min-height: 44px;
    color: var(--foreground);
    text-decoration: none;
}

.marketplace-index-storeview .prov-store-info a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.marketplace-index-storeview .prov-store-banner {
    margin-bottom: var(--sp-5);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--secondary);
}

.marketplace-index-storeview .prov-store-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 3;
    object-fit: cover;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin: 0 0 var(--sp-5);
    padding: 0 0 var(--sp-3);
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products > * {
    float: none;
    margin: 0;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products::before,
#html-body.marketplace-index-storeview:not(.account) .toolbar-products::after {
    display: none;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products :is(.modes, .toolbar-amount, .sorter) {
    width: auto;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes {
    display: inline-flex;
    flex: 0 0 auto;
    gap: var(--sp-1);
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes-mode {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--public-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes-mode.active {
    border-bottom-color: var(--foreground);
    color: var(--foreground);
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes-mode::before {
    display: none;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes-mode > span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .toolbar-amount {
    padding: 0;
    line-height: 44px;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products select {
    min-height: 44px;
    font-size: 1rem;
    width: auto;
    max-width: 100%;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .sorter {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0;
}

#html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes-mode,
#html-body.marketplace-index-storeview:not(.account) .toolbar-products .sorter-action,
#html-body.marketplace-index-storeview:not(.account) .toolbar-products .pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
}

#html-body.marketplace-index-storeview:not(.account) .products-grid .product-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
}

#html-body.marketplace-index-storeview:not(.account) .product-item-info,
#html-body.marketplace-index-storeview:not(.account) .product-item-info:hover,
#html-body.marketplace-index-storeview:not(.account) .product-item-info.active {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: none;
    transform: none;
    will-change: auto;
    transition: border-color var(--motion-duration-fast) ease;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-info:hover,
#html-body.marketplace-index-storeview:not(.account) .product-item-info:focus-within {
    border-color: var(--color-border-2);
}

/* Luma absolutely positions this panel on hover. It must occupy its own space
   at rest, on hover, with keyboard focus, and on touch screens. */
#html-body.marketplace-index-storeview:not(.account) .product-item-inner,
#html-body.marketplace-index-storeview:not(.account) .product-item-info:hover .product-item-inner,
#html-body.marketplace-index-storeview:not(.account) .product-item-info.active .product-item-inner {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: var(--sp-1) 0 0;
    padding: 0;
    clip: auto;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-info::before,
#html-body.marketplace-index-storeview:not(.account) .product-item-inner::before {
    display: none;
}

#html-body.marketplace-index-storeview:not(.account) .products-grid .product-item-details {
    padding: var(--sp-4);
    gap: var(--sp-2);
}

#html-body.marketplace-index-storeview:not(.account) .product-item-name {
    font-size: 1.0625rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#html-body.marketplace-index-storeview:not(.account) .products-grid .product-item-name {
    min-height: 2.8em;
}

#html-body.marketplace-index-storeview:not(.account) .price-box {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.4;
}

#html-body.marketplace-index-storeview:not(.account) .price-box .price {
    font-size: 1rem;
    font-weight: 600;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-actions .actions-primary {
    flex: 1;
    min-width: 0;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-actions .tocart {
    width: 100%;
    min-height: 44px;
    padding-inline: var(--sp-2);
    font-size: 0.8125rem;
    letter-spacing: 0;
    white-space: normal;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-actions .actions-secondary {
    display: flex;
    flex: 0 0 auto;
    gap: var(--sp-1);
}

#html-body.marketplace-index-storeview:not(.account) .product-item-actions .actions-secondary > .action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
}

#html-body.marketplace-index-storeview:not(.account) .product-item-info:hover .product-item-photo img {
    transform: none;
}

#html-body.marketplace-index-storeview:not(.account) :is(.prov-store-info, .product-item, .toolbar-products) :is(a, button, select, summary):focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 3px;
}

#html-body.marketplace-index-storeview:not(.account) .products-list .product-item-description,
#html-body.marketplace-index-storeview:not(.account) .products-list .product-item-description p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--walnut);
    margin: var(--sp-3) 0 0;
}

#html-body.marketplace-index-storeview:not(.account) .message.info.empty {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border);
    padding: var(--sp-6) 0;
    color: var(--public-muted);
    font-size: 1rem;
    line-height: 1.6;
}

#html-body.marketplace-index-storeview:not(.account) .message.info.empty::before,
#html-body.marketplace-index-storeview:not(.account) .message.info.empty > div::before {
    display: none;
}

@media (min-width: 769px) and (max-width: 1100px) {
    #html-body.marketplace-index-storeview:not(.account) .products-grid .product-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #html-body.marketplace-index-storeview:not(.account) .page-title-wrapper {
        margin-bottom: var(--sp-5);
    }

    #html-body.marketplace-index-storeview:not(.account) .columns {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-5);
    }

    #html-body.marketplace-index-storeview:not(.account) .columns > .column.main {
        grid-column: 1;
        grid-row: 2;
    }

    .marketplace-index-storeview .prov-store-info {
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 0 var(--sp-4);
        padding: var(--sp-4);
    }

    .marketplace-index-storeview .prov-store-info__logo {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
        width: 4rem;
        height: 4rem;
        margin: 0;
    }

    .marketplace-index-storeview .prov-store-info__reviews,
    .marketplace-index-storeview .prov-store-info__contact {
        grid-column: 2;
        margin: 0;
    }

    .marketplace-index-storeview .prov-store-info__reviews {
        justify-content: flex-start;
    }

    .marketplace-index-storeview .prov-store-info__details {
        grid-column: 1 / -1;
        margin-top: var(--sp-3);
    }

    .marketplace-index-storeview .prov-store-info:not(:has(.prov-store-info__logo)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .marketplace-index-storeview .prov-store-info:not(:has(.prov-store-info__logo)) > * {
        grid-column: 1;
    }

    .marketplace-index-storeview .prov-store-banner img {
        aspect-ratio: 5 / 2;
    }

    #html-body.marketplace-index-storeview:not(.account) .toolbar-products .modes {
        display: flex;
    }

    #html-body.marketplace-index-storeview:not(.account) .toolbar-products .sorter {
        margin-left: 0;
    }

    #html-body.marketplace-index-storeview:not(.account) .toolbar-products {
        gap: var(--sp-2);
    }

    #html-body.marketplace-index-storeview:not(.account) .toolbar-products .sorter select {
        width: 8rem;
    }

    #html-body.marketplace-index-storeview:not(.account) .toolbar-products .sorter-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    #html-body.marketplace-index-storeview:not(.account) .products-grid .product-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--sp-3);
    }

    #html-body.marketplace-index-storeview:not(.account) .products-grid .product-item-details {
        padding: var(--sp-3);
    }

    #html-body.marketplace-index-storeview:not(.account) .product-item-name {
        font-size: 0.9375rem;
        line-height: 1.35;
    }

    #html-body.marketplace-index-storeview:not(.account) .products-grid .product-item-name {
        min-height: 4.05em;
    }

    #html-body.marketplace-index-storeview:not(.account) .product-item-actions {
        gap: var(--sp-1);
    }
}

@media (max-width: 374px) {
    #html-body.marketplace-index-storeview:not(.account) .products-grid .product-items {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    #html-body.marketplace-index-storeview:not(.account) .product-item-info,
    #html-body.marketplace-index-storeview:not(.account) .product-item-photo img {
        transition: none;
    }
}
