/* Reset some default browser styles */
body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
}

h4 {
    margin: 0;
    padding: auto;
}
body {
    font-family: "Gill Sans", sans-serif;
    color: rgb(0, 0, 0);
    line-height: 1.5;
    background-color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgb(93, 145, 202);
    box-sizing: border-box;
    flex-wrap: wrap;

}

header .logo a{
    font-size: 10px;
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    text-decoration: none;
}

header .logo a img {
    width: 120px; /* Set the desired width */
    height: auto; /* Maintains the aspect ratio */
}

nav ul {
    list-style: none;
    display: flex;
    gap:20px;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 39px;
}

nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: lighter;
    font-size: 15px;
}

@media (max-width: 700px) {
    header {
        justify-content: center;
        
    }

    nav ul {
        gap: 10px; /* Reduce space between nav links */
        margin-bottom: 8%; /* Add some space below the nav */
    }

    nav ul li {
        margin-left: 10px; /* Remove left margin */
    }
    nav ul li a {
        font-size: 14px; /* Reduce font size */
    }
    header .logo a img {
        width: 80px; /* Reduce logo size */
    }
}


.hero{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* Ensures the image covers the entire section */
    background-color: #f5f5f5; /* Ensures the image covers the entire section */
    height: 50vh; /* Adjust the height as needed */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    color: #000000;
    text-align: center;
    padding: 10% 20px;
    margin-top: 30px;
}



.hero h1 {
    font-size: 40px;
    margin-top: 420px;

}

.hero p {
    font-size: 24px;
    margin-top: 1%;
}

.hero .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    border: solid 2px #000000;
    transition: background-color 0.3s, box-shadow 0.5s;
}

.hero .btn:hover {
        background-color: #fdfdfd;
        border-color: #5290e7;
        box-shadow: 0px 2px 4px rgb(49, 120, 252); /* Slightly stronger shadow on hover */
    }

@media (max-width: 450px) {
    .hero {
        height: 40vh; /* Adjust height for smaller screens */
        padding: 10% 10px; /* Adjust padding for smaller screens */
    }
    
    .hero h1 {
        font-size: 20px; /* Adjust font size for smaller screens */
        margin-top: 210px; /* Adjust margin for smaller screens */
    }

    .hero p {
        font-size: 16px; /* Adjust font size for smaller screens */
        margin-top: 1%;
    }

    .hero .btn {
        padding: 5px 8px; /* Adjust padding for smaller screens */
        font-size: 14px; /* Adjust font size for smaller screens */ 
    }
}

@media (max-width: 900px) and (min-width: 450px) {
    .hero {
        height: 40vh; /* Adjust height for smaller screens */
        padding: 10% 10px; /* Adjust padding for smaller screens */
    }
    
    .hero h1 {
        font-size: 20px; /* Adjust font size for smaller screens */
        margin-top: 270px; /* Adjust margin for smaller screens */
    }

    .hero p {
        font-size: 16px; /* Adjust font size for smaller screens */
        margin-top: 1%;
    }

    .hero .btn {
        padding: 5px 8px; /* Adjust padding for smaller screens */
        font-size: 14px; /* Adjust font size for smaller screens */ 
    }
}

@media (max-width: 1400px) and (min-width: 900px) {
    .hero {
        height: 40vh; /* Adjust height for smaller screens */
        padding: 10% 10px; /* Adjust padding for smaller screens */
    }
    
    .hero h1 {
        font-size: 20px; /* Adjust font size for smaller screens */
        margin-top: 280px; /* Adjust margin for smaller screens */
    }

    .hero p {
        font-size: 16px; /* Adjust font size for smaller screens */
        margin-top: 1%;
    }

    .hero .btn {
        padding: 5px 8px; /* Adjust padding for smaller screens */
        font-size: 14px; /* Adjust font size for smaller screens */ 
    }
}

.products {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.products h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch; /* Ensure all cards are equal height */
    
}

