body{
    padding-bottom: 80px;
}

.con{
    display: flex;
    flex-direction: column;
}

.store-con{
    margin-top: 100px;
    margin-bottom: 100px;
    max-width: 1250px;
    color: var(--text);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* - Sub Section - */
.sub-con{
    display: flex;
    gap: 30px;
    position: relative;
    background: var(--comp-theme);
    box-shadow: var(--comp-shadow);
    max-width: 850px;
    width: 100%;
    border-radius: 20px;
    padding: 20px 15px;
}

.sub-con::before{
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    border: 4px solid var(--noti);
    width: calc(100% + 26px);
    height: calc(100% + 26px);
    transform: translate(13px,-13px);
    border-radius: 25px;
}

.ltr .sub-con::before{
    transform: translate(-13px,-13px);
}

.sub-right{
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.sub-left{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    flex: 1;
}

.sub-con h1{
    font-size: 2rem;
}

.sub-con h2{
    font-size: 1.15rem;
}

.sub-option-con h2{
    color: var(--placeholder);
    font-weight: 600;
}

.sub-option-con{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-option-wrapper{
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-option{
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    color: var(--placeholder);
    fill: var(--placeholder);
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: var(--trans);
    scale: 1;
}

.sub-option:hover{
    scale: 1.03;
    background: var(--fg);
}

.sub-option.select{
    background: var(--btn);
    color: var(--btn-txt);
    fill: var(--btn-txt);
}

.sub-option svg{
    width: 25px;
    height: 25px;
}

.sub-option:has(svg) p{
    margin-top: 2px;
}

#auto-renew-note{
    display: none;
    font-size: 0.9rem;
    color: var(--placeholder);
    margin-top: 7px;
}

#auto-renew-note.show{
    display: block;
}

.sub-payment-wrapper{
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: -5px;
}

#pay-renew{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    max-height: 150px;
    padding: 10px 0;
    flex: 1;
    margin-bottom: 20px;
}

#paypal-button-container{
    width: 75%;
    z-index: 5;
}

#paypal-text-note{
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

#pay-limited{
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 7px;
    margin-top: 7px;
    flex: 1;
}

#pay-limited h3{
    font-size: 1.15rem;
    color: var(--placeholder);
    font-weight: 600;
}

.sub-time-slider-con{
    display: flex;
    align-items: center;
    gap: 7px;
}

.sub-time-slider-con p {
    font-size: 1.25rem;
    font-weight: 600;
}

.sub-time-slider-wrapper{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 7px;
    background: var(--bg);
    color: var(--placeholder);
    font-weight: 600;
    flex: 1;
}

.sub-time-slider-wrapper p{
    margin-top: 2px;
    font-size: 1rem;
}

#sub-time-slider{
    flex: 1;
    width: 100%;
    height: 5px;
    background: var(--placeholder);
    border-radius: 5px;
    cursor: pointer;
}

#sub-time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    background: var(--btn);
}

.limited-sub-cost-wrapper{
    position: relative;
    display: flex;
    align-items: end;
    margin-top: 10px;
    padding: 8px 0;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

#limited-sub-cost{
    font-size: 4rem;
    line-height: 0.8;
}

#pay-limited .btn{
    font-size: 1rem;
}

.limited-sub-cost-text{
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 5px;
    font-weight: 700;
}


#sub-discount-wrapper{
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 7px;
    border-radius: 5px;
    color: #00B56A;
    background: rgba(0, 181, 106, 0.25);
    line-height: 1.2;
}

#sub-discount-wrapper.show{
    display: flex;
    position: absolute;
    top: 0;
}

#sub-discount-wrapper span{
    margin-inline-start: 3px;
}





/* Plan Preview */
.plan-con{
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg);
    color: var(--text);
    border-radius: 20px;
}

.plan-con img{
    width: 100%;
    max-height: 200px;
    border-radius: 20px;
    object-fit: cover;
}

.plan-features-con{
    flex-direction: column;
    gap: 7px;
    padding: 0 15px 15px 15px;
}

.plan-features-wrapper{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
    grid-template-rows: minmax(30px,auto) minmax(30px,auto) minmax(30px,auto);
    gap: 15px;
    row-gap: 5px;
    color: var(--placeholder);
}

.current-plan-wrapper{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    background: var(--bg);
    color: var(--text);
    padding: 10px 17px;
    border-radius: 13px;
    overflow: hidden;
}

.current-plan-wrapper h2{
    font-size: 1.1rem;
    margin-top: 2px;
}

.current-plan-wrapper p{
    color: var(--placeholder);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2px;
}

