/* Reset Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    user-select: none; /* Prevent Copy-Paste */
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
}

/* Loading Spinner Styles */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it sits above all other content */
    visibility: visible;
}

.spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the spinner when content is loaded */
.loading-spinner.hide {
    visibility: hidden;
}


/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 15px 20px;
    color: white;
    position: relative;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Menu Button */
.menu-button {
    background: none;
    color: yellow;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: block;
    z-index: 2000;
}

/* Navigation Menu */
.menu-right {
    position: fixed;
    top: 0;
    right: -250px; /* Initially Hidden */
    width: 250px;
    height: 100%;
    background: #444;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

/* Show Menu */
.menu-right.show {
    right: 0;
}

/* Menu List */
.menu-right ul {
    list-style: none;
    padding: 0;
}

.menu-right ul li {
    padding: 12px;
    text-align: center;
}

.menu-right ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: 0.3s;
}

.menu-right ul li:hover {
    background: #ffcc00;
    color: #333;
}

/* Banner Section */
.banner {
    width: 100%;
    display: flex;
    justify-content: center; /* Centering */
    align-items: center;
    margin-top: 20px;
}

/* Slider Container */
.slider {
    width: 90%; /* 90% Width for Equal Margins */
    max-width: 1200px; /* Max width */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px; /* Ensure Parent is Rounded */
}

/* Banner Image */
.slider img {
    width: 100%;
    height: auto;
    max-height: 320px;
    display: block;
    border-radius: 20px; /* Ensure Image Corners are Rounded */
    object-fit: cover; /* Ensures Full Image Shows without Cropping */
    transition: opacity 0.5s ease-in-out;
}

/* Category Text Section */
.category-text {
    text-align: center;
    font-size: 24px;
    color: #333;
    font-weight: bold;
    padding: 20px;
    margin-top: 20px;
}

/* Animation for Moving Text Left and Right */
.category-text h2 {
    font-size: 32px;
    font-weight: bold;
    animation: moveText 25s ease-in-out infinite; /* 18 seconds for one complete cycle */
}

/* Left to Right and Right to Left Animation */
@keyframes moveText {
    0% {
        transform: translateX(-100%); /* Starts from the left */
    }
    25% {
        transform: translateX(0%); /* Reaches the center */
    }
    50% {
        transform: translateX(100%); /* Moves to the right */
    }
    75% {
        transform: translateX(0%); /* Moves back to the center */
    }
    100% {
        transform: translateX(-100%); /* Moves back to the left */
    }
}

/* Optional Styling for the Text */
.category-text p {
    font-size: 18px;
    color: #666;
}

/* Categories Section */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

/* Individual Category Style */
.category {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 45%; /* Default: 2 per row */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Rounded Images */
.category img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Keeps images square */
    object-fit: cover;
    border-radius: 50%; /* Makes the image fully rounded */
}

/* Category Text */
.category p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Hover Effects */
.category:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (min-width: 600px) {
    .category {
        width: 30%; /* 3 per row on tablets */
    }
}

@media (min-width: 900px) {
    .category {
        width: 22%; /* 4 per row on larger screens */
    }
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 14px;
    border-top: 2px solid #ffcc00;
}

footer p {
    margin: 5px 0;
}

/* Copyright Protection */
body::after {
    content: "© 2025 M/S ZEENAT TRADER'S - All Rights Reserved. Unauthorized reproduction is prohibited.";
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 999;
}

/* Prevent Copy-Paste */
body {
    user-select: none;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #555;
}
