@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #41D2EF;      /* Cyan Blue */
    --accent: #ffcc00;
    --bg-color: #E1E1E1;    /* Light Grey */
    --text-color: #222;
    --card-bg: #ffffff;
    --nav-bg: #1a1a1a;
}

body.dark-theme {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --card-bg: #1e1e1e;
    --nav-bg: #000000;
}

* { box-sizing: border-box; transition: background 0.4s ease, color 0.4s ease; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #2b2b2b 25%, #7a7a7a 50%, #1a1a1a 75%, #000000 100%);
    background-attachment: fixed;
    color: #ffffff; /* Default text to white for dark theme */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

nav {
    background: var(--nav-bg);
    padding: 15px 40px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav ul li { margin-left: 20px; }
nav ul li a { color: white; text-decoration: none; font-weight: 600; font-size: 14px; text-transform: uppercase; }
nav ul li a:hover { color: var(--primary); }

.banner-wrapper { padding: 20px 5%; margin-top: 10px; }
.hero-slider {
    height: 45vh;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.mySlides { display: none; height: 100%; position: absolute; width: 100%; animation: darazSlide 1s cubic-bezier(0.23, 1, 0.32, 1); }
.mySlides img { width: 100%; height: 100%; object-fit: cover; filter: brightness(50%); }

@keyframes darazSlide {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0%); opacity: 1; }
}

/* Inventory Grid - Balanced 4 per row on large screens */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 5px solid var(--primary);
}

.product-card:hover { transform: translateY(-10px); }
.product-image { height: 160px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 15px; }
.product-info h3 { margin: 0; font-size: 1.1rem; color: var(--primary); }
.price-tag { font-weight: 700; color: #333; font-size: 1.1rem; display: block; margin-top: 8px; }
body.dark-theme .price-tag { color: var(--primary); }

section { padding: 80px 10%; scroll-margin-top: 90px; }
.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.info-card { background: var(--card-bg); padding: 35px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border-left: 8px solid var(--primary); margin-top: 20px; }

input { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ddd; border-radius: 8px; background: transparent; color: inherit; }
button { background: var(--primary); color: #000; padding: 14px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; }
button:hover { filter: brightness(1.1); letter-spacing: 1px; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #444; }
th { background-color: var(--nav-bg); color: var(--primary); font-weight: 600; }
tr:hover { background-color: rgba(65, 210, 239, 0.1); }


.theme-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.theme-switch input { display: none; }
.slider { background: #333; cursor: pointer; position: absolute; top: 0; left: 0; right: 0; bottom: 0; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: "☀️"; font-size: 14px; display: flex; align-items: center; justify-content: center; height: 18px; width: 18px; left: 4px; bottom: 4px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); content: "🌙"; }