:root {
    --bg: #f6f7fb;
    --text: #1a1a1a;
    --card: #ffffff;
    --primary: #4f46e5;
    --accent: #6366f1;
}

body.dark {
    --bg: #0f172a;
    --text: #f1f5f9;
    --card: #1e293b;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
}

/* NAVBAR */
.navbar {
    background: var(--card);
    border-radius: 12px;
    margin: 10px;
    padding: 12px 20px;
}

.navbar input {
    border-radius: 25px;
    padding: 10px 15px;
}

/* MENU */
.menu span {
    margin-right: 20px;
    cursor: pointer;
    font-weight: 500;
}

.menu span:hover {
    color: var(--primary);
}


/* PRODUCT CARD */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: none;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    color: var(--text);
}

body.dark .card {
    color: #fff;
}

.card h6,
.card p,
.card small {
    color: inherit;
}

.card img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.btn-success {
    border-radius: 25px;
    background: var(--primary);
    border: none;
}

.btn-success:hover {
    background: var(--accent);
}

/* CART */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart {
    position: fixed;
    right: -450px;
    top: 0;
    width: 420px;
    height: 100%;
    background: var(--card);
    padding: 30px;
    transition: 0.4s;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.cart.active {
    right: 0;
}

.cart-item {
    background: var(--bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.241);
}

.cart-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-btn {
    position: relative;
    background: #facc15;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.cart-btn i {
    font-size: 22px;
}

.cart-btn span {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 50%;
}

.remove-btn {
    background: #ef4444;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 2px 5px;
    cursor: pointer;
}

.qty-btn {
    border: none;
    background: #ddd;
    border-radius: 5px;
    padding: 2px 8px;
    cursor: pointer;
}

body.dark .qty-btn {
    background: #334155;
    color: white;
}

.toggle {
    width: 55px;
    height: 28px;
    background: #ccc;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
}

.toggle::before {
    content: "";
    width: 24px;
    height: 24px;
    background: white;
    position: absolute;
    top: 2px;
    left: 3px;
    border-radius: 50%;
    transition: 0.4s;
}

body.dark .toggle {
    background: var(--primary);
}

body.dark .toggle::before {
    transform: translateX(27px);
}