/* TEMA 15 (VIP/BAR) - CSS */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-main: #f0f0f0;
    --text-muted: #888;
    --gold: #D4AF37;
    --gold-dim: #997d26;
    --border-color: #333;
    --font-head: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* LOADER */
#loader-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-brand {
    font-family: var(--font-head);
    font-size: 2rem;
    letter-spacing: 4px;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.gold-text {
    color: var(--gold);
}

.loader-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto;
    animation: loadExpand 2s infinite ease-in-out;
}

@keyframes loadExpand {

    0%,
    100% {
        width: 10px;
        opacity: 0.5;
    }

    50% {
        width: 80px;
        opacity: 1;
    }
}

.hidden {
    display: none;
}

/* HERO */
.magazine-cover {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.vol-text {
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

#restaurant-name {
    font-family: var(--font-head);
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.vip-separator {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto;
}

#restaurant-desc {
    font-weight: 300;
    letter-spacing: 1px;
    color: #ccc;
}

.scroll-wrapper {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-txt {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* STICKY NAV */
#sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: all 0.3s;
}

#sticky-nav.scrolled {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-brand {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
}

#menu-toggle-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-body);
}

/* OVERLAY MENU */
#index-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    transform: translateY(-100%);
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#index-overlay.active {
    transform: translateY(0);
}

#close-index-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.overlay-title {
    color: var(--gold);
    letter-spacing: 3px;
    font-family: var(--font-head);
    margin-bottom: 30px;
}

.index-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
}

.index-item {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    transition: color 0.3s;
}

.index-item .idx-num {
    color: var(--gold-dim);
    font-size: 0.8rem;
    margin-right: 10px;
}

.index-item:hover {
    color: var(--gold);
}

.index-footer {
    position: absolute;
    bottom: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* CATEGORY & PRODUCTS */
.vip-category-section {
    margin-bottom: 2px;
}

.vip-cat-header {
    height: 150px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-cat-inner {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.vip-cat-num {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 5px;
}

.vip-cat-header h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.vip-cat-icon {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

.products-grid {
    background: var(--bg-card);
    padding: 20px;
    border-bottom: 1px solid #222;
}

/* PRODUCT CARD */
.vip-product-card {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
}

.vip-product-card:last-child {
    border-bottom: none;
}

.vip-prod-row {
    display: flex;
    gap: 15px;
    /* Added gap */
    align-items: flex-start;
}

.vip-prod-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.vip-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-prod-info {
    flex: 1;
}

.vip-prod-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vip-prod-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: #fff;
}

.vip-line-connect {
    height: 1px;
    background: #333;
    flex: 1;
    margin: 0 10px;
    opacity: 0.5;
}

.vip-prod-price {
    font-family: var(--font-body);
    color: var(--gold);
    font-weight: 500;
    font-size: 1rem;
}

.vip-prod-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 300;
    padding-right: 15px;
}

.stock-out {
    opacity: 0.5;
    pointer-events: none;
}

.vip-stock-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 2px 6px;
    font-size: 0.6rem;
}

/* FOOTER */
.vip-footer {
    padding: 40px 20px;
    text-align: center;
    background: #050505;
    color: #444;
}

.footer-logo {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--gold);
}

.credits {
    font-size: 0.7rem;
    color: #333;
    letter-spacing: 1px;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.visible {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

@media (min-width: 768px) {
    .modal-card {
        height: auto;
        max-height: 90vh;
        border-radius: 8px;
        border: 1px solid #333;
    }
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-img-wrap {
    height: 40vh;
    position: relative;
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.modal-body {
    padding: 30px;
    flex: 1;
    text-align: center;
}

.modal-cat-tag {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

#modal-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin: 10px 0;
    color: #fff;
}

#modal-desc {
    color: #aaa;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
}

.opt-section {
    margin-top: 25px;
    text-align: left;
}

.opt-section h4 {
    color: var(--gold-dim);
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.opt-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    color: #ccc;
}

.opt-item:hover {
    color: #fff;
}

.opt-item.selected {
    color: var(--gold);
}

.opt-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-radio,
.icon-check {
    width: 16px;
    height: 16px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-check {
    border-radius: 4px;
}

.opt-item.selected .icon-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    display: block;
}

.opt-item.selected .icon-check {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.vip-price {
    font-size: 1.5rem;
    color: var(--gold);
    font-family: var(--font-head);
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* SERVICE FAB (Left) */
#service-fab-container {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 1000;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
}

#service-fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#service-fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fab-item {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.fab-item:hover {
    background: #333;
    border-color: var(--gold);
    color: var(--gold);
}

/* POPUP REKLAM ADDITIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-open #popup-modal-content {
    transform: scale(1) !important;
    opacity: 1 !important;
}