/* Shared catalog card standard for Home, Woo blocks and every classic loop. */
:is(.hyunkia-home-products, ul.products, ul.wc-block-product-template) {
    align-items: stretch !important;
    display: grid !important;
    gap: .85rem !important;
    grid-auto-rows: auto !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    list-style: none;
    padding: 0;
}
:is(ul.products, ul.wc-block-product-template)::before,
:is(ul.products, ul.wc-block-product-template)::after { display: none !important; }
body :is(.hyunkia-home-product, ul.products li.product, ul.wc-block-product-template > li.wc-block-product).hyunkia-product-card {
    align-self: stretch !important;
    background: #fff;
    border: 1px solid #e0e7ed !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(7,26,45,.035);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0;
    overflow: hidden;
    padding: .75rem !important;
    position: relative;
    width: auto !important;
}
body :is(.hyunkia-home-product, ul.products li.product, ul.wc-block-product-template > li.wc-block-product).hyunkia-product-card:hover {
    border-color: #aebfce !important;
    box-shadow: 0 9px 24px rgba(7,26,45,.09);
    transform: translateY(-2px);
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card .woocommerce-loop-product__link,
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card .hyunkia-product-identity { display: contents; }
:is(.hyunkia-product-image-wrap, ul.products li.product > a > img, .wc-block-product .wc-block-components-product-image) {
    background: #f4f7f9 url("../images/product-placeholder.svg") center/contain no-repeat;
    border-radius: 8px;
    margin: 0 0 .65rem !important;
    order: 1;
    overflow: hidden;
    position: relative;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card img {
    aspect-ratio: 4/3 !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 !important;
    flex-shrink: 0;
    width: 100%;
    border: 0;
    box-sizing: border-box;
    display: block;
}
body ul.products li.product.hyunkia-product-card > a > img { margin-bottom: .65rem !important; }
body .hyunkia-product-card :is(h3, .woocommerce-loop-product__title, .wp-block-post-title) {
    color: var(--hyunkia-navy);
    display: -webkit-box;
    font-size: .84rem !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    margin: .38rem 0 .28rem !important;
    min-height: 2.56em !important;
    order: 3 !important;
    overflow: hidden;
    padding: 0 !important;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
body .hyunkia-product-card :is(h3, .woocommerce-loop-product__title, .wp-block-post-title) a {
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit;
    text-decoration: none;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card .hyunkia-product-origin {
    align-self: flex-start;
    margin: 0 0 .15rem !important;
    order: 2;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.hyunkia-product-sku, .hyunkia-home-product-sku) {
    color: #6c7c8c;
    font-size: .68rem;
    line-height: 1.4;
    margin-bottom: .35rem;
    min-height: 0;
    order: 4;
    overflow-wrap: anywhere;
    white-space: normal !important;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.hyunkia-home-product-price, .price, .wp-block-woocommerce-product-price) {
    color: var(--hyunkia-navy);
    font-size: 1.32rem !important;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 .38rem !important;
    min-height: 3.2em;
    order: 5;
    text-align: left !important;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card .amount { font-size: inherit !important; }
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card .hyunkia-product-stock {
    border: 0;
    display: grid;
    font-size: .7rem;
    line-height: 1.4;
    flex-basis: auto;
    flex-grow: 0;
    gap: .08rem;
    margin: 0 0 .65rem;
    min-height: 2.5em;
    order: 6;
    padding: 0;
}
body .hyunkia-product-card .hyunkia-product-stock strong::before { content: "✓ "; }
body .hyunkia-product-card .hyunkia-product-stock strong { color: #159447; font-weight: 750; }
body .hyunkia-product-card .hyunkia-product-stock.is-unavailable strong { color: #68798a; }
body .hyunkia-product-card .hyunkia-product-stock small { color: #607384; font-size: .67rem; }
body .hyunkia-product-card .hyunkia-product-stock.is-unavailable strong::before { content: ""; }
body .hyunkia-product-card .hyunkia-product-stock.is-unavailable small { display: none; }
body .wc-block-product.hyunkia-product-card:has(> .hyunkia-product-identity .hyunkia-product-stock) > .hyunkia-product-stock { display: none; }
:is(.hyunkia-home-product, ul.products li.product, .wc-block-product) .hyunkia-availability { font-size: .7rem; margin: 0 0 .65rem; order: 6; }
body .hyunkia-product-card > :is(.hyunkia-home-product-action, .button, .wp-block-woocommerce-product-button) {
    margin-bottom: 0 !important;
    margin-top: auto !important;
    order: 7;
    width: 100%;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.button, .wc-block-components-product-button__button):not(.hyunkia-other-branches-cta) {
    align-items: center;
    background: var(--hyunkia-red) !important;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fff !important;
    display: inline-flex;
    font-family: inherit;
    font-size: .74rem !important;
    font-weight: 850 !important;
    justify-content: center;
    line-height: 1.2;
    margin-bottom: 0 !important;
    min-height: 48px;
    padding: .65rem .75rem !important;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
    width: 100%;
}
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.button, .wc-block-components-product-button__button):not(.hyunkia-other-branches-cta):hover { background: var(--hyunkia-red-dark) !important; }
body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.hyunkia-stock-limited, .button.is-disabled):not(.hyunkia-other-branches-cta) { background: #68798a !important; cursor: not-allowed; opacity: .75; }
body .hyunkia-product-card :is(.onsale, .hyunkia-merch-badge, .wp-block-woocommerce-product-sale-badge) {
    background: var(--hyunkia-red);
    border-radius: 15px;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    left: .4rem;
    line-height: 1.4;
    min-height: 0;
    min-width: 0;
    padding: .3rem .55rem;
    position: absolute;
    right: auto;
    top: .4rem;
    z-index: 2;
}
@media (max-width: 1100px) {
    :is(.hyunkia-home-products, ul.products, ul.wc-block-product-template) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
    :is(.hyunkia-home-products, ul.products, ul.wc-block-product-template) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body .hyunkia-product-card :is(h3, .woocommerce-loop-product__title, .wp-block-post-title) { font-size: .76rem !important; }
    body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.hyunkia-home-product-price, .price, .wp-block-woocommerce-product-price) { font-size: 1.13rem !important; }
}
@media (max-width: 380px) {
    :is(.hyunkia-home-products, ul.products, ul.wc-block-product-template) { grid-template-columns: 1fr !important; }
}
@media (max-width: 430px) {
    body :is(.hyunkia-home-product, ul.products li.product, .wc-block-product).hyunkia-product-card :is(.button, .wc-block-components-product-button__button) { font-size: .66rem !important; padding-inline: .35rem !important; }
}
