.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 0 20px; 
    height: 80px; 
}

.navbar a {
    float: left;
    font-size: 18px;
    color: white;
    text-align: center;
    padding: 16px 21px;
    text-decoration: none;
}

.mt-4 {
    margin-top: 0 !important;
}


.dropdown {
    font-size: 18px;
    float: left;
    overflow: hidden;
    
}

.dropdown .dropbtn {
    cursor: pointer;
    font-size: 18px;    
    border: none;
    outline: none;
    color: white;
    padding: 16px 21px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}



.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;   
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}



.searchbar {
    display: flex;
    margin: 0 200px; 
    flex-grow: 1; 
    height: 40px;
}

.searchbar input[type="text"] {
    flex-grow: 1;
    margin-right: -1px; 
    font-size: 18px;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #333;
    color: white;
    z-index: 1000;
  }

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #333;
    color: white;
    z-index: 1000;
  }

  main {
    padding-top: 70px;
    padding-bottom: 70px; 
    overflow-y: auto;

  }


section {
    padding-top: 10px;
    padding-bottom: 70px; 
    overflow-y: auto;
    height: calc(100% - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);

}


  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
  }



  .products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product {
    border: 5px solid #333;
    border-radius: 35px;
    box-shadow: 10px 10px 30px #333;
    margin: 30px;
    padding: 10px;
    width: 300px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background-color: #f8f8f8; 
}

.product a {
    text-decoration: none; 
    color: #333; 
}


.product:hover {
    transform: scale(1.15);
    box-shadow: 25px 25px 40px #333;
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 20px; 
}

.product h3 {
    font-size: 1.4em;
    color: #333;
    margin-top: 15px; 
}

.product p {
    font-size: 1em;
    color: #555;
}

.product-image {
    max-width: 270px;
    max-height: 270px;
    width: auto;
    height: auto;
}



.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.quantity-controls button,
.quantity-controls input[type=number] {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: #007bff; 
    color: white; 
    font-size: 1em;
}

.quantity-controls button:hover,
.quantity-controls input[type=number]:hover {
    background-color: #0056b3; 
    border-color: #0056b3; 
    cursor: pointer;
}


.quantity-controls input[type=number] {
    width: 50px; 
    text-align: center;
}


input[type=submit] {
    border: none;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1em;
    transition: background-color 0.5s;
}

input[type=submit]:hover {
    background-color: #555; 
    cursor: pointer;
}





.searchbar {
    display: flex;
    margin: 0 200px;
    flex-grow: 1;
    height: 40px;
}

.searchbar input[type="text"] {
    flex-grow: 1;
    margin-right: -1px;
    font-size: 18px;
}


.searchbar button {
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}



  


section form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

section h1 {
    margin-bottom: 20px;
}

section label {
    display: block;
    text-align: left;
    margin-top: 10px;
}

