/* Full Page Margin */
.body-container {
    margin-left: 20px;
    margin-right: 20px;
}

/* Navbar */
.menu-section {
    border-bottom: 1px solid #ddd;
}
.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 10px 15px;
}
.navbar-nav .nav-link:hover {
    color: #007bff;
}

/* Mega Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    z-index: 1000;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    font-size: 14px;
    color: #555;
    padding: 5px 10px;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Custom Dropdown */
.custom-dropdown {
    width: 350px !important;
    padding: 20px 30px;
}

/* Header */
.custom-header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
}

/* Slider */
.slider-section {
    margin: 20px auto;
    max-width: 95%;
}
.carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
    margin: 0 auto;
    display: block;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Product Listing */
/* Product Listing */
.product-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

.product {
    position: relative;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
    border-radius: 10px;
    overflow: hidden; /* Prevents icons from overflowing */
}

.product:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative; /* Ensures hover-icons is positioned relative to this */
    overflow: hidden;
    border-radius: 10px;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.product:hover img {
    transform: scale(1.2);
}

/* Hover Icons */
.hover-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center icons */
    display: flex;
    gap: 10px;
    opacity: 0; /* Hide by default */
    transition: opacity 0.3s ease-in-out;
}

.hover-icons i {
    font-size: 18px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hover-icons i:hover {
    color: #ff5733;
    background: #ff5733;
    transform: scale(1.2);
}

.product:hover .hover-icons {
    opacity: 1; /* Show icons on hover */
}