/**
 * Developer overrides — custom site styles added after the main theme CSS.
 * Put new style changes here (do not edit custom_theme.css / style.css).
 */

/* Product review star ratings (inc/ify-product-reviews.php) */
.rating-stars {
    display: inline-flex;
    gap: 1px;
    line-height: 1;
    align-items: center;
}

.rating-stars .ify-star::before {
    content: "\2605";
    font-size: 1em;
    line-height: 1;
}

.rating-stars .ify-star--full::before {
    color: #ffc107;
}

.rating-stars .ify-star--empty::before {
    color: rgba(255, 255, 255, 0.25);
}

.rating-stars .ify-star--half::before {
    content: "\2605";
    background: linear-gradient(90deg, #ffc107 50%, rgba(255, 255, 255, 0.25) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ify-review-grid-card__stars .rating-stars {
    margin-bottom: 2px;
}

/* India shop page (templates/shoppage.php) */
.custom-shop-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.custom-shop-page .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-shop-page .woocommerce ul.products::before,
.custom-shop-page .woocommerce ul.products::after {
    display: none;
}

.custom-shop-page .ify-shop-empty {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin: 2rem 0 0;
}

/* Frequently Bought Together (inc/ify-india-bought-together.php) */
/* .frequently-sec {
    background: linear-gradient(180deg, #09032e 0%, #0d053c 100%);
} */

.frequently-sec .ify-fbt-heading {
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0;
}

.frequently-sec .ify-fbt-row {
    align-items: stretch;
}

/* .frequently-sec .ify-fbt-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    padding-top: 2.5rem;
} */

.frequently-sec .ify-fbt-card .form-check-input {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
}

.frequently-sec .ify-fbt-card .form-check-input[disabled] {
    cursor: not-allowed;
    opacity: 0.85;
}

.frequently-sec .ify-fbt-card__image {
    width: 100%;
    /* max-width: 220px; */
    margin: 0 auto;
    border-radius: 1rem;
}

.frequently-sec .ify-fbt-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.frequently-sec .ify-fbt-card__price {
    margin-top: auto;
    font-size: 1.05rem;
    font-weight: 600;
    color: #4ff3b0;
}

/* Keep sale % OFF on one line inside FBT price HTML */
.frequently-sec .ify-fbt-card__price .discount-percent {
    display: inline-block;
    white-space: nowrap;
}

.frequently-sec .btns-cards-cls {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.frequently-sec .top-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #fff;
    flex-wrap: wrap;
}

.frequently-sec .top-price .ify-fbt-total-price {
    color: #4ff3b0;
    font-weight: 700;
}

.frequently-sec .ify-fbt-add-all {
    width: 100%;
    min-height: 48px;
}

/*
 * Old theme style.css assumed 2 product cards (hid + on 2nd).
 * With 3+ products that left + after the last card. Show + on every
 * product card except the last one before the total/CTA column.
 */
.frequently-sec .ify-fbt-row > [class*="col-"] .challenge-card.ify-fbt-card::after {
    content: "+" !important;
    position: absolute;
    right: -37px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.frequently-sec .ify-fbt-row > [class*="col-"]:nth-last-child(2) .challenge-card.ify-fbt-card::after,
.frequently-sec .ify-fbt-row > [class*="col-"]:last-child .challenge-card.ify-fbt-card::after {
    content: none !important;
}

@media (max-width: 991px) {
    .frequently-sec .btns-cards-cls {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575px) {
    .frequently-sec .ify-fbt-row > [class*="col-"] .challenge-card.ify-fbt-card::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -3.5rem;
        transform: translate(-50%, 0);
    }

    .frequently-sec .ify-fbt-row > [class*="col-"]:nth-last-child(2) .challenge-card.ify-fbt-card::after,
    .frequently-sec .ify-fbt-row > [class*="col-"]:last-child .challenge-card.ify-fbt-card::after {
        content: none !important;
    }
}
