/* Owned card presentation only; native rows and price attributes remain intact. */
.product-grid-item .dv-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 4px;
    min-width: 0;
}
.product-grid-item .dv-card-brands,
.product-grid-item .dv-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}
.product-grid-item .dv-card-brands a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
}
.product-grid-item .dv-card-brands img {
    width: auto;
    height: auto;
    max-width: 72px;
    max-height: 32px;
    object-fit: contain;
}
/* Only measured 150px square wordmarks: crop empty top/bottom canvas, not ink. */
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Olami"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Autor"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Avios"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Uni-Ball"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="SDI"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Ape"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="DVoffice"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Pelikan"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Punax"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Boreal"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="GTC"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Trabi"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Legamaster"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Carioca"],
.product-grid-item .dv-card-brands img[width="150"][height="150"][alt="Liggo"] {
    width: 72px;
    height: 36px;
    max-height: 36px;
    object-fit: cover;
    object-position: center;
}
.product-grid-item .dv-card-badges { justify-content: flex-end; }
.product-grid-item .dv-card-badges .wpcbm-badge {
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    border: 0;
    border-radius: 4px;
}
.product-grid-item .dv-card-badges .wpcbm-badge-inner {
    padding: 3px 6px !important;
    min-height: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: normal;
    box-shadow: none !important;
}
.product-grid-item .dv-card-volume .wpcbm-badge-inner {
    background: #f1ebfa !important;
    color: #593084 !important;
    border: 0 !important;
    border-radius: 4px;
}
.product-grid-item .dv-card-badges .wpcbm-badge-inner::before,
.product-grid-item .dv-card-badges .wpcbm-badge-inner::after {
    display: none !important;
}
.product-grid-item:has(.dv-card-meta) .product-element-bottom { row-gap: 6px; }
.product-grid-item:has(.dv-card-meta) .wrap-price {
    margin-top: 0 !important;
    row-gap: 6px;
}
.product-grid-item:has(.dv-card-meta) .wd-add-btn { margin-top: auto !important; }
.product-grid-item:has(.dv-card-meta) .tiered-pricing-shop-loop,
.product-grid-item:has(.dv-card-meta) .tiered-pricing-wrapper {
    margin: 0 !important;
    padding-block: 0 !important;
}
.product-grid-item:has(.dv-card-meta) .tiered-pricing-table { margin: 6px 0 0 !important; table-layout: auto !important; }
.product-grid-item .wpcbm-badges-archive_after_title:empty { display: none; }
/* Preserve native th cells: the plugin uses their settings to emit data columns. */
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table tbody tr:first-child,
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table tbody tr:nth-child(n+5) { display: none; }
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table tbody tr:nth-child(n+5).tiered-pricing--active { display: table-row; }
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table tbody:has(tr:nth-child(n+5).tiered-pricing--active) tr:nth-child(4) { display: none; }
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table tbody td:first-child::after { content: " un."; }
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table td {
    padding: 3px 0 !important;
    border: 0;
    font-size: 12px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    color: #27222c !important;
}
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table td:first-child { width: auto !important; padding-right: 6px !important; white-space: nowrap; }
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table td:last-child { width: auto !important; white-space: nowrap !important; }
.product-grid-item .tiered-pricing-shop-loop .tiered-pricing-table td .amount { color: inherit !important; white-space: nowrap; }
.product-grid-item .tiered-pricing-shop-loop tr:not(:first-child).tiered-pricing--active td {
    color: #593084 !important;
    font-weight: 600;
}
.product-grid-item .dv-card-all-tiers {
    display: inline-block;
    padding: 6px 0;
    color: #593084;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-grid-item .dv-card-meta a:focus-visible,
.product-grid-item .dv-card-all-tiers:focus-visible {
    outline: 2px solid #593084;
    outline-offset: 2px;
}

/* Product-level variable summary; native variation controllers stay untouched. */
.product-grid-item .dv-card-scale-table {
    width: 100%;
    margin: 6px 0 0;
    border: 0;
    table-layout: auto;
}
.product-grid-item .dv-card-scale-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.product-grid-item .dv-card-scale-table td {
    padding: 4px 0;
    border: 0;
    font-size: 12px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    color: #27222c;
}
.product-grid-item .dv-card-scale-table td:first-child { padding-right: 6px; white-space: nowrap; }
.product-grid-item .dv-card-scale-table td:last-child { text-align: right; }
.product-grid-item .dv-card-scale-table .amount { white-space: nowrap; color: inherit !important; font-weight: 600; }
.product-grid-item .dv-card-scale-table tbody tr:nth-child(n+4) { display: none; }
