@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-gold: #d4af37;
    --accent-brown: #8b6f47;
    --text-light: #f5f5f5;
    --text-muted: #b0b0b0;
    --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ========== MENU CONTAINER ========== */
.menu-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-gradient);
}

/* ========== HEADER ========== */
.menu-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d2f28 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: var(--shadow);
}

.menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.menu-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.back-btn {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 15px;
    color: var(--accent-gold);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-btn:hover {
    transform: translateX(-5px);
    color: #fff;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 32px;
    color: var(--accent-gold);
}

.menu-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========== STATS BAR ========== */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(212, 175, 55, 0.05);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== MAIN CONTENT ========== */
.menu-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* ========== CATEGORIES GRID ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(61, 47, 40, 0.8) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-light);
}

.category-card:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(139, 111, 71, 0.15) 100%);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.category-icon {
    font-size: 48px;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.arrow {
    color: var(--accent-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.6) 0%, rgba(61, 47, 40, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d2d2d, #3d2f28);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--accent-gold);
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--accent-gold);
}

.product-description {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.product-category {
    font-size: 11px;
    color: var(--accent-brown);
    margin: 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}

.btn-add {
    background: var(--accent-gold);
    color: #1a1a1a;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.btn-add:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.detail-category {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-brown);
    font-size: 14px;
    margin-bottom: 20px;
}

.detail-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.detail-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.price-label {
    color: var(--text-muted);
    font-size: 14px;
}

.detail-status {
    margin-bottom: 30px;
}

.status-available,
.status-unavailable {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.status-available {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-unavailable {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.detail-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    color: var(--accent-gold);
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    font-size: 18px;
}

/* ========== FOOTER ========== */
.menu-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid var(--accent-gold);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .menu-header h1 {
        font-size: 32px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 20px;
    }

    .detail-actions {
        flex-direction: row;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .menu-header h1 {
        font-size: 24px;
    }

    .menu-content {
        padding: 20px 15px;
    }

    .product-card {
        margin: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 15px;
        gap: 8px;
    }

    .product-info h4 {
        font-size: 14px;
    }

    .detail-actions {
        flex-direction: column;
    }
}

/* ========== FILE UPLOAD AREA ========== */
.file-upload-area {
    border: 2px dashed rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(45, 45, 45, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 15px;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.upload-content {
    color: var(--text-muted);
}

.upload-content i {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: block;
}

.upload-content p {
    margin-bottom: 10px;
    font-size: 16px;
}

.upload-link {
    color: var(--accent-gold);
    text-decoration: underline;
    cursor: pointer;
}

.upload-content small {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.remove-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}
