/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #232f3e;
    color: #fff;
    padding: 10px 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top h1 {
    font-size: 22px; /* Decreased size */
    font-family: 'Poppins', sans-serif; /* Beautiful Google Font */
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between icon and text */
}

.logo-icon {
    width: 40px; /* Adjust icon size */
    height: 40px;
    object-fit: cover; /* Ensures the image is scaled correctly */
}


.search-bar input {
    padding: 10px;
    width: 300px;
    border: none;
    border-radius: 4px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #ff9900;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}


/* Existing CSS remains unchanged */

/* Responsive styles for smaller screens */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 100px; /* Positioned as requested */
    right: 20px; 
    z-index: 1100; /* Added high z-index to keep it above other elements */
}



@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #232f3e;
        padding: 10px 0;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }

    nav ul li {
        text-align: left;
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-active {
        display: flex;
    }
}


/* Add Font Awesome CSS (if not already included) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Existing CSS remains unchanged */

/* Responsive styles for smaller screens */
/* Existing CSS remains unchanged */

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Space between logo and search/menu */
        position: relative; /* Ensure relative positioning for absolute children */
    }

    .menu-toggle {
        display: block; /* Ensure it's visible on mobile */
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        margin-left: 10px; /* Add spacing between search bar and menu toggle */
        z-index: 1100; /* Keep it above other elements */
        order: 2; /* Move menu toggle to the end of the flex container */
    }

    .search-bar {
        flex: 1; /* Allow search bar to take remaining space */
        max-width: calc(100% - 60px); /* Limit width to leave space for menu toggle */
        order: 1; /* Ensure search bar comes before menu toggle */
    }

    .search-bar form {
        display: flex;
        align-items: center;
        gap: 10px; /* Space between input and button */
    }

    .search-bar input {
        width: 100%; /* Full width of the form */
        height: 35px; /* Reduce height */
        padding: 5px 10px; /* Adjust padding */
        border: none;
        border-radius: 4px;
    }

    .search-bar button {
        width: 35px; /* Make button square */
        height: 35px; /* Match input height */
        background-color: transparent; /* Remove background color */
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .search-bar button i {
        color: #fff; /* White lens icon */
        font-size: 18px; /* Adjust icon size */
    }
}












.hero {
background: linear-gradient(135deg, #ECABD4, #ffe6f0);
background-size: cover;
background-position: center;
padding: 100px 20px;
text-align: center;
color: #fff;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}


















/* Carousel Container */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 500px; /* Fixed height to prevent resizing */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* Ensure track takes full height of carousel */
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 100px 20px; /* Adjust padding as needed */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%; /* Ensure each item takes full height of carousel */
}

.carousel-image {
  width: 40%; /* Adjust width as needed */
  height: auto; /* Maintain aspect ratio */
  margin-right: 20px; /* Add spacing between image and text */
  border-radius: 10px; /* Optional: Add rounded corners */
}

.carousel-content {
  width: 60%; /* Adjust width as needed */
  text-align: center; /* Ensure text inside this container is centered */
}

.construction-tools-category {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.power-tools-category {
  background: linear-gradient(135deg, #4a90e2, #a1c4fd);
}

.crystal-lights-category {
  background: linear-gradient(135deg, #2c3e50, #7f8c8d);
}

.led-bulb-category {
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
}

.solar-led-lights-category {
  background: linear-gradient(135deg, #b18904, #f7c942);
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  background-color: #000;
  margin-top: 20px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}

.promo-image {
  width: 15%; /* Adjust as needed */
  height: auto;
  margin-right: 20px;
  border-radius: 10px; /* Optional: Adds rounded corners */
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    height: 0; /* Use padding-top to maintain aspect ratio */
    padding-top: 56.25%; /* 16:9 aspect ratio (height = 56.25% of width) */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px; /* Optional: Add rounded corners */
}

.promo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover; /* Maintain aspect ratio and cover the container */
    border-radius: 10px; /* Match container's border radius */
}

/* Play Button Styles */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10; /* Ensure play button is above the video */
    pointer-events: none; /* Allow clicks to pass through to the video */
}

.play-button:hover {
    opacity: 1;
}

/* Hide play button when video is playing */
.video-container.playing .play-button {
    display: none;
}

/* Adjust Carousel Item Padding for Video */
.carousel-item.power-tools-category {
    padding: 50px 20px; /* Reduce padding to accommodate video */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .carousel-item {
        flex-direction: column; /* Stack items vertically */
        padding: 50px 20px; /* Adjust padding for mobile */
    }

    .promo-image {
        width: 50%; /* Adjust the image size for mobile */
        margin: 0 auto 20px auto; /* Center the image horizontally and add margin below */
        display: block;
    }

    .carousel-content {
        width: 100%; /* Full width for the content on mobile */
        text-align: center;
    }

    .video-container {
        padding-top: 75%; /* Adjust aspect ratio for mobile if needed */
    }
}














.btn {
    padding: 10px 20px;
    background-color: #ff9900;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.product-grid, .category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.category-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: calc(25% - 40px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-card .image-holder {
    width: 100%;
    height: 150px;
    background-color: #ccc;
    margin-bottom: 15px;
}









/* Product Card Styles */
.product-card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card .image-holder {
    width: 100%;
    height: 150px;
    background-color: #f1f1f1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure images don't overflow */
}

.product-card .image-holder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ensure images maintain aspect ratio */
}

.product-card h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.product-card .btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffa500;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.product-card .btn:hover {
    background-color: #e69500;
}





footer {
    background-color: #232f3e;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar input {
        width: 100%;
        margin-bottom: 10px;
    }

    .product-card, .category-card {
        width: calc(50% - 40px);
    }
	
	
	
	



	
}





















/* Admin Dashboard Styles */
.dashboard-container {
    padding: 20px;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category-filter select {
    padding: 10px;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

.btn {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.btn.delete {
    background-color: #dc3545;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
}

.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-container button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}







/* Product Details Container */
.product-details-container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Product Content (Image and Details) */
.product-content {
    display: flex;
    gap: 20px;
}

/* Image Carousel */
.product-image {
    width: 40%;
}













.carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: auto;
    display: none;
}

.carousel-image.active {
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}











/* Product Details */
.product-info {
    flex: 1;
}

.product-info h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.product-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Horizontal Line */
.product-line {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 20px 0;
}

/* Colors Section */
.product-colors {
    margin-bottom: 20px;
}

.color-squares {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-square {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid black; /* Added black border */
}

/* Order Now Button */
.product-order {
    text-align: right;
}

.order-button {
    background-color: #ffa500;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.order-button:hover {
    background-color: #e69500;
}















/* Related Products Section */
.related-products {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.related-products h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}




/* Product Grid Container */
.product-grid-container {
    padding: 0; /* Remove padding from container */
}

/* Product Grid Styles */
.product-grid, .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px; /* Equal spacing between grid items */
    padding: 0 20px; /* Add padding only inside the grid for left and right edges */
}

/* Product Card Styles */
.product-card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure cards take full width of their grid cell */
}

/* Category Card Styles */
.category-card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure cards take full width of their grid cell */
}

