:root {
    --brand-primary: #e65100;
    /* naranja suave */
    --brand-dark: #c94600;
    --brand-light: #FDBA74;
    --brand-bg: #FFFFFF;
    --brand-grey: #dbdbdb;
}

html,
body {
    font-family: 'Creato Display', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8f9fa;
    margin: 0
}


header {
    position: relative;
    z-index: 10;
}

header a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

header a:hover {
    color: #f2f2f2;
    opacity: 0.85;
}

.iconos-header {
    color: white !important;
    box-shadow: none !important;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;

    /* Efecto vidrio */
    /* background: rgba(255, 255, 255, 0.85); */
    background: rgba(230, 81, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.padding-header {
    padding-top: 160px !important;
}

h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-weight: 600;
}

h3,
h4 {
    font-weight: 600;
}

.navbar,
.btn,
.card-title {
    font-weight: 500;
}

.price {
    font-weight: 700;
}

.card {
    border-radius: 12px;
    border: 0 !important;
}

.mercadopago {
    max-width: 480px;
    box-shadow: 0px 0px 15px #EEEEEE;

}

/*HOME COMPLETO*/
.section-title {
    font-weight: 600;
    margin-bottom: 30px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.trust {
    background: #111;
    color: #fff;
    padding: 60px;
    position: relative;
    overflow: hidden;

    background-image: url("../img/marketplace_padel.jpg");
    background-size: cover;
    background-position: center;
}

.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-dark);
}

/******/
.product-card {
    transition: all 0.2s ease;
    border-radius: 14px;
}
.product-card .card-body {
    padding: 7px 11px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-title {
    min-height: 36px;
    font-size: 15px;
}

.score-mobile {
    font-size: small;
}

.product-img {
    height: 220px;
    object-fit: cover;
}

.sin-ofertas {
    background: #eaeaea;
    color: #7f7f7f !important;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: small;
}

.con-ofertas {
    background: #a33434;
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: smaller;
}

.fecha-publicacion {
    font-size: .8em;
}

.brand-logo {
    bottom: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-brand {
    background-color: var(--brand-primary);
}

.badge-status {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 12px;
}

/* Flujo positivo */
.bg-pending {
    background-color: #fff3cd;
    color: #856404;
}

.bg-counter {
    background-color: #ffe69c;
    color: #664d03;
}

.bg-accepted {
    background-color: #d1e7dd;
    color: #0f5132;
}

.bg-waiting-payment {
    background-color: #75c8a8;
    color: #ffffff;
}

.bg-paid {
    background-color: #198754;
    color: #ffffff;
}

/* Estados negativos */
.bg-rejected {
    background-color: #dc3545;
    color: #ffffff;
}

.bg-cancelled {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-condition {
    z-index: 40;
}

.badge.muy-usado {
    background-color: #dc3545;
}

/* rojo */
.badge.usado {
    background-color: #fd7e14;
}

/* naranja */
.badge.semi-nuevo {
    background-color: #ffc107;
}

/* amarillo */
.badge.nuevo {
    background-color: #01a955;
}

/* verde */
.badge.un-uso {
    background-color: #668719;
}

/* verde */
/* Navbar */
.bg-brand {
    background-color: var(--brand-bg);
}

.text-brand {
    color: var(--brand-primary) !important;
}

.text-brand:hover {
    color: var(--brand-dark)
}

.btn {
    border-radius: 6px;
    /* igual que publish */
    font-weight: 700;
    /* bold */
    /* box-shadow: 0 6px 18px rgb(255 255 255 / 18%); */
    transition: all 0.2s ease;
}

/* Hover y foco para todos los botones */
.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    /* efecto sutil de elevación */
    box-shadow: 0 8px 20px rgb(255 255 255 / 25%);
}

/* Opcional: animación de click */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgb(255 255 255 / 18%);
}

.btn-brand {
    background-color: var(--brand-primary);
    border: none;
    color: white;
    font-weight: 500;
    transition: 0.2s ease;
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    color: white;
}

.btn-brand-outline {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-brand-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

.btn-publish-lg {
    padding: 8px 25px;
    font-size: 17px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    border: none;
    background: linear-gradient(to bottom, #ff7a1a, #e65100);
    /* box-shadow: 0 4px 0 #c63f00, 0 8px 20px rgba(230, 81, 0, 0.25); */
    transition: all 0.15s ease;
}

.btn-publish-lg:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 0 #c63f00, 0 14px 26px rgba(230, 81, 0, 0.35); */
}

.btn-publish-lg:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #c63f00,
        0 4px 12px rgba(230, 81, 0, 0.25);
}

.btn-publish-mobile {

    font-size: 14px;
    /* border-radius: 15px; */
    font-weight: 700;
    color: #fff;
    border: none;
    background: linear-gradient(to bottom, #ff7a1a, #e65100);
    box-shadow: 0 4px 7px #ffa57b, 0 8px 20px rgba(230, 81, 0, 0.25);
    transition: all 0.15s ease;
}

.btn-publish-mobile:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #c63f00,
        0 14px 26px rgba(230, 81, 0, 0.35);
}

.btn-publish-mobile:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #c63f00,
        0 4px 12px rgba(230, 81, 0, 0.25);
}

.btn-acciones {
    padding: 3px 6px;
}

.logo {
    max-height: 42px;
    max-width: 250px;
}

.search-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 14px;
}

.search-input:focus {
    box-shadow: none;
}

