/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    padding-top: 100px; /* Will be adjusted dynamically by JS */
}

/* Grid Pattern Overlay */
body.bg-pattern-3 {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(0,0,0,0.03)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 30px;
}

/* ==================== STICKY HEADER ==================== */
.menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-bottom: 2px solid #000000;
    transition: transform 0.3s ease;
    max-height: 100px;
    min-height: 100px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    box-sizing: border-box;
}

.lang-switcher {
    background: white;
    border: 2px solid #e7472e;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lang-switcher:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(231, 71, 46, 0.3);
}

.store-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.header-text {
    /* Default styles - will be overridden by layouts */
}

.menu-header h1,
#store-name {
    font-size: 1.5rem;
    color: #e7472e;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle,
#store-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

/* ==================== HEADER LAYOUTS ==================== */

/* Layout 1: Όνομα αριστερά - Logo κέντρο - Υπότιτλος δεξιά */
.menu-header.layout-1 .header-container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.menu-header.layout-1 .header-text {
    display: contents;
}

.menu-header.layout-1 #store-name {
    grid-column: 1;
	grid-row: 1;
    justify-self: start;
    align-self: center;
    margin: 0;
}

.menu-header.layout-1 .store-logo {
    grid-column: 2;
    justify-self: center;
    align-self: center;
}

.menu-header.layout-1 #store-subtitle {
    grid-column: 3;
	grid-row: 1;
        align-self: center;
    margin: 0;
    text-align: right;
}

/* Layout 2: Logo αριστερά, όνομα κέντρο, υπότιτλος δεξιά */
.menu-header.layout-2 .header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.menu-header.layout-2 .header-text {
    display: contents;
}

.menu-header.layout-2 .store-logo {
    grid-column: 1;
    align-self: center;
}

.menu-header.layout-2 #store-name {
    grid-column: 2;
    text-align: center;
    justify-self: center;
    align-self: center;
    margin: 0;
}

.menu-header.layout-2 #store-subtitle {
    grid-column: 3;
    text-align: right;
    justify-self: end;
    align-self: center;
    margin: 0;
}

/* Layout 3: Logo αριστερά, όνομα+υπότιτλος δεξιά στοιβαγμένα */
.menu-header.layout-3 .header-container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 15px;
    row-gap: 5px;
}

.menu-header.layout-3 .header-text {
    display: contents;
}

.menu-header.layout-3 .store-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}

.menu-header.layout-3 #store-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
}

.menu-header.layout-3 #store-subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
}

/* Logo Sizes for Customer Page */
.menu-header.logo-size-small .store-logo {
    width: 60px !important;
    height: 60px !important;
}

.menu-header.logo-size-medium .store-logo {
    width: 100px !important;
    height: 100px !important;
}

.menu-header.logo-size-large .store-logo {
    width: 150px !important;
    height: 150px !important;
}

.menu-header.logo-size-xlarge .store-logo {
    width: 200px !important;
    height: 200px !important;
}

/* Store Name Sizes for Customer Page */
.menu-header.name-size-small h1,
.menu-header.name-size-small #store-name {
    font-size: 1.1rem !important;
}

.menu-header.name-size-medium h1,
.menu-header.name-size-medium #store-name {
    font-size: 1.5rem !important;
}

.menu-header.name-size-large h1,
.menu-header.name-size-large #store-name {
    font-size: 2rem !important;
}

.menu-header.name-size-xlarge h1,
.menu-header.name-size-xlarge #store-name {
    font-size: 2.5rem !important;
}

/* ==================== FULLSCREEN LOADING ==================== */
.fullscreen-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.fullscreen-loading.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-large {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner-large::before,
.spinner-large::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.spinner-large::before {
    width: 50px;
    height: 50px;
    border: 3px solid #e5e5e5;
}

.spinner-large::after {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: #e7472e;
    border-right-color: #e7472e;
    animation: spinSmooth 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinSmooth {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loading-text {
    font-size: 1rem;
    margin: 0;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
}

.loading-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e7472e, #ff6b6b);
    animation: progressAnimation 2s ease-in-out infinite;
    transform-origin: left;
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%) scaleX(0.3);
    }
    50% {
        transform: translateX(0%) scaleX(0.7);
    }
    100% {
        transform: translateX(100%) scaleX(0.3);
    }
}


/* ==================== LOADING SPINNER ==================== */
.loading {
    text-align: center;
    padding: 50px 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e7472e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 0.95rem;
}

/* ==================== CATEGORIES FILTER ==================== */
.categories-container {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: #e7472e;
    color: #e7472e;
}

.category-btn.active {
    background: #e7472e;
    color: white;
    border-color: #e7472e;
}

