/* Widget title */
.wysiwyg-content h1, .wysiwyg-content h2, .wysiwyg-content h3, .wysiwyg-content h4, .wysiwyg-content h5, .wysiwyg-content h6 {
    margin-bottom: 10px;
}

/* Style the product list */
.custom-products-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    vertical-align: top;
    list-style: none;
}

.custom-products-list .product-container {
    width: 20%;
}

.custom-products-list .product-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    border: 1px solid #e1e1e1;
    padding: 20px 15px;
    background-color: #fff;
}

.product-wrapper .product-image {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    height: 230px;
}

.product-mark {
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    z-index: 5;
}

.product-mark.out-of-stock {
    background-color: #450101;
}

.sale-badge {
    position: absolute;
    background: 0 0;
    font-weight: 900;
    text-align: center;
    height: 6rem;
    width: 6rem;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    background-image: url(/wp-content/uploads/2024/12/OFF.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50% !important;
    animation: pulse 5s infinite;
    font-size: 31px;
    padding-top: 1rem;
}

.product-wrapper .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-wrapper .product-content {
    margin: 15px 0 16px;
}

.product-wrapper h4 {
    font-size: 17px;
    font-family: 'Outfit', san-serif;
    margin: 0;
    margin-top: 30px !important;
    min-height: 60px;
}

.product-wrapper .price-container, .product-wrapper .short-description {
    font-size: 15px;
    font-weight: 500;
    color: #202020;
}

.price-container del {
    display: none;
}


.product-wrapper .short-description {
    margin: 0;
    font-family: 'Outfit', san-serif;
}

.product-wrapper .button {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-family: Roboto, sans-serif;
    font-size: 19px;
    line-height: 1em;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    outline: 0;
    transition: color .2s ease-out, background-color .2s ease-out, border-color .2s ease-out;
    padding: 15px 34px;
    cursor: pointer;
    z-index: 3;
    width: 100% !important;
    text-align: center;
    color: white;
    background-color: #ffb128 !important;
    border: 1px solid #ffb128 !important;
}

.product-wrapper .button:hover {
    color: #fff !important;
    background-color: var(--qode-main-color) !important;
    border: 1px solid #d40000 !important;
}

.product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-border--top, .product-border--bottom, .product-border--right, .product-border--left {
    position: absolute;
    background-color: var(--qode-main-color);
    transition: clip-path .56s cubic-bezier(.43,0,.15,.99);
}

.product-border--top, .product-border--bottom {
    width: calc(100% + 2px);
    height: 1px;
}

.product-border--right, .product-border--left {
    width: 1px;
    height: calc(100% + 1px);
}

.product-border--top {
    top: -1px;
    left: -1px;
    clip-path: inset(-1px 100% -1px 0);
    -webkit-clip-path: inset(-1px 100% -1px 0);
}

.product-border--right {
    right: -1px;
    top: -1px;
    clip-path: inset(100% -1px 0 -1px);
    -webkit-clip-path: inset(100% -1px 0 -1px);
}

.product-border--bottom {
    bottom: -1px;
    left: -1px;
    transform-origin: right;
    clip-path: inset(-1px 0 -1px 100%);
    -webkit-clip-path: inset(-1px 0 -1px 100%);
}

.product-border--left {
    left: -1px;
    top: -1px;
    clip-path: inset(0 -1px 100% -1px);
    -webkit-clip-path: inset(0 -1px 100% -1px);
}

.product-wrapper:hover .product-border--top, .product-wrapper:hover .product-border--bottom, .product-wrapper:hover .product-border--right, .product-wrapper:hover .product-border--left {
    clip-path: inset(-1px -1px -1px -1px);
    -webkit-clip-path: inset(-1px -1px -1px -1px);
}

.custom-products-list .added_to_cart.wc-forward {
    display: none;
}

.button-container {
    margin-top: 3rem;
    text-align: center;
}

.button-container .button {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    outline: 0;
    transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
    padding: 15px 100px;
    cursor: pointer;
    z-index: 3;
    color: #fff;
    background-color: #d40000;
    border: 1px solid #d40000;
}

@keyframes pulse {
    0% {
        transform: scale(1) rotate(-20deg);
    }
    50% {
        transform: scale(.9) rotate(-20deg);
    }
    100% {
        transform: scale(1) rotate(-20deg);
    }
}

/* Responsive Design */
@media only screen and (max-width: 1440px) {
	/* WOOCOMMERCE PRODUCTS */
	.product-wrapper .product-image {
		height: 200px;
	}

	.product-wrapper h4 {
		min-height: 70px;
	}
}

@media only screen and (max-width: 1024px) {
	/* WOOCOMMERCE PRODUCTS */
	.product-wrapper .product-image {
		height: 180px;
	}

	.product-wrapper h4 {
        min-height: 100px;
		font-size: 16px;
	}

    .product-wrapper .button {
        font-size: 15px;
        padding: 10px;
    }
}

@media (max-width: 1024px) {
    .custom-products-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .custom-products-list .product-container {
        width: 50%;
    }

    .product-wrapper h4 {
        min-height: 80px;
    }
}