.product-card {
    background: #ffffff9a;
    padding: 20px;
    margin-bottom: auto;
    width: 250px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    text-align: center;
    -webkit-transition: -webkit-transform 0.2s ease-in;
    transition: -webkit-transform 0.2s ease-in;
    -o-transition: transform 0.2s ease-in;
    transition: transform 0.2s ease-in;
    transition: transform 0.2s ease-in, -webkit-transform 0.2s ease-in;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.product-card:hover {
    -webkit-transform: scale(1.03);
        -ms-transform: scale(1.03);
            transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: 220px; /* Standardize image height */
    -o-object-fit: cover;
       object-fit: cover; /* Fill the area consistently */
    display: block;
}

.product-card h3 {
    font-size: 24px;
    margin: 10px 0px;
    min-height: 48px; /* Reserve space so titles don't shift heights */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.product-card h3 a {
    color: #000000;
    text-decoration: none;
}

.product-card h3 a:hover,
.product-card h3 a:focus,
.product-card h3 a:active {
    color: #000000;
    text-decoration: none;
}

.product-card p {
    font-size: 20px;
    color: #666;
}

.product-card .btn {
    margin-top: auto; /* Pin button to bottom for equal card heights */
    -ms-flex-item-align: center;
        align-self: center; /* Center horizontally within the card */
    width: 100%;
    max-width: 140px; /* Consistent button width */
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    -webkit-transition: background 0.3s;
    -o-transition: background 0.3s;
    transition: background 0.3s;
}

.product-card .btn:hover {
    background: #444;
}

/* All Products Section */
.all-products {
    padding: 10px 5%;
    background-color: #ffffff;
    min-width: 1500px;
    margin: 0 auto;

}

.all-products h4 {
    text-align: left;
    font-size: 19px;
    margin-bottom: 30px;
    margin-left: 1%;
}

/* Product Grid */
.all-products .product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* Center the grid itself */
}

.all-products .product-link {
    text-decoration: none; /* Remove underline from the link */
    color: inherit; /* Inherit text color from parent */
    display: block; /* Make the link fill the entire card */
}

.all-products .product-card {
    background: #ffffff;
    position: relative; /* Align to the left */
    width: 300px; /* Fixed width for consistency */
    padding: 5px; /* Add padding inside the card for spacing */
    transition: transform 0.2s ease-in, box-shadow 0.2s ease; /* Smooth hover effect */
}

/* Container for overlapping images */
.all-products .image-container {
    position: relative; /* Allows absolute positioning of the logo */
}

/* Product image styling */
.all-products .image-container img {
    width: 100%; /* Ensure the image fills the container */
    max-width: 300px;
    height: 220px; /* Standardize image height */
    object-fit: cover; /* Fill the area consistently */
    display: block; /* Ensures no extra space below the image */
}

/* Logo container */
.all-products .corner-logo {
    position: absolute; /* Position the logo over the product image */
    top: 30px; /* Adjust to control vertical position */
    left: 30px; /* Adjust to control horizontal position */
    width: 45px; /* Adjust size as needed */
    height: auto;
}

/* Logo image */
.all-products .corner-logo img {
    width: 100%; /* Ensure the logo fits the container */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

/* Product details (description) */
.all-products .product-details {
    margin-top: 10px; /* Space between the image and description */
    text-align: center;
}

.all-products .product-details h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #000000;
}

.all-products .product-details p {
    font-size: 1em;
    color: #000000;
    margin: 5px 0;
}

.all-products .product-details .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
}

/* Button styling */
.all-products .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    border: solid 2px #000000;
    transition: background-color 0.3s, box-shadow 0.5s; /* Added box-shadow to transition */
}

.all-products .btn:hover {
    background-color: #fdfdfd;
    border-color: #5290e7;
    box-shadow: 0px 2px 4px rgb(49, 120, 252); /* Slightly stronger shadow on hover */
}

@media (max-width: 600px) {
    .all-products .corner-logo {
        width: 25px;
        bottom: 10px;
        left: 10px;
    }
    
}

@media (max-width: 700px) {
    .all-products .product-card {
        width: calc(50% - 10px); /* Two cards per row */
        min-width: 250px;
    }
    .all-products {
        min-width: 100%; /* Allow container to shrink */
    }
}

@media (max-width: 500px) {
    .all-products .product-card {
        width: 100%; /* Stack cards */
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .all-products .corner-logo {
        width: 25px;
        top: 10px;
        left: 10px;
    }
}



/* Featured Products */
.featured-products {
    padding: 50px 20px;
    background-color: #fff;
}

.featured-products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
}

.product-card.featured {
    background: #fff;
    border: 1px #ddd;
}

.testimonials {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.testimonial-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.05);
}

.testimonial-card p {
    font-size: 16px;
    color: #666;
}

.testimonial-card h4 {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
}

footer {
    font-size: 12px;
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 3px;
    margin-top: 3px;
}

/* Removed empty ruleset for footer p */

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    margin-top: 5%;
}

footer ul li {
    margin: 0 10px;
}

footer ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

hr {
    border-top: 0.5px solid rgb(0, 0, 0);
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 10px;
}

/* Support form styles */
.support {
    font-size: 16px;
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
}

.support form {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.support input:focus, 
.support textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.support h2 {
    font-size: 25px;
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    text-align: center;
    margin-bottom: 20px;
}

.support label {
    margin-top: 10px;
}

.support input, .support textarea {
    font-size: 12px;
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.support button {
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
}

.support button:hover {
    background-color: #45a049;
}

.contact-info {
    margin-top: 20px;
}

.contact-info h3 {
    font-size: 15px;
    font-weight: lighter;
    font-family: "Gill Sans", sans-serif;
    margin-bottom: 10px;
}

/* Category Header */
.category-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.category-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 20px;
    color: #666;
}

/* Brands Section */
.brands {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.brands h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
}

.brand-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s;
}

