body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

header {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    text-align: center;
    padding: 60px 20px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
header {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    text-align: center;
    padding: 60px 20px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
    animation: grainMove 6s steps(10) infinite;
}

header * {
    position: relative;
    z-index: 2;
}

@keyframes grainMove {
    0% { transform: translate(0,0); }
    100% { transform: translate(-10%, -10%); }
}


header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 14px;
}


header p {
    font-size: 1.05rem;
    opacity: 0.75;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}
header::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00eaff, #1a73e8);
    margin: 25px auto 0;
    border-radius: 10px;
}





#total-section {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

#total-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
}

#total {
    color: #0f9d58;
    font-weight: 700;
    margin-left: 8px;
}


#items-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}



footer {
    background-color: #111; 
    color: #f5f5f5; 
    padding: 40px 20px 20px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer-content p {
    font-size: 0.95rem;
    color: #ccc;
    max-width: 500px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #999;
}


@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content p {
        max-width: 100%;
    }
}
.footer-social {
    margin-top: 20px;
    text-align: center;
}

.footer-social a {
    display: inline-block;
    margin: 0 5px;
    transition: transform 0.2s ease;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 50px;
    height: 50px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}



@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    #total-section {
        font-size: 1.2rem;
    }

    .item {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .item input {
        margin-top: 10px;
    }
}
#congrats {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 2rem;
    color: #1a73e8;
    z-index: 1000;
}
#reset-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#reset-btn:hover {
    background: #000;
    transform: scale(1.05);
}

.item-card {
    position: relative;
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}


.item-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transition: transform 0.4s ease;
}

.item-card:hover .item-image {
    transform: scale(1.05);
}


.item-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.2)
    );
}


.item-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    padding-bottom: 22px;
    text-align: center;
}



.item-name {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.item-price {
    color: #00eaff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    color: #00eaff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.item-quantity {
    width: 90px;
    padding: 8px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    text-align: center;
    margin-top: 8px;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 14px;

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;

    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 1.4rem;
    font-weight: bold;

    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.qty-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0,234,255,0.8);
}

.qty-value {
    min-width: 26px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}
#money-bar-container {
    width: 320px;
    height: 12px;
    background: rgba(0,0,0,0.15);
    border-radius: 20px;
    overflow: hidden;
}

#money-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00eaff, #1a73e8);
    border-radius: 20px;
    transition: width 0.4s ease;
}

#remaining-money {
    font-size: 0.9rem;
    opacity: 0.7;
}

#limit-badge {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 320px;
    width: 90%;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(12px); 
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 20px;
    z-index: 1000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0;
    transition: all 0.4s ease;
}


#limit-badge.show {
    opacity: 1;
}


#limit-badge strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}


#limit-badge div {
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    background: rgba(255,255,255,0.05); 
    padding: 10px;
    border-radius: 12px;
}


#limit-badge div div {
    padding: 3px 0;
    font-size: 0.9rem;
}

.limit-reached .item-card {
    filter: grayscale(70%) blur(3px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

#limit-badge {
    display: none;
}

#limit-badge.show {
    display: block;
}



@media (max-width: 600px) {
   
    header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    header p {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto;
    }

    
    #total-section {
        flex-direction: column;
        gap: 12px;
        padding: 12px 10px;
    }

    
    .item-card {
        height: auto;
        min-height: 280px;
    }

    .item-content {
        padding-bottom: 16px;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .quantity-control {
        gap: 10px;
        padding: 4px 10px;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .qty-value {
        font-size: 1rem;
    }

    
    #limit-badge {
        width: 90%;
        font-size: 0.95rem;
        padding: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    #limit-badge div {
        font-size: 0.85rem;
    }

    
    body.limit-reached .item-card {
        filter: grayscale(0.5) blur(2px);
    }
}
#about-terms {
    background: rgba(255, 255, 255, 0.95); 
    padding: 24px 20px;
    color: #222;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 20px; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#about-terms h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #444;
}

#about-terms p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}




