/* ============================================================
   miniCOST - Sistema Principal CSS
   www.miniCOST.com.mx
   ============================================================ */

:root {
    --mc-primary: #0099DD;
    --mc-primary-dark: #0077AA;
    --mc-primary-light: #33BBFF;
    --mc-secondary: #FFFFFF;
    --mc-accent: #00CC88;
    --mc-accent-dark: #00AA66;
    --mc-danger: #E74C3C;
    --mc-warning: #F39C12;
    --mc-success: #27AE60;
    --mc-info: #3498DB;
    --mc-bg: #F5F7FA;
    --mc-bg-dark: #E8ECF1;
    --mc-text: #1A1A2E;
    --mc-text-light: #6B7280;
    --mc-text-white: #FFFFFF;
    --mc-border: #E2E8F0;
    --mc-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --mc-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --mc-radius: 12px;
    --mc-radius-sm: 8px;
    --mc-radius-lg: 20px;
    --mc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mc-font: 'Nunito', sans-serif;
    --mc-font-title: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--mc-font);
    background: var(--mc-bg);
    color: var(--mc-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============ TIPOGRAFÍA ============ */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--mc-font-title);
    font-weight: 700;
    line-height: 1.2;
}

/* ============ NAVBAR ============ */
.mc-navbar {
    background: var(--mc-secondary);
    box-shadow: var(--mc-shadow);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.mc-navbar .navbar-brand img {
    height: 45px;
    transition: var(--mc-transition);
}
.mc-navbar .nav-link {
    font-family: var(--mc-font-title);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mc-text) !important;
    padding: 1rem 1.2rem !important;
    transition: var(--mc-transition);
    position: relative;
}
.mc-navbar .nav-link:hover,
.mc-navbar .nav-link.active {
    color: var(--mc-primary) !important;
}
.mc-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background: var(--mc-primary);
    border-radius: 3px 3px 0 0;
}

/* ============ BOTONES ============ */
.btn-mc {
    background: var(--mc-primary);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: var(--mc-radius-sm);
    font-family: var(--mc-font-title);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--mc-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-mc:hover {
    background: var(--mc-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,153,221,0.35);
}
.btn-mc-outline {
    background: transparent;
    color: var(--mc-primary);
    border: 2px solid var(--mc-primary);
    padding: 0.6rem 1.7rem;
    border-radius: var(--mc-radius-sm);
    font-family: var(--mc-font-title);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--mc-transition);
}
.btn-mc-outline:hover {
    background: var(--mc-primary);
    color: white;
}
.btn-mc-accent {
    background: var(--mc-accent);
    color: white;
}
.btn-mc-accent:hover {
    background: var(--mc-accent-dark);
    color: white;
}
.btn-mc-danger {
    background: var(--mc-danger);
    color: white;
}
.btn-mc-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}
.btn-mc-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============ CARDS ============ */
.mc-card {
    background: var(--mc-secondary);
    border-radius: var(--mc-radius);
    box-shadow: var(--mc-shadow);
    border: none;
    overflow: hidden;
    transition: var(--mc-transition);
}
.mc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mc-shadow-lg);
}
.mc-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ============ PRODUCTO CARD ============ */
.product-card {
    background: white;
    border-radius: var(--mc-radius);
    overflow: hidden;
    box-shadow: var(--mc-shadow);
    transition: var(--mc-transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mc-shadow-lg);
}
.product-card .product-img {
    height: 180px;
    background: var(--mc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--mc-transition);
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-card .badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--mc-danger);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.product-card .product-info {
    padding: 1rem;
}
.product-card .product-category {
    font-size: 0.75rem;
    color: var(--mc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.product-card .product-name {
    font-family: var(--mc-font-title);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.3rem 0;
    color: var(--mc-text);
}
.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.product-card .price-current {
    font-family: var(--mc-font-title);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mc-primary);
}
.product-card .price-original {
    font-size: 0.85rem;
    color: var(--mc-text-light);
    text-decoration: line-through;
}
.product-card .btn-add-cart {
    width: 100%;
    background: var(--mc-primary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: var(--mc-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--mc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.product-card .btn-add-cart:hover {
    background: var(--mc-primary-dark);
}

/* ============ HERO ============ */
.mc-hero {
    background: linear-gradient(135deg, var(--mc-primary) 0%, var(--mc-primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.mc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.mc-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.mc-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.mc-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
}

/* ============ CATEGORÍAS ============ */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    box-shadow: var(--mc-shadow);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mc-text);
    cursor: pointer;
    transition: var(--mc-transition);
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}
.category-pill:hover, .category-pill.active {
    border-color: var(--mc-primary);
    color: var(--mc-primary);
    transform: translateY(-2px);
}
.category-pill i {
    font-size: 1.1rem;
    color: var(--mc-primary);
}

/* ============ SECCIÓN BÚSQUEDA ============ */
.mc-search-bar {
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--mc-shadow);
    display: flex;
    max-width: 600px;
}
.mc-search-bar input {
    border: none;
    outline: none;
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: var(--mc-font);
    background: transparent;
}
.mc-search-bar button {
    background: var(--mc-primary);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--mc-transition);
}
.mc-search-bar button:hover {
    background: var(--mc-primary-dark);
}

/* ============ FOOTER ============ */
.mc-footer {
    background: var(--mc-text);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1rem;
}
.mc-footer h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.mc-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--mc-transition);
}
.mc-footer a:hover {
    color: var(--mc-primary-light);
}
.mc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

