/* Credit Card Campaigns — Portuma shop-style comparison page */

.cc-page {
    font-family: Montserrat, sans-serif;
    background: #fff;
    color: #333;
}

.cc-page * {
    box-sizing: border-box;
}

#cc-breadcrumb {
    background: url(../../Assets/Img/CreditCards/portuma-creditcard-breadcrumb.webp) center center no-repeat;
    background-size: cover;
    padding-top: 10vh;
    padding-bottom: 10vh;
}

#cc-breadcrumb h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin: 0;
}

#cc-breadcrumb p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 400;
}

#cc-main {
    background: #fff;
    padding-bottom: 48px;
}

#cc-main .container {
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
}

.cc-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cc-sidebar {
    flex: 0 0 280px;
    min-width: 260px;
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cc-sidebar h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

.cc-filter-group {
    margin-bottom: 20px;
}

.cc-filter-group:last-child {
    margin-bottom: 0;
}

.cc-filter-group h3 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.cc-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-filter-list li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.cc-filter-list li:hover {
    background: #f5f5f7;
    color: #111;
}

.cc-filter-list li.active {
    background: #6b46c1;
    color: #fff;
}

.cc-content {
    flex: 1;
    min-width: 0;
}

.cc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.cc-result-count {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cc-result-count span {
    color: #6b46c1;
}

.cc-mobile-filters {
    display: none;
    gap: 10px;
    margin-bottom: 16px;
}

.cc-mobile-filters select {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #333;
}

.cc-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cc-card {
    display: flex;
    gap: 20px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cc-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border-color: #d4c4f5;
}

.cc-card__media {
    flex: 0 0 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-card__thumb {
    width: 168px;
    aspect-ratio: 1.586 / 1;
    height: auto;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 0;
}

.cc-card__thumb:not(:has(img)) {
    background: linear-gradient(135deg, #1a2a4a 0%, #6b46c1 100%);
}

.cc-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: transparent;
}

.cc-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f0ebfa;
    color: #6b46c1;
}

.cc-badge--bank {
    background: #eef6ff;
    color: #1a4a7a;
}

.cc-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.cc-card__fee {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.cc-card__highlights {
    margin: 4px 0 0;
    padding-left: 18px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.cc-card__highlights strong,
.cc-modal__body strong {
    font-weight: 700;
    color: #111;
}

.cc-card__actions {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cc-btn:hover {
    opacity: 0.92;
    text-decoration: none;
}

.cc-btn--primary {
    background: #6b46c1;
    color: #fff;
}

.cc-btn--primary:hover {
    color: #fff;
}

.cc-btn--ghost {
    background: #fff;
    color: #6b46c1;
    border: 1px solid #6b46c1;
}

.cc-btn--ghost:hover {
    background: #f7f3ff;
    color: #6b46c1;
}

.cc-btn--modal-apply {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c5cbf 0%, #5a35b0 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.28);
}

.cc-btn--modal-apply:hover {
    color: #fff;
    opacity: 1;
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(107, 70, 193, 0.35);
}

.cc-empty {
    padding: 40px 20px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 14px;
    color: #777;
    font-size: 15px;
}

/* Modal */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cc-modal.is-open {
    display: flex;
}

.cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 30, 0.55);
}

.cc-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: min(80vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 28px 28px 24px;
}

.cc-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f3f5;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cc-modal__close:hover {
    background: #e8e8ec;
}

.cc-modal__title {
    margin: 0 32px 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.cc-modal__meta {
    margin: 0 0 16px;
    font-size: 13px;
    color: #666;
}

.cc-modal__body {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
}

.cc-modal__footer {
    margin-top: 22px;
    display: flex;
    justify-content: stretch;
    gap: 10px;
}

.cc-modal__footer .cc-btn {
    width: 100%;
    min-width: 0;
}

.cc-card__actions .cc-btn--primary {
    font-size: 13px;
    padding: 12px 10px;
    line-height: 1.25;
    text-align: center;
}

body.cc-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    #cc-main .container {
        max-width: 94%;
        padding: 12px;
    }

    .cc-layout {
        flex-direction: column;
    }

    .cc-sidebar {
        display: none;
    }

    .cc-mobile-filters {
        display: flex;
    }

    .cc-card {
        flex-direction: column;
    }

    .cc-card__media,
    .cc-card__actions {
        flex: none;
        width: 100%;
    }

    .cc-card__media {
        flex: none;
    }

    .cc-card__thumb {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    #cc-breadcrumb h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    #cc-breadcrumb {
        padding-top: 8vh;
        padding-bottom: 8vh;
    }

    .cc-modal__dialog {
        padding: 22px 18px 18px;
    }
}

/* Store download — page bottom */
.cc-store {
    background: #f7f5fb;
    border-top: 1px solid #ececec;
    padding: 48px 0 56px;
    margin-top: 12px;
}

.cc-store .container {
    max-width: 80%;
    margin: 0 auto;
}

.cc-store__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #111;
}

.cc-store__subtitle {
    margin: 10px 0 0;
    font-size: 15px;
    color: #666;
}

.cc-store__buttons {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cc-store__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.cc-store a:hover .cc-store__img {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .cc-store .container {
        max-width: 94%;
    }

    .cc-store__title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .cc-store {
        padding: 36px 0 44px;
    }

    .cc-store__buttons {
        gap: 10px;
    }

    .cc-store__img {
        max-width: 150px;
    }
}

/* Shop CTA + cashback carousel */
.cc-shop-cta {
    background: #fff;
    padding: 56px 0 64px;
    border-top: 1px solid #ececec;
}

.cc-shop-cta .container {
    max-width: 80%;
    margin: 0 auto;
}

.cc-shop-cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cc-shop-cta__title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

.cc-shop-cta__text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    max-width: 460px;
}

.cc-shop-cta__btn {
    width: auto;
    min-width: 160px;
    display: inline-flex;
}

.cc-shop-cta__carousel {
    min-width: 0;
}

.cc-shop-carousel {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
}

.cc-shop-carousel__track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.cc-shop-carousel__slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 4px 2px;
}

.cc-shop-carousel__slide:hover {
    text-decoration: none;
    color: inherit;
}

.cc-shop-carousel__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    border: none;
    margin-bottom: 12px;
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cc-shop-carousel__image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(107, 70, 193, 0.08) 100%
    );
    pointer-events: none;
}

.cc-shop-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cc-shop-carousel__slide:hover .cc-shop-carousel__image {
    transform: translateY(-4px);
    filter: brightness(1.06) saturate(1.05);
}

.cc-shop-carousel__slide:hover .cc-shop-carousel__image img {
    transform: scale(1.05);
}

.cc-shop-carousel__name {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.cc-shop-carousel__badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #55c45a 0%, #3d9e42 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.28);
}

.cc-shop-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.cc-shop-carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #d8d4e4;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cc-shop-carousel__dot.is-active {
    background: #6b46c1;
    transform: scale(1.2);
}

.cc-shop-carousel__empty {
    padding: 40px 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

@media (max-width: 991px) {
    .cc-shop-cta .container {
        max-width: 94%;
    }

    .cc-shop-cta__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cc-shop-cta__text {
        max-width: none;
    }

    .cc-shop-cta__title {
        font-size: 24px;
    }

    .cc-shop-carousel__slide {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 576px) {
    .cc-shop-cta {
        padding: 40px 0 48px;
    }

    .cc-shop-carousel__slide {
        flex: 0 0 100%;
    }

    .cc-shop-carousel__name {
        font-size: 14px;
    }
}
