@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300,400,500,600,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f4f4; 
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    position: relative;
}


/*Header Section starts*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background-color: #610101;
    box-shadow: 0 2px 4px rgba(0,0,0,0.7); 
    z-index: 1050;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

/*Logo*/
.navbar .logo {
    color: #ffffff;
    font-weight: 600;
    font-size: 2.1rem;
    text-decoration: none;
}

.navbar .logo span {
    color: #ff7807;
}

/*Nav-bar*/
.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    color: #ffffff;
}

.navbar .nav-links a {
    text-decoration: none;
    transition: color 0.2s ease;
    color: #ffffff;
    font-weight: 600;
}

.navbar .nav-links a:hover,
.navbar .nav-links a:focus {
    color: #ff7807;
    background-color: transparent;
}

/*Dropdown section*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #610101;
    width: 150%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style-type: none;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
    text-decoration: black;
    
}

.dropdown-content a {
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    color: #ffffff;
    transition: 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #ff7807;
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*Search-bar section*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    color: #CFCFCF;
}

.navbar .search-bar {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 80px; 
    margin-left: auto;
}

.navbar .search-bar input[type="text"] {
    padding: 8px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    outline: none;
    width: 200px; 
    transition: all 0.3s ease;
    flex-grow: 1;
    margin-right: 8px;
}

.navbar .search-bar input[type="text"]:focus {
    width: 250px;
    border: 2px solid #ff7807; 
}

.navbar .search-bar input[type="text"]::placeholder {
    color: #030202ab;
    font-weight: 500;
}

.header .search-bar label{
    font-size: 2.2rem;
    padding-right: 1.5rem;
    color: var(--black);
    cursor: pointer;
}

.header .search-bar label:hover{
    color: black;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

/* Cart Icon Styling */
.cart-icon {
    position: absolute;
    top: 100%;
    right: 20px;
    padding: 10px;
    background-color: white; 
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.849);
    color: #000;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
    margin-top: 30px;
}

.cart-icon i {
    color: #000;
}

.cart-icon:hover {
    background-color: #ff7807;
}

.cart-icon:hover i {
    color: white; 
}


/* Responsive Design */
@media (max-width: 980px) and (min-width: 768px) {
    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        background-color: #610101;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0 10px 20px;
    }

    .navbar .nav-links.show {
        display: flex;
    }

    .navbar .dropdown-content {
        position: relative;
        width: 100%;
        padding-top: 10px;
    }

    .navbar .search-bar {
        margin-right: 0;
    }

    .navbar .search-bar input[type="text"] {
        width: 150px;
    }

    .navbar .search-bar input[type="text"]:focus {
        width: 200px;
    }

    #menu-btn {
        display: block;
        cursor: pointer;
    }

    #close-btn {
        display: none;
        cursor: pointer;
    }

    .cart-icon {
        right: 10px;
    }
}

@media (max-width: 980px) and (min-width: 282px){
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        background-color: #610101;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0 10px 20px;
    }

    .navbar .nav-links.show {
        display: flex;
    }

    .navbar .dropdown-content {
        position: relative;
        width: 100%;
        padding-top: 10px;
    }

    .navbar .search-bar {
        margin-right: 0;
    }

    .navbar .search-bar input[type="text"] {
        width: 150px;
    }

    .navbar .search-bar input[type="text"]:focus {
        width: 200px;
    }

    #menu-btn {
        display: block;
        cursor: pointer;
    }

    #close-btn {
        display: none;
        cursor: pointer;
    }

    .cart-icon {
        right: 10px;
    }
}

@media (min-width: 980px) {
    #menu-btn,
    #close-btn {
        display: none;
    }
}

/*Header section ends*/


/*Banner Section*/
.banner {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.664), rgba(0, 0, 0, 0.644)), url("Images/Dairy Products/cow-farm2.jpg") no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    padding: 80px 20px; 
    text-align: center;
    color: white;
    margin-top: 68px; 
    height: 900px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1.2rem;
}


/* Dairy Products Section */
.heading h2 {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.heading h2::before,
.heading h2::after {
    content: '';
    flex: 1; 
    height: 3px; 
    background-color: #000000; 
    align-self: center; 
    margin: 0 500px; 
}

.heading h2::before {
    margin-right: 18px; 
}

.heading h2::after {
    margin-left: 18px; 
}

.diary-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 50px;
}

.diary-item {
    width: 300px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diary-item img {
    width: 60%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.diary-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.product-name {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 550;
}

.add-to-cart-btn {
    background-color: #ca4406;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    background-color: #e66000;
}

/* Order Link */
.order-link {
    text-align: center;
    margin: 40px 0;
    width: 100%; /* Ensure full width */
}

.order-link a {
    background-color: #610101;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.order-link a:hover {
    background-color: rgb(206, 117, 15);
}

/* Container for products and order link */
.products-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px; /* Add padding below products */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .order-link {
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .order-link {
        margin: 20px 0;
    }
}



/* Footer section starts */
.container {
    max-width: 1170px;
    margin: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

ul {
    list-style: none;
    padding: 0; 
}

.footer {
    background-color: #26242b;
    padding: 70px 0;
    line-height: 1.5; 
    box-sizing: border-box;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
    box-sizing: border-box; 
}

.footer-col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col h4::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #e91e63;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    text-transform: capitalize;
    color: #bbbbbb;
    text-decoration: none;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #e91e63;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 30px;
    width: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #26242b;
    background-color: #ffffff;
}

.footer .container .copyright {
    display: flex;
    flex-basis: 100%;
    font-size: 11.5px;
    position: relative;
    text-align: center;
    justify-content: center;
    margin-top: 60px;
    color: #ffffff;
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }

    .footer-col h4::before {
        bottom: -8px; 
    }
}

@media (max-width: 576px) {
    .footer-col {
        width: 100%;
        margin: 0 auto; 
        text-align: center; 
        padding: 0 10px; 
    }

    .footer-col h4 {
        margin-top: 50px;
    }

    .footer-col h4::before {
        bottom: -6px; 
        left: 50%; 
        transform: translateX(-50%);
    }
}

/* Footer section ends */