/* Tablet View (3 columns) */
@media (max-width: 1024px) {
    .product-grid, .category-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
    }
}

/* Small Tablet View (2 columns) */
@media (max-width: 768px) {
    .product-grid, .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small tablets */
    }
}

/* Mobile View (1 column) */
@media (max-width: 480px) {
    .product-grid, .category-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.product-card .image-holder {
    width: 100%;
    height: 180px;
    
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure images don't overflow */
}



.product-card .image-holder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ensure images maintain aspect ratio */
}


.category-card .image-holder {
    width: 100%;
    height: 180px; /* Same height as product cards */
    background-color: #f1f1f1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure images don't overflow */
}

.category-card .image-holder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Maintain image aspect ratio */
}


.product-card h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.product-card .btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffa500;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.product-card .btn:hover {
    background-color: #e69500;
}

* {
    box-sizing: border-box; /* Ensure padding is included in the total width */
}













/* Responsive Design */
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        width: 100%;
    }

    .product-colors {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .product-order {
        text-align: center;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
	
	
}















@media (max-width: 480px) {
    .product-card, .category-card {
        width: 100%;
    }
}















/* Categories Page Styles */
.categories-container {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

.category-image {
    width: 100px;
    height: auto;
}

.current-image {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

.btn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.btn.delete {
    background-color: #dc3545;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-container button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #218838;
}

















/* Search Results Section */
.search-results {
    margin-top: 20px;
    padding: 20px;
}

.search-results h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.search-results .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .search-results .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-results .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .search-results .product-grid {
        grid-template-columns: 1fr;
    }
}





/* css for contact section */

#contact {
    max-width: 900px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

#contact h1 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

#contact p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

#contact h2 {
    font-size: 22px;
    color: #333;
    margin-top: 40px;
}

#contact a {
    color: #1a73e8;
    text-decoration: none;
}

#contact .footer {
    margin-top: 40px;
    font-size: 16px;
    color: #666;
    text-align: center;
}


/* css for about section */



.about {
    max-width: 900px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about h1 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.about p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.about h2 {
    font-size: 22px;
    color: #333;
    margin-top: 40px;
}

.about .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.about .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding-bottom: 75%;
    height: 0;
    background-color: #f0f0f0;
}

.about .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Fullscreen Modal */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
}

#imageModal span {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#modalImage {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}






















#custom-footer {
  background-color: #393838; 
  color: #fff;
  margin-top: 40px; /* Add margin on top of the footer */
}

.custom-footer-container {
  padding: 30px 0;
}

.custom-footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.custom-footer-about,
.custom-footer-links,
.custom-footer-quick-links,
.custom-footer-contact-info {
  flex: 1 1 calc(25% - 20px); 
  max-width: calc(25% - 20px);
  margin: 0 10px;
  text-align: center;
}

.custom-footer-about h1,
.custom-footer-about p,
.custom-footer-contact-info ul {
  margin: 0;
}

.custom-footer-about h1 {
  font-size: 1.5em;
}

.custom-footer-links p,
.custom-footer-quick-links p {
  margin: 0;
}

.custom-footer-links a,
.custom-footer-quick-links a {
  color: #fff;
  text-decoration: none;
}

.custom-footer-contact-info ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.custom-footer-contact-info li {
  margin-bottom: 5px;
}

.custom-footer-contact-info {
  text-align: left;
}

.custom-footer-image {
  margin-top: 20px;
}

.custom-footer-image a img {
  width: 100%;
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.custom-footer-bottom {
  background-color: #393838; /* Black background for the bottom section */
  padding: 15px 0; /* Add padding for better spacing */
  text-align: center; /* Center the text horizontally */
}

@media (max-width: 767px) {
  .custom-footer-main {
    flex-direction: column;
    align-items: center;
  }

  .custom-footer-about,
  .custom-footer-links,
  .custom-footer-quick-links,
  .custom-footer-contact-info {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 10px 0;
    text-align: center;
  }
}



.view-all-categories {
    text-align: center; /* Center the button */
    margin-top: 20px; /* Add some spacing above the button */
}

.view-all-categories .btn {
    padding: 10px 20px;
    background-color: #ff9900; /* Orange background */
    color: #fff; /* White text */
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.view-all-categories .btn:hover {
    background-color: #e69500; /* Darker orange on hover */
}