:root {
    --primary: #d4af37; /* Metallic Gold */
    --primary-light: #f1d592;
    --secondary: #1a1a1a; /* Rich Black/Anthracite */
    --accent: #28a745;
    --danger: #ef4444;
    --warning: #f77f00;
    --background: #fafafa;
    --surface: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --radius: 20px;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(26, 26, 26, 0.8);
}

.orange-theme {
    --primary: #f77f00; /* Vibrant Orange */
    --primary-light: #fcbf49;
    --primary-dark: #b85e00;
    --primary-glass: rgba(247, 127, 0, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
}

/* Animations */
@keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 127, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(247, 127, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 127, 0, 0); }
}

.alert-low-stock {
    background-color: var(--warning);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse-orange 2s infinite;
}

/* Layout Admin */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--secondary);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
}

/* Cards ERP */
.card-stats {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stat-value { font-size: 2rem; font-weight: 800; }

/* Client Menu Style */
.client-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.hero-client-pro {
    position: relative;
    height: 400px;
    background: url('img/frango.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-bottom: 5px solid var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    animation: fadeInDown 1s ease-out;
}

.brand-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.8);
    margin-bottom: 0px;
}

.brand-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-light);
    margin-top: -5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-badge {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-badge:hover { transform: translateY(-5px); }

.hero-badge i { 
    font-size: 1.2rem;
    color: var(--primary-light); 
}

.badge-promo {
    background: var(--primary);
    border-color: var(--primary-light);
}

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    display: flex;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInUp 0.6s ease-out both;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.product-card:hover { 
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img { width: 140px; height: 140px; object-fit: cover; }
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}

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

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 20px 40px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounceInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceInUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.floating-cart:hover {
    transform: translateX(-50%) scale(1.05) translateY(-5px);
    background: var(--primary);
}

/* Common Utilities */
.table-premium { width: 100%; border-collapse: collapse; }
.table-premium th { text-align: left; padding: 15px; color: var(--text-muted); font-size: 0.85rem; }
.table-premium td { padding: 15px; border-top: 1px solid #f1f1f1; }

/* Modal Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.form-group textarea {
    height: 80px;
    resize: none;
}

/* Menu Categories */
.category-picker-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(15px);
    padding: 15px 10px;
    margin: -10px -20px 20px -20px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.category-picker-sticky::-webkit-scrollbar { display: none; }

.category-pill {
    white-space: nowrap;
    padding: 8px 20px;
    background: white;
    border: 1.5px solid #eee;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 81, 47, 0.3);
}

.category-title {
    margin: 40px 0 20px 5px;
    font-weight: 800;
    border-left: 6px solid var(--primary);
    padding-left: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
}

/* Shop Status */
.status-banner {
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.status-open { background: rgba(40, 167, 69, 0.08); color: var(--accent); border: 1.5px solid var(--accent); }
.status-preorder { 
    background: var(--primary-glass); 
    color: var(--primary-dark); 
    border: 1.5px solid var(--primary); 
    animation: glow-primary 2s infinite alternate;
}

@keyframes glow-primary {
    from { box-shadow: 0 0 5px var(--primary-glass); }
    to { box-shadow: 0 0 15px var(--primary); }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background: var(--secondary);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
    border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal Checkout & Addons */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 45, 66, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.addon-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.addon-card:hover {
    border-color: var(--primary-light);
    background: var(--surface);
}

.addon-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

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

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 81, 47, 0.1);
}

/* Drag and Drop */
.dragging {
    opacity: 0.5;
    background: #f0f0f0;
    cursor: grabbing;
}

tr[draggable="true"] {
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 20px; }
    .product-img { width: 100px; height: 100px; }
}

.product-card.featured {
    border: 2px solid var(--primary-light) !important;
    box-shadow: 0 15px 35px rgba(255, 81, 47, 0.1) !important;
}

.badge-featured {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(45deg, #f09819, #fe8c00);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    transform: rotate(-2deg);
    animation: bounceSlow 2s infinite;
    white-space: nowrap;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Loyalty Button */
.btn-loyalty-check {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-loyalty-check:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-loyalty-check i {
    font-size: 1rem;
}
