/* Approved catalog card A. Scope deliberately excludes article cards, quick-view
   dialogs, relation tables and historical order prices. */
.product-block.product-card--compact {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid #e4e0db;
    border-radius: 10px;
    background: #fff;
    container-type: inline-size;
    container-name: product-card;
}
.product-block.product-card--compact > * { flex-shrink: 0; }
.product-block.product-card--compact > .cover,
.product-block.product-card--compact.product-card--bundle > .img-prod-link {
    position: relative;
    width: 100%;
    height: 174px;
    min-height: 0;
    margin: 0 0 8px;
    background: #fafaf9;
    border-radius: 8px;
    overflow: hidden;
}
.product-block.product-card--compact .cover .img-prod-link,
.product-block.product-card--compact .cover picture {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
.product-block.product-card--compact img.product-image {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}
.product-block.product-card--compact > .title {
    padding: 0;
    margin: 0 0 8px;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: left;
    color: #302c28;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    -webkit-line-clamp: unset;
}
.product-block.product-card--compact > .price {
    height: auto;
    min-height: 27px;
    margin-top: auto;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    font-size: 21px;
    font-weight: 700;
    line-height: 27px;
    color: #282522;
}
.product-block.product-card--compact > .price > span { font-size: 14px; }
.product-block.product-card--compact > .unit_preview {
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #6d6259;
    text-align: left;
    overflow-wrap: anywhere;
}
.product-block.product-card--compact > .product-card-favorite {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    margin: 0;
}
.product-block.product-card--compact > .product-card-favorite button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.94) !important;
}
.product-block.product-card--compact .cover .product-preview-trigger {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 5px 8px;
    margin: 0;
    border: 1px solid #e5ddd4;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    color: #82491e;
    font-size: 13px;
    line-height: 18px;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.product-block.product-card--compact .commercial-badge { z-index: 2; pointer-events: none; }
.product-block.product-card--compact .commercial-badge.position-top { top: 0; left: 0; max-width: calc(100% - 48px); }
.product-block.product-card--compact .commercial-badge.position-bottom { bottom: 46px; left: 0; max-width: 100%; }
.product-block.product-card--compact > .saleslogo { top: 8px; right: 60px; z-index: 4 !important; height: 28px; width: auto !important; }
.product-block.product-card--compact > .salenumber { top: 10px; right: 64px !important; z-index: 5 !important; font-size: 13px; line-height: 20px; }
.product-block.product-card--compact .product-relation-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
    width: 100%;
    padding: 0;
    margin: 8px 0 0;
}
.product-block.product-card--compact .product-relation-links a {
    min-width: 0;
    min-height: 44px;
    padding: 5px 3px;
    gap: 2px;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    overflow-wrap: anywhere;
}
.product-block.product-card--compact .product-relation-links a:only-child { grid-column: 1 / -1; }
.product-block.product-card--compact .product-relation-links a span { display: none; }
.product-block.product-card--compact .product-card-cart-controls {
    display: grid;
    grid-template-columns: 132px minmax(0,1fr);
    min-width: 0;
    gap: 6px;
    width: 100%;
    padding: 0;
    margin: 8px 0 0;
}
.product-block.product-card--compact .product-card-quantity {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    width: 132px;
    max-width: 100%;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid #d6c7b8;
    border-radius: 7px;
    overflow: hidden;
}
.product-block.product-card--compact .product-card-quantity__button,
.product-block.product-card--compact .product-card-quantity__input {
    min-width: 0;
    width: 100%;
    height: 42px;
    margin: 0;
    border: 0;
    background: #fff;
    text-align: center;
    line-height: 42px;
}
.product-block.product-card--compact .product-card-quantity__button { font-size: 22px; padding: 0; color: #915021; }
.product-block.product-card--compact .product-card-quantity__input { font-size: 16px; padding: 0 2px; border-left: 1px solid #e5ddd5; border-right: 1px solid #e5ddd5; }
.product-block.product-card--compact .in-basket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 5px 7px;
    margin: 0;
    border-radius: 7px !important;
    font-size: 14px;
    line-height: 17px;
    white-space: normal;
}
.product-block.product-card--compact.product-card--bundle > .in-basket-btn { margin-top: 8px; }
.product-block.product-card--compact > .product__notification {
    display: flex;
    padding: 0;
    margin: 8px 0 0;
    width: 100%;
    min-width: 0;
}
.product-block.product-card--compact .product__notification-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    gap: 5px;
    padding: 7px 4px;
    margin: 0;
    border-radius: 7px;
    font-size: 13px;
    line-height: 17px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.product-block.product-card--compact .product__notification-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.product-block.product-card--compact .product__notification-text { width: 100%; font-size: 13px; line-height: 18px; }
.product-block.product-card--compact :is(a,button,input):focus-visible { outline: 3px solid #a75220; outline-offset: 2px; }
/* Existing grid and PJAX markers cover category/search/keyword/CMS/listings.
   auto-fill follows available content width rather than viewport/sidebar guesses. */
.space-row-16.product-listing-grid,
.space-row-16.new-products-grid,
.pilot-grid.pilot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
    gap: 16px;
    align-items: stretch;
}
.product-listing-grid > .product-column,
.new-products-grid > .product-column,
.pilot-grid > .pilot-card {
    display: flex;
    width: auto;
    max-width: none;
    min-width: 0;
    float: none;
    padding: 0;
    margin: 0;
}
.product-listing-grid > [style*="clear:"],
.new-products-grid > [style*="clear:"] { display: none; }
.product-listing-grid > .per_page,
.new-products-grid > .per_page { grid-column: 1 / -1; width: 100%; }
/* Homepage selections remain separately curated; each section is a stable grid. */
.column--products .products > .space-row-16 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}
.column--products .products > .space-row-16::before,
.column--products .products > .space-row-16::after { display: none; }
.column--products .products > .space-row-16 > .product-column { width: auto; min-width: 0; float: none; margin: 0; padding: 0; }
/* Slick keeps navigation and its own computed widths; only the slide spacing and
   vertical alignment are shared. Do not apply listing-grid widths to its track. */
.products-block .slick-track,
.related-prods-block .slick-track { display: flex; align-items: stretch; }
.products-block .slick-track > .product-column,
.related-prods-block .slick-track > .product-column { height: auto; margin: 0 !important; padding: 0 5px; box-sizing: border-box; }
@container product-card (max-width: 209px) {
    .product-card-cart-controls { grid-template-columns: minmax(0,1fr) !important; }
    .product-card-quantity { justify-self: center; }
}
@media (min-width:768px) and (max-width:1100px) {
    .column--products .products > .space-row-16 { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:767px) {
    .space-row-16.product-listing-grid,
    .space-row-16.new-products-grid,
    .pilot-grid.pilot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .product-block.product-card--compact { padding: 8px; }
    .product-block.product-card--compact > .cover,
    .product-block.product-card--compact.product-card--bundle > .img-prod-link { height: 132px; margin-bottom: 7px; }
    .product-block.product-card--compact > .title { font-size: 14px; line-height: 19px; }
    .product-block.product-card--compact .product-card-cart-controls { grid-template-columns: minmax(0,1fr); }
    .product-block.product-card--compact .product-card-quantity { justify-self: center; }
    .product-block.product-card--compact > .product-card-favorite { top: 8px; right: 8px; }
}
@media (max-width:350px) {
    .product-block.product-card--compact { padding: 6px; }
    .product-block.product-card--compact .product-relation-links { grid-template-columns: minmax(0,1fr); }
    .space-row-16.product-listing-grid,
    .space-row-16.new-products-grid,
    .pilot-grid.pilot-grid { gap: 8px; }
}