.current-plan-wrapper .btn{
    margin-inline-start: auto;
    font-size: 0.9rem;
    min-width: 100px;
}

.current-sub-overlay-wrapper{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: 0.8s ease;
    pointer-events: none;
    min-width: 120px;
}

.current-sub-overlay-wrapper img{
    transform-origin: top left;
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.plan-preview-2,
.plan-preview-3{
    display: none;
}

.plan-2 .plan-preview-2{
    display: flex;
}

.plan-3 .plan-preview-3{
    display: flex;
}


.sub-payment-wrapper > div{
    opacity: 0;
    transition: var(--trans);
}

.sub-renew #pay-renew{
    display: flex;
    opacity: 1;
}

.sub-limited #pay-limited{
    display: flex;
    opacity: 1;
}



/* - Plans Shlef - */
.store-shelf-con{
    max-width: 1000px;
    margin: 0 auto;
}

.store-shelf-con h2{
    font-size: 2rem;
    color: var(--text);
}

.store-shelf-con .shelf-sub-heading{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--placeholder)
}

.plans-shelf{
    margin: 20px 0;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(180px,100%), 1fr));
    column-gap: 30px;
    row-gap: 50px;
    scroll-margin: 130px;
}

.comp-design-theme {
    background: var(--comp-theme);
    box-shadow: var(--comp-shadow);
    padding: 15px;
    border-radius: 13px;
}

.plan-product{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 27px;
    text-decoration: unset;
    transition: var(--trans);
}

.plan-product:hover{
    scale: 0.98;
}

.plan-product img{
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 0px 25px 0px rgba(49, 57, 89, 0.17);
    transition: var(--trans);
}

.plan-product:hover img{
    scale: 1.03;
    box-shadow: 0px 10px 40px 3px rgba(49, 57, 89, 0.13);
}

.plan-product:hover .btn{
    scale: 1.02;
}

.product-title-wrapper{
    margin-top: 7px;
    text-align: center;
}

.product-title{
    font-weight: 1.3rem;
    letter-spacing: 0.03rem;
    color: var(--text);
}

.product-sub-title{
    color: var(--placeholder);
    font-weight: 600;
}

.plan-product-btn {
    position: absolute;
    bottom: -20px;
    padding: 5px;
    min-width: 100px;
    align-self: center;
}

.plan-product-btn p{
    margin-top: 6px;
    font-size: 1.3rem;
    line-height: 1;
}


/* Products */
.products-shelf{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(350px,100%), 1fr));
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.product{
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--trans);
}

.product-text-wrapper{
    width: 100%;
}

.product:hover{
    transform: scale(0.98);
}

.product .product-image{
    width: 50%;
}

.product-image img{
    position: absolute;
    inset-inline-start: -60px;
    top: 0;
    bottom: 0;
    width: 60%;
    transform: scale(1);
    transition: var(--trans);
    object-fit: contain;
    transform-origin: left;
}

.product:hover .product-image img{
    transform: scale(1.04);
}

.hidden-image-palcement{
    opacity: 0;
    width: 25%;
}

.product .btn{
    position: absolute;
    bottom: -18px;
    inset-inline-end: 15px;
    padding: 5px;
    min-width: 100px;
    min-height: 37px;
}

.product .btn p{
    margin-top: 6px;
    font-size: 1.3rem;
    line-height: 1;
}

.product:hover .btn{
    transform: scale(1.04);
}

#card{
    padding-inline-start: 0;
    gap: 0;
}

#card .btn p{
    font-size: 1rem;
}

#card:hover .btn{
    background: var(--noti);
}


#digital-card .product-image{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#digital-card .product-image img{
    position: absolute;
    inset: unset;
    height: 140%;
    width: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 12px 15px 25px 0px rgba(49, 57, 89, 0.30);
}

#digital-card img.hidden-image-palcement{
    position: relative;
    height: 90%;
    width: 65%;
}


@media (max-width: 810px){

    #card,
    .product{
        gap: 12px;
    }

    .product-image{
        display: flex;
        align-items: center;
    }

    .product-image img{
        position: relative;
        inset-inline-start: 0px;
        width: 100%;
    }

    #card{
        padding: 13px;
    }

    #card .hidden-image-palcement{
        display: none;
    }

    #card .product-image{
        margin-bottom: -35px;
    }

    #digital-card .product-image img{
        height: 90%;
    }
    

}


@media (max-width: 640px){

    .sub-con{
        flex-direction: column;
    }

    .plans-shelf{
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    #card .product-image{
        margin-bottom: -18px;
    }

    #digital-card .product-image img{
        height: 100%;
        border-radius: 5px;
    }
    
}
