* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
}

header {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem 2rem;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

header p {
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 0.2em;
    margin-top: 0.2rem;
}

.admin-link {
    font-size: 0.8rem;
    color: white;
    opacity: 0.4;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.admin-link:hover {
    opacity: 0.8;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.product-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.buy-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.8rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.buy-btn:hover {
    background: #333;
}


#qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#qr-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#qr-box p {
    font-size: 1.1rem;
    font-weight: 500;
}

#qr-box button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

#donation-banner {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#donation-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.5rem 0;
}

#donation-banner p {
    opacity: 0.6;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.buy-btn.out-of-stock {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.bar-item.product { background: #f0f0f0; }
.bar-item.ops { background: #e8f4ff; }
.bar-item.donation { background: #e8fff0; }