@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Open+Sans&family=Philosopher&family=Poppins:wght@300&display=swap');

/* General Styles */
:root {
    --font-01: 'Poppins', sans-serif;
    --font-02: 'Philosopher', sans-serif;

    /* color */
    --global-color-0: #012161;
    --global-color-1: #131212;
    --global-color-2: #fff;
    --global-color-3: #ff0100;
}

html, body {
    font-family: var(--font-02);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--global-color-0);
    padding: 10px 20px;
    padding-bottom: 10px; /* Reduce bottom padding */
    margin-bottom: 0; /* Reduce space between header and landing section */
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 100px;/* Adjust the size as needed */
    height: 100px;/* Maintain the aspect ratio */
    transition: .4s;
}

.logo:hover {
    transform: scale(1.1);
}

.search-bar {
    display: flex;
    flex-grow: 1;
    margin: 0 20px;
}

.search-bar input {
    width: 80%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-bar button {
    padding: 5px 10px;
    background-color: var(--global-color-3);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-info {
    font-size: 14px;
    color: white;
}

.breadcrumb {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

.breadcrumb a {
    text-decoration: none;
    color: #333;
}

.breadcrumb span {
    font-weight: bold;
}

/* Navigation Styles */
nav {
    background-color: #333;
    color: white;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    padding: 10px 20px;
    position: relative;
}

nav ul li:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    color: black;
    min-width: 200px;
    z-index: 1;
}

.dropdown-content li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Landing Section Styles */
.landing-section {
    position: relative;
    height: 300px;
    background: url('../img/2232236.png') no-repeat center center;
    background-size: cover;
}
.landing-section, .categories-section, main {
    flex: 1;
}

.landing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.landing-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.landing-content h1 {
    font-size: 48px;
    margin: 0;
}

.landing-content p {
    font-size: 18px;
    margin: 10px 0 0;
}

/* Categories Section Styles */
.categories-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #fff;

}

.category-box {
    background-color: var(--global-color-3);
    color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    width: 150px;
}

.category-box img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.category-box:hover {
    background-color: #e0e0e0;
    color: black;
}

.hidden {
    display: none;
}

/* Main Content Area */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-area {
    display: flex;
}

aside {
    width: 20%;
    padding-right: 20px;
}

.categories, .filters {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 20px;
}

.categories ul, .filters ul {
    list-style: none;
    padding: 0;
}

.categories li, .filters li {
    padding: 5px 0;
}

/* Product List Styles */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 10px;
}

.product-item {
    flex: 1 1 calc(25% - 20px); /* Adjust width to 4 items per row */
    margin: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-item h4 {
    margin: 10px 0;
    font-size: 16px;
}

.product-item p {
    margin: 5px 0;
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

.product-item a:hover {
    text-decoration: underline;
}

.product-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.product-header h1 {
    flex: 1 1 100%;
    margin-bottom: 20px;
}

.product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.product-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin-bottom: 10px;
}

.additional-images img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-details {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.product-image img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-image img:hover {
    transform: scale(1.1);
}

.additional-images img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.additional-images img:hover {
    transform: scale(1.1);
}

/* Enlarge image on hover */
.product-image img:hover {
    transform: scale(1.5);
    transition: transform 0.25s ease;
}

.enlarged-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #000;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.enlarged-image img {
    max-width: 100%;
    max-height: 100%;
}

.enlarged-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* The Modal (background) */
.image-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 50px;  /* Location of the box */
    padding-bottom: 50px;  /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center;
}
/* Modal Content (image) */
.image-modal-content {
    display: block;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%; /* 50% of the screen width */
    max-height: 50%; /* 50% of the screen height */
    max-height: 50%;
    object-fit: contain;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption { 
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#overlay img {
    max-width: 80%;
    max-height: 80%;
}

.specifications,
.price-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specifications h2,
.price-box h2 {
    margin-top: 0;
}

.price-box h2 {
    font-size: 24px;
    color: #333;
}

.price-box p {
    margin: 10px 0;
    color: red;
}

.out-of-stock-button,
.whatsapp-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
}

.out-of-stock-button {
    background-color: #d9534f;
}

.whatsapp-button {
    background-color: var(--global-color-3);
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.buy-now-button,
.add-to-cart-button,
.whatsapp-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    margin-top: 10px;
}

.buy-now-button {
    background-color: var(--global-color-3);
}

.add-to-cart-button {
    background-color: #5cb85c;
}

.whatsapp-button {
    background-color: var(--global-color-3);
}

/* Footer Styles */
footer {
    background-color: var(--global-color-0);
    color: white;
    padding: 20px 0;
    margin-top: auto; /* This ensures the footer stays at the bottom */
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .search-bar {
        width: 100%;
        margin: 10px;
    }

    .categories-section {
        flex-wrap: wrap;
    }

    .category-box {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .content-area {
        flex-direction: column;
    }

    aside {
        width: 100%;
        padding-right: 0;
    }

    .product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    }

    .product-item {
        max-width: 100%;
        width: 100%;
    }

    .product-info {
        flex-direction: column;
    }

    .product-image,
    .product-details {
        width: 100%;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #002f6c;
    }

    .breadcrumb {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .landing-content h1 {
        font-size: 36px;
    }

    .landing-content p {
        font-size: 16px;
    }

    .product-header h1 {
        font-size: 24px;
    }

    .product-info {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
    }

    .product-details {
        width: 100%;
    }
}