/*
 * Products & Services: product box and product grid. Colours follow the theme (currentColor, inherit);
 * override these classes in your theme to restyle.
 */
.ipProduct {
    display: grid;
    gap: 24px;
    margin: 0 0 24px;
}
.ipProduct._hasImage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ipProduct ._image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.ipProduct ._brand {
    margin: 0 0 4px;
    font-size: .85em;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .7;
}
.ipProduct ._summary {
    margin: 0 0 12px;
}
.ipProduct ._price {
    margin: 0 0 12px;
    font-size: 1.6em;
    font-weight: 700;
}
.ipProduct ._unit {
    margin-left: 6px;
    font-size: .55em;
    font-weight: 400;
    opacity: .75;
}
.ipProduct ._variants {
    margin: 0 0 12px;
}
.ipProduct ._variants ._label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.ipProduct ._variants select {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    font: inherit;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 6px;
    background: #fff;
}
.ipProduct ._facts {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.ipProduct ._facts li {
    margin: 0 0 4px;
}
.ipProduct ._stock._in_stock {
    color: #067647;
    font-weight: 600;
}
.ipProduct ._stock._backorder {
    color: #b54708;
    font-weight: 600;
}
.ipProduct ._stock._out_of_stock {
    color: #b42318;
    font-weight: 600;
}
.ipProduct ._badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}
.ipProduct ._badge {
    padding: 2px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .85em;
}
.ipProduct ._actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}
.ipProduct ._order,
.ipProduct ._enquire {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}
.ipProduct ._order {
    background: #128c4b; /* WhatsApp-like green, 4.5:1 with white text */
    color: #fff;
}
.ipProduct ._order:hover,
.ipProduct ._order:focus {
    background: #0b6b39;
    color: #fff;
}
.ipProduct ._enquire {
    border: 1px solid currentColor;
    color: inherit;
}
.ipProduct ._hint {
    font-style: italic;
    opacity: .7;
}

/* Product grid */
.ipWidget ul.ipProductGrid {
    display: grid;
    grid-template-columns: repeat(var(--ip-product-columns, 3), minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.ipWidget ul.ipProductGrid > li {
    display: block; /* not list-item: no theme bullets or markers */
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
}
.ipWidget ul.ipProductGrid > li::before,
.ipWidget ul.ipProductGrid > li::after {
    content: none; /* themes that draw their own list bullets */
    display: none;
}
.ipProductGrid ._card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .6);
    transition: box-shadow .15s ease;
}
.ipProductGrid ._card:hover,
.ipProductGrid ._card:focus {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.ipProductGrid ._thumb {
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, .04);
}
.ipProductGrid ._thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ipProductGrid ._body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
    flex: 1;
}
.ipProductGrid ._name {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
}
.ipProductGrid ._brand {
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
}
.ipProductGrid ._price {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 700;
}
.ipProductGrid ._stock {
    font-size: .85em;
    opacity: .8;
}
.ipProductGridEmpty {
    font-style: italic;
    opacity: .7;
}

@media (max-width: 900px) {
    .ipWidget ul.ipProductGrid {
        grid-template-columns: repeat(min(var(--ip-product-columns, 3), 2), minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .ipProduct._hasImage {
        grid-template-columns: minmax(0, 1fr);
    }
    .ipWidget ul.ipProductGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 340px) {
    .ipWidget ul.ipProductGrid {
        grid-template-columns: minmax(0, 1fr);
    }
}