/* ==================== MENU ITEMS ==================== */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: row;
}

.menu-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.menu-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}

/* Menu item without image */
.menu-item.no-image {
    display: flex;
    flex-direction: column;
}

.menu-item.no-image img {
    display: none;
}

.menu-item-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item .product-name-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.menu-item h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.menu-item .category-label {
    display: inline-block;
    background: #fff3f0;
    color: #e7472e;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.menu-item .description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e7472e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Allergen Badges */
.allergen-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.allergen-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.allergen-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 6px;
}

.allergen-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.product-allergens-small {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
}

/* Product Extras */
.product-extras {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 3px solid #e7472e;
}

.extras-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.extra-item {
    color: #555;
    font-size: 0.85rem;
    margin: 3px 0;
    display: inline-block;
    white-space: nowrap;
    margin-right: 8px;
}

.extra-price {
    color: #e7472e;
    font-weight: 600;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    background: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 0.95rem;
    color: #999;
}

/* ==================== FOOTER ==================== */
.menu-footer {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #666;
}

/* ==================== ADMIN STYLES ==================== */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #764ba2;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #764ba2;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #764ba2;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5a3779;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-edit {
    background: #ffc107;
    color: #333;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-edit:hover {
    background: #e0a800;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 15px;
}

/* ==================== ADMIN DASHBOARD ==================== */
.admin-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    color: #764ba2;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: white;
    border: 2px solid #764ba2;
    color: #764ba2;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.tab-btn.active {
    background: #764ba2;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ==================== ADMIN LIST ==================== */
.admin-list {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-item:last-child {
    border-bottom: none;
}

.admin-item-info {
    flex: 1;
}

.admin-item-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.admin-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 20px auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    color: #764ba2;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
}

/* ==================== SETTINGS PAGE ==================== */
.settings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.settings-form-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.settings-preview-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.preview-container {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
}

.preview-container-full {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    max-height: 700px;
    overflow-y: auto;
}

.categories-preview {
    display: flex;
    gap: 10px;
    padding: 15px 10px;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    margin-top: 15px;
}

.category-btn-preview {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: default;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-btn-preview.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #764ba2;
}

.products-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 10px;
}

.menu-item-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.menu-item-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.menu-item-content-preview {
    padding: 12px;
}

.category-label-preview {
    display: inline-block;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item-preview h3 {
    font-size: 1rem;
    margin: 5px 0;
    color: #333;
}

.menu-item-preview .description {
    font-size: 0.8rem;
    color: #666;
    margin: 5px 0;
}

.menu-item-preview .price {
    font-size: 1rem;
    font-weight: 700;
    color: #e7472e;
    margin-top: 8px;
}

.header-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 100px;
    min-height: 100px;
}

.preview-header-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    box-sizing: border-box;
}

.preview-text h1 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.preview-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.2;
}

#preview-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

/* ==================== PREVIEW LAYOUTS ==================== */

/* Layout 1: Όνομα αριστερά - Logo κέντρο - Υπότιτλος δεξιά */
.header-preview.layout-1 .preview-header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.header-preview.layout-1 .preview-text {
    display: contents;
}

.header-preview.layout-1 #preview-name {
    grid-column: 1;
	grid-row: 1;
    justify-self: start;
    align-self: center;
    margin: 0;
}

.header-preview.layout-1 #preview-logo {
    grid-column: 2;
    justify-self: center;
    align-self: center;
}

.header-preview.layout-1 #preview-subtitle {
    grid-column: 3;
	grid-row: 1;    
    align-self: center;
    margin: 0;
    text-align: right;
}

/* Layout 2: Logo αριστερά, όνομα κέντρο, υπότιτλος δεξιά */
.header-preview.layout-2 .preview-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.header-preview.layout-2 .preview-text {
    display: contents;
}

.header-preview.layout-2 #preview-logo {
    grid-column: 1;
    align-self: center;
}

.header-preview.layout-2 #preview-name {
    grid-column: 2;
    text-align: center;
    justify-self: center;
    align-self: center;
    margin: 0;
}

.header-preview.layout-2 #preview-subtitle {
    grid-column: 3;
    text-align: right;
    justify-self: end;
    align-self: center;
    margin: 0;
}

/* Layout 3: Logo αριστερά, όνομα+υπότιτλος δεξιά στοιβαγμένα */
.header-preview.layout-3 .preview-header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 15px;
    row-gap: 5px;
    padding: 20px;
}

.header-preview.layout-3 .preview-text {
    display: contents;
}

.header-preview.layout-3 #preview-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
}

.header-preview.layout-3 #preview-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
}