/* ============ WHATSAPP BUTTON ============ */
.mc-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: var(--mc-transition);
    cursor: pointer;
    text-decoration: none;
}
.mc-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    color: white;
}

/* ============ CHATBOT ============ */
.mc-chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 520px;
    background: white;
    border-radius: var(--mc-radius-lg);
    box-shadow: var(--mc-shadow-lg);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.mc-chatbot-header {
    background: var(--mc-primary);
    color: white;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.mc-chatbot-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    padding: 3px;
}
.mc-chatbot-header h6 {
    margin: 0;
    font-weight: 700;
}
.mc-chatbot-header small {
    opacity: 0.8;
    font-size: 0.75rem;
}
.mc-chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
}
.mc-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.mc-chat-msg {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: msgFadeIn 0.3s ease;
}
@keyframes msgFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.mc-chat-msg.bot {
    background: var(--mc-bg);
    border-bottom-left-radius: 5px;
    align-self: flex-start;
}
.mc-chat-msg.user {
    background: var(--mc-primary);
    color: white;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
}
.mc-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.mc-chat-option-btn {
    background: white;
    border: 1.5px solid var(--mc-primary);
    color: var(--mc-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mc-transition);
}
.mc-chat-option-btn:hover {
    background: var(--mc-primary);
    color: white;
}
.mc-chatbot-input {
    display: flex;
    padding: 0.8rem;
    border-top: 1px solid var(--mc-border);
    gap: 0.5rem;
}
.mc-chatbot-input input {
    flex: 1;
    border: 1.5px solid var(--mc-border);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-family: var(--mc-font);
    outline: none;
    transition: var(--mc-transition);
}
.mc-chatbot-input input:focus {
    border-color: var(--mc-primary);
}
.mc-chatbot-input button {
    background: var(--mc-primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--mc-transition);
}
.mc-chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: var(--mc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,153,221,0.4);
    z-index: 1000;
    cursor: pointer;
    transition: var(--mc-transition);
    border: none;
}
.mc-chatbot-toggle:hover {
    transform: scale(1.1);
}

/* ============ BADGE CARRITO ============ */
.cart-badge {
    position: absolute;
    top: 5px;
    right: 0;
    background: var(--mc-danger);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ============ FORMULARIOS ============ */
.mc-input {
    border: 2px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    padding: 0.7rem 1rem;
    font-family: var(--mc-font);
    transition: var(--mc-transition);
    width: 100%;
}
.mc-input:focus {
    outline: none;
    border-color: var(--mc-primary);
    box-shadow: 0 0 0 3px rgba(0,153,221,0.15);
}
.mc-label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: block;
    color: var(--mc-text);
}

/* ============ SCANNER PAGE ============ */
.scanner-overlay {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--mc-radius);
    overflow: hidden;
}
.scanner-overlay video {
    width: 100%;
    border-radius: var(--mc-radius);
}
.scanner-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--mc-primary);
    box-shadow: 0 0 10px var(--mc-primary);
    animation: scanLine 2s ease-in-out infinite;
}
@keyframes scanLine {
    0%,100% { top: 30%; }
    50% { top: 70%; }
}

/* ============ ADMIN SIDEBAR ============ */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--mc-text) 0%, #16213E 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: var(--mc-transition);
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-brand img {
    height: 40px;
}
.admin-sidebar .nav-item .nav-link {
    color: rgba(255,255,255,0.6) !important;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--mc-transition);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-item .nav-link:hover,
.admin-sidebar .nav-item .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--mc-primary);
}
.admin-sidebar .nav-item .nav-link i {
    width: 20px;
    text-align: center;
}
.admin-content {
    margin-left: 260px;
    padding: 0;
    min-height: 100vh;
}
.admin-topbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--mc-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}
html, body {
    height: 100%;
    overflow: hidden;
}

