/* Common Styles - MercadoLibre Inspired (Green Variant) */
body {
    font-family: 'Proxima Nova', -apple-system, 'Roboto', 'Arial', sans-serif;
    background-color: #ebebeb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333333;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

.bg-brand-green {
    background-color: #00a650 !important;
}

.text-brand-green {
    color: #00a650 !important;
}

.btn-brand-primary {
    background-color: #00a650;
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-brand-primary:hover {
    background-color: #008f45;
    color: #fff;
}

/* Navbar Overrides */
.navbar-brand-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .navbar-brand-centered {
        position: relative;
        left: auto;
        transform: none;
    }
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #f1f1f1 !important;
}

.bg-brand-green {
    background: linear-gradient(135deg, #00a650 0%, #007b3b 100%) !important;
}

/* ML Button Styles */
.btn-meli {
    font-family: 'Proxima Nova', -apple-system, 'Roboto', 'Arial', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-meli-primary {
    background-color: #3483fa;
    color: white;
}

.btn-meli-primary:hover {
    background-color: #2968c8;
    color: white;
    text-decoration: none;
}

.btn-meli-green {
    background-color: #00a650;
    color: white;
}

.btn-meli-green:hover {
    background-color: #008f45;
    color: white;
    text-decoration: none;
}

.btn-meli-secondary {
    background-color: rgba(65, 137, 230, .15);
    color: #3483fa;
}

.btn-meli-secondary:hover {
    background-color: rgba(65, 137, 230, .2);
    color: #2968c8;
    text-decoration: none;
}

/* Hero Banner */
.hero-banner {
    background: #00a650;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
}

/* Product Cards */
.product-card {
    transition: box-shadow 0.2s ease-out;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background-color: #ffffff;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: none !important;
    border-color: transparent;
}

.product-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 4rem;
    color: #adb5bd;
    border-bottom: 1px solid #eee;
}

.product-card .card-img-top {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

.price {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333333;
}

.category-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999999;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #6c757d;
}

.nav-tabs .nav-link:hover {
    color: #343a40;
}

.nav-tabs .nav-link.active {
    color: #343a40 !important;
}

@media (min-width: 992px) {
    .store-sidebar {
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }

    .store-sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav.flex-row .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
    }

    .store-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        bottom: 0;
        background-color: #fff;
        z-index: 1050;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .store-sidebar.show {
        left: 0;
    }

    .store-sidebar .navbar-nav .nav-link {
        color: #333333 !important;
        padding: 12px 20px;
        font-weight: 400;
    }

    .store-sidebar .navbar-nav .nav-link:hover {
        color: #00a650 !important;
        background-color: rgba(0, 166, 80, 0.05);
        border-radius: 4px;
    }

    .store-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    .store-sidebar-overlay.show {
        display: block;
    }
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Desktop Search Bar */
@media (min-width: 992px) {
    .search-bar-form {
        max-width: 500px;
    }
}

/* Right Slideout Modal for Mobile Filters */
.modal.right { padding-right: 0 !important; }
.modal.right .modal-dialog-slideout {
    margin: 0 0 0 auto;
    min-height: 100vh;
    transform: translate(100%, 0) !important;
    transition: transform .3s ease-out;
}

.modal.right.show .modal-dialog-slideout {
    transform: translate(0, 0) !important;
}