.product-card-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

/* 🖥️ Large screens (>=1200px) */
@media (min-width: 1200px) {
    .product-card-v2 {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columns */
    }
}

/* 💻 Medium screens (tablets: 768px - 1199px) */
@media (max-width: 1199px) {
    .product-card-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns */
    }
}

/* 📱 Small screens (mobile: 576px - 767px) */
@media (max-width: 767px) {
    .product-card-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns */
    }
}

/* 📲 Extra small screens (mobile: <576px) */
@media (max-width: 575px) {
    .product-card-v2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)); /* 1 column */
    }
}

@media (min-width: 1200px) {
    .product-card-v2.main {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .product-card-v2.main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .product-card-v2.main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .product-card-v2.main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-v2-card {
  border-radius: 10px;
  box-shadow: 5px 8px 6px -6px #dcdcdc;
  border: 1px solid #dcdcdc;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-v2-wrapper {
  width: 100%;
  height: 130px;
}

.product-card-v2.main .product-v2-wrapper {
    height: 250px;
}

@media (max-width: 767px) {
    .product-card-v2.main .product-v2-wrapper {
        height: 150px;
    }
}

.product-v2-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.product-v2-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-v2-content,
.product-v2-content-bottom {
  margin: 0px 15px;
}

.product-v2-content-title {
  font-size: 18px;
  font-weight: bolder;
  color: #000;
}

.product-v2-content-tag {
    color: red;
    font-weight: bolder;
}

.product-v2-content-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-v2-content-price{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-v2-sale-price{
    color: #a140a0;
    font-size: 24px;
}

.product-v2-regular-price{
    color: #000;
    font-size: 16px;
    text-decoration: line-through;
}

.product-v2-add-to-cart{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.btn-add-to-card-v2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-v2-quantity-selector {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.product-v2-quantity-selector .qty-btn {
    background-color: transparent;
    border: none;
    font-size: 2rem !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.product-v2-quantity-selector .qty-btn svg {
    width: 1em;
    height: 1em;
}

.product-v2-quantity-selector .qty-btn:hover {
    color: #a140a0;
}

.product-v2-quantity-selector .qty-input {
    width: 30px;
    text-align: center;
    font-size: 18px;
    border: none;
    background: none;
    outline: none;
    color: #333;
}

.product-v2-card .content {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 10px;
    height: 100%;
    justify-content: space-between;
}

.product-v2-card .content .title {
    font-size: 18px;
    font-weight: bolder;
    color: #000;
}

.product-v2-card .content .description {
    font-size: 16px;
    color: #000;
}

.product-v2-card .content .promotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap:3px;
    margin-top: 5px;
}

.product-v2-card .content .promotion-tags.empty {
    visibility: hidden;
    height: 31px;
}

.product-v2-card .content .promotion-tag {
    font-size: 14px;
    color: #000;
    background-color: #ff4081;
    padding: 5px;
    border-radius: 20px;
}
    
.product-v2-card .v2-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.product-v2-card .v2-card-footer .left .price {
    display: flex;
    flex-direction: column;
    margin-top: 3px;
}

.product-v2-card .v2-card-footer .left .sale-price {
    font-size: 18px;
    color: #000;
}

.product-v2-card .v2-card-footer .left .regular-price {
    font-size: 14px;
    color: #000 !important;
    text-decoration: line-through;
}

.product-v2-card .v2-card-footer .left .discount-message {
    font-size: 16px;
    color: #000;
}

.product-v2-card .v2-card-footer .right {
    display: flex;
    align-items: center;
    height: 100%;   
}

.product-v2-card .v2-card-footer .right form {
    margin-block-end: 0px !important;
}

.product-v2-card .top-left-icon {
    position: absolute;
    top: 2px;
    left: 0px;
}
.product-v2-card .top-left-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

@media (max-width: 1199px) {
    .product-v2-card .top-left-icon img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 767px) {
    .product-v2-card .top-left-icon img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575px) {
    .product-v2-card .top-left-icon img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .product-v2-card .content {
        padding: 8px;
    }

    .product-v2-card .content .title {
        font-size: 14px;
    }

    .product-v2-card .content .description {
        font-size: 12px;
    }

    .product-v2-card .content .promotion-tag {
        font-size: 12px;
        padding: 4px;
        margin-top: 3px;
    }

    .product-v2-card .v2-card-footer .left .price {
        display: flex;
        flex-direction: column;
        margin-top: 3px;
    }

    .product-v2-card .v2-card-footer .left .sale-price {
        font-size: 14px;
    }

    .product-v2-card .v2-card-footer .left .regular-price {
        font-size: 12px;
    }

    .product-v2-card .v2-card-footer .left .discount-message {
        font-size: 14px;
    }

    .product-v2-card .v2-card-footer .right button {
        padding: 5px;

    }
}

.product-v2-card .btn-out-of-stock {
    background-color: #911f90 !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 16px;
    padding: 5px;
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

@media (max-width: 767px) {
    .product-v2-card .btn-out-of-stock {
        font-size: 14px;
    }
}