/* ========================================
   BYR ECOMMERCE - STYLES REFACTORED
   Clean, modular, variable-driven design
   ======================================== */

/* --- CSS VARIABLES (Design System) --- */
:root {
    --primary-green: #2E7D32;
    --deep-green: #1B5E20;
    --dark-green: #0F1F12;
    --accent-green: #4CAF50;
    --success: #10B981;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    
    --text-dark: #111111;
    --text-light: #5F5F5F;
    --text-muted: #7A7A7A;
    
    --bg-white: #FFFFFF;
    --bg-soft: #F7F7F7;
    --bg-light-blue: #F4FFF5;
    --bg-overlay-light: #EAF7EA;
    --bg-form: #fff;
    
    --border-light: #DDE8DD;
    --border-soft: #E9F3EA;
    --border-muted: #CFE3D1;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    --shadow-drop: 0 8px 16px rgba(17, 17, 17, 0.12);
    
    --transition-fast: 150ms ease-out;
    --transition-base: 250ms ease-out;
    --transition-slow: 350ms ease-out;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fff8 0%, #f2f7f2 100%);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* --- SYNC INDICATOR (barra de carga al sincronizar con la API) --- */
.sync-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    overflow: hidden;
    background: rgba(46, 125, 50, 0.15);
}

.sync-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    animation: syncSlide 1.1s ease-in-out infinite;
}

@keyframes syncSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* --- TOP UTILITY BAR --- */
.top-utility-bar {
    background: var(--dark-green);
    padding: 0.65rem 0;
    font-size: 0.9rem;
}

.topbar-links {
    gap: 0.85rem;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.topbar-link:hover {
    color: #ffffff;
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
}

.topbar-cta {
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 2rem;
    padding: 0.4rem 1.3rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .top-utility-bar .container-fluid {
        justify-content: center !important;
        text-align: center;
    }

    .topbar-links {
        justify-content: center;
        width: 100%;
    }

    .topbar-cta {
        width: 100%;
    }
}

/* --- TRUST TICKER --- */
.trust-ticker {
    background: var(--deep-green);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.trust-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0.5rem 2.5rem;
    animation: tickerScroll 28s linear infinite;
}

.trust-ticker-track span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .trust-ticker-track {
        animation: none;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .top-utility-bar {
        font-size: 0.78rem;
    }
}

/* --- POLICIES HUB --- */
.policies-hub {
    background: var(--bg-overlay-light);
    border: 1px solid rgba(46, 125, 50, 0.18);
    border-radius: 1.2rem;
    padding: 2rem;
    max-width: 420px;
}

.policies-hub-title {
    color: var(--deep-green);
    font-weight: 800;
    margin-bottom: 1.4rem;
}

.policies-hub-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policies-hub-link {
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.policies-hub-link:hover {
    color: var(--deep-green);
    text-decoration: underline;
}

/* --- SITE FOOTER --- */
.site-footer {
    background: var(--bg-overlay-light);
    color: var(--text-dark);
    padding-top: 2.5rem;
    font-size: 0.9rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col-title {
    color: var(--deep-green);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--deep-green);
    text-decoration: underline;
}

.footer-note {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.newsletter-form .form-check-label {
    color: var(--text-dark);
    font-size: 0.82rem;
}

.footer-logo-mark {
    height: 36px;
    width: auto;
    margin-top: 1.2rem;
    opacity: 0.9;
}

.footer-payment-bar {
    background: var(--bg-white);
    border-top: 1px solid rgba(46, 125, 50, 0.15);
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-payment-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.payment-badge {
    background: var(--bg-soft);
    border: 1px solid rgba(46, 125, 50, 0.18);
    border-radius: 0.5rem;
    padding: 0.3rem 0.8rem;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--dark-green);
}

.footer-copyright {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 0.9rem 0;
    font-size: 0.82rem;
}

@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-list {
        align-items: center;
    }

    .newsletter-form,
    .footer-col img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-payment-bar .container {
        justify-content: center !important;
        text-align: center;
    }

    .footer-payment-badges {
        justify-content: center;
    }
}

/* --- NAVBAR --- */
.byr-navbar {
    background: var(--bg-white) !important;
    border-bottom: 1px solid rgba(46, 125, 50, 0.15);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 2rem;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.blog-card {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(17, 17, 17, 0.14);
}

.blog-post-hero img {
    max-height: 420px;
    object-fit: cover;
}

.blog-post-content {
    color: var(--text-dark);
    line-height: 1.85;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-related-card {
    border-color: rgba(46, 125, 50, 0.16);
}

.blog-related-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.brand-logo-wide {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(17, 17, 17, 0.12));
}

@media (max-width: 768px) {
    .brand-logo-wide {
        height: 42px;
    }

    .byr-navbar {
        padding: 0.6rem 1rem;
    }
}

/* --- NAVIGATION LINKS --- */
#menuViews .nav-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    transition: all 0.35s ease;
    position: relative;
    padding-bottom: 0.35rem;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

#menuViews .nav-link:hover,
#menuViews .nav-link.active {
    color: var(--primary-green) !important;
    letter-spacing: 0.5px;
}

#menuViews .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--deep-green));
    border-radius: 2px;
    animation: slideInUp 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.12);
}

