/* KÄSEPIZZ CUSTOM DESIGN SYSTEM */
:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #16161a;
    --bg-card: #1f1f24;
    --primary: #f97316; /* Pizza Orange */
    --primary-hover: #ea580c;
    --secondary: #ef4444; /* Pizza Tomato Red */
    --secondary-hover: #dc2626;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --gold: #f59e0b;
    --font-title: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 800;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
}

.logo-text span {
    color: var(--primary);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.admin-trigger {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.admin-trigger:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, transparent 100%), radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.store-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.meta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.meta-box i {
    color: var(--primary);
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.meta-box h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
}

.meta-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-image-box {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-pizza {
    width: 100%;
    max-width: 420px;
    border-radius: 50%;
    animation: rotateSlow 30s linear infinite;
    filter: drop-shadow(0 15px 30px rgba(249, 115, 22, 0.2));
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Category Filter Tabs */
.categories-tabs {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-tab:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

/* Menu Grid */
.menu-section {
    padding: 40px 0 80px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.pizza-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.pizza-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.pizza-card-img-box {
    height: 170px;
    background: #16161a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.pizza-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pizza-card:hover .pizza-card-img {
    transform: scale(1.06);
}

.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.pizza-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.pizza-card-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
}

.pizza-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.pizza-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.pizza-price {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.pizza-price span {
    color: var(--primary);
    font-size: 0.9rem;
    margin-right: 2px;
}

.btn-add-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
}

/* Floating Cart Trigger */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all 0.3s;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Drawer - Cart */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 150;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-close-drawer:hover {
    color: #fff;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-qty {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-total-row span:last-child {
    color: var(--primary);
}

.btn-checkout {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background: var(--primary-hover);
}

/* Modals General Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Yape QR Modal Styling */
.yape-box {
    background: #6d28d9; /* Yape purple */
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.yape-logo {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.yape-logo span {
    color: #38bdf8; /* Yape cyan */
}

.yape-qr-container {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.yape-qr-container img {
    display: block;
    width: 180px;
    height: 180px;
}

.yape-phone {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.yape-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fde047; /* Yellow */
}

/* Admin Dashboard styles */
.admin-header-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.admin-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.admin-item-info h5 {
    color: #fff;
    font-size: 0.9rem;
}

.admin-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background: var(--secondary);
    color: #fff;
}

/* Responsive grid changes */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-box {
        order: -1;
    }
    .store-meta-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}
