

/* General Body and Font Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8c6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

/* Header Styles */
.main-header {
    background-color: #ffffffbe;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-toggle {
    font-size: 24px;
    color: #333;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.logo span {
    display: block;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: 20px;
    color: #333;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #a0a0a0; /* Grey color from video */
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    margin-top: 60px; /* To account for fixed header */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000; /* Fallback */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('osama.jpg'); /* Your specified image */
    background-size: cover;
    background-position: center;
    filter: brightness(0.7); /* Slightly dim the background image */
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-category {
    background-color: rgba(220, 190, 130, 0.737); /* Gold-like color from video */
    color: #333;
    padding: 15px 50px;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 250px; /* Fixed width for buttons */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /* Corrected: Removed duplicate box-shadow and combined animation */
    animation: glow 1.5s infinite alternate;
}

/* Keyframes for glow animation */
@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7);
    }
}


.btn-category:hover {
    background-color: rgba(176, 129, 34, 0.9);
}

/* Main Content */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.about-us {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 40px;
}

.about-card h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.about-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* New Product Section Styles */
.product-section, .product-listing {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-section h2, .page-title h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    text-align: center;
    padding-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-images {
    width: 100%;
    height: 300px; /* Fixed height for product images */
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.product-images img.Hidden {
    display: none; /* Hide secondary images by default */
}

.product-title {
    font-size: 1.3rem;
    color: #333;
    margin: 10px 0;
    padding: 0 10px;
}

.product-price {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-card .add-to-cart {
    background-color: #4CAF50; /* A green color for add to cart */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.product-card .add-to-cart:hover {
    background-color: #45a049;
}


.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-column {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.info-column h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-column ul li {
    margin-bottom: 10px;
}

.info-column ul li a {
    color: #555;
    font-size: 15px;
    transition: color 0.3s ease;
}

.info-column ul li a:hover {
    color: #a0a0a0;
}

.payment-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.payment-methods, .service-center, .social-media {
    flex: 1;
    min-width: 250px;
}

.payment-methods h3, .service-center h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.payment-methods img {
    width: 50px;
    margin-right: 10px;
}

.service-center a {
    color: #a0a0a0;
    font-size: 15px;
}

.social-media a {
    font-size: 24px;
    margin-right: 15px;
    color: #555;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #a0a0a0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden by default */
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.close-sidebar {
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #333;
}

.sidebar-menu {
    margin-top: 60px;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu li a {
    font-size: 18px;
    color: #333;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.sidebar-menu li a:hover {
    background-color: #f0f0f0;
}

.sidebar-menu li a.active {
    background-color: #f0f0f0;
    font-weight: bold;
}

.submenu-container {
    padding-left: 20px;
    margin-top: 10px;
}

.submenu {
    display: none; /* Hidden by default */
    margin-top: 10px;
}

.submenu.active {
    display: block;
}

.submenu li {
    margin-bottom: 8px;
}

.submenu li a {
    font-size: 16px;
    color: #666;
    padding: 8px 0;
    border-bottom: none;
    transition: color 0.2s ease;
}

.submenu li a:hover {
    color: #333;
    background-color: transparent;
}

.submenu ul { /* For nested sub-sub-menus */
    margin-top: 5px;
    padding-left: 15px;
}

.submenu ul li a {
    font-size: 14px;
    color: #888;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #333;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
    width: 80%;
    max-width: 600px;
}

.search-box input {
    flex-grow: 1;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-box button {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggested-searches {
    text-align: center;
    color: #666;
}

.suggested-searches h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.suggested-searches p {
    margin-bottom: 5px;
    font-size: 15px;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 2500;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-overlay.active {
    right: 0;
}

.close-cart {
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #333;
}

.cart-content {
    margin-top: 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.cart-content p {
    color: #666;
    font-size: 16px;
}

.cart-summary {
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: auto; /* Push to bottom */
}

.cart-summary p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-actions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.cart-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.view-bag-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.view-bag-btn:hover {
    background-color: #e0e0e0;
}

.checkout-btn {
    background-color: #a0a0a0; /* Grey from video */
    color: #fff;
}

.checkout-btn:hover {
    background-color: #888;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        flex-basis: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .main-nav {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .hero-section {
        height: 400px;
    }

    .btn-category {
        padding: 12px 30px;
        font-size: 18px;
        width: 200px;
    }

    .info-sections {
        grid-template-columns: 1fr;
    }

    .payment-social {
        flex-direction: column;
        align-items: center;
    }

    .payment-methods, .service-center, .social-media {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .sidebar {
        width: 250px;
    }

    .cart-overlay {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .hero-section {
        height: 300px;
    }

    .btn-category {
        font-size: 16px;
        padding: 10px 25px;
        width: 180px;
    }

    .about-us {
        padding: 20px;
    }

    .about-card h2 {
        font-size: 22px;
    }

    .info-column {
        padding: 20px;
    }

    .search-box input, .search-box button {
        font-size: 16px;
        padding: 12px;
    }
}

