:root {
    --primary: #6C5DD3;
    --primary-hover: #5b4cc4;
    --background: #1f1d2b;
    --sidebar-bg: #252836;
    --card-bg: #252836;
    --text-main: #ffffff;
    --text-muted: #808191;
    --accent-orange: #ff7551;
    --success: #4ecb71;
    --radius: 16px;
    --font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

/* Layout */
.app-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--sidebar-bg);
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    position: sticky;
    top: 10px;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background: rgba(255, 117, 81, 0.1);
    color: white;
    border: 1px solid rgba(255, 117, 81, 0.5);
}

.btn-accent:hover {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 117, 81, 0.3);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Shadow for the button itself */
}

/* Image inside cart button */
.floating-cart img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.floating-cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-orange);
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Cards & Grid */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 180px;
    background-color: #333;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
}

.product-title {
    font-size: 18px;
    margin: 5px 0;
    font-weight: 600;
}

.product-price {
    font-size: 20px;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 8px;
    background: #393c49;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 10px;
    width: fit-content;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #1f1d2b;
    border: 1px solid #393c49;
    border-radius: 8px;
    color: white;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(108, 93, 211, 0.2) 0%, rgba(37, 40, 54, 0) 100%);
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }

    .navbar {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    .nav-content {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        text-align: center;
    }

    .nav-content.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }

    .grid-products {
        grid-template-columns: 1fr;
        /* Single column layout on mobile */
        gap: 20px;
    }

    .form-container {
        margin: 20px auto;
        padding: 20px;
    }
}

/* Payment Page Specifics */
.payment-container {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    width: 100%;
}

.summary-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.redemption-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #1f1d2b;
    border: 1px solid #353a40;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.radio-option:hover {
    border-color: var(--primary);
}

.radio-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .payment-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .summary-card,
    .redemption-card {
        padding: 20px;
    }

    .radio-option {
        font-size: 14px;
    }
}