/* --- MODALS --- */
.modal-content {
    border: 0;
    border-radius: 1.3rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.12);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: var(--primary-green);
    color: var(--bg-white);
    border: none;
    padding: 1.8rem 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2.2rem;
}

.modal-footer {
    border-top: 2px solid rgba(46, 125, 50, 0.1);
    padding: 1.8rem 2rem;
    background: rgba(240, 247, 255, 0.3);
}

/* --- AUTH OVERLAY MODAL --- */
.auth-overlay-dialog .modal-content {
    border-radius: 1rem;
}

.auth-overlay-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 420px;
    margin: 0;
}

.auth-overlay-image-panel {
    background: var(--bg-overlay-light);
}

.auth-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-overlay-logo {
    object-fit: contain;
    padding: 2.5rem;
}

.auth-overlay-form-panel {
    background: var(--bg-form);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-overlay-form-panel h2 {
    color: var(--dark-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
    background: var(--bg-light-blue);
}

@media (max-width: 768px) {
    .auth-overlay-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-overlay-image-panel {
        display: none;
    }

    .auth-overlay-form-panel {
        padding: 1.5rem;
    }
}

/* --- BUTTONS --- */
.btn-primary,
.btn-success {
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--deep-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--success);
    color: var(--bg-white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
}

.btn-danger {
    background: var(--danger);
    color: var(--bg-white);
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

/* --- CARDS --- */
#catalogView .card,
#inventoryView .card,
#ordersView .card,
#dashboardView .card,
#cartView .card,
.card {
    border: 1px solid rgba(46, 125, 50, 0.12);
    box-shadow: var(--shadow-sm);
    border-radius: 1.2rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    background: var(--bg-white);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(46, 125, 50, 0.2);
}

.card-header {
    background: var(--bg-soft);
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: 0.3px;
}

/* --- PRODUCT CATALOG --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: var(--bg-white);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(46, 125, 50, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-green);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-light-blue);
    transition: transform 0.3s ease;
    position: relative;
}

.product-image-placeholder {
    object-fit: contain;
    padding: 2.5rem;
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.8rem;
    display: inline-block;
    background: rgba(46, 125, 50, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    width: fit-content;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    min-height: 2.8rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 1.2rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(46, 125, 50, 0.12);
}

.product-stock {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* --- FILTERS --- */
.filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(17, 17, 17, 0.03) 100%);
    padding: 4rem 0;
    border-radius: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(17, 17, 17, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

.landing-hero > * {
    position: relative;
    z-index: 1;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-block;
    background: rgba(46, 125, 50, 0.12);
    color: var(--deep-green);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(46, 125, 50, 0.2);
    animation: slideInUp 0.6s ease;
}

.landing-hero h1 {
    color: var(--dark-green);
    font-weight: 800;
    line-height: 1.3;
    animation: slideInUp 0.8s ease 0.1s backwards;
}

.landing-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    animation: slideInUp 1s ease 0.2s backwards;
}

.hero-highlight {
    background: var(--bg-white);
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 1.3rem !important;
    animation: slideInUp 1.2s ease 0.3s backwards;
}

.trust-strip {
    background: var(--bg-white);
}

.filter-btn {
    background: var(--bg-white);
    border: 2px solid rgba(46, 125, 50, 0.2);
    color: var(--text-dark);
    padding: 0.75rem 1.8rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-btn.active {
    background: var(--primary-green);
    color: var(--bg-white);
    border-color: var(--primary-green);
}

/* --- MINI CART DRAWER --- */
#miniCartPanel {
    width: min(420px, 92vw);
    box-shadow: -12px 0 40px rgba(17, 17, 17, 0.14);
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 3px solid rgba(46, 125, 50, 0.2);
}

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

.mini-cart-header {
    background: var(--primary-green);
    color: var(--bg-white);
    padding: 1.8rem;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.mini-cart-items {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1.2rem;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 0.8rem;
    transition: background 0.2s ease;
}

.mini-cart-item:hover {
    background: rgba(46, 125, 50, 0.06);
}

.mini-cart-thumb {
    width: 60px;
    height: 60px;
    border-radius: 0.6rem;
    object-fit: cover;
    background: var(--bg-light-blue);
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.mini-cart-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.mini-cart-price {
    color: var(--primary-green);
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
    font-weight: 700;
}

.mini-cart-controls {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.mini-cart-controls .btn {
    min-width: 32px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

.mini-cart-empty {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    padding: 3rem 1.5rem;
    font-weight: 500;
}

.mini-cart-total {
    background: var(--bg-overlay-light);
    padding: 1.8rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--deep-green);
    text-align: right;
    border-top: 2px solid rgba(46, 125, 50, 0.15);
}

.mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
}

.mini-cart-actions .btn {
    width: 100%;
}

/* --- TABLES --- */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-soft);
}

th {
    padding: 1.3rem 1.2rem;
    text-align: left;
    font-weight: 700;
    color: var(--dark-green);
    border-bottom: 2px solid rgba(46, 125, 50, 0.15);
    letter-spacing: 0.4px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(46, 125, 50, 0.08);
    color: var(--text-dark);
    transition: background 0.2s ease;
}

tr:hover {
    background: rgba(46, 125, 50, 0.04);
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: 2px solid rgba(46, 125, 50, 0.15);
    border-radius: 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-white);
    letter-spacing: 0.2px;
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
    background: var(--bg-light-blue);
}

input:disabled {
    background: rgba(46, 125, 50, 0.04);
    cursor: not-allowed;
    color: var(--text-muted);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- ALERTS --- */
.alert {
    padding: 1.3rem 1.5rem;
    border-radius: 0.9rem;
    border-left: 5px solid;
    animation: slideInUp 0.4s ease;
    letter-spacing: 0.2px;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #ecfdf7;
    border-color: var(--success);
    color: #065f46;
    border-left-color: var(--success);
}

.alert-danger {
    background: #fef2f2;
    border-color: var(--danger);
    color: #7f1d1d;
    border-left-color: var(--danger);
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
    border-left-color: #f59e0b;
}

.alert-info {
    background: var(--bg-overlay-light);
    border-color: var(--accent-green);
    color: #1b4d1f;
    border-left-color: var(--accent-green);
}

/* --- BADGES & TAGS --- */
.badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(46, 125, 50, 0.12);
    color: var(--primary-green);
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* --- ORDER STATUS --- */
.status-pendiente {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    border-left: 3px solid #f59e0b;
    font-weight: 700;
}

.status-preparacion {
    color: var(--deep-green);
    background: rgba(46, 125, 50, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    border-left: 3px solid var(--primary-green);
    font-weight: 700;
}

.status-cancelado {
    color: #7f1d1d;
    background: rgba(127, 29, 29, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    border-left: 3px solid #7f1d1d;
    font-weight: 700;
}

.status-enviado {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    border-left: 3px solid #0891b2;
    font-weight: 700;
}

.status-entregado {
    color: #065f46;
    background: rgba(6, 95, 70, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 0.6rem;
    border-left: 3px solid #065f46;
    font-weight: 700;
}

/* --- TESTIMONIALS --- */
.testimonial-item {
    background: var(--bg-white);
    padding: 1.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(46, 125, 50, 0.15);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 125, 50, 0.2);
}

.testimonial-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 1rem;
}

.testimonial-item small {
    color: var(--primary-green);
    font-weight: 700;
    display: block;
}

/* --- CATALOG HIGHLIGHT CARD --- */
.catalog-highlight-card {
    background: var(--bg-overlay-light) !important;
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from { transform: translateX(-25px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.4s ease;
}

.slide-in-up {
    animation: slideInUp 0.5s ease;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 900;
    text-decoration: none;
    animation: slideInUp 0.5s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary-green); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.rounded { border-radius: 0.75rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: 0 4px 15px rgba(17, 17, 17, 0.08); }
.shadow-md { box-shadow: 0 8px 25px rgba(17, 17, 17, 0.08); }
.shadow-lg { box-shadow: 0 15px 40px rgba(17, 17, 17, 0.1); }

.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(46, 125, 50, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-green);
}

/* --- SELECTION STYLING --- */
::selection {
    background: var(--primary-green);
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .landing-hero {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.2rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .product-info {
        padding: 1.2rem;
    }

    .modal-body,
    .modal-header {
        padding: 1.2rem;
    }

    #menuViews .nav-link {
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.85rem 0.6rem;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .landing-hero .hero-pill {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .btn-primary, .btn-success {
        font-size: 0.85rem;
        padding: 0.65rem 1.2rem;
    }

    .card {
        border-radius: 1rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }

    .landing-hero {
        padding: 2rem 0;
    }

    .landing-hero h1 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .mini-cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .mini-cart-thumb {
        width: 50px;
        height: 50px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.6rem 0.4rem;
    }

    .hero-highlight {
        margin-top: 1.5rem;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

