/* styles.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}
header {
    background: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 100px; 
    width: auto;
}
.logo h1 {
    margin: 0;
    font-size: 24px;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}
nav .menu {
    list-style: none;
    display: flex;
    gap: 15px;
}
nav .menu li {
    position: relative;
}
nav .menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}
nav .menu a:hover {
    /*
	background: #7056f5;
	*/
	background: #f67503;
    border-radius: 4px;
}
nav .menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
	/*
    background: #4b3bf7;
	*/
	background: #fa9e4b;
	
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    z-index: 1000;
    border-radius: 4px;
}
nav .menu .submenu li {
    border-bottom: 1px solid #8B0000;
}
nav .menu .submenu li:last-child {
    border-bottom: none;
}
nav .menu .submenu li a {
    padding: 10px;
    color: white;
}
nav .menu .dropdown:hover .submenu {
    display: block;
}
.hero {
    background: #FFDAB9;
    padding: 10px;
    text-align: center;
}
.content {
    padding: 20px;
}
footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav .menu {
        display: none;
        flex-direction: column;
        background: #8B0000;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
		z-index: 9999;
    }
    nav .menu.active {
        display: flex;
    }
    nav .menu .submenu {
        position: static;
    }
}

/* Style for the floating button */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none; /* Hidden by default */
}

/* Show button when user scrolls down 20px from the top */
#topBtn.show {
  display: block;
}

/* floating cart button */
#floatingCartButton { 
	position: fixed; 
	bottom: 60px; 
	right: 20px; 
	background-color: #000000; /* Change this to your desired color */ 
	color: white; 
	border: none; 
	border-radius: 50%; 
	width: 50px; 
	height: 50px; 
	font-size: 24px; 
	cursor: pointer; 
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
	transition: all 0.3s ease; 
	z-index: 1000;
} 
#floatingCartButton:hover { 
	background-color: #007bff; /* Change this to your desired hover color */ 
}

/* Slideshow Container */

/* Banner Slideshow Adjustments */
#slideshow {
    width: 100%; /*adjust this for banner width */
    max-height: 350px; /* Adjust to your preferred height */
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%; /*must match #slideshow */
    height: 350px; /* Match the max-height */
    object-fit: cover; /* Ensures the image scales properly */
}

/*
.banner-slide, .product-slide {
    display: none;
}

.banner-slide img, .product-slide img {
    width: 100%;
    height: auto;
}
*/




/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Fade Animation */
.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Slides */
.slide {
    display: none;
    width: 100%;
}
.slide img {
    width: 200px;
    height: 200px;
    
}


/* Navigation Dots */
.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: #717171;
}

/* Fade Animation */
.fade {
    animation: fadeEffect 1.5s ease-in-out;
}

#product-catalog { padding: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.product-item { text-align: left; position: relative; overflow: hidden; }
/* Product Image Container */
.product-image {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: auto;
    overflow: hidden;
}

/* Product Image */
.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images { display: flex; justify-content: center; gap: 5px; margin-top: 5px; }
.thumb-img { width: 70px; height: 70px; cursor: pointer; object-fit: cover; border: 1px solid #ccc; border-radius: 4px; }


/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
    box-sizing: border-box;
    pointer-events: none; /* Prevent interference */
}

/* Add to Cart Button Styling */
.add-to-cart-btn {
    cursor: pointer;
    margin-top: 10px;
    width: 120px !important; /* Explicit width */
    height: 40px !important; /* Explicit height */
    object-fit: contain; /* Ensures proper scaling */
    display: block;
    padding: 0;
    border: none;
}
.product-overlay .overlay-bottom .add-to-cart-btn:hover {
    opacity: 0.8;
}

/* Show Overlay on Hover */
.product-image:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-top {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}

.overlay-bottom {
    text-align: left;
    font-size: 14px;
    margin-bottom: 5px;
}

.overlay-bottom select {
    width: 80%; /* Adjust dropdown width */
    margin-bottom: 5px;
}

/* Buttons and Controls in Overlay */
.overlay-details select,
.overlay-details input,
.overlay-details button {
    font-size: 10px;
    margin: 5px 0;
    /* padding: 4px 6px; */
    width: auto;
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }

    #slideshow {
        max-height: 250px;
    }

    .banner-slide img {
        height: 250px;
    }
}


.add-to-cart-btn:hover {
    opacity: 0.8;
}

#product-details {
    display: flex;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
}
.product-container {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    max-width: 900px;
}

.product-left {
    width: 100%;
    position: relative;
}

.product-left img {
    width: 50%;
    display: block;
    border-radius: 5px;
}

.product-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-right select,
.product-right button {
    margin-top: 10px;
    padding: 8px;
    font-size: 14px;
}

.product-description {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: justify;
}

.product-gallery {
    flex: 1;
}
.product-main-image img {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.product-thumbnails img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.product-info {
    flex: 1;
}
.product-options label {
    display: block;
    margin-top: 10px;
}
.product-options select {
    width: 100px;
    margin-top: 5px;
}
#product-price {
    font-size: 18px;
    margin-top: 15px;
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
}

/* Cart Container */
#cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 15px;
    max-width: 800px;
}

/* Cart Container */
.cart-container {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    max-width: 900px;
}

/* Left Section: Cart Items */
.cart-left {
    flex: 2;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

/* Right Section: Delivery, Coupon, Summary */
.cart-right {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

/* Cart Item */
/* Cart Item Styling */
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    font-size: 14px;
}

.cart-item-actions {
    text-align: center;
}

/* Quantity Dropdown */
.cart-item select {
    width: 60px;
    padding: 3px;
    font-size: 14px;
}

/* Remove Button */
.cart-item-actions button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.cart-item-actions button:hover {
    background-color: #c9302c;
}

/* Discount Coupon */
#discount-code {
    width: 100%;
    max-width: 200px;
    padding: 5px;
    font-size: 14px;
}


/* Delivery Method Section */
fieldset {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}

/* Summary */
#cart-total {
    font-size: 18px;
    font-weight: bold;
}


/* Mobile-Friendly Design */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        width: 100px;
        height: 100px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-actions {
        align-items: flex-start;
    }

    #discount-code {
        width: 100%;
    }
	 .cart-container {
        flex-direction: column;
    }

    .cart-left, .cart-right {
        width: 100%;
    }
}

/* Empty Cart Message */
.empty-cart-message {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin: 20px 0;
}

.address-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* checkout style removed */
.qr-code {
    width: 200px;
    margin-top: 10px;
}