.brand-card:hover {
    transform: scale(1.05);
}

.brand-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.brand-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}



/* Modify existing styles */
.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

/* Ensure consistent button styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #444;
}

/* privacy */

.privacy-policy {
    width: 60%;
    margin: auto;
    overflow: hidden;
    text-align: center;
    padding: 100px 20px;
}

/* cart!-- */

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
}
.quantity-adjuster {
    display: flex;
    align-items: center;
}
.quantity-adjuster button {
    width: 30px;
    height: 30px;
    font-size: 18px;
}
.quantity-adjuster input {
    width: 40px;
    text-align: center;
    margin: 0 10px;
}

/*search*/

.search-cart {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-cart input {
    padding: 5px;
    margin-right: 10px;
}

.search-cart a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
}

#searchResults ul {
    list-style-type: none;
    padding: 0;
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#searchResults li {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

#searchResults a {
    text-decoration: none;
    color: #000000;
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 30px;  /* Space between search bar and cart */
}
.search-results-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#searchResults li:hover {
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.search-result-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-result-item h3 {
    margin-top: 0;
    color: #333;
}

.search-result-item .price {
    color: #000;
    font-weight: bold;
    margin: 5px 0;
}

.search-result-item .category {
    color: #525151;
    font-size: 0.9em;
}

#searchInput::placeholder {
    color: #888;
    opacity: 0.7;
    font-size: 12px;
}

/* Search bar styles */
#searchForm {
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchInput {
    width: 150px;
    padding: 0;
    height: 32px; /* Fixed height */
    font-size: 13px;
    text-align: center;
    border: 0px solid rgb(0, 0, 0);
    box-shadow: #2b7dc0 0px 0px 10px;
    border-radius: 250px 25px 250px 25px;
    outline: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchInput:focus {
    width: 300px;
    border-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

#searchForm button {
    align-items: center;
    width: 80px;  /* Fixed width */
    height: 33px; /* Fixed height */
    font-size: 22px;
    color: rgb(0, 0, 0);
    background-color: #ffffff;
    border: 0px solid rgb(101, 159, 241); 
    box-shadow: #2b7dc0 0px 0px 10px;
    border-radius: 250px 25px 250px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    padding: 0;  /* Remove padding */
    overflow: hidden;  /* Ensure content doesn't overflow */
}

#searchForm button:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 30px rgb(98, 158, 248);
    font-size: 25px;
}

#searchForm button::before {
    content: "➤";
    margin-right: 0px;
}


/* Cart styles */
.cart-link {
    display: flex;
    align-items: center;
    padding: 3px 20px;
    font-size: 2px;
    color: rgb(0, 0, 0);
    border: 0px solid #4a83de;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-link img {
    width: 50px; /* Adjust size as needed */
    height: auto;
    margin-right: 5px; /* Space between image and text */
}

.cart-link:hover img {
    filter: drop-shadow(0 0 5px #2b7dc0);
    transform: scaleX(-1); /* Flip the image horizontally */
}
.cart-link img {
    transition: filter 0.3s ease, transform 0.3s ease; /* Add transform to transition */
}

.cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-item > span:first-child {
    flex: 1;
    font-weight: bold;
}

.cart-item button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 3px;
}

.cart-item button:hover {
    background-color: #45a049;
}

.cart-item button:last-child {
    background-color: #f44336;
}

.cart-item button:last-child:hover {
    background-color: #d32f2f;
}

#cart-summary {
    margin-top: 30px;
    text-align: right;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#cart-summary button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 3px;
}

#cart-summary button:hover {
    background-color: #45a049;
}

@media (max-width: 600px) {
    .search-cart {
        justify-content: center; /* Center the search bar and cart */
        flex-direction: column;
        gap: 5px; /* Reduce gap between search bar and cart */
    }

    #searchInput {
        width: 150px;
        max-width: 200px; /* Reduce default width */
    }

    #searchInput:focus {
        width: 200px;
    }

}

/*----------------------------------------------------------------------------*/ 

d
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.item-details {
    display: flex;
    flex-direction: column;
    flex: 2;
}

.item-name {
    font-weight: bold;
}

.item-specs {
    color: #666;
    font-size: 0.9em;
}

.item-price, .item-total {
    flex: 1;
    text-align: right;
}

.quantity-adjuster {
    display: flex;
    align-items: center;
    flex: 1;
}

.quantity-adjuster input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 10px;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #666;
}

#cart-summary {
    margin-top: 20px;
    text-align: right;
    padding: 15px;
    background-color: #f9f9f9;
}

#cart-summary button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}