/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */
/* =========================================================
   CENTRAVA / CUSTOM WOOCOMMERCE PRODUCT CARD
   ========================================================= */


/* ---------------------------------------------------------
   PRODUCT CARD
   --------------------------------------------------------- */

ul.products li.product.centrava-product-card {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;

    background: #191919;

    border-radius: 6px;

    overflow: hidden;

    box-sizing: border-box;

    list-style: none;
}


/* Remove theme generated pseudo elements */

ul.products li.product.centrava-product-card::before,
ul.products li.product.centrava-product-card::after {
    display: none !important;
}


/* ---------------------------------------------------------
   CARD INNER
   --------------------------------------------------------- */

.centrava-product-card-inner {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #191919;

    border-radius: 6px;

    overflow: hidden;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   PRODUCT IMAGE
   --------------------------------------------------------- */

.centrava-product-image {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 0.97;

    overflow: hidden;

    background: #252525;

    position: relative;

    text-decoration: none !important;
}


.centrava-product-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    object-position: center center;

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    transition: transform 0.45s ease;
}


/* Subtle image hover */

.centrava-product-card:hover
.centrava-product-image img {
    transform: scale(1.025);
}


/* ---------------------------------------------------------
   PRODUCT CONTENT
   --------------------------------------------------------- */

.centrava-product-content {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;

    min-height: 128px;

    padding: 28px 24px 24px;

    background: #191919;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   PRODUCT TITLE
   --------------------------------------------------------- */

.centrava-product-title {
    margin: 0 0 5px !important;

    padding: 0 !important;

    font-family: inherit;

    font-size: 18px !important;

    font-weight: 400 !important;

    line-height: 1.35 !important;

    letter-spacing: 0;

    color: #ffffff !important;
}


.centrava-product-title a {
    color: #ffffff !important;

    text-decoration: none !important;

    transition: opacity 0.25s ease;
}


.centrava-product-title a:hover {
    color: #ffffff !important;

    opacity: 0.8;
}


/* ---------------------------------------------------------
   RATING
   --------------------------------------------------------- */

.centrava-product-rating {
    display: flex;

    align-items: center;

    gap: 7px;

    min-height: 18px;

    margin: 0 !important;

    padding: 0 !important;
}


/* Stars */

.centrava-stars {
    display: flex;

    align-items: center;

    gap: 1px;

    line-height: 1;

    white-space: nowrap;
}


.centrava-stars .star {
    display: inline-block;

    font-family: Arial, sans-serif;

    font-size: 14px;

    line-height: 1;

    color: #c9a24b;

    font-weight: 400;
}


.centrava-stars .star.filled {
    color: #c9a24b;
}


/* Review number */

.centrava-review-count {
    font-family: inherit;

    font-size: 11px;

    line-height: 1;

    color: #8c8c8c;

    font-weight: 400;
}


/* ---------------------------------------------------------
   BOTTOM ROW
   --------------------------------------------------------- */

.centrava-product-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 13px;
}


/* ---------------------------------------------------------
   PRICE
   --------------------------------------------------------- */

.centrava-product-price {
    color: #c9a24b;

    font-size: 17px;

    line-height: 1.2;

    font-weight: 700;

    margin: 0;

    padding: 0;
}


.centrava-product-price .amount {
    color: #c9a24b !important;

    font-size: inherit;

    font-weight: inherit;
}


.centrava-product-price del {
    color: #777 !important;

    font-size: 13px;

    margin-right: 5px;
}


.centrava-product-price ins {
    text-decoration: none;

    color: #c9a24b !important;
}


/* ---------------------------------------------------------
   PLUS BUTTON
   --------------------------------------------------------- */

.centrava-product-plus {
    width: 32px;

    height: 32px;

    min-width: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #c9a24b;

    color: #171717 !important;

    text-decoration: none !important;

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.centrava-product-plus span {
    display: block;

    font-family: Arial, sans-serif;

    font-size: 22px;

    line-height: 1;

    font-weight: 400;

    transform: translateY(-1px);
}


.centrava-product-plus:hover {
    background: #ffffff;

    color: #171717 !important;

    transform: scale(1.08);
}


/* ---------------------------------------------------------
   REMOVE COMMON WOOCOMMERCE ELEMENTS
   --------------------------------------------------------- */

.centrava-product-card .onsale {
    display: none !important;
}


.centrava-product-card .star-rating {
    display: none !important;
}


.centrava-product-card .button {
    display: none !important;
}


/* ---------------------------------------------------------
   DESKTOP
   --------------------------------------------------------- */

@media (min-width: 1025px) {

    .centrava-product-content {
        min-height: 128px;

        padding: 28px 24px 24px;
    }

}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {

    .centrava-product-content {
        min-height: 125px;

        padding: 23px 20px 20px;
    }

    .centrava-product-title {
        font-size: 17px !important;
    }

    .centrava-product-price {
        font-size: 16px;
    }

    .centrava-product-plus {
        width: 31px;

        height: 31px;

        min-width: 31px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    ul.products li.product.centrava-product-card {
        border-radius: 6px;
    }


    .centrava-product-content {
        min-height: 120px;

        padding: 21px 18px 18px;
    }


    .centrava-product-title {
        font-size: 17px !important;

        line-height: 1.3 !important;

        margin-bottom: 5px !important;
    }


    .centrava-stars .star {
        font-size: 13px;
    }


    .centrava-review-count {
        font-size: 10px;
    }


    .centrava-product-price {
        font-size: 16px;
    }


    .centrava-product-plus {
        width: 31px;

        height: 31px;

        min-width: 31px;
    }


    .centrava-product-plus span {
        font-size: 21px;
    }

}


/* ---------------------------------------------------------
   VERY SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .centrava-product-content {
        padding: 18px 15px 15px;
    }


    .centrava-product-title {
        font-size: 16px !important;
    }


    .centrava-product-price {
        font-size: 15px;
    }

}
ul.products.centrava-products-grid {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;

    margin: 0 !important;

    padding: 0 !important;

    width: 100%;
}


ul.products.centrava-products-grid > li.product {
    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;
}


@media (max-width: 1024px) {

    ul.products.centrava-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 20px;
    }

}


@media (max-width: 767px) {

    ul.products.centrava-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

}


@media (max-width: 480px) {

    ul.products.centrava-products-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

}