/* =============================================
   style.css – Restoran Gradina
   ============================================= */

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

:root {
    --green:      #c89820; 
    --green-dark: #a67c1a;
    --green-light: rgba(200, 152, 32, 0.1);
    --gold:       #c89820;
    --white:      #ffffff;
    --bg:         #f7f5f0;
    --card-bg:    #ffffff;
    --text:       #2c2c2c;
    --text-light: #666;
    --border:     #e0dbd0;
    --shadow:     0 2px 12px rgba(0,0,0,0.08);
    --radius:     14px;
    --nav-h:      56px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), url('images/pozadina.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    max-width: 620px;
    margin: 0 auto;
    padding-bottom: 120px;
}

/* ---- HEADER ---- */
.header {
    background: transparent;
    padding: 24px 20px 16px;
    text-align: center;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---- UNOS PODATAKA (PROZIRNO I ZLATNO) ---- */
#table-input {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold) !important;
    border-radius: 14px;
    margin: 15px;
    padding: 20px !important;
}

#table-input label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--gold) !important;
}

#table-input input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: left;
    border: 2px solid var(--gold) !important;
    border-radius: 10px;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-weight: 700;
    margin: 0 auto;
    display: block;
}

#table-error {
    color: #ffcccc;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

/* ---- STICKY NAVIGACIJA (PROZIRNA) ---- */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--gold);
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    flex: 0 0 auto;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    letter-spacing: 0.3px;
}

.nav-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 700;
}

/* ---- SADRŽAJ MENIJA ---- */
.menu-content {
    padding: 0 14px;
}

.menu-section {
    padding-top: 28px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0 10px 4px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- KARTICA JELA ---- */
.item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.item-info {
    padding: 14px 16px 16px;
    color: var(--text);
}

.item-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.ingredients {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 14px;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

/* ---- KOLIČINA + DODAJ ---- */
.qty-add {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-control input[type="number"] {
    width: 40px;
    height: 34px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.add-btn {
    padding: 8px 18px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    height: 34px;
}

/* ---- SEKCIJA PIĆA (KOMPLETNO VRAĆENO) ---- */
.drink {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}

.drink-name {
    font-size: 15px;
    font-weight: 600;
}

.drink-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-drinks-header {
    padding-top: 36px;
}

.section-title--drinks {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 10px;
}

/* ---- KORPA I OSTALO ---- */
.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    z-index: 800;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 620px;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    z-index: 1100;
    transition: transform 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
}

.cart-panel.open { transform: translateX(-50%) translateY(0); }

.send-order-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
}