/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation Bar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 8px rgb(254, 254, 254);
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 50px;
    margin-top: 5px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1; /* Expand to occupy available space */
    max-width: 400px;
    margin: 0 20px;
    margin-top: 8px;
    position: relative;
    transition: max-width 0.3s ease; /* Smooth resizing */
}

.search-bar img {
    height: 30px;
    cursor: pointer;
}

.search-bar input {
    flex-grow: 1;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: width 0.3s ease;
    width: 100%; /* Full width initially */
}

@media (max-width: 768px) {
    .search-bar {
        max-width: 300px; /* Shrink bar to show only the icon */
    }

    .search-bar.expanded {
        max-width: 100%;
    }

    .search-bar.expanded input {
        width: 100%;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }

    .nav-links {
        gap: 10px;
    }
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links img {
    height: 30px;
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover {
    font-weight: bolder;
    transition: transform 1s ease-in-out;
}

.Icon:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Product Description Section */
.product-desc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color:#efebeb;
    border-radius: 5%;
}
.original-price{
    text-decoration: line-through;
    color: #aaa;
}
.product-card {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 10px; /* Adjust layout for smaller screens */
}

.product-images-slider {
    position: relative;
    flex: 1;
    height: 600px;
    min-width: 500px;/* Limit width */
    margin: auto; /* Center the slider */
    overflow: hidden;
    border-radius: 5%;
}

.image-container {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    border-radius: 10%;
}

.image-container img {
    min-width: 100%;
    min-height: 100%;
    border-radius: 5px;
    object-fit: contain;
}

.product-images-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 50%;
}

.product-images-slider .prev-btn {
    left: 10px;
}

.product-images-slider .next-btn {
    right: 10px;
}

/* Product Details */
.product-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}
.taxes{
    color: #b4b4b4;
}
.product-title {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.rating {
    color: #f39c12;
    margin-bottom: 15px;
}
.desc{
    line-height: 30px;
    text-align: justify;
    
}
.price {
    font-size: 1.5em;
    color: #51211c;
    margin-bottom: 15px;
}

.discount {
    font-size: 0.8em;
    color: #2fb43f;
    margin-bottom: 15px;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.size-options button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f8f8;
    cursor: pointer;
}

.size-options button:hover {
    border-color: #333;
}

.actions {
    display: flex;
    gap: 20px;
}

.actions button {
    padding: 15px;
    font-size: 1em;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.add-to-cart {
    background-color: grey;
    color: white;
}

.wishlist {
    background-color: #3498db;
    color: white;
}

.warranty {
    margin-top: 20px;
    font-size: 1em;
    color: #666;
}
@media (max-width: 850px) {
    .product-card {
        flex-direction: column; /* Stack elements vertically */
    }

    .product-images-slider {
        width: 100%; /* Ensure it doesn't exceed the container's width */
        height: auto; /* Adjust height proportionally */
        margin-left: 0; /* Align to parent container */
    }

    .image-container {
        width: 100%; /* Match the slider's width */
        height: 100%;
        display: flex;
    }

    .image-container img {
        width: 100%; /* Ensure images fit within the container */
        height: auto; /* Maintain aspect ratio */
    }
}
@media (max-width: 768px) {
    .product-card {
        flex-direction: column; /* Stack elements vertically */
    }

    .product-images-slider {
        width: 100%; /* Ensure it doesn't exceed the container's width */
        height: auto; /* Adjust height proportionally */
        margin-left: 0; /* Align to parent container */
    }

    .image-container {
        width: 100%; /* Match the slider's width */
        height: 100%;
        display: flex;
    }

    .image-container img {
        width: 100%; /* Ensure images fit within the container */
        height: 100%; /* Maintain aspect ratio */
    }
}
/* Footer container styling */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 20px 40px;
    border-top: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.footer-section {
    flex: 1;
    margin: 0 10px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
    color: #000;
}
body{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
/* Copyright styling */
.footer-copyright {
    width: 100%; /* Full-width row below the sections */
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 20px;
    border-top: 1px solid #ddd; /* Optional top border for separation */
    padding-top: 10px;
    padding-bottom: 20px;
}