:root {
    --primary: #2e7d32;
    --accent: #f9a825;
    --bg: #f5f5f5;
    --text: #222;
    --muted: #777;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    background: var(--bg);
    color: var(--text);
}

/* Container */
.container {
    max-width: 640px;
    margin: auto;
    padding: 16px;
}

/* Header */
.header {
    margin-bottom: 16px;
}

.header h1 {
    font-size: 22px;
    margin: 0 0 6px 0;
}

.header p {
    font-size: 14px;
    color: var(--muted);
}

/* Card */
.card {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Variety Row */
.variety {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variety-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variety-name {
    font-weight: 600;
}

.stock {
    font-size: 12px;
    color: var(--muted);
}

/* Counters */
.counter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.counter input {
    width: 60px;
    padding: 6px;
    text-align: center;
}

/* Sticky Bar */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    font-size: 16px;
    font-weight: bold;
}

.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.btn:disabled {
    background: #ccc;
}

/* Section Titles */
.section-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Sold Out */
.sold-out {
    color: red;
    font-size: 13px;
}

/* QR Box */
.qr-box {
    text-align: center;
    padding: 16px;
}

.qr-box img {
    max-width: 220px;
}

/* Mobile spacing fix */
body::after {
    content: "";
    display: block;
    height: 80px;
}
