/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    text-align: center;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
}

/* Navbar */
.navbar {
    background-color: rgba(34, 34, 34, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    gap: 20px;
    transition: background 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(34, 34, 34, 0.6);
}

.navbar a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 20px;
    transition: color 0.3s, transform 0.3s;
    border-radius: 8px;
}

.navbar a:hover {
    color: #f4a261;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 60px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle:hover {
    background-color: #d43f3f;
    transform: scale(1.1);
}

/* Header */
header {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    padding: 60px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Card Sections */
.category, .featured {
    margin: 40px auto;
    max-width: 1200px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    animation: slideUp 0.5s ease-in-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    max-width: 300px;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Buy Button */
.buy-btn, .dark-mode-toggle {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.buy-btn:hover, .dark-mode-toggle:hover {
    background-color: #d43f3f;
    transform: scale(1.1);
}

/* Sticky Footer */
footer {
    background-color: #222;
    color: white;
    padding: 15px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1e1e1e;
    color: #fff;
}

.dark-mode .category, 
.dark-mode .featured, 
.dark-mode .card {
    background: #2a2a2a;
    color: #fff;
    box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.1);
}

.dark-mode .buy-btn, 
.dark-mode .dark-mode-toggle {
    background-color: #ff6b6b;
}

.dark-mode .buy-btn:hover, 
.dark-mode .dark-mode-toggle:hover {
    background-color: #d43f3f;
}
