.shop-terms { margin-block: 5px; color: #4b5563; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.shop-cart-notice { z-index: 100000; }
.shop-cart-notice:empty { clip-path: inset(50%); }
.shop-panel { min-width: 0; padding: clamp(14px, 3vw, 24px); border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.shop-panel h2, .shop-panel h3 { margin: 0 0 12px; }
.shop-panel p + p { margin-block-start: 8px; }
.shop-contact, .shop-manager-form { display: grid; gap: 12px; }
.shop-contact { background: #f9fafb; }
.shop-panel :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font: inherit; }
.shop-contact label, .shop-manager-form label { font-size: 14px; font-weight: 600; }
.shop-contact [hidden], .qv-qty[hidden] { display: none; }
.shop-cart-lines, .shop-manager-list { list-style: none; padding: 0; }
.shop-cart-lines li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; border-bottom: 1px solid #e5e7eb; }
.shop-cart-lines input { max-width: 100px; }
.shop-cart-lines li > div:first-child { flex: 1 1 210px; min-width: 0; overflow-wrap: anywhere; }
.shop-message { margin-block: 12px; padding: 12px; border-radius: 8px; background: #ecfdf3; }
.shop-error { color: #991b1b; }
.shop-message.shop-error { background: #fef2f2; }
.shop-manager-page { min-height: 100vh; padding: 28px max(16px, calc((100% - 1120px) / 2)); background: #f9fafb; color: #111827; font: 16px/1.5 Inter, sans-serif; }
.shop-manager-page a { color: #9d3412; }
.shop-manager-page .shop-panel { margin-block: 16px; overflow-wrap: anywhere; }
.shop-manager-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.shop-manager-login { max-width: 440px; }
.shop-manager-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop-manager-page ul:not(.shop-manager-list) { padding-inline-start: 20px; }
.shop-manager-page .price-list-send { width: auto; }
@media (min-width: 960px) {
    .shop-contact { position: sticky; top: 88px; }
}

[data-shop-cart-add][aria-busy] { cursor: wait; opacity: .7; }

@media (max-width: 768px) {
    .site-chrome .topbar-right { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 6px; }
    .site-chrome .topbar-right .topbar-item { margin-inline-end: 0; }
}

.shop-compare-page { min-inline-size: 0; }
.shop-compare-page > h1 { margin-block-end: 24px; }
.shop-compare-panel { margin-block-end: 20px; background: #fff; }
.detail-page .shop-compare-panel h2 { margin: 0 0 12px; font-family: Manrope, Inter, sans-serif; }
.shop-compare-panel > p { margin-block: 12px; }
.shop-compare-scroll { max-inline-size: 100%; overflow-x: auto; }
.shop-compare-scroll:focus-visible { outline: 2px solid #165d86; outline-offset: 2px; }
.shop-compare-table {
    --compare-label-width: clamp(7rem, 15vw, 10rem);
    --compare-product-width: clamp(10rem, 20vw, 14rem);
    --compare-gap: clamp(10px, 1.5vw, 18px);
    width: calc(var(--compare-label-width) + var(--compare-products) * var(--compare-product-width));
    table-layout: fixed;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.shop-compare-table :is(th, td) {
    padding: 10px var(--compare-gap) 10px 0;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.shop-compare-table thead th:first-child { width: var(--compare-label-width); }
.shop-compare-table thead th { padding-block-start: 0; padding-block-end: 14px; }
.shop-compare-table tbody th { color: #374151; }
.shop-compare-table tbody tr:last-child > * { border-bottom: 0; }
[data-shop-compare][hidden] { display: none; }
.shop-compare-status:not([hidden]) { position: fixed; z-index: 10000; inset: auto 1rem 1rem; max-width: 34rem; padding: .75rem 1rem; color: white; background: #243544; border-radius: .5rem; }

.product-card-actions {
    position: absolute;
    z-index: 3;
    inset-block-start: 8px;
    inset-inline: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
    container-type: inline-size;
}

.product-card-action {
    position: relative;
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgb(15 23 42 / 16%);
    color: #172733;
    font-size: 15px;
    cursor: pointer;
    pointer-events: auto;
}

.product-card-action:focus-visible {
    outline: 2px solid #165d86;
    outline-offset: 2px;
}

.product-card-actions .product-card-action:is([aria-pressed="true"], [data-price-list-selected]) {
    border-color: #125774;
    background: #125774;
    color: #fff;
}

.product-card .qv-btn[data-preview-product]:focus-visible { bottom: 16px; }

@media (hover: none) {
    .product-card .qv-btn[data-preview-product] { bottom: 16px; }
}

.product-card-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: calc(100% + 5px);
    transform: translateY(-50%);
    inline-size: max-content;
    max-inline-size: min(13rem, calc(100cqi - 50px));
    padding: 5px 7px;
    box-sizing: border-box;
    border-radius: 5px;
    background: #172733;
    color: #fff;
    font: 600 12px / 1.25 Inter, Arial, sans-serif;
    text-align: center;
    pointer-events: none;
    visibility: hidden;
}

.product-card-action:focus-visible::after { visibility: visible; }

@media (hover: hover) and (pointer: fine) {
    .product-card-action {
        inline-size: 36px;
        block-size: 36px;
    }

    .product-card-action:hover::after { visibility: visible; }
}

.shop-compare-card {
    inline-size: 100%;
    padding: clamp(6px, 1vw, 12px);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.shop-compare-product {
    display: grid;
    gap: 8px;
}

.shop-compare-photo {
    display: grid;
    place-items: center;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    inline-size: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f6f8;
}

.shop-compare-product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    block-size: 4.2em;
    overflow: hidden;
    line-height: 1.4;
}

.shop-compare-card .shop-compare-remove:not([hidden]) {
    display: block;
    inline-size: 100%;
    min-block-size: 44px;
    margin: 8px 0 0;
    padding: 6px;
    text-align: center;
}

.shop-compare-photo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.shop-compare-photo img[hidden], .shop-compare-photo img:not([hidden]) + .shop-compare-photo-empty { display: none; }
.shop-compare-photo-empty { color: #4b5563; font-size: 12px; }

:is(.qv-main-img-container, .qv-photo-actions) .product-card-actions { z-index: 4; }

@media (max-width: 900px) {
    :is(.qv-main-img-container, .qv-photo-actions) .product-card-actions {
        inset-inline-end: 56px;
        flex-direction: row;
        justify-content: flex-end;
    }
}

.qv-photo-actions { position: relative; }