.admin-content {
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar {
    height: 100vh; /* 👈 cambia min-height por height */
    overflow-y: auto;
    padding-bottom: 20px; /* evita corte final */
}
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

/* ============ STAT CARDS ============ */
.stat-card {
    background: white;
    border-radius: var(--mc-radius);
    padding: 1.5rem;
    box-shadow: var(--mc-shadow);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 100%;
    opacity: 0.1;
}
.stat-card.primary::after { background: var(--mc-primary); }
.stat-card.success::after { background: var(--mc-success); }
.stat-card.warning::after { background: var(--mc-warning); }
.stat-card.danger::after { background: var(--mc-danger); }
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--mc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}
.stat-card .stat-icon.primary { background: var(--mc-primary); }
.stat-card .stat-icon.success { background: var(--mc-success); }
.stat-card .stat-icon.warning { background: var(--mc-warning); }
.stat-card .stat-icon.danger { background: var(--mc-danger); }
.stat-card .stat-value {
    font-family: var(--mc-font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mc-text);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--mc-text-light);
    font-weight: 600;
}

/* ============ POS SYSTEM ============ */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    height: 100vh;
    overflow: hidden;
}
.pos-products {
    padding: 1rem;
    overflow-y: auto;
    background: var(--mc-bg);
}
.pos-cart {
    background: white;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--mc-border);
}
.pos-cart-header {
    padding: 1rem;
    background: var(--mc-primary);
    color: white;
}
.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}
.pos-cart-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-bottom: 1px solid var(--mc-border);
}
.pos-cart-item .item-qty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pos-cart-item .qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--mc-border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--mc-transition);
}
.pos-cart-item .qty-btn:hover {
    border-color: var(--mc-primary);
    color: var(--mc-primary);
}
.pos-cart-totals {
    padding: 1rem;
    background: var(--mc-bg);
    border-top: 2px solid var(--mc-border);
}
.pos-cart-totals .total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-weight: 600;
}
.pos-cart-totals .total-final {
    font-size: 1.4rem;
    font-family: var(--mc-font-title);
    font-weight: 800;
    color: var(--mc-primary);
    border-top: 2px solid var(--mc-primary);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}
.pos-actions {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.pos-product-btn {
    background: white;
    border: 1.5px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--mc-transition);
    text-align: center;
}
.pos-product-btn:hover {
    border-color: var(--mc-primary);
    box-shadow: var(--mc-shadow);
}
.pos-product-btn .prod-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.3rem;
}
.pos-product-btn .prod-price {
    color: var(--mc-primary);
    font-weight: 800;
    font-size: 0.95rem;
}

/* ============ BADGES ============ */
.mc-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.mc-badge-success { background: rgba(39,174,96,0.1); color: var(--mc-success); }
.mc-badge-warning { background: rgba(243,156,18,0.1); color: var(--mc-warning); }
.mc-badge-danger { background: rgba(231,76,60,0.1); color: var(--mc-danger); }
.mc-badge-info { background: rgba(52,152,219,0.1); color: var(--mc-info); }
.mc-badge-primary { background: rgba(0,153,221,0.1); color: var(--mc-primary); }

/* ============ TABLES ============ */
.mc-table {
    background: white;
    border-radius: var(--mc-radius);
    overflow: hidden;
    box-shadow: var(--mc-shadow);
}
.mc-table thead th {
    background: var(--mc-bg);
    font-family: var(--mc-font-title);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mc-text-light);
    padding: 1rem;
    border: none;
}
.mc-table tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-color: var(--mc-border);
}

/* ============ MODAL ============ */
.mc-modal .modal-content {
    border-radius: var(--mc-radius);
    border: none;
    box-shadow: var(--mc-shadow-lg);
}
.mc-modal .modal-header {
    border-bottom-color: var(--mc-border);
    padding: 1.2rem 1.5rem;
}
.mc-modal .modal-title {
    font-family: var(--mc-font-title);
    font-weight: 800;
}

/* ============ TOAST / ALERT ============ */
.mc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--mc-radius-sm);
    color: white;
    font-weight: 700;
    z-index: 9999;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 300px;
}
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.mc-toast.success { background: var(--mc-success); }
.mc-toast.error { background: var(--mc-danger); }
.mc-toast.warning { background: var(--mc-warning); }

/* ============ LOADING ============ */
.mc-loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--mc-border);
    border-top: 4px solid var(--mc-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .mc-hero h1 { font-size: 1.8rem; }
    .mc-hero { padding: 2.5rem 0; }
    .pos-layout { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .mc-chatbot-container { width: calc(100% - 20px); right: 10px; bottom: 80px; }
    .mc-whatsapp-btn, .mc-chatbot-toggle { bottom: 20px; }
    .mc-whatsapp-btn { right: 20px; }
    .mc-chatbot-toggle { right: 90px; }
}

@media (max-width: 576px) {
    .product-card .product-img { height: 140px; }
    .pos-actions { grid-template-columns: 1fr; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--mc-bg); }
::-webkit-scrollbar-thumb { background: var(--mc-primary); border-radius: 3px; }

/* ============ ANIMATIONS ============ */
.fade-in {
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up {
    animation: slideUp 0.5s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
