:root {
    color-scheme: dark;
    --gold-main: #c5a059;
    --gold-dark: #a68545;
    --bg-dark: #121212;
    --row-bg: #1a1a1a;
    --border-color: #333333;
    --text-white: #ffffff;
    --text-muted: #888888;
}

.obsitos-container {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    background: var(--bg-dark);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Header Section */
.obsitos-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1544025162-d76694265947?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}

.obsitos-hero h1 {
    font-size: 2.5rem;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.obsitos-hero p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Order Rows */
.order-form-container {
    padding: 0 20px;
    margin-bottom: 120px;
}

.order-form-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-section-header {
    text-align: center;
    color: var(--gold-main);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.order-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px 140px;
    gap: 20px;
    align-items: center;
    background: var(--row-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.order-row:hover {
    border-color: var(--gold-main);
}

.order-day-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.order-dish-info {
    font-size: 1.1rem;
    font-weight: 400;
    min-width: 0; /* Prevent grid overflow */
}

.side-selector-wrapper select {
    max-width: 100%;
}

.order-price {
    font-weight: 600;
    color: var(--gold-main);
}

/* Quantity Selector */
.qty-control {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    background: #222;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--gold-main);
    color: #000;
}

.qty-input {
    width: 45px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Day Selector Buttons */
.day-selector-wrap {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.day-btn-label {
    cursor: pointer;
}
.day-btn-label input {
    display: none;
}
.day-btn-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #111;
    border: 1px solid #444;
    border-radius: 50%;
    font-size: 11px;
    color: #888;
    transition: all 0.2s;
    font-weight: 600;
}
.day-btn-label:hover span {
    border-color: var(--gold-main);
}
.day-btn-label input:checked + span {
    background: var(--gold-main);
    color: #000;
    border-color: var(--gold-main);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

/* Unified summary bar handles this now */

/* Unified checkout styles handled by .obs-order-section */

.personal-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-personal-data input {
    margin-bottom: 15px;
}

/* Modern Inputs */
input[type="text"], input[type="email"], input[type="tel"], textarea {
    background: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    padding: 12px 15px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--gold-main) !important;
    outline: none;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.2);
}

/* Phone Input Prefix Wrapper */
.phone-input-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s;
    height: 60px !important;
    width: 100%;
}

.phone-input-wrapper:focus-within {
    border-color: var(--gold-main) !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.country-selector {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-right: 1px solid rgba(197, 160, 89, 0.2) !important;
    height: 100% !important;
    cursor: default;
    user-select: none;
    flex-shrink: 0 !important;
}

.flag-icon {
    width: 22px !important;
    height: 15px !important;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.phone-prefix {
    color: #fff !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

.selector-arrow {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    fill: #888 !important;
    flex-shrink: 0;
}

.phone-input-wrapper input[type="tel"] {
    border: none !important;
    background: transparent !important;
    padding: 0 15px !important;
    flex: 1 !important;
    box-shadow: none !important;
    height: 100% !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.1rem !important;
}

/* Custom Radio Buttons */
.obsitos-radio-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.obsitos-radio-group label {
    flex: 1;
    background: #252525;
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.obsitos-radio-group input {
    display: none;
}

.obsitos-radio-group label:has(input:checked) {
    background: var(--gold-main);
    color: #000;
    border-color: var(--gold-main);
    font-weight: 600;
}

@media (max-width: 768px) {
    .obsitos-container {
        padding: 10px 0;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        overflow-x: hidden;
    }
    .order-form-container {
        padding: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .order-row {
        display: grid !important;
        grid-template-columns: 1fr 120px !important;
        padding: 15px !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .order-day-label, .order-dish-info {
        grid-column: span 2 !important;
    }
    .order-price {
        align-self: center !important;
        margin: 0 !important;
    }
    .qty-control {
        justify-self: end !important;
        margin: 0 !important;
    }
    .order-day-label {
        margin-bottom: 10px;
        font-weight: 700;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 5px;
    }
    .order-price {
        margin: 10px 0;
    }
    .qty-control {
        width: 120px;
        margin-top: 10px;
    }
/* Unified summary bar handles mobile now */
    .form-personal-data {
        margin: 20px 0 !important;
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 0;
    }
    .personal-data-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .obsitos-radio-group {
        flex-direction: column;
    }
}

/* --- PREMIUM MENU DESIGN --- */

.obsitos-premium-wrapper {
    background: transparent; /* Eltávolítva, hogy belesimuljon a te hátteredbe */
    padding: 20px 0;
    margin: 0;
    color: #fff;
}

.obsitos-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.premium-menu-card {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.premium-menu-card:hover {
    border-color: var(--gold-main);
}

.menu-card-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.menu-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.premium-menu-card:hover .menu-card-image {
    transform: scale(1.15);
}

.menu-card-content {
    padding: 20px 20px 15px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.menu-card-title {
    font-family: 'Playfair Display', serif !important;
    color: #C5A059 !important;
    font-size: 1.35rem; 
    margin-bottom: 12px;
    letter-spacing: 0.2px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none !important;
    word-wrap: normal;
    overflow-wrap: normal;
}

.menu-card-desc {
    color: #d1d1d1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 300;
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif !important;
}

/* --- PREMIUM CHECKOUT DESIGN --- */

.obsitos-premium-checkout-container,
.obsitos-order-form {
    margin-top: 80px;
    padding-bottom: 200px; /* Megnövelt hely az arany sávnak */
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    margin-top: auto;
}

.menu-card-price {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--gold-main) !important;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin: 0;
    margin-left: auto;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.menu-card-price::after {
    content: 'Ft';
    font-size: 0.9rem;
    color: var(--gold-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
}

.obsitos-qty-selector {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
}

.obsitos-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #222;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1rem;
}

.obsitos-qty-btn:hover {
    background: var(--gold-main);
    color: #000;
}

.obsitos-qty-num {
    width: 35px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
}

/* --- UNIFIED SUMMARY BAR (PREMIUM DESIGN) --- */
.obsitos-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(197, 160, 89, 0.4);
    padding: 15px 0;
    z-index: 10000;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8);
    animation: barSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes barSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.bar-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.bar-item {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
}

.bar-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.bar-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.bar-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #fff;
}

.bar-item.total .bar-label {
    color: rgba(197, 160, 89, 0.6);
}

.bar-item.total .bar-value {
    color: #C5A059;
    font-size: 1.6rem;
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Common button style for both forms in summary bar */
.obsitos-main-btn {
    background: linear-gradient(135deg, #C5A059 0%, #a6864a 100%);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
}

.obsitos-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(197, 160, 89, 0.4);
}

@media (max-width: 992px) {
    .bar-container {
        padding: 0 20px;
    }
    .bar-info {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .obsitos-summary-bar {
        padding: 12px 0;
        bottom: 60px; /* Megemelve a telefonsáv miatt */
        border-radius: 20px 20px 0 0; /* Egy kis kerekítés, hogy jobban nézzen ki lebegve */
        margin: 0 10px;
    }
    .bar-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .bar-info {
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }
    .bar-actions {
        width: 100%;
        justify-content: space-between;
    }
    .bar-actions button {
        flex: 1;
    }
    .bar-item:not(.total) {
        display: none; /* Mobilon csak a végösszeget mutatjuk, hogy ne legyen zsúfolt */
    }
}

/* --- UNIFIED CHECKOUT STYLES --- */
.obs-order-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
}

.obs-order-section h2, .obs-order-section h3 {
    font-family: 'Playfair Display', serif !important;
    color: #C5A059 !important;
    font-size: 1.6rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.obs-order-section label {
    display: block;
    color: #C5A059;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.obs-order-section input[type="text"],
.obs-order-section input[type="tel"],
.obs-order-section input[type="email"],
.obs-order-section textarea {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    border-radius: 12px !important;
    padding: 18px 15px !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: all 0.3s;
    font-size: 16px !important;
    height: auto !important;
    min-height: 60px !important;
}

.obs-order-section input:focus,
.obs-order-section textarea:focus {
    border-color: #C5A059;
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.obs-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.obsitos-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.obsitos-radio-label {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obsitos-radio-label input {
    display: none;
}

.obsitos-radio-label:has(input:checked) {
    background: rgba(197, 160, 89, 0.15);
    border-color: #C5A059;
    color: #C5A059;
    font-weight: 600;
}

@media (max-width: 768px) {
    .obsitos-checkout-wrapper, .obsitos-premium-checkout-container {
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 0 !important;
        overflow-x: hidden;
    }
    .order-controls {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
    }
    .order-price {
        margin: 0 !important;
        font-size: 1.2rem !important;
    }
    .qty-control {
        margin: 0 !important;
    }
    .obsitos-order-form {
        width: 100% !important;
        margin: 0 !important;
    }
    .obs-order-section {
        padding: 25px 15px !important;
        margin: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    .obs-form-grid {
        gap: 20px !important;
    }
    .obsitos-radio-label {
        min-width: 100%;
    }
    .personal-data-grid, .obs-form-grid {
        grid-template-columns: 1fr !important;
    }
}
.pack-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
}

/* PREMIUM MODAL SYSTEM */
.obs-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.obs-modal-overlay.active { opacity: 1; }

.obs-modal-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}
.obs-modal-overlay.active .obs-modal-card { transform: translateY(0); }

.obs-modal-card h3 {
    margin: 0 0 15px;
    color: #333;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
}
.obs-modal-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}
.obs-modal-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.obs-modal-btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    flex: 1;
}
.obs-modal-btn-confirm {
    background: #c19b67;
    color: #fff;
}
.obs-modal-btn-confirm:hover { background: #a67e4e; transform: translateY(-2px); }

.obs-modal-btn-cancel {
    background: #eee;
    color: #666;
}
.obs-modal-btn-cancel:hover { background: #ddd; }
