﻿/* ==========================================
   CredTube Rewards Catalog
========================================== */

:root {
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --dark: #0B0B0D;
    --card: #18181C;
    --border: rgba(212,175,55,.18);
    --text: #F5F5F5;
    --muted: #B7B7B7;
}

body {
    background: #0B0B0D;
}

/* HERO */

.catalog-hero {
    background: linear-gradient(135deg,#1A1A1A,#101010);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px;
    margin-top: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

    .catalog-hero h1 {
        color: var(--gold);
        font-size: 2.4rem;
        font-weight: 700;
    }

    .catalog-hero p {
        color: #d5d5d5;
        font-size: 1.05rem;
    }

/* SEARCH */

.catalog-search {
    background: #151515;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

    .catalog-search .form-control,
    .catalog-search .form-select {
        height: 48px;
        background: #0f0f12;
        color: white;
        border: 1px solid #333;
    }

        .catalog-search .form-control:focus,
        .catalog-search .form-select:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 .2rem rgba(212,175,55,.20);
        }

/* CATEGORY */

.category-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-pill {
    text-decoration: none;
    color: #ddd;
    background: #1b1b1b;
    border: 1px solid #2d2d2d;
    padding: 10px 20px;
    border-radius: 30px;
    transition: .3s;
}

    .category-pill:hover {
        color: var(--gold);
        border-color: var(--gold);
    }

    .category-pill.active {
        color: #111;
        background: linear-gradient(135deg,#FFD700,#D4AF37);
        font-weight: 700;
    }

/* CARD */

.reward-grid {
    display: grid;
    /* Desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    /*align-items: start;*/
}

.reward-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #1c1c1c;
    border: 1px solid rgba(212,175,55,.35);
    border-radius: 20px;
    overflow: hidden;
    transition: .3s;
}

    .reward-card:hover {
        transform: translateY(-8px);
    }
.reward-image-wrapper {
   /* height: 180px;  */  
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.reward-image {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
}

.unavailable {
    background: #8b0000;
    color: #fff;
}

.reward-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.reward-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.reward-category {
    color: #9f9f9f;
    font-size: .9rem;
    margin-bottom: 18px;
}

.reward-credits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(212,175,55,.15);
    color: #D4AF37;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(212,175,55,.25);
}
/* FEATURED */

.featured-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg,#FFD700,#D4AF37);
    color: #111;
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 10;
}

/* SIDEBAR */

.premium-sidebar {
    background: #18181C;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

    .premium-sidebar h4 {
        color: var(--gold);
    }

    .premium-sidebar h2 {
        color: white;
        font-size: 2.4rem;
        margin: 15px 0;
    }

    .premium-sidebar p {
        color: #cfcfcf;
    }

/* BUTTON */

.reward-btn {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    background: linear-gradient(135deg,#FFE680,#FFD54A,#FFC107);
    transition: .3s;
}

    .reward-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(255,215,0,.45);
    }

/* PAGINATION */

.pagination .page-link {
    background: #18181C;
    color: #fff;
    border: 1px solid #333;
}

.pagination .active .page-link {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

/* RESPONSIVE */
@media (min-width:1400px) {

    .reward-grid {
        grid-template-columns: repeat(4,1fr);
       /* gap: 45px;*/
    }
}
@media (max-width:991px) {

    .catalog-hero {
        padding: 30px;
    }

    .premium-sidebar {
        margin-top: 30px;
        position: static;
    }
}

@media (max-width:767px) {

    .reward-grid {
            
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-hero h1 {
        font-size: 1.8rem;
    }

    .catalog-search {
        padding: 15px;
    }

    .category-pills {
        overflow-x: auto;
        /*flex-wrap: nowrap;*/
        padding-bottom: 10px;
    }

    .reward-image {
        max-height: 80px;
        max-width: 75%;
    }
    .reward-card {
        width: calc(100vw - 40px);
        max-width: 320px;        
        width: 100%;       
        margin: 0 auto;
    }

    .reward-image-wrapper {
        height: 130px;
        padding: 15px;
    }

    .reward-title {
        font-size: 1.05rem;
    }

    .reward-btn {
        padding: 12px;
    }
}



/* ===========================
   Reward Details Page
=========================== */

.reward-image-card,
.reward-details-card,
.premium-card {
    background: linear-gradient( 180deg, #1b1b1b, #141414 );
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 20px;
    padding: 35px;
    height: 100%;
}

.reward-main-image {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: inset 0 0 40px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.25);
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.reward-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .3s;
}

    .reward-thumbnail:hover {
        border-color: #D4AF37;
    }

.reward-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.reward-rating {
    color: #FFD54A;
    font-size: 1rem;
    margin-bottom: 20px;
}

.reward-brand,
.reward-category {
    color: #cfcfcf;
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #b8b8b8;
    font-size: 15px;
}

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row span:first-child {
        color: #bdbdbd;
    }

    .detail-row strong {
        font-size: 18px;
        color: #fff;
    }

.gold-text {
    color: #D4AF37;
    font-weight: 700;
}

.credit-summary {
    background: rgba(212,175,55,.08);
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 15px;
    padding: 18px;
    margin-top: 20px;
   
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

    .summary-row span {
        color: #d2d2d2;
    }

    .summary-row strong {
        color: #fff;
        font-size: 17px;
    }

        .summary-row strong i {
            color: #D4AF37;
        }

.quantity-selector {
    width: 10% !important;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    margin-top: 15px;
    display: block;
}
.credit-summary .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .credit-summary .detail-row:last-child {
        border-bottom: none;
    }

.quantity-dropdown {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 170px !important;
    height: 42px;
    display: block !important;
    background-color: #1f1f1f !important;
    color: #fff !important;
    border: 1px solid #d4af37 !important;
    border-radius: 8px;
    padding: 0 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
}


.redeem-card {
    padding: 30px;
}

.redeem-controls {
    display: flex;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}
.quantity-group {
    flex: 1;
}

    .quantity-group label {
        color: #fff;
        font-weight: 600;
        margin-bottom: 8px;
    }


.redeem-btn {
    min-width: 170px;
    height: 48px;
    font-weight: 700;
    border-radius: 10px;
}


    .quantity-dropdown:focus {
        outline: none;
        border-color: #D4AF37;
        box-shadow: 0 0 8px rgba(212,175,55,.3);
    }

.btn-gold {
    background: linear-gradient(90deg,#FFD54A,#FFC107);
    color: #111;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    padding: 14px;
    transition: .3s;
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(255,215,0,.35);
    }

.premium-card {
    margin-top: 35px;
}

    .premium-card h3 {
        color: #D4AF37;
        margin-bottom: 20px;
    }

    .premium-card p,
    .premium-card li {
        color: #d5d5d5;
        line-height: 1.8;
    }

.review-card {
    background: #1f1f1f;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

    .review-card h5 {
        color: #FFD54A;
    }

.related-card {
    background: #1c1c1c;
    border: 1px solid rgba(212,175,55,.2);
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    transition: .3s;
}

    .related-card:hover {
        transform: translateY(-6px);
        border-color: #D4AF37;
    }

    .related-card img {
        width: 100%;
        height: 130px;
        object-fit: contain;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .related-card h6 {
        color: #fff;
        min-height: 50px;
    }
.eligibility-box {
    margin-top: 20px;
    background: #15351d;
    color: #8cff9a;
    border: 1px solid #2c8f48;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
}



@media(max-width:768px) {
    .relatedRewards {
        text-align:center;
    }
    .reward-title {
        font-size: 1.6rem;
    }
    
    .reward-main-image {
        height: 220px;
    }

    .detail-row {
        font-size: .95rem;
    }

    .quantity-selector {
        justify-content: flex-start;
    }
    .quantity-dropdown {
        width: 100% !important;
        max-width: 100%;
    }
  
    .redeem-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: stretch !important;
    }
    .redeem-btn {
        width: 100%;
    }   
    

}
.relatedRewards{
    padding-left:24px;
}
/*Model Popup*/
.redeem-modal {
    background: linear-gradient(180deg,#1d1d1d,#121212);
    border: 1px solid rgba(212,175,55,.30);
    border-radius: 22px;
}

.redeem-preview-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
}

.redeem-summary {
    background: #1d1d1d;
    border: 1px solid rgba(212,175,55,.2);
    border-radius: 14px;
    padding: 18px;
}

    .redeem-summary div {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        color: #ddd;
    }

    .redeem-summary strong {
        color: #FFD54A;
        font-size: 18px;
    }

.form-check-input:checked {
    background: #D4AF37;
    border-color: #D4AF37;
}