/* Shared: Product Primitives */
:is(.product-card-tile, .body-page .product-card-tile) {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

:is(.product-card-tile .product-form, .body-page .product-card-tile .product-form) {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

:is(.product-card-tile .product-image img, .body-page .product-card-tile .product-image img) {
    width: 100%;
    height: auto;
    display: block;
}

:is(.select-wrapper, .size-select-wrap) {
    border: 1px solid #333;
    border-radius: 1.51px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

:is(.select-wrapper, .size-select-wrap)::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #333;
    border-bottom: 1.5px solid #333;
    transform: translateY(-93%) rotate(45deg);
    pointer-events: none;
}

:is(.select-wrapper select, .size-select-wrap .size-select) {
    width: 100%;
    height: 35px;
    min-height: 35px;
    padding: 0 30px 0 12px;
    border: none;
    margin-bottom: 0;
    background: transparent;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    cursor: pointer;
}

:is(.add-to-cart-btn, .add-to-cart, .body-page .add-to-cart-btn) {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 1.51px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

:is(.add-to-cart-btn:hover, .add-to-cart:hover, .body-page .add-to-cart-btn:hover) {
    background: #333;
    border-color: #333;
}

:is(.add-to-cart-btn:disabled, .add-to-cart:disabled, .body-page .add-to-cart-btn:disabled) {
    background: #a9a39a;
    border-color: #a9a39a;
    color: #f7f5f1;
    cursor: not-allowed;
}

:is(.product-card-tile .product-image, .body-page .product-card-tile .product-image) {
    position: relative;
}

.variant-merch-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
    vertical-align: middle;
    line-height: 1.3;
}

:is(.product-card-tile .product-image, .body-page .product-card-tile .product-image) > .variant-merch-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    margin: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.variant-merch-badge--new {
    background: #1a1a1a;
    color: #fff;
}

.variant-merch-badge--best_seller {
    background: #c9a227;
    color: #1a1a1a;
}

.variant-merch-badge--low_stock {
    background: #b45309;
    color: #fff;
}

.size-btn .variant-merch-badge {
    display: block;
    margin: 0.25rem 0 0;
    width: fit-content;
}
