html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    margin: 0;
}

.hdrbg {
    background-color: #b60e55;
}

.btn {
    display: inline-block;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s ease;
    user-select: none;
    margin-bottom: 12px;
}

a {
    text-decoration: none;
}

.w-100 {
    width: 100%
}

.img-w {
    display: block;
    width: 100%;
    height: auto;
}


/*Post*/
.atozpsd_post {
    position: relative;
}

    .atozpsd_post .thumb {
        display: block;
        width: 100%;
        height: auto;
        justify-content: start
    }

.post_desc {
    font-size: 16px;
    font-weight: 500
}


.two_clm {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

    .two_clm .clm1 {
        width: 100%;
    }

    .two_clm .clm2 {
        width: 100%;
    }
    .two_clm .clm-50 {
        width: 100%;
        margin-right:0;
        margin-bottom:auto;
    }

/*Product Loops*/

/* Products grid */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(380px,1fr));
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.pmnt-btn-cotainer {
    display: flex;
}

.pack-card {
    background-color: #74bc04;
    padding: 12px 30px;
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

    .pack-card:hover {
        background-color: #65a402;
        color: #fff;
    }

.product-card {
    background: white;
    border-radius: 7px;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

    .product-card .p-overlay {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
        transition: .5s ease;
        background-color: rgb(8, 8, 13, 0.5);
        z-index: 9;
    }

    .product-card .product-image {
        width: 100%;
        height: 220px !important;
        object-fit: cover;
    }

    .product-card .pack-info {
        position: relative;
    }

    .product-card .product-info {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        opacity: 0;
        bottom: 10px;
        left: 10px;
        z-index:9;
    }

    .product-card .product-name {
        font-size: 1.1em;
        font-weight: 600;
        margin: 0 0 8px;
        color: #fff;
    }

    .product-card .product-desc {
        flex-grow: 1;
        font-size: 0.9em;
        color: #fff;
        margin: 0;
        line-height: 20px
    }

        .product-card:hover .p-overlay, .product-card:hover .product-info {
            opacity: 1; 
        }

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

    .modal-overlay.active {
        display: flex;
    }


.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: 94vh;
    position: relative;
    padding: 10px 10px 20px 10px;
    animation: fadeInScale 0.3s ease forwards;
}

    .modal-content .model-two-clsm {
        display: flex;
        flex-flow: column;
        flex: 100%;
    }

        .modal-content .model-two-clsm .lft {
            flex: 100%;
            margin-right: 0;
        }

        .modal-content .model-two-clsm .lft-50 {
            flex: 100%;
            margin-right: 0;
        }

        .modal-content .model-two-clsm .rgt-50 {
            flex: 100%;
        }

        .modal-content .model-two-clsm .rgt {
            flex: 100%;
        }

            .modal-content .model-two-clsm .rgt .advt {
                height: 300px;
                text-align: center;
                margin-bottom: 20px;
                background-color: #f7f7f7;
            }

    .modal-content .mdl-btn-pst {
        text-align: right;
        padding-bottom: 12px;
    }

        .modal-content .mdl-btn-pst .modal-close {
            position: relative;
            border: none;
            background: transparent;
            font-size: 44px;
            color: #717171;
            font-size: 30px;
            line-height: 32px;
            cursor: pointer;
            transition: color 0.2s ease;
        }

.modal-close:hover {
    color: #333;
}

.modal-content .pack-thumbnail {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px !important;
    margin: 0 20px 15px 0;
    padding: 0 0;
}

.modal-content .modal-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px !important;
    margin: 0 20px 15px 0;
    padding: 0 0;
}

.pack-title {
    font-size: 1.6em;
    font-weight: 500;
    margin: 0 0 0;
    color: #222;
}

.modal-title {
    font-size: 1.6em;
    font-weight: 500;
    margin: 0 0 0;
    color: #222;
}

.pack-description {
    font-size: 1em;
    line-height: 1.4;
    color: #555;
    margin-bottom: 25px;
}

.modal-description {
    font-size: 1em;
    line-height: 1.4;
    color: #555;
    margin-bottom: 25px;
}

.download-button {
    display: inline-block;
    background: #FD4259;
    background: linear-gradient(90deg, rgba(253, 66, 89, 1) 0%, rgba(173, 70, 157, 1) 100%);
    color: white;
    width: 100%;
    padding: 15px 22px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s ease;
    user-select: none;
    margin-bottom: 30px;
}

    .download-button:hover {
        background: #833AB4;
        background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 100%);
        color: #fff;
    }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Related products */
.related-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.related-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #34495e;
}

.related-products-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.related-product-card {
    flex: 0 0 240px;
    background: #fefefe;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    user-select: none;
    transition: transform 0.2s ease;
}

    .related-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 11px rgb(0 0 0 / 0.15);
    }

.related-product-image {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.related-product-name {
    font-size: 0.8em;
    color: #555;
    padding: 8px 6px;
    height: 60px;
    overflow: hidden;
}

/* Scrollbar styling for related products */
.related-products-list::-webkit-scrollbar {
    height: 6px;
}

.related-products-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.related-products-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

    .related-products-list::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*Buy Prodcut*/

.pack_buy_wrpr {
    border: 2px solid #b1b1b5;
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 12px;
}

    .pack_buy_wrpr h4 {
        font-size: 36px;
        font-weight: 500;
        text-transform: uppercase;
        margin: 0 0 12px 0;
        color: #4b4c55
    }

    .pack_buy_wrpr p {
        font-size: 18px;
    }

.buypcknow {
    border: 2px solid #27a43d;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

    .buypcknow h4 {
        font-size: 30px;
        font-weight: bold;
        text-transform: uppercase;
        color: #4a9005;
        margin:0
    }

    .buypcknow p {
        font-size: 16px;
        font-weight: 500;
    }

    .buypcknow .nGrphic {
        width: 100%;
        height: auto;
        margin-bottom: 10px
    }

.btn-green {
    background-color: #54a109;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 14px 20px;
}

    .btn-green:hover {
        background-color: #4a9005;
        color: #fff;
    }
.mb-3{
    margin-bottom:15px
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .two_clm {
        flex-direction: row;
    }

        .two_clm .clm1 {
            width: 70%;
        }

        .two_clm .clm2 {
            width: 30%;
        }
        .two_clm .clm-50 {
            width: 50%;
            margin-right: 20px;
        }
    .modal-content {
        padding: 15px 20px 40px 25px;
        max-width: 68%;
    }

        .modal-content .model-two-clsm {
            flex-flow: row;
        }

            .modal-content .model-two-clsm .lft {
                flex: 70%;
                margin-right: 20px;
            }

            .modal-content .model-two-clsm .lft-50 {
                flex: 50%;
                margin-right: 20px;
            }

            .modal-content .model-two-clsm .rgt-50 {
                flex: 50%;
            }

            .modal-content .model-two-clsm .rgt {
                flex: 30%;
            }

    .download-button {
        width: 87%;
    }

    .modal-content .modal-image {
        padding: 0;
        border-radius: 8px !important;
    }

    .modal-overlay {
        padding: 20px;
    }
    .mb-3 {
        margin-bottom: 30px
    }
}
