/* =========================================================
   RAVI PACKAGING
   PRODUCT CATALOG
   Bootstrap 5 Based Styling
========================================================= */

/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(23, 63, 53, 0.12) !important;
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-card .ratio {
    position: relative;
    overflow: hidden;
    background: #f6f6f6;
}

.product-card .ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .ratio img {
    transform: scale(1.05);
}

/* =========================================================
   PRODUCT IMAGE PLACEHOLDER
========================================================= */

.product-card .ratio > div {
    min-height: 100%;
}

.product-card .ratio i {
    opacity: 0.55;
}

/* =========================================================
   PRODUCT BADGES
========================================================= */

.product-card .badge {
    position: absolute;
    z-index: 2;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;

    padding: 6px 9px;
    min-width: auto;
    width: 30%;
    height: auto;

    line-height: 1;
    border-radius: 4px;
}
@media (max-width: 1000px) {
    .product-card .badge {
        width: 40%;
    }
}
@media (max-width: 661px) {
    .product-card .badge {
        width: 30%;
    }
}

/* =========================================================
   PRODUCT DETAILS
========================================================= */

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

/* =========================================================
   PRODUCT CATEGORY
========================================================= */

.product-card .text-uppercase {
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* =========================================================
   PRODUCT TITLE
========================================================= */

.product-card-title {
    line-height: 1.4;
    min-height: 40px;
}

.product-card-title a {
    transition: color 0.2s ease;
}

.product-card-title a:hover {
    color: var(--rp-primary) !important;
}

/* =========================================================
   PRODUCT RATING
========================================================= */

.product-card .text-warning {
    font-size: 12px;
}

.product-card .text-warning i {
    margin-right: 3px;
}

/* =========================================================
   PRODUCT PRICE
========================================================= */

.product-card .text-success {
    color: var(--rp-primary) !important;
}

.product-card .fw-bold {
    font-size: 16px;
}

/* =========================================================
   PRODUCT BUTTON
========================================================= */

.product-card .btn-outline-success {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
    font-weight: 600;
    border-radius: 7px;

    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.product-card .btn-outline-success:hover {
    background-color: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================================
   SORT SELECT
========================================================= */

#sort-products {
    border-color: var(--rp-border);
    color: var(--rp-dark);
}

#sort-products:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 0.2rem rgba(23, 63, 53, 0.1);
}

/* =========================================================
   BREADCRUMB
========================================================= */

.products-page .breadcrumb {
    font-size: 13px;
}

.products-page .breadcrumb a {
    color: var(--rp-primary);
    text-decoration: none;
}

.products-page .breadcrumb a:hover {
    text-decoration: underline;
}

.products-page .breadcrumb-item.active {
    color: var(--rp-muted);
}

/* =========================================================
   PRODUCT PAGE RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    .product-card {
        border-radius: 9px;
    }

    .product-card .card-body {
        padding: 12px !important;
    }

    .product-card .badge {
        font-size: 9px;
        padding: 5px 7px;
    }

    .product-card-title {
        font-size: 13px;
        line-height: 1.4;
        min-height: 36px;
    }

    .product-card .small {
        font-size: 10px;
    }

    .product-card .fw-bold {
        font-size: 14px;
    }

    .product-card .btn {
        font-size: 11px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {
    .products-page .breadcrumb {
        font-size: 11px;
    }

    .product-card .card-body {
        padding: 10px !important;
    }

    .product-card .ratio {
        --bs-aspect-ratio: 100%;
    }

    .product-card-title {
        font-size: 13px;
    }

    .product-card .badge {
        margin: 8px !important;
    }
}
