.product-rating {
    line-height: 22px;
}

.product-rating i {
    color: #fc0;
    display: inline-block;
    margin-right: 2px;
    font-size: 14px;
}

@media screen and (max-width: 1199px) {
    .product-rating {
        margin-bottom: 5px;
        font-size: 15px;
    }
}

@media screen and (max-width: 767px) {
    .product-rating i {
        font-size: 13px;
    }
}

.text-secondary {
    /*color: #004975 !important;*/
}

.card-outer {
    background-color: white;
    border-radius: 0.5rem;
    padding-bottom: 12px;
}

.card-wrapper {
    position: relative;
    overflow: hidden;
}

.card-wrapper .card-img {
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.card-wrapper .card-img img {
    transition: all 0.3s ease-in-out;
    width: 100%;
    object-fit: cover;
}

.card-wrapper .card-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: hidden;
    padding: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transform: translateX(-100%);
    transition: 0.8s;
    z-index: 11;
}

.card-wrapper h3,
.card-wrapper p {
    color: #fff;
}

.card-wrapper .read-more {
    color: #fff;
}

.card-wrapper .read-more:after {
    color: #fff;
}

.ti-shopping-cart:before {
    content: "\e60d";
}

.grid-sale-price {
    font-weight: bold;
}

.wishlist-product-price {
    margin: 0;
    color: var(--color-secondary, #e53e29);
    font-size: 1.125rem;
    font-weight: 750;
    line-height: 1.5;
}

/* Product list pagination is rendered by product-list.js, not the legacy
   simplePagination plugin. Keep its layout independent from both plugins. */
.product-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow: visible;
    list-style: none;
}

.product-pagination-wrapper {
    margin: 0 0 20px 5px;
    padding-top: 24px;
}

.product-pagination li {
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 50px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    background-color: #fff;
    box-shadow: none;
    text-decoration: none;
    line-height: 1;
}

.product-pagination li a:hover {
    background-color: #f3f4f6;
}

.product-pagination li.active a {
    color: #fff;
    border-color: var(--color-secondary, #e53e29);
    background-color: var(--color-secondary, #e53e29);
}

.product-pagination li.disabled a {
    color: #9ca3af;
    border-color: #e5e7eb;
    background-color: #fff;
    cursor: not-allowed;
}

html.dark .product-pagination li a {
    color: #d1d5db;
    border-color: #4b5563;
    background-color: #1f2937;
}

html.dark .product-pagination li a:hover {
    background-color: #374151;
}

html.dark .product-pagination li.active a {
    color: #fff;
    border-color: var(--color-secondary, #e53e29);
    background-color: var(--color-secondary, #e53e29);
}

html.dark .product-pagination li.disabled a {
    color: #6b7280;
    border-color: #374151;
    background-color: #1f2937;
}


.ribbon-wrapper {
    top: 0;
    left: 0;
    width: 88px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    z-index: 20;
    pointer-events: none;
}

.ribbon-wrapper-horizontal,
.ribbon-wrapper:has(.ribbon-horizontal) {
    width: 110px;
}

.ribbon {
    font: bold 11px sans-serif;
    text-align: center;
    position: relative;
    padding: 4px 0;
    color: #fff;
    z-index: 10
}

.ribbon-rotate {
    transform: rotate(-45deg);
    left: -26px;
    width: 100px;
    top: 13px;
}

.ribbon-horizontal {
    left: 0;
    width: 110px;
    top: 16px;
}

.ribbon-red {
    background-color: #EE5966;
}

.ribbon-yellow {
    background-color: #F6A631;
}

.ribbon-blue {
    background-color: #7091DB;
}

.ribbon-cyan {
    background-color: #5ACEC5;
}

.ribbon-purple {
    background-color: #C758C7;
}


/* Dark mode */
html.dark .card-outer {
    background-color: #1e293b;
}