.btn-google {
    background: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-google:hover {
    background: #f7f8f8;
    border-color: #c6c6c6;
    text-decoration: none;
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Footer */
footer a {
    transition: 0.2s ease;
}

footer a:hover {
    color: var(--brand-primary);
}

/* Links */
a {
    color: var(--brand-primary);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--brand-dark);
}

/* ===========================
   AUTH (Login / Register)
=========================== */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    margin-top: 150px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 40px 45px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: 0.2s ease;
}

.auth-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.auth-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.auth-terms {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 25px;
}

.form-auth {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    transition: 0.2s ease;
}

.form-auth:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
}

.btn-auth {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.auth-link {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--brand-dark);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 2;
    color: #adb5bd;
    font-size: 14px;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.input-code {
    letter-spacing: 8px;
    height: 56px;
    border: 1px solid var(--brand-grey);
}

.input-code:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.15rem rgba(230, 81, 0, 0.25);
}

/* Dropdown usuario */
.dropdown-menu {
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 2000 !important;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    transition: 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-toggle::after {
    display: none;
    /* ocultamos flecha default */
}

/* Sidebar activo */

/* --- BOTON MERCADO PAGO */

.btn-mp {
    background: linear-gradient(to bottom, #FFE600, #f5d800);
    color: #2d2d2d;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 20px;
    font-size: small;
    box-shadow:
        0 4px 0 #d4b800,
        /* borde inferior tipo físico */
        0 6px 18px rgba(204, 170, 0, 0.25);

    transition: all .15s ease;
    margin: 5px 0px;
}

.btn-mp:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #d4b800,
        0 12px 24px rgba(204, 170, 0, 0.35);
}

.btn-mp:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #d4b800,
        0 4px 10px rgba(204, 170, 0, 0.2);
}

.list-group-item {
    font-weight: 500;
    padding: 12px 20px;
    border: none;
    /* quitamos bordes */
    border-radius: 0;
    /* sin borde redondeado lateral */
    transition: all 0.2s ease;
    background-color: transparent;
    color: #000;
}

.list-group-item:hover {
    background-color: var(--brand-grey);
    color: #000;
}

.list-group-item.active {
    background-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}

/* Botones dentro del panel */
.btn-dark {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-dark:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Mensajes de éxito y error opcionales */
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* Badges de notificaciones y carrito */
.badge-notification {
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}

/* ============================= */
/* ACCORDION BRAND OVERRIDE */
/* ============================= */

.accordion {

    /* Estado cerrado */
    --bs-accordion-btn-bg: var(--brand-bg);
    --bs-accordion-btn-color: var(--brand-primary);

    /* Estado abierto */
    --bs-accordion-active-bg: var(--brand-primary);
    --bs-accordion-active-color: #ffffff;

    /* Borde */
    --bs-accordion-border-color: var(--brand-grey);

    /* Quitar glow celeste */
    --bs-accordion-btn-focus-box-shadow: none;
}

/* Hover */
.accordion-button:hover {
    background-color: var(--brand-light);
    color: #000;
}

/* Flecha */
.accordion-button::after {
    filter: brightness(0.7);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* ===========================
   MOBILE MENU BRAND STYLE
=========================== */

.offcanvas {
    background-color: var(--brand-bg);
    z-index: 2000 !important;
}

.offcanvas-header {
    background-color: var(--brand-primary);
    color: #fff;
    border-bottom: none;
}

.offcanvas-header h5 {
    color: #fff;
}

.offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

.offcanvas-body {
    padding: 20px;
}

.offcanvas-body .border-bottom {
    border-color: var(--brand-grey) !important;
}

.offcanvas-body a {
    color: #000;
    text-decoration: none;
    transition: 0.2s ease;
}

.offcanvas.show {
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.offcanvas-body a:hover {
    color: var(--brand-primary);
}

.mobile-categories>div {
    padding: 10px 0;
    border-bottom: 1px solid var(--brand-grey);
}

.mobile-categories>div:last-child {
    border-bottom: none;
}

.mobile-categories>div>a {
    font-size: 15px;
}

.mobile-categories .ps-3 a {
    font-size: 13px;
    color: #6c757d;
}

.mobile-categories .ps-3 a:hover {
    color: var(--brand-primary);
}

/* Offcanvas por encima del header fijo */

.offcanvas-backdrop {
    z-index: 1990 !important;
}

/* Paginacion categorias */
.pagination .page-link {
    color: var(--brand-primary);
}

.pagination .active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.stars i {
    font-size: 11px;
    padding-bottom: 7px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px
    }

    .auth-wrapper {
        margin-top: 20px;
    }

    .btn-acciones {
        margin: 3px;
    }

    .product-title {
        font-size: 14px;
        min-height: 36px;
    }

    .product-img {
        height: 160px;
    }


    .btn-publish-lg {
        width: 100%;
        margin-top: 10px;
    }

    .search-group {
        margin-top: 15px;
    }

    .search-input {
        height: 48px;
        font-size: 16px;
    }

    .search-group .btn {
        display: none !important;
    }

    .btn-publish {
        margin-top: 10px;
    }

    .category-container {
        display: none;
    }

    .padding-header {
        padding-top: 10px !important;
    }

    .logo {
        max-height: 30px;
    }

    .col-12.col-md-6 {
        order: 3;
    }

    .btn-link {
        padding: 4px;
    }

    .fa-lg {
        font-size: 18px;
    }

}

@media (max-width: 991px) {
    .sidebar-mobile {
        padding-top: 20px;
        /* ajustá según altura real del header */
    }

    .padding-header h1 {
        padding-top: 45px;
    }
}