@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #0f0f11;
    --bg-card: #1a1a1f;
    --bg-input: #24242b;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #d4af37; /* Warm Gold */
    --accent-hover: #bda030;
    --accent-rgb: 212, 175, 55;
    --danger: #ef4444;
    --success: #10b981;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navigation */
header {
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.logo span {
    color: var(--text-primary);
}

nav a {
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.08), transparent 60%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Info Section (Landing Page) */
.info-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1rem auto 0 auto;
}

.grid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.info-card .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
}

/* QR Menu Styling */
.menu-container {
    padding: 8rem 1.5rem 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 8px 16px rgba(var(--accent-rgb), 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.product-img-wrapper {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-price {
    color: var(--accent);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Modal / Detail Dialog */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #111;
}

.modal-body {
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: -220px;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.close-modal:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Admin Dashboard Styling */
.admin-container {
    padding: 8rem 1.5rem 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.login-card {
    max-width: 400px;
    margin: 10rem auto 4rem auto;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.login-card h2 {
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Admin Products List */
.admin-products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.admin-products-table th, .admin-products-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
}

.admin-products-table th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-products-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.admin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #111;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f3f46;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Quick price input */
.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input-wrapper input {
    width: 80px;
    text-align: right;
    padding: 0.4rem;
    border-radius: 6px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    nav {
        display: none; /* Can add a simplified nav or link in footer */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .categories-tabs {
        justify-content: flex-start;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    .close-modal {
        top: 1rem;
        right: 1rem;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-products-table {
        display: block;
        overflow-x: auto;
    }
    /* Mobile Premium Grid & Card Aesthetics */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-img-wrapper {
        height: auto;
        aspect-ratio: 3 / 4;
    }
    .product-content {
        padding: 1rem;
    }
    .product-title {
        font-size: 1.05rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    .product-price {
        font-size: 1.1rem;
    }
}

/* Footer styling */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #09090b;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Ticker Gallery Styling */
.gallery-ticker-section {
    width: 100%;
    overflow: hidden;
    background: #09090b;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker-slide 28s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 12px;
    width: 340px;
    height: 240px;
}

.ticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.ticker-item img:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.25);
}

@keyframes ticker-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

