/**
 * 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;
    }
}
body.wp-singular.page-template-default.page.page-id-6.wp-theme-ify-theme.theme-ify-theme.woocommerce-checkout.woocommerce-page.woocommerce-js.infxs-correios-automatico-cart-shipping-calculator-hidden-button.rtwpvg .checkout.woocommerce-checkout .woocommerce-checkout-review-order {
    padding: 0px 20px !important;
}

/* PT-BR / theme blog listing + single */
.ify-blog-main {
    padding: 2.5rem 0 4rem;
}

.ify-blog-grid {
    row-gap: 1.75rem;
}

.ify-blog-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(191, 82, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(191, 82, 255, 0.12), rgba(51, 187, 255, 0.08));
}

.ify-blog-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.25);
}

.ify-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ify-blog-card-inner:hover .ify-blog-thumb img {
    transform: scale(1.04);
}

.ify-blog-card-body {
    padding: 1.1rem 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.ify-blog-meta {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    opacity: 0.7;
    color: #fff;
}

.ify-blog-title {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.ify-blog-title a {
    color: #fff;
    text-decoration: none;
}

.ify-blog-title a:hover {
    color: #bf52ff;
}

.ify-blog-excerpt {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1 1 auto;
}

.ify-blog-readmore {
    color: #33bbff;
    font-weight: 600;
    text-decoration: none;
}

.ify-blog-readmore:hover {
    color: #bf52ff;
}

.ify-blog-pagination {
    margin-top: 1.5rem;
}

.ify-blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ify-blog-pagination a,
.ify-blog-pagination span {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.4rem 0.65rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(191, 82, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

.ify-blog-pagination .current {
    background: rgba(191, 82, 255, 0.35);
}

.ify-blog-single {
    padding: 2rem 0 4rem;
}

.ify-blog-single .entry-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ify-blog-single-thumb img {
    width: 100%;
    border-radius: 14px;
}

.ify-blog-single-meta {
    margin-top: 0.75rem;
}