.header-preview.layout-3 #preview-subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
}

/* Layout 4: Όνομα αριστερά - Logo κέντρο - Υπότιτλος δεξιά */
.header-preview.layout-4 .preview-header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.header-preview.layout-4 .preview-text {
    display: contents;
}

.header-preview.layout-4 #preview-name {
    grid-column: 1;
    justify-self: start;
    align-self: center;
    margin: 0;
}

.header-preview.layout-4 #preview-logo {
    grid-column: 2;
    justify-self: center;
    align-self: center;
}

.header-preview.layout-4 #preview-subtitle {
    grid-column: 3;
    justify-self: start;
    align-self: center;
    margin: 0;
}

/* Logo Sizes */
.logo-size-small #preview-logo {
    width: 60px !important;
    height: 60px !important;
}

.logo-size-medium #preview-logo {
    width: 100px !important;
    height: 100px !important;
}

.logo-size-large #preview-logo {
    width: 150px !important;
    height: 150px !important;
}

.logo-size-xlarge #preview-logo {
    width: 200px !important;
    height: 200px !important;
}

/* Preview Name Sizes */
.name-size-small #preview-name {
    font-size: 1.1rem !important;
}

.name-size-medium #preview-name {
    font-size: 1.5rem !important;
}

.name-size-large #preview-name {
    font-size: 2rem !important;
}

.name-size-xlarge #preview-name {
    font-size: 2.5rem !important;
}

#preview-logo {
    object-fit: contain;
    border-radius: 8px;
}

/* ==================== SEARCH BAR ==================== */
.search-container {
    margin-bottom: 20px;
}

.search-and-lang-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #e7472e;
    box-shadow: 0 2px 8px rgba(231, 71, 46, 0.2);
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #e7472e;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    line-height: 1;
}

.clear-search-btn:hover {
    background: #c93d28;
    transform: scale(1.1);
}

.clear-search-btn:active {
    transform: scale(0.95);
}

.home-btn {
    position: absolute;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #764ba2;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.home-btn:hover {
    background: #5a3a7f;
    transform: scale(1.05);
}

.home-btn:active {
    transform: scale(0.95);
}

.home-btn svg {
    width: 20px;
    height: 20px;
}

/* Adjust search input padding when home button is visible */
.search-wrapper:has(.home-btn[style*="display: flex"]) .search-input,
.search-wrapper:has(.home-btn[style*="display:flex"]) .search-input {
    padding-left: 60px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .search-and-lang-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .lang-switcher {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* ==================== SOCIAL LINKS ==================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    
}

.social-icon {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: #e7472e;
    color: white;
    border-color: #e7472e;
    transform: translateY(-2px);
}

/* ==================== CATEGORIES GRID MODE ==================== */
.categories-grid-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.category-grid-item {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.category-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.category-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.category-grid-bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.category-grid-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

.category-grid-content h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-item-count {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Category Navigation Bar */
.category-nav-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow-x: auto;
}

.category-nav-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.category-nav-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-nav-circle.selected {
    width: 70px;
    height: 70px;
    border: 3px solid #e7472e;
    cursor: default;
}

.category-nav-circle:not(.selected):hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.category-nav-name {
    margin-top: 8px;
    font-weight: 600;
    color: #e7472e;
    font-size: 0.85rem;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-nav-scrollable {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
    flex: 1;
}

.category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.category-nav-item .category-nav-circle {
    width: 70px;
    height: 70px;
}

.category-nav-name-small {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Product List View */
.category-products-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
        column-gap: 15px; 
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.product-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-list-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.product-list-content h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.product-allergens-inline {
    font-size: 1rem;
    margin-left: 8px;
}

.product-list-desc {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-extras-inline {
    font-size: 0.85rem;
    color: #555;
}

.extra-inline {
    display: inline;
}

.extra-price-inline {
    color: #e7472e;
    font-weight: 600;
}

.product-list-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e7472e;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-list-image {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    height: 120px;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-extras-row {
    grid-column: 1 / -1;
    grid-row: 2;
}

.product-list-item.no-image {
    grid-template-columns: 1fr;
}

.product-list-item.no-image .product-list-content {
    grid-column: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }

    .header-container {
        padding: 12px 15px;
    }

    .store-logo {
        width: 50px;
        height: 50px;
    }

    .menu-header h1 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 10px 20px;
    }

    .menu-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-item img {
        height: 180px;
    }

    .categories-container {
        gap: 8px;
        padding: 8px 0;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
    }

    .section-header {
        flex-direction: column;
    }

    .admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .settings-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .settings-preview-section {
        position: static;
    }
}
