
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: linear-gradient(-45deg, #A5A5A5, #FFFFFF);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #000;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.dark-mode {
    background: linear-gradient(-45deg, #333333, #000000);
    background-size: 400% 400%;
    animation: gradient-dark 15s ease infinite;
    color: #FFFFFF;
}

@keyframes gradient-dark {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navigation Styles */
.navbar {
    /* position: relative;
    display: flex;
    justify-content: space-between; */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.dark-mode .navbar {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.navbar img {
    height: 40px;
    justify-self: start;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%); */
    /* flex-grow: 1;
    margin: 0 auto; */
}

.nav-link {
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.dark-mode .nav-link {
    color: #FFFFFF;
}

.nav-link:hover {
    background-color: #00bfff;
    color: #fff;
}

.nav-buttons {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;
}

.button {
    padding: 8px 12px;
    /* margin-left: 10px; */
    border: none;
    border-radius: 50px;
    background-color: #00bfff;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.button:hover {
    background-color: #007bb5;
    transform: scale(1.05);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 20px;
    background: #00bfff;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
        /* flex-direction: row;  
        justify-content: space-between; */
    }

    .nav-links {
        /* display: flex; 
        flex-grow: 1;
        justify-content: center;
        align-items: center; */
        justify-content: center;
    }

    .navbar img {
        /* margin-right: auto; */
        justify-self: start;
    }

    .nav-buttons {
        justify-content: end;
    }

    /* .navbar div {
        display: flex;
        align-items: center;
    }

    .banner-text button {
        align-self: flex-start;
    } */
}


/* Main Banner Styles */
.main-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.banner-text {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-image {
    flex: 1;
    max-width: 300px;
    height: auto;
    width: 100%;
}

/* Card Container Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.3); /* Light mode color */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    width: 200px;
    backdrop-filter: blur(10px); /* Blur effect */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .card {
    background: rgba(50, 50, 50, 0.7); /* Darker color for dark mode */
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Featured Category Styles
.featured-category {
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    width: 100%;
}

.dark-mode .featured-category {
    background-color: rgba(0, 0, 0, 0.9);
}

.featured-category h2 {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-category .view-all {
    margin-right: auto;
    margin-left: 20px;
    background-color: #00bfff;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.featured-category .view-all:hover {
    background-color: #007bb5;
}

.featured-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
} */

/* Featured Category Styles */
.featured-category {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 100%; 
    max-width: 100%; 
    box-sizing: border-box;
}

.dark-mode .featured-category {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Title and Button container for the Featured Category */
.featured-category h2 {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.featured-category .view-all {
    margin-right: auto;
    margin-left: 20px;
    background-color: #00bfff;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.featured-category .view-all:hover {
    background-color: #007bb5;
}

/* Featured Items Grid */
.featured-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; 
    margin-top: 20px;
}

.featured-items .card {
    background: rgba(255, 255, 255, 0.7); 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-items .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-category {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .featured-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .featured-category h2 {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-category .view-all {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .featured-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 1 column on mobile */
    }

    .featured-category h2 {
        font-size: 16px;
    }

    .featured-category .view-all {
        margin-left: 0;
        margin-top: 10px;
    }
}


/* Divider Lines */
hr.rounded {
    border-top: 8px solid #bbb;
    border-radius: 5px;
}

hr.solid {
    border-top: 3px solid #bbb;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

.product-card h3 {
    font-size: 1.2rem;
    margin-top: 15px;
}

.dark-mode .product-card h3 {
    color: white;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 10px;
}

.dark-mode .product-card .price {
    color: white;
}

.product-card .add-to-cart-button {
    padding: 10px 20px;
    background-color: #00bfff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.3s;
}

.product-card .add-to-cart-button:hover {
    background-color: #007bb5;
    transform: scale(1.05);
}

/* Filters Section */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.filters-section select,
.filters-section button {
    padding: 10px;
    font-size: 1rem;
    border-radius: 25px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
}

.filters-section select:focus,
.filters-section button:focus {
    outline: 2px solid #00bfff;
}

.filters-section button {
    background-color: #00bfff;
    color: white;
    transition: background-color 0.3s;
}

.filters-section button:hover {
    background-color: #007bb5;
}

/* Product Page Styles */
.product-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
}

.product-image {
    flex: 1;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.product-text {
    flex: 1;
    padding: 20px;
}

.product-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-text p {
    font-size: 1rem;
    color: #666;
}

.product-text .price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px 0;
}

.product-text .add-to-cart-button {
    padding: 10px 20px;
    background-color: #00bfff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.product-text .add-to-cart-button:hover {
    background-color: #007bb5;
    transform: scale(1.05);
}

/* Layout styles for the about page */
.about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    /* max-width: 100%; */
    /* margin: 0 auto; */

}

.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.about-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-container p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

.about-container .about-button {
    padding: 10px 20px;
    background-color: #00bfff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.about-container .about-button:hover {
    background-color: #007bb5;
    transform: scale(1.05);
}

.dark-mode .about-section {
    background-color: rgba(50, 50, 50, 0.7);
    backdrop-filter: blur(10px);
}

.dark-mode .about-container {
    background: rgba(50, 50, 50, 0.7);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dark-mode .about-container h1,
.dark-mode .about-container p {
    color: white;
}

.dark-mode .about-button {
    background-color: #007bb5;
}

.dark-mode .about-button:hover {
    background-color: #00bfff;
}

/* Footer Styles */
footer {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: auto;
}

.dark-mode .footer {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    padding: 0;
    color: #333;
}

.dark-mode footer p {
    color: #fff;
}

/* Media Queries for Responsiveness */

@media (max-width: 1200px) {
    .card {
        width: calc(33.33% - 20px); /* 3 cards per row */
    }

    .featured-items .card {
        width: calc(33.33% - 20px); /* 3 cards per row */
    }
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px); /* 2 columns on tablets */
    }

    .featured-items .card {
        width: calc(50% - 20px); /* 2 columns on tablets */
    }
}

@media (max-width: 480px) {
    .featured-items .card:nth-child(n+3) {
        display: none;
    }

    .featured-items .card:nth-child(-n+2) {
        display: block;
    }

    /* .card {
        width: calc(100% - 20px);
    }

    .featured-items .card {
        width: calc(100% - 20px);
    } */
}