/* Product grid / slider */
.grid-wrap {
    position: relative;
    padding: 40px 60px 60px;
}

.grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(25% - 18px);
    scroll-snap-align: start;
    background-color: #f6f6f6;
    padding: 1em;
    border-radius: 10px;
    font-size: 1.125em;
}

.card-img {
    position: relative;
    overflow: hidden;
}

.card-img-front,
.card-img-back {
    width: 100%;
    display: block;
    transition: opacity 0.35s ease;
}

.card-img-back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .card-img-front {
    opacity: 0;
}

.product-card:hover .card-img-back {
    opacity: 1;
}

.add-to-cart-hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    z-index: 3;
}

.product-card:hover .add-to-cart-hover {
    bottom: 0;
    opacity: 1;
}

.add-to-cart-hover .button {
    background: #0b1fbf;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease;
}

.add-to-cart-hover .button:hover {
    background: #000;
}

.add-to-cart-hover .added_to_cart {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    text-align: center;
    color: #0b1fbf;
}

.card-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

.card-img {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 0 0;
}

.card-img img {
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18));
}

.badge {
    position: absolute;
    top: 14px;
    background: #fff;
    color: rgb(225 105 131 / 63%);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge.right {
    right: 14px;
}

.badge.stack {
    right: 14px;
}

.badge.stack+.badge.stack {
    top: 50px;
}

.card-img {
    position: relative;
    overflow: hidden;
}

.card-img-front,
.card-img-back {
    width: 100%;
    display: block;
    transition: opacity 0.35s ease;
}

.card-img-back {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card {
    background-color: #f6f6f6;
    padding: 1em;
    border-radius: 10px;
    font-size: 1.125em;
}

.product-card:hover .card-img-front {
    opacity: 0;
}

.product-card:hover .card-img-back {
    opacity: 1;
}

.add-to-cart-hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    z-index: 3;
}

.product-card:hover .add-to-cart-hover {
    bottom: 0;
    opacity: 1;
}

.add-to-cart-hover .button {
    background: #0b1fbf;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease;
}

.add-to-cart-hover .button:hover {
    background: #000;
}

.add-to-cart-hover .added_to_cart {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    text-align: center;
    color: #0b1fbf;
}

.allure {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 64px;
    height: 64px;
    background: #e11c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    border: 2px solid #fff;
}

.nav-arrow {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(225 105 131 / 63%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
    transition: background .2s, opacity .2s;
}

.nav-arrow:hover {
    background: rgb(225 105 131 / 63%);
    color: #ffffff;
}

.nav-arrow.prev {
    left: 14px;
}

.nav-arrow.next {
    right: 14px;
}

.nav-arrow:disabled {
    background: rgb(225 105 131 / 63%);
    cursor: default;
}

/* Dots */
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dcdcee;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}

.dot.active {
    background: rgb(225 105 131 / 63%);
    transform: scale(1.2);
}

.meta {
    margin-top: 16px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgb(225 105 131 / 63%);
    margin-bottom: 6px;
}

.stars {
    color: rgb(225 105 131 / 63%);
    letter-spacing: 1px;
}

.stars.empty {
    color: #e3e3ee;
}

.product-name {
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: transparent;
    margin-bottom: 8px;
    line-height: 1.35;
    cursor: pointer;
}

.product-name:hover {
    text-decoration-color: currentColor;
}

.price {
    font-size: 14px;
    font-weight: 600;
}

.price .sale {
    color: #e07a3f;
    margin-right: 8px;
}

.price .original {
    color: rgb(225 105 131 / 63%);
    text-decoration: line-through;
    font-weight: 400;
}

.widgettitle {
    font-size: 18px;
    font-weight: bold;
}

.widget_text p,
.widget_text ul {
    font-size: 13px;
}
@media (max-width:1000px) {
    .product-card {
        flex-basis: calc(50% - 12px);
    }
}
@media (max-width:640px){
	.product-card{ 
		flex-basis:85%; 
	}
	.grid-wrap{ 
		padding:24px 16px 40px; 
	}
}