
/* ==========================================
   ADVIWELLNESS PRODUCT CARDS
========================================== */

/* PRODUCT GRID */

.advi-products {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    box-sizing: border-box;
}

/* CARD */

.advi-product-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 14px;
    box-sizing: border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}

.advi-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* IMAGE AREA */

.advi-product-card .advi-product-image {
    width: 100%;
    height: 270px;
    position: relative;
    overflow: hidden;
    background: #f6f8f9;
}

.advi-product-image-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advi-product-image-link img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
}

/* WISHLIST */

.advi-wishlist-button {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    cursor: pointer;
}

.advi-wishlist-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #ed174c;
    stroke-width: 1.8;
}

.advi-wishlist-button.is-active svg {
    fill: #ed174c;
}

/* PRODUCT DETAILS */

.advi-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px;
    gap: 10px;
    box-sizing: border-box;
}

.advi-product-brand {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.advi-product-title {
    margin: 0;
    min-height: 54px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.advi-product-title a {
    color: #111827;
    text-decoration: none;
}

.advi-product-title a:hover {
    color: #08783f;
}

/* RATING */

.advi-product-rating {
    color: #e5a000;
    font-size: 14px;
}

.advi-product-rating small {
    color: #7b8490;
}

/* PRICE */

.advi-price {
    margin: 2px 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.advi-price del {
    color: #89919d;
    font-size: 14px;
    font-weight: 400;
    margin-right: 7px;
}

.advi-price ins {
    color: #111827;
    text-decoration: none;
}

/* BUTTONS */

.advi-product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.advi-product-cart {
    width: 100%;
}

.advi-product-cart a.button,
.advi-product-cart button,
.advi-product-cart .added_to_cart {
    width: 100%;
    min-height: 54px;
    padding: 12px 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #08783f !important;
    border-radius: 7px !important;
    background: #08783f !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.advi-product-cart a.button:hover,
.advi-product-cart button:hover {
    background: #075b32 !important;
    color: #ffffff !important;
}

.advi-product-cart a.added_to_cart {
    margin-top: 6px;
    background: transparent !important;
    color: #08783f !important;
}

/* BUY NOW */

.advi-buy-now {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    border: 1px solid #08783f;
    border-radius: 7px;
    background: #ffffff;
    color: #08783f !important;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s ease;
}

.advi-buy-now:hover {
    background: #08783f;
    color: #ffffff !important;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {
    .advi-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .advi-product-card .advi-product-image {
        height: 230px;
    }

    .advi-product-title {
        font-size: 16px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
    .advi-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 12px;
    }

    .advi-product-card {
        border-radius: 10px;
    }

    .advi-product-card .advi-product-image {
        height: 175px;
    }

    .advi-product-image-link img {
        padding: 8px;
    }

    .advi-wishlist-button {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }

    .advi-wishlist-button svg {
        width: 20px;
        height: 20px;
    }

    .advi-product-info {
        padding: 11px 9px;
        gap: 8px;
    }

    .advi-product-brand {
        font-size: 10px;
    }

    .advi-product-title {
        min-height: 48px;
        font-size: 14px;
        line-height: 1.35;
    }

    .advi-product-rating {
        font-size: 12px;
    }

    .advi-price {
        font-size: 15px;
    }

    .advi-price del {
        font-size: 11px;
    }

    .advi-product-actions {
        gap: 7px;
    }

    .advi-product-cart a.button,
    .advi-product-cart button,
    .advi-buy-now {
        min-height: 42px;
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .advi-products {
        gap: 8px;
        padding: 0 8px;
    }

    .advi-product-card .advi-product-image {
        height: 145px;
    }

    .advi-product-title {
        font-size: 12px;
    }

    .advi-product-info {
        padding: 9px 7px;
    }

    .advi-product-cart a.button,
    .advi-buy-now {
        font-size: 10px !important;
    }
}


/* PRODUCT IMAGE FULL WIDTH */

.advi-product-card .advi-product-image {
    width: 100% !important;
    height: 320px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #f6f8f9;
}

.advi-product-card .advi-product-image-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.advi-product-card .advi-product-image-link img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* REMOVE BRAND AND RATING */
.advi-product-brand,
.advi-product-rating {
    display: none !important;
}

/* PRODUCT TITLE */
.advi-product-title {
    min-height: 58px;
    margin: 0;
    text-align: center;
}

/* PRICE */
.advi-price {
    text-align: center;
    margin: 8px 0 14px;
}

/* MOBILE */
@media (max-width: 767px) {
    .advi-product-card .advi-product-image {
        height: 190px !important;
    }

    .advi-product-title {
        min-height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .advi-product-card .advi-product-image {
        height: 155px !important;
    }
}
