.theme-machic .products .product-type-1 {
    --tw-card-ink: #122e42;
    --tw-card-line: #d7e2e7;
    --tw-card-inset: clamp(.65rem, 1.1vw, 1rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0 clamp(3px, .4vw, 6px) clamp(9px, 1vw, 14px);
    border: 1px solid var(--tw-card-line);
    border-radius: 10px;
    background: #fff;
}
.theme-machic .products > .product:has(> .product-type-1) {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
}
.theme-machic .products .product-type-1 + .product-content-fade:empty { display: none; }
.theme-machic .products .product-type-1 > .product-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.theme-machic .products .product-type-1 .thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}
.theme-machic .products .product-type-1 .thumbnail-wrapper > a {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    padding: clamp(12px, 1.35vw, 23px);
    overflow: hidden;
    border-radius: 9px 9px 0 0;
    background: #fff;
}
.theme-machic .products .product-type-1 .thumbnail-wrapper > a > img,
.theme-machic .products .product-type-1 .thumbnail-wrapper > a > .product-card,
.theme-machic .products .product-type-1 .thumbnail-wrapper .product-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: contain;
    object-position: center;
}
.theme-machic .product .thumbnail-wrapper .product-buttons {
    display: none !important;
}
.theme-machic .products .product-type-1 .content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: var(--tw-card-inset);
    border-top: 1px solid #e8eef1;
    border-radius: 0 0 9px 9px;
    background: #fbfcfd;
}
.theme-machic .products .product-type-1 .product-title {
    flex: 0 0 auto;
    min-height: 2.7em;
    margin: 0 0 .65rem;
    font-size: clamp(.91rem, .82rem + .19vw, 1.01rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--tw-card-ink);
}
.theme-machic .products .product-type-1 .product-title a {
    color: inherit;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.theme-machic .products .product-type-1 .product-price-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .3rem .4rem;
    margin: auto 0 0;
    min-height: 2.5rem;
}
.theme-machic .products .product-type-1 .price {
    color: var(--tw-card-ink);
    font-size: clamp(1.05rem, .95rem + .32vw, 1.3rem);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.theme-machic .products .product-type-1 .price del { font-size: .76em; }
.theme-machic .products .product-type-1 .product-price-cart > .button {
    margin-inline-start: auto;
    flex-shrink: 0;
}
.theme-machic .products .product-type-1 .product-price-cart > .ajax_add_to_cart {
    width: 40px;
    height: 40px;
    border: 1px solid #c1ddd2;
    background: #e9f4ee;
    color: #125c3c;
    border-radius: 8px;
}
.theme-machic .products .product-type-1 .product-price-cart > .ajax_add_to_cart:is(:hover,:focus-visible) {
    background: #125c3c;
    border-color: #125c3c;
    color: #fff;
}
.theme-machic .products .product-type-1 .product-meta {
    min-height: 1.05rem;
    margin: .35rem 0 0;
    font-size: .77rem;
    line-height: 1.35;
}
.theme-machic .products .product-type-1:focus-within { border-color: #497c91; }
.theme-machic .products .product-type-1 .product-meta .product-message.color-danger { color: #87401e; }
.theme-machic .products .product-type-1 a:focus-visible { outline: 2px solid #196384; outline-offset: 1px; }
@media (hover: hover) {
    .theme-machic .products .product-type-1:hover {
        border-color: #9ab6c4;
        box-shadow: 0 3px 12px rgb(18 46 66 / 9%);
    }
}
.theme-machic .single-product-wrapper .woocommerce-product-gallery__image img {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}
.theme-machic .products .product-title { overflow-wrap: anywhere; }
.theme-machic .price:has(> .tw-price-notice) {
    display: inline-flex;
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: flex-start;
    max-width: 100%;
    min-width: 0;
    column-gap: .4rem;
}
.theme-machic .price:has(> .tw-price-notice) > ins { order: -1; }
.theme-machic .price:has(> .tw-price-notice) > del { margin: 0; top: auto; }
.theme-machic .price:has(> .tw-price-notice) .amount { white-space: nowrap; }
.theme-machic .products .product-type-1 .product-price-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}
.theme-machic .products .product-type-1 .product-price-cart > .price { padding-inline: 0; }
.theme-machic .price .tw-price-notice {
    display: block;
    order: 1;
    flex: 0 0 100%;
    min-width: 0;
    margin-top: .25rem;
    color: #435762;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
}
.tw-price-notice a, .tw-delivery-details a { color: #175572; text-decoration: underline; }

/* The shared header's weekly offers use Machic's compact product template. */
.theme-machic .discount-items .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
@media (min-width: 992px) {
    .theme-machic .discount-items .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .theme-machic .discount-items .products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.theme-machic .discount-items .products > .product {
    display: flex;
    width: auto;
    max-width: none;
    min-width: 0;
}
.theme-machic .discount-items .product-wrapper,
.theme-machic .discount-items .product-content,
.theme-machic .discount-items .content-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}
.theme-machic .discount-items .thumbnail-wrapper > a {
    display: block;
    width: 100%;
    aspect-ratio: 1;
}
.theme-machic .discount-items .thumbnail-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.theme-machic .discount-items .content-wrapper > .price {
    margin-block: auto 0;
    width: 100%;
}
.theme-machic .discount-items .product-meta:empty { display: none; }
.tw-delivery-details { margin: .7rem 0 1.1rem; color: #344d5b; font-size: .9rem; }
.tw-delivery-details p { margin: .2rem 0; }


.tw-subcategories { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.tw-subcategories a { padding: .45rem .85rem; border: 1px solid #ced9e1; border-radius: .3rem; color: inherit; }
.tw-subcategories a:hover, .tw-subcategories a:focus-visible { border-color: currentColor; text-decoration: underline; }
@media (min-width: 992px) { .departments-menu .sub-menu { max-height: 65vh; overflow-y: auto; } }
