:root {
    --primary: #1e40af;
    --accent: #10b981;
    --bg: #f8fafc;
    --text: #1e2937;
}

/* ================= GLOBAL RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================= BODY ================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
    background: var(--primary);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav {
    max-width: 1280px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: 2.4rem;
    font-weight: bold;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(rgba(30,64,175,0.9), rgba(30,64,175,0.9)),
    url('https://picsum.photos/id/1015/2000/800') center/cover;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ================= BUTTONS ================= */
.start-btn {
    padding: 18px 40px;
    font-size: 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}

.start-btn:hover {
    transform: scale(1.05);
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 1.5rem;
}

/* ================= CONTROLS ================= */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

input,
select {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex: 1;
    min-width: 300px;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 1.4rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

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

/* ================= BUTTONS ================= */
.add-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.2rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

/* ================= CART ================= */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.cart-total {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: right;
    margin: 2rem 0;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.close-btn {
    background: none;
    border: none;
    color: #e11d48;
    cursor: pointer;
    margin-top: 10px;
}

/* ================= PAGE SYSTEM (FIXED) ================= */

    .page {
    min-height: 100vh;
    display: none;
    overflow: hidden;
        opacity: 0;

}



.page.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}
/* ================= NAV LINKS ================= */
nav a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

nav a.active {
    background: rgba(255,255,255,0.3);
    border-radius: 8px;
    font-weight: bold;
}
html, body {
    height: 100%;
    overflow-x: hidden;
}