
main{
    padding-bottom:100px;
}
.form-control:focus {
    border-color: #28a745; /* Green border color */
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); /* Green outline with transparency */
    outline: none; /* Remove the default outline */
}

.search:focus {
    border-color: none; /* Green border color */
    box-shadow:none; /* Green outline with transparency */
    outline: none; /* Remove the default outline */
}
.ellipsis-one-line {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ellipsis-two-lines {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(3* 1.2em);
        line-height: 1.2em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.product-item:hover {
    transform: scale(1.02);
}

.product-image {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 180px;
    border-radius: 5px;
}

.product-details {
    color: #333;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-description {
    font-size: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-prices {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-mrp {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.product-selling-price {
    color: var(--primary-color);
    font-weight: bold;
}

.pagehead {
    margin-top: 80px;
    margin-bottom: 20px;
    text-align: center;
}

.search-bar {
    margin-bottom: 20px;
    text-align: center;
}

.search-input {
    padding: 10px;
    width: 50%;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-bar-nav{
    display:none;
}

#nav{
    background-color:#ffffff00;
    transition:0.2s;
}
.stick{
    background-color:var(--primary-color) !important;
    display: block;
    width: -webkit-fill-available;
    height:auto;
    position:fixed;
    z-index:1;
    top:0px;
    transition:0.1s;
}
.stick .navbar-brand{
    color:#ffffff;
}
.stick .nav-link{
    display:none;
}



/* Phone View */
@media (max-width: 576px) {
    
    .search-input {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .product-image {
        height: 120px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .container-fluid{
        padding-right:2px;
        padding-left:2px;
    }
    .product-grid {
        gap: 10px;
    }
    .product-name {
        font-size: 15px;
        font-weight: bold;
        margin-bottom: 0px;
        margin-top: 5px;
    }
    .product-description {
        font-size: 11px;
        text-align: inherit;
        margin-bottom: 3px;
        color: #6e6e6e;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-item {
        border: 1px solid #ddd;
        padding: 2px;
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0;
        transition: transform 0.2s;
        cursor: pointer;
    }
    .product-mrp {
        text-decoration: line-through;
        color: #949494;
        margin-right: 10px;
        font-size: 12px;
        display: block;
    }
    .modal-dialog {
        position: absolute;
        width: 100%;
        bottom: 0px;
        margin:0px;
        pointer-events: none;
    }
    .modal-header {
        padding: 20px 20px 20px 0px;
    }
    #modalOrderBtn{
        width:100%;
        padding:8px;
    }
    #modalProductDescription{
        margin-bottom:5px;
        font-size:14px;
        color:#656363;
    }
    #modalProductDescription .ellipsis-two-lines{
        max-height:40px;
        overflow-y:scroll;
        text-align:justify;
    }
    #modalProductSellingPrice{
        font-size:20px;
        font-weight:700;
    }
    #readMore{
        font-size:14px;
        font-weight:600;
        color:#656363;
    }
    .modal-body {
        padding: 0px 20px 0px 20px !important;
    }
}
.stick .search-bar-nav{
    margin-top:5px;
    display:block;
    margin-left:10px;
    margin-right:10px;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: none;
    padding: 15px;
    text-align: right;
}

.btn-close {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-close:hover,
.btn-close:focus {
    color: #000;
    opacity: 1;
}

.btn-close:focus {
    box-shadow: none;
}

.btn-close::before {
    content: "\00d7";
}
.pageHeader{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
}
.pagination{
    width:100%;
    display:block;
    text-align:center;
    margin-top:50px;
}
.pagination a{
    text-decoration:none;
    padding:8px;
    background-color:var(--primary-color);
    color:#ffffff;
    margin-top:25px;
}
.pagination a.active{
    text-decoration:none;
    padding:5px;
    border:1px solid var(--primary-color);
    background-color:#ffffff;
    color:var(--primary-color);
}
