:root {
    --primary: #d00000;
    /* Vibrant Red from reference */
    --primary-light: #ff1a1a;
    --gold: #f4d03f;
    /* Bright Yellow from reference */
    --gold-light: #ffea00;
    --black: #000000;
    --dark-grey: #121212;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Anton', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

select {
    overflow: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg-red {
    background-color: var(--primary);
    color: var(--white);
    padding: 0 15px;
    display: inline-block;
}

.gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: url('img/hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    color: var(--white);
    background-color: var(--primary);
    padding: 5px 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-text {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease both 0.2s;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-5px);
}

/* Features Section */
.features {
    padding: 100px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Menu Section */
.menu-section {
    padding: 100px 0;
    background-color: #0d0d0d;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.category-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    margin-top: 0.2rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.menu-item {
    background: var(--dark-grey);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.menu-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.menu-item-img {
    height: 250px;
    width: 100%;
    position: relative;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .menu-item-img img {
    transform: scale(1.1);
}

.img-referencial {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.65rem;
    font-style: italic;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 4;
}

.sauce-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sauce-badge .icon {
    font-size: 0.9rem;
}

.menu-item-info {
    padding: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.item-header h3 {
    font-size: 1.4rem;
    color: var(--white);
}

.price {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2rem;
}

.menu-item-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.add-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.contact-info {
    padding: 4rem;
}

.info-list {
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--gold);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.social-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #800000 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.contact-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    margin-bottom: 2.5rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .contact-info,
    .contact-cta {
        padding: 2.5rem 1.5rem;
    }

    .contact-info {
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    footer .container {
        padding: 0 1rem;
    }
}

/* Shopping Cart Styles */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #d4af37;
    /* Fallback for gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    background-color: #f1c40f;
}

.cart-icon {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.82, 0.01, 0.77, 0.41);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    color: #d4af37;
    margin: 0;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-items-container {
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: #666;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: white;
}

.cart-item-info .price {
    color: #d4af37;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #d4af37;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

#cartTotalText {
    color: #d4af37;
}

.btn-block {
    width: 100%;
}

/* Cart Form Styles */
.cart-form {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--gold, #d4af37);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold, #d4af37);
    background: rgba(255, 255, 255, 0.1);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    accent-color: var(--gold, #d4af37);
}

.delivery-disclaimer {
    font-size: 12px;
    color: #e67e22;
    /* Orange-ish warning color */
    margin-top: 8px;
    padding: 8px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 4px;
    border-left: 3px solid #e67e22;
    line-height: 1.4;
}

option {
    background: #1a1a1a;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--dark-grey);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--gold);
    margin: 0;
}

.close-modal {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

#sauceLimitText {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary);
}

.sauce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.sauce-option {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.sauce-option img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

.sauce-option h4 {
    font-size: 0.8rem;
    margin: 0 0 5px 0;
    color: var(--white);
}

.sauce-qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sauce-qty-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sauce-qty {
    font-weight: bold;
    min-width: 15px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
}

.sauce-option.selected {
    border-color: var(--gold);
    background: rgba(244, 208, 63, 0.1);
}

.cart-item-sauces {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

.ingredient-change-section input,
.ingredient-change-section select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.ingredient-change-section input:focus,
.ingredient-change-section select:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.ingredient-change-section select optgroup {
    background: var(--dark-grey);
    color: var(--gold);
    font-weight: 600;
}

.roll-selection-card {
    transition: var(--transition);
}

.roll-selection-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--gold);
}

.roll-type-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.roll-type-select {
    background: var(--gold);
    color: black;
    border: none;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.roll-fields-grid .form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roll-fields-grid select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 4px;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

.roll-fields-grid select option {
    padding: 5px 8px;
    cursor: pointer;
}

.roll-fields-grid select option:checked,
.roll-fields-grid select option:focus {
    background: var(--primary);
    color: white;
}

.roll-fields-grid select::-webkit-scrollbar {
    width: 6px;
}

.roll-fields-grid select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.roll-fields-grid select::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Cambiar ingrediente listbox */
#changeTo {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

#changeTo option {
    padding: 5px 8px;
    cursor: pointer;
}

#changeTo option:checked,
#changeTo option:focus {
    background: var(--primary);
    color: white;
}

#changeTo::-webkit-scrollbar {
    width: 6px;
}

#changeTo::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#changeTo::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.edit-item-btn {
    background: var(--gold);
    color: black;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
}

.edit-item-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.form-group input[type="email"],
.form-group select {
    width: 100%;
    color: white;
    font-family: inherit;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    border-image: initial;
    border-radius: 8px;
    transition: 0.3s;
}

.form-group input[type="tel"],
.form-group select {
    width: 100%;
    color: white;
    font-family: inherit;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    border-image: initial;
    border-radius: 8px;
    transition: 0.3s;
}

/* ── Estilos Extra para Modal de Advertencia ── */
#activeOrderModal .btn {
    padding: 12px;
    font-size: 0.9rem;
}

#activeOrderModal .btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

/* Leaflet Map Custom Styling */
#map {
    height: 220px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    margin-top: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Custom dark theme filter for OpenStreetMap tiles to match G&G Sushi's premium aesthetics */
.leaflet-tile-container {
    filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(90%);
}

.leaflet-container {
    background: #121212 !important;
    font-family: 'Poppins', sans-serif !important;
    touch-action: pan-x pan-y !important;
}

.leaflet-bar {
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1)) !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: rgba(20, 20, 20, 0.9) !important;
    color: var(--white, #fff) !important;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1)) !important;
    transition: background-color 0.2s ease;
}

.leaflet-bar a:hover {
    background-color: var(--gold, #d4af37) !important;
    color: black !important;
}

.leaflet-control-attribution {
    background: rgba(10, 10, 10, 0.8) !important;
    color: #666 !important;
    font-size: 9px !important;
}

.leaflet-control-attribution a {
    color: var(--gold, #d4af37) !important;
}

#activeOrderModal .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Geolocation Button Style */
.btn-gps {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold, #d4af37);
    border: 1px solid var(--gold, #d4af37);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-gps:hover {
    background: var(--gold, #d4af37);
    color: black;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.btn-gps:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #666);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dynamic Delivery Info Badge Styles */
.delivery-info-badge {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    font-weight: 600;
}

.delivery-info-badge.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Autocomplete Address Dropdown Suggestions */
.address-suggestions-container {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-secondary, #ccc);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold, #d4af37);
}

/* ==========================================================================
   ADMIN PANEL STYLES (Migrated from panel.php)
   ========================================================================== */

:root {
            --bg-panel: #0a0a0a;
            --card-admin: #1a1a1a;
        }

        body.admin-body {
            background: var(--bg-panel);
            color: white;
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        .admin-layout {
            display: grid;
            grid-template-columns: var(--sidebar-width, 280px) 1fr;
            height: 100vh;
            width: 100%;
            max-width: 100%;
            transition: grid-template-columns 0.3s ease;
            overflow-x: hidden;
        }

        .admin-layout.sidebar-collapsed {
            --sidebar-width: 0px;
        }

        .admin-sidebar {
            background: rgba(20, 20, 20, 0.95);
            border-right: 1px solid var(--glass-border);
            padding: 30px 20px;
            display: flex;
            flex-direction: column;
            gap: 30px;
            height: 100vh;
            box-sizing: border-box;
            backdrop-filter: blur(10px);
            z-index: 100;
            overflow-y: auto;
            transition: transform 0.3s ease, padding 0.3s ease, width 0.3s ease;
            width: var(--sidebar-width, 280px);
        }

        .admin-layout.sidebar-collapsed .admin-sidebar {
            transform: translateX(-280px);
            padding: 0;
            width: 0;
            overflow: hidden;
            border-right: none;
        }

        .admin-sidebar::-webkit-scrollbar {
            width: 6px;
        }
        .admin-sidebar::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
        }
        .admin-sidebar::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 3px;
        }

        .sidebar-logo {
            font-family: 'Anton', sans-serif;
            font-size: 1.8rem;
            color: var(--gold);
            letter-spacing: 1px;
            text-align: center;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 15px;
        }

        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex-grow: 1;
        }

        .sidebar-item {
            padding: 14px 18px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            color: #ccc;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid transparent;
        }

        .sidebar-item:hover {
            background: rgba(255, 255, 255, 0.03);
            color: var(--gold);
        }

        .sidebar-item.active {
            background: rgba(212, 175, 55, 0.1);
            color: var(--gold);
            border-color: rgba(212, 175, 55, 0.2);
        }

        .btn-logout {
            width: 100%;
            background: transparent;
            border: 1px solid rgba(231, 76, 60, 0.3);
            color: #e74c3c;
            padding: 12px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            text-align: center;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 0.9rem;
            box-sizing: border-box;
        }

        .btn-logout:hover {
            background: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }

        /* ── ADMIN CONTENT ── */
        .admin-content {
            padding: 30px;
            overflow-y: auto;
            overflow-x: hidden;
            height: 100vh;
            box-sizing: border-box;
        }

        .admin-section {
            display: none;
        }

        .admin-section.active {
            display: block;
        }

        .panel-container {
            max-width: 100%;
            margin: 0;
        }

        /* ── STYLES FOR REPARTOS ── */
        #repartosMap {
            height: 550px;
            border-radius: 15px;
            border: 1px solid var(--glass-border);
            margin-top: 20px;
        }

        /* ── STYLES FOR FIDELIZACION & NEGOCIO ── */
        .admin-card {
            background: var(--card-admin);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
        }
        .admin-card h3 {
            color: var(--gold);
            margin-top: 0;
            font-family: 'Anton', sans-serif;
            letter-spacing: 1px;
            font-size: 1.4rem;
        }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .form-group label {
            font-size: 0.85rem;
            color: #ccc;
            font-weight: 600;
        }
        .form-group input, .form-group select {
            padding: 10px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.05);
            color: white;
            outline: none;
            font-family: inherit;
        }
        .form-group input:focus, .form-group select:focus {
            border-color: var(--gold);
        }
        
        .admin-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        .admin-table th, .admin-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .admin-table th {
            color: var(--gold);
            font-weight: 600;
            background: rgba(255,255,255,0.02);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .stat-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }
        .stat-card h4 {
            margin: 0 0 10px 0;
            color: #ccc;
            font-size: 0.9rem;
        }
        .stat-card .value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--gold);
        }
        .charts-container {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 25px;
            margin-top: 20px;
        }
        @media (max-width: 992px) {
            .charts-container {
                grid-template-columns: 1fr;
            }
        }

        /* ── FILTRO DE FECHA ── */
        .filter-container {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255,255,255,0.03);
            padding: 10px 20px;
            border-radius: 50px;
            border: 1px solid var(--glass-border);
        }

        .filter-container label {
            font-size: 0.8rem;
            color: var(--gold);
            margin: 0;
        }

        .filter-container input[type="date"] {
            background: transparent;
            border: none;
            color: white;
            font-family: inherit;
            font-size: 1rem;
            outline: none;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 15px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .panel-header h1 {
            font-family: 'Anton', sans-serif;
            font-size: 2.5rem;
            letter-spacing: 2px;
            margin: 0;
            color: var(--gold);
        }

        .refresh-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: 0.3s;
        }

        .refresh-btn:hover {
            background: var(--primary-light);
            transform: scale(1.05);
        }

        .orders-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
        }

        .order-card {
            background: var(--card-admin);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 20px;
            position: relative;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(4px);
            border-color: rgba(255, 255, 255, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .order-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.1);
        }

        .order-status {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 15px;
        }

        .order-id {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 1.1rem;
            font-weight: bold;
            opacity: 0.5;
        }

        .customer-info h3 {
            margin: 0 0 5px 0;
            font-size: 1.2rem;
            color: white;
        }

        .customer-info p {
            margin: 3px 0;
            font-size: 0.85rem;
            color: #aaa;
        }

        .items-list {
            margin: 20px 0;
            border-top: 1px solid rgba(255,255,255,0.05);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 15px 0;
        }

        .item-container {
            margin-bottom: 12px;
        }

        .item-container:last-child {
            margin-bottom: 0;
        }

        .item {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .item-details {
            font-size: 0.8rem;
            color: #888;
            margin-top: 4px;
            padding-left: 10px;
            border-left: 2px solid var(--gold);
        }

        .total-price {
            font-size: 1.3rem;
            color: var(--gold);
            font-weight: 700;
        }

        .btn-action {
            padding: 10px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: bold;
            font-size: 0.85rem;
            transition: 0.2s;
        }

        .btn-prep { background: #e67e22; color: white; }
        .btn-prep:hover { background: #d35400; }
        .btn-ready { background: #2ecc71; color: white; }
        .btn-ready:hover { background: #27ae60; }
        .btn-ship { background: #3498db; color: white; }
        .btn-ship:hover { background: #2980b9; }
        .btn-finish { background: var(--gold); color: black; }
        .btn-finish:hover { background: #dfba30; }

        .btn-full {
            width: 100%;
            display: block;
        }

        .btn-print-secondary {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: #ccc;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            margin-right: 40px;
            transition: 0.2s;
        }
        .btn-print-secondary:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        .countdown-info {
            font-size: 0.85rem;
            color: #888;
            background: rgba(255,255,255,0.02);
            padding: 8px 15px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .btn-download {
            background: #27ae60;
            color: white;
            text-decoration: none;
            padding: 10px 18px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            transition: 0.3s;
            display: inline-block;
        }
        .btn-download:hover {
            background: #219653;
            transform: scale(1.03);
        }

        /* ── TARJETAS RESUMEN ── */
        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .summary-card {
            background: var(--card-admin);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: transform 0.2s;
        }

        .summary-card:hover {
            transform: translateY(-3px);
        }

        .summary-card h4 {
            margin: 0 0 10px 0;
            color: #ccc;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .summary-card .count {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--gold);
            display: block;
        }

        .card-recepcionado { border-left: 4px solid #3498db; }
        .card-preparacion { border-left: 4px solid #e67e22; }
        .card-listo { border-left: 4px solid #2ecc71; }
        .card-reparto { border-left: 4px solid var(--gold); }

        /* ── PRINTING RULES ── */
        @media print {
            @page {
                size: 80mm auto;
                margin: 0;
            }
            html, body {
                height: auto !important;
                min-height: auto !important;
                background: white !important;
                color: black !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: visible !important;
                overflow-x: hidden !important;
            }
            /* Ocultar elementos de layout no necesarios */
            .admin-sidebar, 
            .panel-header, 
            .summary-cards, 
            .filter-container, 
            .refresh-btn,
            .btn-download,
            .toggle-sidebar-btn,
            .sidebar-overlay {
                display: none !important;
            }
            
            /* Ocultar otras secciones */
            .admin-section:not(.active) {
                display: none !important;
            }
            
            /* Resetear contenedores de layout para impresión */
            .admin-layout {
                display: block !important;
                background: white !important;
                padding: 0 !important;
                margin: 0 !important;
            }
            .admin-content {
                margin: 0 !important;
                padding: 0 !important;
                background: white !important;
                display: block !important;
            }
            .panel-container {
                padding: 0 !important;
                margin: 0 !important;
            }
            .orders-grid {
                display: block !important;
                padding: 0 !important;
                margin: 0 !important;
            }
            
            /* Ocultar todas las tarjetas de pedido */
            .order-card {
                display: none !important;
            }
            
            /* Mostrar únicamente la tarjeta que tiene la clase printing-now */
            .order-card.printing-now {
                display: block !important;
                position: static !important;
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 10px !important;
                background: white !important;
                color: black !important;
                border: none !important;
                box-shadow: none !important;
                font-family: monospace !important;
                height: auto !important;
                min-height: auto !important;
                box-sizing: border-box !important;
            }
            
            /* Ocultar elementos internos no imprimibles del pedido */
            .order-card.printing-now .order-status,
            .order-card.printing-now .btn-print-secondary,
            .order-card.printing-now .actions,
            .order-card.printing-now .order-map,
            .order-card.printing-now .btn-location-toggle {
                display: none !important;
            }
            
            /* Asegurar visibilidad de textos del pedido */
            .order-card.printing-now * {
                visibility: visible !important;
                color: black !important;
                background: transparent !important;
                box-sizing: border-box !important;
            }
            .order-card.printing-now .customer-info h3,
            .order-card.printing-now .customer-info p,
            .order-card.printing-now .item,
            .order-card.printing-now .item-details,
            .order-card.printing-now .total-price {
                color: black !important;
            }
            .order-card.printing-now .item-details {
                border-left-color: black !important;
            }
            .order-card.printing-now::after {
                content: "";
                display: block;
                border-top: 1px dashed black;
                margin-top: 10mm;
                width: 100%;
            }
        }
        /* ── CREAR PEDIDO MANUAL STYLES ── */
        .admin-order-workspace {
            /* display: grid; */
            grid-template-columns: 1fr;
            gap: 5px;
            align-items: start;
            margin-top: 20px;
        }
        @media (min-width: 768px) {
            .admin-order-workspace {
                display: grid;
                grid-template-columns: 60% 40%;
            }
        }
        
        .client-autocomplete-container {
            position: relative;
            margin-bottom: 20px;
        }
        .admin-suggestions-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #1a1a1a;
            border: 1px solid var(--glass-border);
            border-top: none;
            border-radius: 0 0 10px 10px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        }
        .admin-suggestion-item {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 0.9rem;
            text-align: left;
            transition: background 0.2s;
        }
        .admin-suggestion-item:hover {
            background: rgba(212, 175, 55, 0.15);
            color: var(--gold);
        }
        .admin-suggestion-item strong {
            display: block;
            color: white;
        }
        .admin-suggestion-item span {
            color: #aaa;
            font-size: 0.8rem;
        }

        .client-selected-badge {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(46, 204, 113, 0.1);
            border: 1px solid rgba(46, 204, 113, 0.3);
            color: #2ecc71;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }
        .btn-clear-client {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            text-decoration: underline;
            font-weight: bold;
        }

        .admin-catalog-container {
            background: var(--card-admin);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 25px;
        }
        .admin-catalog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        .admin-catalog-search {
            position: relative;
            flex: 1;
            min-width: 150px;
        }
        .admin-catalog-search input {
            width: 100%;
            padding: 10px 15px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.05);
            color: white;
            outline: none;
            box-sizing: border-box;
        }
        .admin-catalog-search input:focus {
            border-color: var(--gold);
        }

        .admin-menu-tabs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
            margin-bottom: 20px;
        }
        .admin-tab-btn {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.05);
            color: #ccc;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            white-space: nowrap;
            transition: all 0.2s;
        }
        .admin-tab-btn:hover {
            border-color: var(--gold);
            color: white;
        }
        .admin-tab-btn.active {
            background: rgba(212, 175, 55, 0.15);
            border-color: var(--gold);
            color: var(--gold);
            font-weight: 600;
        }

        .admin-menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
            max-height: 700px;
            overflow-y: auto;
            padding-right: 5px;
        }
        .admin-menu-item {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 12px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 10px;
            transition: all 0.2s;
        }
        .admin-menu-item:hover {
            border-color: rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.03);
        }
        .admin-menu-item h4 {
            margin: 0;
            color: white;
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.3;
            text-align: left;
        }
        .admin-menu-item .price {
            color: var(--gold);
            font-weight: bold;
            font-size: 1rem;
            text-align: left;
        }
        .admin-menu-item p {
            margin: 0;
            font-size: 0.75rem;
            color: #888;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: left;
        }
        .admin-menu-item .add-btn-small {
            width: 100%;
            background: var(--gold);
            color: black;
            border: none;
            padding: 6px;
            border-radius: 6px;
            font-weight: bold;
            cursor: pointer;
            font-size: 0.8rem;
            transition: 0.2s;
        }
        .admin-menu-item .add-btn-small:hover {
            opacity: 0.9;
        }

        .admin-cart-panel {
            background: var(--card-admin);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 25px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .admin-cart-items {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 250px;
            overflow-y: auto;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding-bottom: 15px;
        }
        .admin-cart-item-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            background: rgba(255,255,255,0.02);
            border-radius: 8px;
            padding: 8px 12px;
            gap: 10px;
        }
        .admin-cart-item-row .name-col {
            flex: 1;
            text-align: left;
        }
        .admin-cart-item-row .name-col .sauce-info {
            font-size: 0.75rem;
            color: #888;
            margin-top: 2px;
        }
        .admin-cart-item-row .qty-col {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .admin-cart-item-row .qty-btn {
            background: rgba(255,255,255,0.08);
            border: none;
            color: white;
            width: 22px;
            height: 22px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .admin-cart-item-row .qty-btn:hover {
            background: rgba(255,255,255,0.15);
        }
        .admin-cart-item-row .price-col {
            font-weight: bold;
            color: var(--gold);
            min-width: 60px;
            text-align: right;
        }
        .admin-cart-item-row .btn-remove-item {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            font-size: 1.1rem;
            padding: 0;
        }
        .admin-cart-item-row .btn-remove-item:hover {
            color: #c0392b;
        }

/* ── GLOBAL PRINT TICKET OVERRIDES ── */
@media print {
    /* Make everything hidden by default */
    body.body-printing-ticket * {
        visibility: hidden !important;
    }
    /* Make the current ticket and its contents visible */
    body.body-printing-ticket .printing-now,
    body.body-printing-ticket .printing-now * {
        visibility: visible !important;
    }
    /* Render the ticket in normal flow as the only element on the page */
    body.body-printing-ticket .printing-now {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5px !important;
        background: white !important;
        color: black !important;
        box-sizing: border-box !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Set all siblings of the ticket and its ancestors to display: none to collapse layout height to 0 */
    body.body-printing-ticket .admin-sidebar,
    body.body-printing-ticket .toggle-sidebar-btn,
    body.body-printing-ticket .sidebar-overlay,
    body.body-printing-ticket .countdown-info,
    body.body-printing-ticket .orders-grid,
    body.body-printing-ticket #repartosMap,
    body.body-printing-ticket #section-repartos .admin-card,
    body.body-printing-ticket .admin-content > .admin-section:not(.active) {
        display: none !important;
    }

    /* Remove margins/paddings on all wrapper ancestors to avoid space offsets */
    body.body-printing-ticket,
    body.body-printing-ticket .admin-layout,
    body.body-printing-ticket .admin-content,
    body.body-printing-ticket .admin-section,
    body.body-printing-ticket .panel-container {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: white !important;
        display: block !important;
        position: static !important;
        min-height: auto !important;
        height: auto !important;
    }
}

/* ── SIDEBAR TOGGLE & MOBILE RESPONSIVE PANEL OVERRIDES ── */
.toggle-sidebar-btn {
    position: fixed;
    top: 15px;
    left: 295px;
    z-index: 999;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: left 0.3s ease, background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.toggle-sidebar-btn:hover {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
}

.admin-layout.sidebar-collapsed .toggle-sidebar-btn {
    left: 15px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}

/* Media query for mobile/tablet responsive layout */
@media (max-width: 992px) {
    .admin-layout {
        display: block !important;
        position: relative !important;
    }
    
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-280px) !important;
        transition: transform 0.3s ease !important;
    }
    
    .admin-layout.sidebar-active .admin-sidebar {
        transform: translateX(0) !important;
    }
    
    .admin-content {
        padding: 15px !important;
        padding-top: 70px !important; /* Spacing for the floating menu toggle button */
        width: 100% !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .toggle-sidebar-btn {
        left: 15px !important;
    }
    
    .admin-layout.sidebar-active .sidebar-overlay {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .panel-header h1 {
        font-size: 1.8rem !important;
    }
    .admin-catalog-container, .admin-cart-panel {
        padding: 15px !important;
    }
    .admin-catalog-search {
        min-width: 120px !important;
    }
    .admin-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
}
