* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --nav-height: 80px;
    --footer-height: 300px;
    --blue: rgb(12, 135, 232);
}

/* header */
/* navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    height: var(--nav-height);
    background-color: rgb(240, 248, 255, 0.8);
    padding: 10px;
    box-shadow: 0px 5px 5px rgb(180, 180, 180);
}

/* nav-logo and text */
.nav-logo {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-text {
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-text p {
    text-align: center;
    color: rgb(90, 90, 90);
    font-style: italic;
    font-size: 0.45rem;
}

.nav-logo .logo img {
    height: calc(var(--nav-height) - 10px);
}

/* nav-links -- menu-icon, close, home, products, cart */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links a {
    text-decoration: none;
    padding: 15px;
}

.nav-link {
    transition: all 0.2s ease-in-out;
}

/* nav-link --- home, products, cart --  text */
.nav-link a {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 700;
}

/* cart button styling */
/* cart text */
.nav-link.cart a span {
    color: white;
}

/* cart icon */
.cart a {
    color: white;
}

.cart {
    color: white;
    background-color: rgb(0, 24, 255);
    padding: 12px 14px;
    border: 1px solid white;
    border-radius: 25px;
    margin-left: auto;
}

.cart:hover {
    background-color: rgb(0, 34, 163);
}

#cart-count {
    margin-left: 1px;
    background-color: white;
    color: var(--blue);
    padding: 5px 10px;
    border-radius: 30px;
}

.nav-link:hover {
    transform: scale(1.1);
}

/* buttons - disabled */
.menu-icon,
.close {
    display: none;
}

/* main */
main {
    margin-top: var(--nav-height);
}

/* hero section */
.hero {
    background-image: url("assets/images/hero-banner.avif");
    height: 70vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    height: 70%;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px;
}

.hero-text h1 span {
    display: block;
    font-size: 2.5rem;
    color: rgb(0, 0, 0);
    width: 100%;
}


.hero-text a div {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: rgb(0, 34, 255);
    color: white;
    padding: 15px 30px;
    margin-top: 30px;
    border-radius: 30px;
    font-size: 1.15rem;
}

.hero-text a div:hover {
    background-color: rgb(0, 24, 163);
}

.hero-text a span {
    position: relative;
    font-size: 1.3rem;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.hero-text a {
    text-decoration: none;
}

@keyframes bounce {
    0% {
        left: 0px;
    }

    50% {
        left: 3px;
    }

    100% {
        left: 0px;
    }
}

/* featured products */
.featured-products-title {
    text-align: center;
    background: linear-gradient(to bottom, white, rgb(155, 208, 255), white);
    padding: 20px 10px;
    color: rgb(0, 10, 69);
}

.featured-products-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    margin: 10px;
}

.featured-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;

    box-shadow: 2px 2px 8px rgb(30, 30, 30, 0.2);
    border-radius: 20px;
    max-width: 250px;

    transition: transform 0.3s ease;
}

.featured-product-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

@media (max-width: 768px) {
    .featured-product-card {
        max-width: 300px;
    }
}

.featured-product-thumbnail {
    height: 90%;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.featured-product-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
}

/* categories */
.categories {
    display: none;
    padding: 50px;
    /* background-image: linear-gradient(to bottom, rgb(0, 10, 69), rgb(0, 24, 163)); */
}

.categories-top-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-radius: 40px;
    position: relative;
}

.scroll-btn {
    /* background-color: rgba(255, 255, 255, 1); */
    padding: 5px;
    color: black;
    position: absolute;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
    height: 40px;
    width: 40px;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.scroll-btn:disabled {
    display: none;
    cursor: none;
}

#prev-btn {
    left: 5px;
}

#next-btn {
    right: 5px;
}

.categories-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: rgb(208, 208, 208);
    width: 80%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
}

.categories-container {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 2rem;
    z-index: 1;
}

.categories-container::-webkit-scrollbar {
    background-color: transparent;
    height: 12px;
}

.categories-container::-webkit-scrollbar-thumb {
    background: rgb(223, 222, 222);
    border-radius: 10px;
}

.categories-container::-webkit-scrollbar-thumb:hover {
    background: #c9c9c9;
}

.categories-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.category-item {
    cursor: pointer;
    width: 200px;
    height: 200px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    flex: 0 0 auto;
    border-radius: 10px;
    letter-spacing: 1px;
    transform: scale(0.8);
    transition: all 0.2s ease-in-out;
    background-position: center;
    background-size: contain;
}

.category-item span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.625);
    padding: 10px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.category-item.active span:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: black;
}

@media (max-width: 768px) {
    .category-item {
        font-size: 1.3rem;
    }
}

.category-item.active {
    transform: scale(1);
    transition: all 0.3s ease;
}

.category-item.active:hover {
    transform: scale(1.05);
}

.categories-buttons {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.categories-nav-products {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: rgb(0, 34, 255);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.categories-nav-products:hover {
    color: rgb(0, 34, 255);
    border: 1px solid rgb(0, 34, 255);
    background-color: transparent;
}

/* footer */
footer {
    background-color: rgb(0, 10, 69);
    width: 100%;
    color: white;
    padding: 2rem;
    font-size: 0.8rem;
}

.footer-content {
    display: flex;
    justify-content: space-evenly;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.footer-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #ccc;
    text-decoration: underline;
}

.footer-queries-form input,
.footer-queries-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0 1rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-queries-form textarea {
    height: 100px;
    resize: vertical;
}

.footer-queries-form button {
    background-color: white;
    color: rgb(0, 10, 69);
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.footer-queries-form button:hover {
    color: white;
    background-color: transparent;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {

    /* buttons activated in small screens */
    .menu-icon,
    .close.activate {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: var(--nav-height);
        width: 100%;
    }

    .close,
    .menu-icon.deactivate {
        display: none;
    }

    /* buttons color */

    .menu-icon a svg,
    .close a svg {
        fill: var(--blue);
        height: 30px;
        width: 30px;
        transition: all 0.2s ease-in-out;
    }

    .menu-icon a svg:hover,
    .close a svg:hover {
        fill: white;
        background-color: var(--blue);
        padding: 3px;
        border-radius: 15px;
    }

    /* home, products, cart -- nav-link */
    .nav-link {
        display: none;
    }

    .nav-link.active {
        display: inline;
    }

    /* menu-icon, close, home, products, cart */
    .nav-links {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background-color: rgb(240, 248, 255, 0.8);
        z-index: 5;
        backdrop-filter: blur(2px);
    }

    .nav-links .cart {
        margin-top: 25px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-link:hover {
        transform: translateX(5px);
    }

    .cart:hover {
        transform: scale(1.01);
    }

    .hero {
        height: 90vh;
    }

    .hero-text {
        height: 90%;
        width: 90%;
    }

    .categories {
        padding: 15px;
    }
}

@media screen and (max-width: 500px) {
    .footer-content {
        justify-content: flex-start;
    }
}

.no-products-available {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-products-available p {
    font-size: 1.5rem;
    font-weight: 500;
}