/* =========================================
   Castle Products Selector
========================================= */

#castle-product-choice {
    --cb-accent: #27845f;
    --cb-accent-dark: #195c43;
    --cb-ink: #263238;
    --cb-muted: #68777c;
    box-sizing: border-box;
    width: 100%;
    padding: 5px 22px 20px;
    margin: 0;
    direction: rtl;
    font-family: inherit;
    background: transparent;
    position: relative;
}

    #castle-product-choice *,
    #castle-product-choice *::before,
    #castle-product-choice *::after {
        box-sizing: border-box;
    }

    /* Main container */

    #castle-product-choice .cb-choice-inner {
        width: min(1120px, 100%);
        margin: 0 auto;
    }

    /* Heading */

    #castle-product-choice .cb-choice-heading {
        text-align: center;
        margin: 0 auto 28px;
    }

    #castle-product-choice .cb-eyebrow {
        display: inline-block;
        color: var(--cb-accent);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .11em;
        margin-bottom: 10px;
    }

    #castle-product-choice .cb-choice-heading h2 {
        color: var(--cb-ink);
        font-size: clamp(22px, 3vw, 32px);
        line-height: 1.5;
        margin: 0 0 7px;
        font-weight: 800;
    }

    #castle-product-choice .cb-choice-heading p {
        color: var(--cb-muted);
        font-size: 15px;
        margin: 0;
        line-height: 1.9;
    }

    /* Cards Grid */

    #castle-product-choice .cb-choice-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        align-items: stretch;
    }

    /* Product Card */

    #castle-product-choice .cb-product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        isolation: isolate;
        overflow: hidden;
        min-height: 350px;
        border: 1px solid rgba(39, 132, 95, .30);
        border-radius: 16px;
        padding: 24px 26px 22px;
        text-decoration: none !important;
        color: var(--cb-ink) !important;
        background: rgba(255,255,255,.96);
        box-shadow: 0 12px 34px rgba(15,35,30,.09);
        transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .25s ease, border-color .35s ease;
        cursor: pointer;
    }

        /* Decorative circles */

        #castle-product-choice .cb-product-card::before {
            content: "";
            position: absolute;
            z-index: -1;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            top: -118px;
            left: -70px;
            background: rgba(39,132,95,.10);
            transition: transform .55s ease, background .35s ease;
        }

        #castle-product-choice .cb-product-card::after {
            content: "";
            position: absolute;
            z-index: -1;
            width: 170px;
            height: 170px;
            border-radius: 50%;
            bottom: -112px;
            right: -92px;
            border: 1px solid rgba(39,132,95,.22);
            transition: transform .55s ease, border-color .35s ease;
        }

        /* Hover Effect */

        #castle-product-choice .cb-product-card:hover,
        #castle-product-choice .cb-product-card:focus-visible {
            color: #fff !important;
            background: linear-gradient( 135deg, var(--cb-accent), var(--cb-accent-dark) );
            border-color: var(--cb-accent);
            transform: translateY(-8px);
            box-shadow: 0 22px 46px rgba(39,132,95,.28);
            outline: none;
        }

            #castle-product-choice .cb-product-card:hover::before,
            #castle-product-choice .cb-product-card:focus-visible::before {
                transform: translate(28px,25px) scale(1.35);
                background: rgba(255,255,255,.10);
            }

            #castle-product-choice .cb-product-card:hover::after,
            #castle-product-choice .cb-product-card:focus-visible::after {
                transform: translate(-25px,-25px) scale(1.2);
                border-color: rgba(255,255,255,.25);
            }

    /* Top label */

    #castle-product-choice .cb-card-topline {
        font: 800 10px/1.5 Arial,sans-serif;
        letter-spacing: .16em;
        color: var(--cb-accent);
        margin-bottom: 11px;
        transition: color .25s ease;
    }

    /* Image */

    #castle-product-choice .cb-card-media {
        width: 100%;
        height: 112px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0 13px;
        position: relative;
    }

        #castle-product-choice .cb-card-media img {
            display: block;
            max-width: 180px;
            max-height: 112px;
            width: auto;
            height: auto;
            object-fit: contain;
            transition: transform .45s ease, filter .35s ease;
        }

    #castle-product-choice .cb-product-card:hover
    .cb-card-media img {
        transform: scale(1.08) translateY(-3px);
    }

    /* Text */

    #castle-product-choice .cb-card-copy {
        display: flex;
        flex-direction: column;
        gap: 7px;
        flex: 1;
    }

        #castle-product-choice .cb-card-copy strong {
            color: inherit;
            font-size: 24px;
            line-height: 1.5;
            font-weight: 800;
        }

        #castle-product-choice .cb-card-copy > span {
            color: var(--cb-accent-dark);
            font-size: 15px;
            font-weight: 700;
            line-height: 1.8;
            transition: color .25s ease;
        }

        #castle-product-choice .cb-card-copy small {
            color: var(--cb-muted);
            font-size: 13px;
            line-height: 1.9;
            transition: color .25s ease;
        }

    /* Action Button */

    #castle-product-choice .cb-card-action {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
        padding: 9px 18px;
        border-radius: 999px;
        color: var(--cb-accent-dark);
        border: 1px solid rgba(39,132,95,.34);
        font-size: 13px;
        font-weight: 800;
        transition: all .25s ease;
    }

        #castle-product-choice .cb-card-action b {
            font-family: Arial,sans-serif;
            font-size: 18px;
            line-height: 1;
        }

    /* Text Hover Colors */

    #castle-product-choice .cb-product-card:hover .cb-card-topline,
    #castle-product-choice .cb-product-card:hover .cb-card-copy > span,
    #castle-product-choice .cb-product-card:hover .cb-card-copy small,
    #castle-product-choice .cb-product-card:hover .cb-card-action {
        color: #fff !important;
    }

    /* Action Hover */

    #castle-product-choice .cb-product-card:hover .cb-card-action {
        border-color: rgba(255,255,255,.55);
        background: rgba(255,255,255,.10);
    }

/* Responsive */

@media (max-width: 760px) {

    #castle-product-choice {
        padding: 32px 16px 42px;
    }

        #castle-product-choice .cb-choice-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        #castle-product-choice .cb-product-card {
            min-height: 320px;
            padding: 22px 18px;
        }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    #castle-product-choice .cb-product-card,
    #castle-product-choice .cb-product-card::before,
    #castle-product-choice .cb-product-card::after,
    #castle-product-choice .cb-card-media img {
        transition: none !important;
    }
}


/* =========================================
   Castle Product Cards - Entrance Animation
========================================= */

@keyframes cb-slide-from-right {
    from {
        opacity: 0;
        translate: 100px 0;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes cb-slide-from-left {
    from {
        opacity: 0;
        translate: -200px 0;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Backup: enter from right */
#castle-product-choice .cb-product-card:nth-child(1) {
    opacity: 0;
    animation: cb-slide-from-right 850ms cubic-bezier(.22, .61, .36, 1) 150ms both;
}

/* GHWinfo: enter from left */
#castle-product-choice .cb-product-card:nth-child(2) {
    opacity: 0;
    animation: cb-slide-from-left 850ms cubic-bezier(.22, .61, .36, 1) 350ms both;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #castle-product-choice .cb-product-card {
        animation: none !important;
        opacity: 1 !important;
        translate: none !important;
    }
}