section input[type=email],
section input[type=password], section input[type=text] {
    width: calc(100% - 20px); 
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

section input[type=submit] {
    width: 100%;
    padding: 10px;
    background-color: #5c6bc0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

section input[type=submit]:hover {
    background-color: #3f51b5;
}

section a {
    color: #007bff;
    text-decoration: none;
    display: block; 
    margin: 10px 0;
}

section a:hover {
    text-decoration: underline;
}

article {
    padding-top: 70px;
    padding-bottom: 70px; 
    height: calc(100% - 140px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: auto;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; 
}

article h1 {
    color: #333;
    margin-bottom: 1em;
    font-size: 34px;
}

article p, article form {
    width: 100%; 
    margin-bottom: 15px;
}

article form {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

article label {
    display: block;
    margin-bottom: 5px; 
}

article input[type="text"], article input[type="password"], article input[type="email"] {
    width: 80%; 
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px; 
}

article input[type="submit"] {
    width: 90%; 
    padding: 10px; 
    background-color: #5c6bc0;
    color: white; 
    border: none; 
    border-radius: 4px;
    cursor: pointer; 
    transition: background-color 0.3s;
}

article input[type="submit"]:hover {
    background-color: #3f51b5; 
}

article a {
    color: #007bff; 
    text-decoration: none; 
    display: block; 
    margin-top: 10px;
}

article a:hover {
    text-decoration: underline; 
}

.custom-modal-size {
    max-width: 85%; 
}


aside {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto; 
    padding-top: 70px;
    padding-bottom: 70px; 
    overflow-y: auto;
    /* height: calc(100% - 140px); */
}

aside h1, aside h2 {
    color: #333;
    margin-bottom: 1rem;
}

aside table {
    width: 100%;
    max-width: 100%; 
    border-collapse: collapse;
    table-layout: auto; 
    word-wrap: break-word; 
}

aside th, aside td {
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    min-width: 30px; 
}


aside th {
    background-color: #eaeaea;
    color: #666;
}

aside td {
    background-color: #fff;
    color: #333;
}



@media (max-width: 1080px) {
.navbar {
	    flex-direction: column;
    }
    
    .navbar-left, .navbar-right {
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
    }

    .navbar a, .dropbtn {
        padding: 10px;
        text-align: center;
        width: 100%;
    }

    .searchbar {
        width: 100%;
    }

    aside th, aside td {
        padding: 4px; 
        font-size: 0.8em; 
    }

    aside input[type="text"],
    aside input[type="file"],
    aside select,
    aside textarea {
        font-size: 0.8em; 
    }
}


aside a {
    background-color: #ff0000; 
    color: #fff;
    padding: 10px 20px; 
    border: none;
    border-radius: 5px; 
    cursor: pointer;
    text-align: center; 
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0; 
}


aside a:hover {
    background-color: #ff0000; 
}

aside button[type="submit"] {
    background-color: #ff0000; 
    color: #fff; 
    padding: 10px 20px;
    border: none;
    border-radius: 5px; 
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 16px; 
    
}


aside button[type="submit"]:hover {
    background-color: #007bff;
    color: #ffffff; 
}

aside h2 {
    text-align: center;
}

aside form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

aside input[type="submit"] {
    background-color: #333; 
    color: #fff; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px;
    cursor: pointer; 
    font-size: 16px; 
    margin-top: 10px; 
}


aside input[type="submit"]:hover {
    background-color: #007bff;
}

#sc {
        margin-top: 25px;
    }












@media screen and (max-width: 1080px) {
    .hamburger {
        display: block;
    }

    .navbar-left, .navbar-right, .searchbar {
        display: none;
    }

    .navbar.open .navbar-left,
    .navbar.open .navbar-right,
    .navbar.open .searchbar {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
	
    .navbar a, .dropbtn {
        width: 100%;
        text-align: left;
		padding: 10px 0px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
    }
	
	.dropdown .dropbtn {
		padding: 16px 0px;
	}

    .searchbar input[type="text"] {
        width: calc(100% - 20px);
    }
}




#message {
    position: absolute;
    top: 95px; 
    right: 25px;
    transition: opacity 1s ease-out;
    opacity: 1;
    padding: 10px 20px;
    background-color: #333; 
    border: 4px solid #0080FF; 
    border-radius: 10px; 
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    color: white; 
    font-family: 'Arial', sans-serif;
    
}




.navbar a {
    display: flex;
    align-items: center;
    
}

.menu-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

header {
    font-family: 'Roboto', sans-serif;
}

.navbar-right a:hover {
    background-color: red;
}

.navbar-left a:hover {
    background-color: red;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.dropdown-content a {
    background-color: #f0f0f0;
    color: black;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}


.dropdown-content a:hover {
    background-color: #0080FF;
    color: white;
}

.navbar-right b {
    float: left; 
    color: white;
    padding: 16px 21px; 
}

.navbar-right a {
    float: left; 
    color: white;
    text-decoration: none;
    padding: 16px 21px; 
}

.search-input {
    color: #333; 
}

.search-input::placeholder {
    color: #333; 
}


.hamburger {
    display: none;
}


@media screen and (max-width: 1080px) {
    .hamburger {
        display: block;
        background-color: #333;
        color: white;
        border: none;
        font-size: 25px;
        cursor: pointer;
    }

    .navbar-left, .navbar-right {
        display: none;
    }
	
	.navbar.new {
		background-color: #333;
    	height: 100%;
	}
}




.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination {
    display: inline-block;
}

.pagination a, .pagination .active {
    display: inline-block;
    width: 40px; 
    height: 40px; 
    line-height: 40px;
    margin: 0 5px; 
    text-align: center; 
    text-decoration: none; 
    color: #000;
    background-color: #f2f2f2; 
    transition: all 0.3s; 
    border-radius: 5px; 
    font-weight: normal; 
}

.pagination .active {
    font-size: 21px; 
    font-weight: bold;
    color: #fff; 
    background-color: #333; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.pagination a:hover {
    background-color: #ddd; 
    color: #333; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    #productModal .modal-dialog {
        max-width: 50%;
	max-height: 60%
    }


.add-to-cart-button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.add-to-cart-button:hover {
    background-color: #007bff; 
}

.decrement-button {
    background-color: #333;
    color: white; 
    padding: 5px 10px; 
    border: none; 
    cursor: pointer; 
    border-radius: 5px;
}

.decrement-button:hover {
    background-color: #007bff;
}

.quantity-input {
    text-align: center; 
    margin: 0 5px;
    border: 1px solid #ddd; 
    padding: 5px; 
    width: 50px;
}


.product-item {
    border: 1px solid #e7f1ff; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 15px;
    background-color: #f7fbff; 
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; 
    cursor: pointer;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
    background-color: #ebf5ff; 
}

.product-item h3 {
    color: #333;
    font-size: 18px;
    margin-top: 10px;
}

.product-item p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}


.list-group-item {
    display: block;
    color: #333;
    text-decoration: none;
    background-color: #f7fbff; 
    padding: 10px 15px;
    border: 1px solid #e7f1ff; 
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease; 
}

.list-group-item:hover, .list-group-item-action:hover, .product-item:hover {
    background-color: #ebf5ff; 
    transform: scale(1.03);
    text-decoration: none;
    cursor: pointer;
}

.list-group-item:active, .list-group-item-action:active, .product-item:active {
    color: #007bff;
    background-color: #cce4ff; 
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    border: 2px solid #a3cfff; 
    border-radius: 25px;
    background-color: #f7fbff; 
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1); 
    transition: all 0.3s ease-in-out;
}

#searchInput:focus {
    border-color: #82b6ff; 
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2); 
    outline: none;
}

#searchInput::placeholder {
    color: #91c6ff; 
    font-style: italic;
}

#searchInput:hover {
    border-color: #82b6ff; 
}

