/* importing google font  */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* Basic Styling  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Condensed", sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
}

a {
    font-size: 1.1rem;
    text-decoration: none;
    color: #000000;
}

.flex {
    display: flex;
    align-items: center;
}

li {
    list-style: none;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.wrapper {
    margin: auto;
    padding-inline: 1.5rem;
}

/* Header Styles  */
/* navbar  */
.navbar {
    min-height: 14vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ececec;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    z-index: 1000;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #bfd8bf, #b5d3b5);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Navigation link style  */
.navlist {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navlist li a {
    text-decoration: none;
    color: #030303;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #0f176f;
}

.navlist li a:hover,
.navlist li a:focus {
    color: #ffffff;
    background-color: #c8e6c9;
}

.navlist a.active-link,
.mobile-menu a.active-link {
    text-decoration: underline;
}

/* Login button  */
.btn {
    display: inline-block;
    padding: .9rem 2rem;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-radius: 1rem;
    font-size: 1.1rem;
    color: #000000;
    box-shadow: rgb(0, 0, 0, 0.1) 0 2px 1px;
    transition: .3s ease-in-out;
    border: .1rem solid #000000;
}

.btn:hover {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    color: #171717;
}

/* Cart button  */
.cart-icon {
    color: #080808;
    font-size: 1.3rem;
    position: relative;
}

.cart-icon .cart-value {
    position: absolute;
    top: 50%;
    right: -10px;
    font-size: .85rem;
    width: 20px;
    aspect-ratio: 1;
    border-radius: 100vw;
    background-color: #f1ac3c;
    color: #000000;
    text-align: center;
    line-height: 20px;
}

/* humburger Styling */
.desktop-action .hamburger {
    font-size: 1.5rem;
    display: none;
}

.mobile-menu {
    display: none;
}

/* Search form */
.search-form {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 25px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: #000000;
}

.search-form input {
    border: none;
    outline: none;
    padding: 0.5rem;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.search-btn:hover,
.search-btn:focus {
    color: #037272;
}

.search-btn svg {
    display: block;
}

/* Login Style  */
/* Modal style */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

.modal-content {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* login form  */
.tab {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab button {
    background-color: #c8e6c9;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin: 0 5px;
}

.tab button.active {
    background-color: #2e7d32;
    color: #080808;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #2e7d32;
    color: #080808;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button[type="submit"]:hover {
    background-color: #2e7d32;
}

.message {
    text-align: center;
    margin-top: 10px;
    color: red;
}

.success {
    color: green;
}

.hidden {
    display: none;
}


/* Hero Section Style  */
section {
    padding: 2% 5%;
}

.main-home {
    width: 100%;
    height: 100vh;
    background-image: url(../Assets/images/heroimg.webp);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
}

.main-text {
    color: #000000;
    font-size: 16px;
    text-transform: capitalize;
    font-family: 500;
}

.main-text h1 {
    color: #000;
    font-size: 65px;
    text-transform: capitalize;
    line-height: 1.1;
    font-weight: 600;
    margin: 6px 0 10px;
}

.main-text p {
    color: #333c56;
    font-size: 20px;
    font-style: italic;
    margin-bottom: 20px;
}

.main-btn {
    display: inline-block;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    border: 2px solid #111;
    border-radius: 20px;
    padding: 12px 25px;
    transition: all .42s ease;
}

.main-btn:hover {
    background-color: #000000;
    color: #fff;
}

/* Why to choose us Section Style  */
.why-choose-us {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.text-content {
    flex: 1;
    padding-right: 20px;
}

.text-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.text-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.links {
    margin-top: 20px;
}

.links a {
    display: inline-block;
    margin-right: 15px;
    padding: 10px 20px;
    background-color: transparent;
    color: #080808;
    text-decoration: none;
    border: 1px solid #080808;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.links a:hover {
    background-color: #080808;
    color: #ffff;
}

/* why choose us image style  */
.image-content {
    flex: 1;
    text-align: center;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Category Section Style  */
.categories-section {
    padding: 20px;
}

.categories-section h2 {
    margin-bottom: 20px;
    text-align: center;
}

.categories-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.categories-grid::-webkit-scrollbar {
    height: 8px;
}

.categories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fefefe;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.category-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.category-card h3 {
    margin-top: 10px;
    font-size: 14px;
}


/* Product Grid Styles */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products-container h1 {
    text-align: center;
    margin-bottom: 10px;
}

.products-container h1 span {
    color: #0f176f;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-info {
    padding: 15px;
    flex: 1;
}

.product-info h3 {
    margin: 0;
    color: #333;
}

.product-info p {
    color: #666;
    margin: 5px 0;
}

.price-section {
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discounted-price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
}

.discount-amount {
    color: #43aa6e;
    font-weight: bold;
    font-size: 12px;
}


/* Footer Section Style  */
footer {
    background: linear-gradient(135deg, #bfd8bf, #b5d3b5);
    color: #000000;
    padding: 2rem 0 1rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3,
.footer-section h4 {
    color: #0f176f;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.connect {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    align-items: center;
}

.payment-methods h4 {
    margin-top: 1rem;
    font-size: 1rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    align-items: center;
}

.payment-icons i,
.payment-icons span {
    font-size: 1.5rem;
    color: #000000;
    transition: color 0.3s ease;
}

.payment-icons i:hover,
.payment-icons span:hover {
    color: #0f176f;
}

.pay {
    background-color: #080808;
    color: #fefefe;
    font-size: 0.9rem;
    border-radius: 5px;
}

.pay:hover {
    background-color: #0f176f;

}

.help-section h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #0f176f;
}

.help-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-links li {
    margin-bottom: 8px;
}

.help-links a {
    text-decoration: none;
    color: #080808;
    font-size: 0.9em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.help-links a:hover {
    color: #0f176f;
}

.footer-bottom {
    text-align: center;
    justify-content: center;
}

/* Mobile Responsiveness Style */
@media screen and (max-width: 768px) {

    .navlist,
    .desktop-action .btn {
        display: none;
    }

    .desktop-action .hamburger {
        display: block;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        position: absolute;
        top: 20%;
        left: -100%;
        transform: translateX(-50%);
        width: 20rem;
        padding: 2rem;
        background-color: #ffffff;
        border: .1rem solid #00848c;
        border-radius: 2rem;
        box-shadow: rgb(0, 0, 0, 0.05) 8px 8px 8px rgb(0, 0, 0, 0.05) 8px 8px 8px inset;
        transition: all .5s ease-in-out;
    }

    .mobile-menu-active {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu li a:hover {
        color: #00848c;
        text-decoration: underline;
    }

    .logo {
        padding: 0;
        font-size: 1.5rem;
    }

    .search-form {
        flex: 1;
        max-width: 250px;
        position: relative;
    }

    .search-form input {
        font-size: 0.8rem;
        padding-right: 2.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .search-btn {
        position: absolute;
        right: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        color: #666;
        transition: color 0.3s ease;
    }

    .search-btn:hover,
    .search-btn:focus {
        color: #000000;
    }

    .search-icon {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    section {
        padding-top: 2%;
    }

    .main-home {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }

    .main-text {
        text-align: center;
    }

    .main-text h1 {
        font-size: 40px;
        margin: 10px 0 15px;
    }

    .main-text p {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .main-btn {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .body {
        padding-top: 10%;
        padding-bottom: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .why-choose-us {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .categories-section {
        padding: 15px;
    }

    .categories-section h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-card {
        width: 120px;
        padding: 8px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .payment-icons {
        justify-content: center;
    }

    .connect {
        justify-content: center;
    }
}