.hr_product_row {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 20px 0.5rem;
    overflow: visible; 
}

.hr_product_row:has(.hr_product_item:nth-child(3)) {
    grid-template-columns: repeat(3, 1fr); 
}

.hr_product_row:has(.hr_product_item:nth-child(4)) {
    grid-template-columns: repeat(4, 1fr); 
}

.hr_product_row:not(:has(.hr_product_item:nth-child(3))) {
    grid-template-columns: repeat(2, 1fr); 
}

.hr_product_item {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 6px -4px, rgba(0, 0, 0, 0.05) 0px 10px 15px -3px;
    transform-origin: center;
}

.hr_product_item:hover {
    transform: scale(1.05);
    will-change: transform;
    box-shadow: rgba(30, 69, 38, 0.5) 0px 8px 12px -6px;
    border: 2px solid rgb(30, 69, 38);
}

@media (max-width: 890px) {
    .hr_product_row:has(.hr_product_item:nth-child(4)) {
        grid-template-columns: repeat(3, 1fr);
    }

    .hr_product_row:not(:has(.hr_product_item:nth-child(3))) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .hr_product_row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.hr_product_item:hover ~ .hr_product_item {
    transform: translateX(0);
}

.hr_product_item h4 span {
    font-size:16px !important;
    cursor: pointer;
    -webkit-line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    font-weight: 600;
    font-family: sans-serif;
    line-height: 1.2;
}

.hr_product_item h4 span a:hover {
    text-decoration: underline;
}

.hr_product_item .product_price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
}

.hr_product_item .product_price strike {
    font-size: 14px;
    color:#666;
}

.hr_product_item .product_details {
    font-size: 12px !important;
    color: #666;
    cursor:default;
}

.hr_product_item .product_details a:hover {
    text-decoration: underline;
}

.hr_product_item .product_pills {
    display: flex;
    max-width: 100%;
    box-sizing: border-box;
    gap: 4px;
    font-size: 12px;
}

.hr_product_item .product_pills .product_thc {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    line-height: 15px;
    white-space: nowrap;
    background-color: rgb(239, 233, 208);
    font-family: Poppins, sans-serif;
    font-weight: 400;
    margin: 0px;
    border: 0px;
    border-radius: 8px;
    color: rgb(0, 0, 0);
    letter-spacing: 0px;
    text-transform: uppercase;
    padding: 4px 8px;
}

.hr_product_item .product_sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e7040f;
    color: white;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    text-transform: none;
    font-family: sans-serif;
    font-weight: 600;
    font-size:12px !important;
    padding: 6px 8px;
    margin: 0px;
    border: 0px;
    border-radius: 8px;
    line-height: 15px;
    letter-spacing: 0px;
    white-space: nowrap;
    max-width: 100px;
}

.hr_product_item .product_type_wrapper {
    position: absolute;
    display:inline-block;
    top: 10px;
    right: 10px;
}

.hr_product_item .product_type {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    text-transform: none;
    font-family: sans-serif;
    font-weight: 600;
    font-size:12px !important;
    padding: 6px 8px;
    margin: 0px;
    border: 0px;
    border-radius: 8px;
    line-height: 15px;
    letter-spacing: 0px;
    white-space: nowrap;
    max-width: 100px;
}

.hr_product_item .product_type.type_xclusives {
    background-color: #e25667;
    color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_cbd {
    background-color: #e4e5e5;
    color: rgb(0, 0, 0);
}

.hr_product_item .product_type.type_sativa {
    background-color: rgb(232, 199, 82);
    color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_sativa .icon_wrapper {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border: 1px solid rgb(255, 255, 255);
    margin-right: 4px;
    overflow: visible;
    background-color: rgb(232, 199, 82);
}

.hr_product_item .product_type.type_sativa .icon {
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_hybrid {
    background-color: rgb(211, 82, 232);
    color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_hybrid .icon_wrapper {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border: 1px solid rgb(255, 255, 255);
    margin-right: 4px;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_hybrid .icon {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border: 1px solid rgb(255, 255, 255);
    margin-right: 4px;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_indica {
    background-color: rgb(112, 126, 253);
    color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_indica .icon_wrapper {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border: 1px solid rgb(255, 255, 255);
    margin-right: 4px;
    overflow: visible;
    background-color: rgb(255, 255, 255);
}

.hr_product_item .product_type.type_indica .icon {
    width: 8px;
    height: 10px;
    transform: rotate(-45deg) translate3d(1.5px, 0px, 0px);
    box-sizing: border-box;
    border-radius: 50%;
    background-color: rgb(112, 126, 253);
}

.hr_product_item .add-reminder a {
    border:1px solid #ccc;
    border-radius: 10px;
    padding:4px 9px;
    font-size:14px;
    font-weight:normal;
    color:#000;
}

.hr_product_item .add-reminder a:hover {
    background:#efefef;
    text-decoration: none;
}

