body {
    font-family: "Montserrat", sans-serif;
    background-color: #ebebeb;
}

@media screen and (min-width: 1440px) {
    .container {
        max-width: 1240px
    }
}

button:active,
button:focus {
    outline: none;
}

nav {
    z-index: 100;
}

.dropdown-submenu > .subcategoria .dropdown-toggle:after {
    content: "";
    flex-shrink: 0;
    background: url("../assets/right.svg") no-repeat center / contain;
    width: 10px;
    height: 10px;
    border: none;
    margin-left: 10px;
    float: none;
    position: static;
    opacity: 0.5;
    transition: opacity 120ms ease, transform 120ms ease;
}

.dropdown-submenu > .subcategoria:hover .dropdown-toggle:after {
    opacity: 0.85;
    transform: translateX(2px);
}

.dropdown-submenu > .subcategoria .sin-cantidad:after {
    background: none;
    width: 0;
    margin-left: 0;
}

.whatsapp-chat {
    position: fixed;
    right: 3.5rem;
    bottom: 3rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #00E676;
    box-shadow: 2px 2px 6px rgb(0 0 0 / 40%);
    z-index: 999;
    text-align: center;
}

.whatsapp-chat i {
    color: white;
    vertical-align: middle;
    padding: 5px 2px;
}

li.subcategoria {
    position: relative;
}

li.subcategoria a {
    padding-left: 0.75rem;
}

.dropdown-submenu .subcategoria-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
    min-width: 11rem;
}

nav .fa-shopping-cart {
    color: #FFF0D9;
}

.navbar {
    background-color: #F08300;
    padding: 8px;
}

.navbar .navbar-brand img {
    height: 60px;
}

.navbar .nav-link {
    font-size: 16px;
    color: #FFF0D9 !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #FFF0D9;
}

.table-container {
    overflow-x: auto;
}

.btn-crema {
    background-color: #FFF0D9;
    border-color: #FFF0D9;
    color: white;
}

.btn-azul {
    background-color: #004283;
    border-color: #004283;
    color: white;
}

.btn-azul.disabled {
    opacity: .3;
    cursor: not-allowed;
}

.btn-naranja {
    background-color: #F08300;
    width: 100%;
    color: #FFF0D9;
    font-weight: 800;
}

.btn-azul:hover {
    color: white;
}

.btn-ver-mas {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: 2rem;
    box-shadow: 0 4px 14px rgba(0, 66, 131, .25);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-ver-mas:hover,
.btn-ver-mas:focus {
    background-color: #003068;
    border-color: #003068;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 66, 131, .35);
}

.btn-link {
    color: #FFF0D9;
}

.sidebar {
    display: block;
    position: absolute;
    left: -300px;
    top: 65px;
    width: 300px;
    padding: 25px 13px;
    height: calc(100vh - 65px);
    box-shadow: 2px 0 4px 0 rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 99;
}

.sidebar.open {
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(100%, 0);
}

.sidebar .menu li {
    font-size: 16px;
    color: #2c2c2c;
    margin-left: -28px;
    list-style: none;
    padding: 10px 0;
}

.navbar-nav li.carrito, .menu li.carrito {
    position: relative;
}


.fa-shopping-cart {
    font-size: 1.5em;
}

.cantidad {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    background-color: white;
    color: #F08300;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
    white-space: nowrap;
}

.mensaje-carrito {
    position: absolute;
    left: -5em;
    top: 3em;
    background-color: #fff;
    color: #2c2c2c;
    padding: 0.75em 1em;
    width: max-content;
    max-width: 22em;
    border-top: 3px solid #00458c;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 69, 140, 0.13);
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.5;
    z-index: 9999;
}

.mensaje-carrito::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.mensaje-carrito::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #00458c transparent;
}


.menu li a {
    color: #2c2c2c;
}

/* ── Contact band (pre-footer) ───────────────────────────── */
.contact-band {
    background-color: #1e3349;
    padding: 3rem 0 2.5rem;
}

.contact-band__heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-band__sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-band__btn {
    background-color: #00458c;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.contact-band__btn:hover {
    background-color: #005ab5;
    color: #fff;
}

.contact-band__info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}

.contact-band__info-row i {
    margin-top: 3px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.contact-band__info-row a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.contact-band__info-row a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    position: static;
    background-color: #3a3a3a;
    clear: both;
    padding-bottom: 0;
    padding-top: 0;
}

/* Top accent bar */
.footer__accent-bar {
    height: 4px;
    background-color: #00458c;
    width: 100%;
}

.footer h2 {
    font-size: 70px;
    font-weight: 800;
    color: #00458c;
}

.footer p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #c8c8c8;
    line-height: 1.6;
}

.footer a {
    padding: 0;
    font-size: 14px;
    color: #c8c8c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Section headings */
.footer__heading {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00458c;
    display: inline-block;
}

.footer__heading-link {
    color: inherit;
    text-decoration: none;
}

.footer__heading-link:hover {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

/* Contact rows — flex so icon stays top-aligned when text wraps */
.footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 8px;
    font-size: 14px;
    color: #c8c8c8;
    line-height: 1.6;
}

.footer__contact-row i {
    flex-shrink: 0;
    margin-top: 3px;
    color: rgba(255,255,255,0.5);
}

.footer__contact-row a {
    color: #c8c8c8;
    text-decoration: none;
    word-break: break-all;
}

.footer__contact-row a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Icon spacing inside contact rows */
.footer__icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    color: #00458c;
    margin-right: 8px;
    margin-top: 2px;
}

/* Social icons row */
.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__social a {
    color: #c8c8c8;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer__social a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Shipping block */
.footer__shipping {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer__shipping-icon {
    width: 38px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.85;
}

/* Bottom copyright bar */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0;
    margin-top: 8px;
    text-align: center;
}

.footer__copyright {
    font-size: 12px;
    color: #888888;
}

.footer__text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer__link {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__link:hover {
    color: #fff;
    text-decoration: underline;
}


.footer__input {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.875rem;
}

.footer__input:focus {
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    box-shadow: none;
}

.footer__input::placeholder {
    color: rgba(255,255,255,0.45);
}

.footer input::placeholder {
    color: #c8c8c8;
}

.footer .divisor {
    display: block;
    position: relative;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    width: 100%;
    left: 0;
    right: 0;
    margin: 15px 0;
}

.home.img-fondo {
    background-image: url('../assets/img-home.jpg');
    background-repeat: no-repeat;
    background-position: center top -260px;
    background-size: cover;
    margin: auto;
    padding-top: 260px;
    height: 700px;
    text-align: center;
}

.home .card {
    background-color: rgba(255, 255, 255, 0.7);
}

.card-categoria {
    border: none;
    margin-top: 15px;
}

.card-categoria a:hover {
    color: #747474;
}

.img-circular {
    border-radius: 50%;
    border: solid 3px #FFC700;
    width: 195px;
    height: 195px;
}

.circulo {
    height: 175px;
    width: 175px;
    border-radius: 50%;
    background-color: #747474;
    text-align: center;
    padding-top: 4em;
    margin: 0 auto;
    border: solid 3px #FFC700;
}

.circulo h3 {
    color: white;
}

.card-categoria h4 {
    color: #747474;
    font-weight: 600;
    font-size: 20px;
}

.home h2 {
    color: #FFF0D9;
    font-weight: 800;
    font-size: 40px;
}

.hero-banner {
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 6%;
    /* stronger left-to-right scrim — guarantees dark backing for text at any brightness */
    background: linear-gradient(to right, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.14) 50%, transparent 100%);
    pointer-events: none;
}

.hero-overlay__content {
    pointer-events: auto;
    max-width: 380px;
    /* frosted pill so text stays readable even if gradient isn't enough */
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
}

.hero-overlay__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: .5rem;
}

.hero-overlay__subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.hero-overlay__cta {
    font-size: .9rem;
    padding: .55rem 1.4rem;
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

@media (max-width: 576px) {
    .hero-overlay {
        align-items: flex-end;
        padding-bottom: 1.5rem;
        padding-left: 0;
        justify-content: center;
        background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
    }

    .hero-overlay__content {
        text-align: center;
        max-width: 100%;
        padding: 1.25rem 1.25rem;
        margin: 0 1rem;
    }

    .hero-overlay__title {
        font-size: 1.4rem;
    }
}

/* Legacy base rules — superseded by the "Product card polish" block below (~l.1844) */
.productos .bg-white {
    height: auto;
    padding: 0; /* padding moved to .producto__content and .producto__actions */
    box-shadow: none; /* box-shadow set in polish block */
    transition: none; /* transition set in micro-interactions block */
}

.productos .bg-white:hover {
    -ms-transform: none;
    -webkit-transform: none;
    transform: none; /* overridden by polish block */
    box-shadow: none; /* overridden by polish block */
}

.productos .bg-white img {
    width: 100%;
    height: auto; /* height now on .producto__imagen wrapper */
}

/* Legacy heading rules — superseded by .producto__title-link h5 and .producto__precio h4 */
.productos h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.productos h4 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 0;
}

.productos h3 {
    font-weight: 600;
}

.productos input:focus {
    box-shadow: none;
    border-color: inherit;
}

.productos .btn-link {
    font-weight: 600;
    font-size: 18px;
    color: #FFF0D9;
}

.detalle-producto h3 {
    font-size: 26px;
    font-weight: 700;
}

.detalle-producto img {
    width: 100%;
    height: 500px;
    border: 3px solid #e6e8ed;
}

.detalle-producto h4 {
    font-size: 26px;
}

.detalle-producto p {
    color: #747474;
    font-size: 16px;
}

.productos small,
.detalle-producto small {
    color: #747474;
}

.detalle-producto small {
    font-size: 16px;
}

.carousel-inner img {
    height: 600px;
    width: auto;
}

tbody img {
    height: 100px;
    width: 100px;
}

#contacto h2 {
    font-size: 34px;
    font-weight: 600;
    color: #F08300;
}

#contacto a {
    text-decoration: none;
}

#contacto h5,
#contacto label {
    color: #F08300;
    font-size: 21px;
    font-weight: 600;
}

#contacto p {
    color: #F08300;
    font-size: 16px;
    line-height: 1.1;
}

#contacto .btn-outline-primary {
    color: #F08300;
    font-size: 18px;
    font-weight: 600;
    border-color: #F08300;
    padding: 10px 30px;
}

#contacto .btn-outline-primary:hover {
    color: white;
    background-color: #F08300;
    border-color: #F08300;
}

#contacto .fas {
    color: #F08300;
    font-size: 18px;
}

#contacto .fa-whatsapp {
    color: #55cd6c;
}

#contacto hr {
    border-top: 2px dashed #F08300;
}

#contacto input {
    height: 50px;
}

#contacto textarea {
    resize: none;
}

#contacto input:focus,
#contacto textarea:focus {
    outline: none;
    box-shadow: none;
}

#login input {
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

#login input.input-con-icono {
    padding-left: 38px;
}

#login input.input-con-toggle {
    padding-right: 40px;
}

#login input:focus {
    border-color: #004283;
    box-shadow: 0 0 0 3px rgba(0, 66, 131, .12);
    outline: none;
}

#login .icono-input-left {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 0 11px;
    color: #aaa;
    pointer-events: none;
}

#login .toggle-password {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 11px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
}

#login .toggle-password:hover {
    color: #004283;
}

#login .toggle-password:focus {
    outline: none;
}

/* ── Login split layout ─────────────────────────────── */
#login {
    display: flex;
    min-height: 610px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.login-split {
    display: flex;
    width: 100%;
    min-height: inherit;
}

/* Left: photo/hero side */
.login-split__hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 3.5rem;
    background: rgba(0, 0, 0, 0.28);
}

/* Text protection box */
.login-split__hero-content {
    background: rgba(0, 0, 0, 0.48);
    padding: 2rem 2.25rem;
    border-radius: 12px;
}

/* Right: form panel */
.login-split__form {
    flex: 0 0 44%;
    max-width: 520px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem;
}

/* Hero text */
.login-split__hero .login-heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: .5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.login-split__hero .login-benefits-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 1rem;
    margin-bottom: .75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.login-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-benefits-list li {
    color: #fff;
    font-size: 14px;
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.login-split__hero .fas,
.login-split__hero .fa {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    width: 20px;
    text-align: center;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

/* Form panel */
#login h5 {
    color: #00458c;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#login .login-split__form .fas,
#login .login-split__form .fa {
    color: #00458c;
}

#login .btn-azul {
    font-weight: 600;
    padding: .65rem 1.25rem;
    font-size: 1rem;
    letter-spacing: .02em;
}

.login-forgot-link {
    font-size: .875rem;
    color: #00458c;
    text-decoration: none;
}

.login-forgot-link:hover {
    color: #003068;
    text-decoration: underline;
}

/* Mobile: apilar */
@media (max-width: 767px) {
    #login {
        min-height: unset;
    }
    .login-split {
        flex-direction: column;
    }
    .login-split__hero {
        min-height: 220px;
        padding: 3.5rem 1.25rem 1.5rem;
        align-items: center;
        justify-content: center;
    }
    .login-split__hero-content {
        width: 85%;
    }
    .login-split__hero-content {
        padding: 1rem 1.25rem;
    }
    .login-split__hero .login-heading {
        font-size: 16px;
        margin-bottom: .25rem;
    }
    .login-split__hero .login-benefits-label {
        font-size: 10px;
        margin-top: .6rem;
        margin-bottom: .5rem;
    }
    .login-benefits-list li {
        font-size: 13px;
        margin-bottom: .5rem;
    }
    .login-split__form {
        flex: 1;
        max-width: 100%;
        padding: 2rem 1.25rem;
    }
}

.pagination .page-link {
    color: #2c2c2c !important;
    background-color: transparent !important;
    height: 45px;
    width: 45px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    border: none;
}

.pagination .page-item.active .page-link {
    background-color: #e7e7e7 !important;
    border: none;
    border-radius: 3px;
}

.pagination .page-link:focus {
    outline: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#conocenos h2 {
    font-size: 34px;
    font-weight: 600;
    color: #F08300;
}

#conocenos p {
    font-size: 20px;
}

#conocenos hr {
    border-top: 2px solid #F08300;
}

#conocenos .card {
    border-radius: 10px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
    border: none;
    min-height: 350px;
}

#conocenos .card.celeste {
    background-color: #008ac3;
}

#conocenos .card.verde {
    background-color: #3cb371;
}

#conocenos .card.naranja {
    background-color: #F08300;
}

#conocenos .card h4 {
    color: white;
    font-weight: 700;
    font-size: 22px;
}

#conocenos .card span {
    color: white;
    font-weight: 600;
}

#conocenos .card .circulos {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    text-align: center;
    margin: 0 auto;
    padding: 35px 0;
    border: 5px solid white;
    margin-top: -60px;
}

#conocenos .card.celeste .circulos {
    background-color: #008ac3;
}

#conocenos .card.verde .circulos {
    background-color: #3cb371;
}

#conocenos .card.naranja .circulos {
    background-color: #F08300;
}

#conocenos .card .circulos .fas {
    color: white;
    position: relative;
    bottom: 5px;
}

.text-muted {
    font-size: 20px;
}

.modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal p {
    font-size: 20px;
}

.pagination .page-link {
    color: #2c2c2c !important;
    background-color: transparent !important;
    height: 45px;
    min-width: 65px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    border: none;
}

.pagination .page-item.active .page-link {
    background-color: #e7e7e7 !important;
    border: none;
    border-radius: 3px;
}

.pagination .page-link:focus {
    outline: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.fa-angle-right {
    position: absolute;
    left: 96px;
    top: 10px;
}

.fa-angle-left {
    position: absolute;
    left: -8px;
}

.input-cantidad .input-group-append,
.input-cantidad .input-group-prepend {
    cursor: pointer;
}

/* Hide native browser spinners on quantity inputs */
.input-stepper .input-cantidad::-webkit-outer-spin-button,
.input-stepper .input-cantidad::-webkit-inner-spin-button,
.qty-stepper .input-cantidad::-webkit-outer-spin-button,
.qty-stepper .input-cantidad::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-stepper .input-cantidad[type=number],
.qty-stepper .input-cantidad[type=number] {
    -moz-appearance: textfield;
}

.input-cantidad .input-group-text {
    background-color: white;
}

@media (max-width: 500px) {
    .footer img:not(.footer__shipping-icon) {
        width: 100%;
    }

    .footer__shipping {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer__shipping-icon {
        width: 30px;
        flex-shrink: 0;
    }

    .footer__bottom {
        text-align: center;
    }

    .navbar {
        height: initial;
    }

    .table-container {
        overflow-x: auto;
    }

    .home.img-fondo {
        height: 300px;
        padding-top: 6em;
        padding-bottom: 6em;
        background-position: center;
    }

    .productos .bg-white {
        margin-top: 10px;
    }

    .productos .bg-white img {
        width: 100%; /* was width:auto — keep full width on mobile */
    }

    .detalle-producto img {
        height: auto;
    }

    #conocenos .card {
        margin-top: 45px;
    }

    #login.img-fondo {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .img-circular {
        width: 143px;
        height: 143px;
    }

    .circulo {
        width: 143px;
        height: 143px;
        padding-top: 3.5em;
    }

    .pagination.justify-content-center {
        justify-content: unset !important;
    }

    .pagination {
        width: 100%;
        overflow-x: scroll;
    }
}

@media (max-width: 390px) {
    .circulo {
        width: 100%;
        height: 123px;
        padding-top: 3em;
    }
}

.dataTables_wrapper .dataTables_filter {
    float: left !important;
    text-align: left !important;
}

.dataTables_filter input {
    margin-left: 0 !important;
}

.dataTables_filter input:focus {
    box-shadow: none;
    border: 1px solid #ced4da;
}

.dataTables_wrapper .paginate_button.current {
    border: none !important;
    border-radius: 3px !important;
    position: relative !important;
    padding: .5rem .75rem !important;
    margin-left: -1px !important;
    line-height: 1.25 !important;
    background: #e7e7e7 !important;
}

#users_table_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #e7e7e7 !important;
}

#users_table_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: white !important;
    border-color: white !important;
    color: black !important;
}

#products_table_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    box-shadow: none;
}

#products_table_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #e7e7e7 !important;
}

#products_table_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: white !important;
    border-color: white !important;
    color: black !important;
}

#users_table_wrapper.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    box-shadow: none;
}

.table-responsive.users,
.table-responsive.products {
    overflow-x: auto;
}

@media screen and (max-width: 1280px) {
    .home.img-fondo {
        background-position: center top;
        height: 650px;
    }
    .productos .producto a h5 {
        font-size: 14px;
    }
}

@media screen and (max-width: 960px) {
    .productos .producto a h5 {
        font-size: 12px;
    }
    .productos .producto p {
        font-size: 10px;
    }
}



@media screen and (max-width: 767px) {
    .table-responsive.users {
        overflow-x: auto;
    }

    .table-responsive.products {
        overflow-x: auto;
    }

    .navbar .navbar-brand img {
        height: 55px;
    }

    .home.img-fondo {
        height: 600px;
    }

    .whatsapp-chat {
        right: 1rem;
        bottom: 1rem;
    }

    nav .fa-shopping-cart:before {
        color: #F08300;
    }
}

.table tr td.disabled {
    opacity: .4;
    position: relative;
}

.table .not-available {
    position: absolute;
}

/* ===== Cart / Carrito ===== */

.carrito-page {
    max-width: 1020px;
    margin: 0 auto;
}

/* Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-header__title {
    font-weight: 700;
    margin: 0;
}

/* Item list */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.15s;
}

.cart-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.11);
}

.cart-item--unavailable {
    opacity: 0.6;
}

/* Image */
.cart-item__image {
    flex: 0 0 80px;
}

.cart-item__image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cart-item__no-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: #adb5bd;
    font-size: 22px;
}

/* Info */
.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item__name a {
    color: #004283;
    text-decoration: none;
}

.cart-item__name a:hover {
    text-decoration: underline;
}

.cart-item__meta {
    font-size: 13px;
    color: #6c757d;
}

/* Column label */
.cart-item__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    margin-bottom: 3px;
}

/* Unit price */
.cart-item__unit-price {
    text-align: right;
    min-width: 100px;
}

.cart-item__value {
    font-size: 15px;
    font-weight: 500;
    color: #343a40;
}

/* Qty */
.cart-item__qty {
    text-align: center;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin-top: 4px;
}

.qty-stepper .input-cantidad {
    border: none;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    border-radius: 0;
    width: 76px;
    height: 34px;
    text-align: center;
    box-shadow: none;
    padding: 4px 2px;
    font-weight: 600;
    font-size: 14px;
}

.qty-stepper .input-cantidad:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.btn-stepper-qty {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 34px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #004283;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}

.btn-stepper-qty:hover {
    background: #e2e6ea;
}

.btn-stepper-qty:active {
    background: #d6d8db;
}

.btn-stepper-qty:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Subtotal */
.cart-item__subtotal {
    text-align: right;
    min-width: 100px;
}

.cart-item__subtotal-value {
    font-weight: 700;
    color: #004283;
    font-size: 16px;
}

/* Remove button */
.cart-item__remove {
    flex: 0 0 auto;
}

.btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #adb5bd;
    background: transparent;
    border: 1px solid #e9ecef;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-remove:hover {
    color: #dc3545;
    border-color: #f5c6cb;
    background: #fff5f6;
}

/* Summary block (shared with detalle) */
.cart-summary {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    margin-bottom: 20px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary__total {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

/* CTA row (shared with detalle) */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-actions__primary {
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cart-actions__secondary {
    padding: 10px 20px;
    font-size: 14px;
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.cart-empty__icon {
    font-size: 56px;
    color: #ced4da;
    margin-bottom: 20px;
}

.cart-empty .fa-shopping-cart {
    font-size: inherit;
}

/* ===== Detalle page ===== */

.detail-items {
    display: flex;
    flex-direction: column;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f3f3f3;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item__thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f8f8f8;
}

.detail-item__info {
    flex: 1;
    min-width: 0;
}

.detail-item__name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-item__code {
    font-size: 12px;
    color: #6c757d;
}

.detail-item__qty {
    font-size: 14px;
    color: #6c757d;
    min-width: 36px;
    text-align: center;
}

.detail-item__unit {
    font-size: 13px;
    color: #6c757d;
    min-width: 90px;
    text-align: right;
}

.detail-item__subtotal {
    font-weight: 700;
    font-size: 15px;
    color: #004283;
    min-width: 90px;
    text-align: right;
}

.detail-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    margin: 0;
}

.detail-dl dt {
    font-weight: 600;
    font-size: 13px;
    color: #6c757d;
    align-self: start;
    padding-top: 1px;
}

.detail-dl dd {
    margin: 0;
    font-size: 14px;
    word-break: break-word;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-item__image {
        flex: 0 0 64px;
    }

    .cart-item__image img,
    .cart-item__no-image {
        width: 64px;
        height: 64px;
    }

    .cart-item__info {
        flex: 1;
    }

    .cart-item__unit-price {
        display: none;
    }

    .cart-item__qty {
        flex: 0 0 auto;
    }

    .cart-item__subtotal {
        flex: 1;
        text-align: right;
    }

    .cart-item__remove {
        order: -1;
    }

    .cart-actions {
        flex-direction: column-reverse;
    }

    .cart-actions .btn {
        width: 100%;
        text-align: center;
    }

    .detail-item__unit {
        display: none;
    }
}

/* Add-to-cart stepper */
.add-to-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.input-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid #dde2e8;
    border-radius: 50px;
    background-color: #f4f6f9;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
    width: auto;
}

.input-stepper .input-cantidad {
    border: none;
    border-radius: 0;
    width: 40px;
    flex: none;
    box-shadow: none;
    text-align: center;
    background-color: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 0;
    height: 28px;
    line-height: 28px;
}

.input-stepper .input-cantidad:focus {
    box-shadow: none;
    outline: none;
}

.btn-stepper {
    background: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #004283;
    transition: background 0.12s, color 0.12s;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.btn-stepper:hover {
    background: #e8eef5;
    color: #003471;
}

.btn-stepper:active {
    background: #d9e3ee;
}

.add-to-cart .btn-add-cart {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.25rem 0.375rem;
}

.btn-add-cart .fa-shopping-cart {
    font-size: inherit;
}

/* Add-to-cart button states */
.btn-add-cart:disabled {
    opacity: 1;
    cursor: not-allowed;
}

/* Inline spinner shown during the loading state */
.btn-add-cart-spinner {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
    vertical-align: middle;
    margin-right: 2px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Confirmation state: green tint while "✔ Agregado" is shown */
.btn-azul[disabled].btn-add-cart-success {
    background-color: #1a7a3e;
    border-color: #1a7a3e;
}

/* Stepper disabled state during in-flight request */
.btn-stepper:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* ===== Checkout progress steps ===== */

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 4px;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.checkout-step__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.checkout-step__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Done step */
.checkout-step--done .checkout-step__circle {
    background: #004283;
    color: #fff;
}

.checkout-step--done .checkout-step__label {
    color: #004283;
}

/* Active step */
.checkout-step--active .checkout-step__circle {
    background: #004283;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 66, 131, 0.18);
}

.checkout-step--active .checkout-step__label {
    color: #004283;
}

/* Upcoming step */
.checkout-step--upcoming .checkout-step__circle {
    background: #e9ecef;
    color: #adb5bd;
}

.checkout-step--upcoming .checkout-step__label {
    color: #adb5bd;
}

/* Connector lines */
.checkout-step__line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    min-width: 40px;
    max-width: 100px;
    margin-bottom: 22px; /* aligns with circle center */
}

.checkout-step__line--done {
    background: #004283;
}

/* ===== Checkout page layout ===== */

.checkout-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Checkout sidebar (right column on desktop) ===== */

.checkout-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkout-sidebar__total {
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 20px 20px 16px;
    border: 1px solid #e9ecef;
    border-bottom: none;
    text-align: center;
}

.checkout-sidebar__total-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 8px;
}

.checkout-sidebar__total-amount {
    font-size: 32px;
    font-weight: 800;
    color: #004283;
    line-height: 1.1;
    margin-bottom: 8px;
}

.checkout-sidebar__total-note {
    font-size: 12px;
    color: #adb5bd;
}

.checkout-sidebar__cta {
    border-radius: 0 !important;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-sidebar__back {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #6c757d;
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
    transition: background 0.15s, color 0.15s;
}

.checkout-sidebar__back:hover {
    background: #f8f9fa;
    color: #343a40;
    text-decoration: none;
}

/* Trust signals */
.checkout-trust {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.checkout-trust__item i {
    color: #004283;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== Checkout cards (left column) ===== */

.checkout-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.checkout-card__header {
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    letter-spacing: 0.01em;
}

.checkout-card__body {
    padding: 18px;
}

/* detail-items inside checkout card */
.checkout-card .detail-items {
    padding: 0 4px;
}

.checkout-card .detail-item {
    padding: 12px 14px;
}

/* ===== Responsive ===== */

@media (max-width: 991px) {
    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .checkout-steps {
        gap: 0;
    }

    .checkout-step__line {
        min-width: 24px;
    }

    .checkout-step__label {
        font-size: 10px;
    }

    .checkout-sidebar__total-amount {
        font-size: 26px;
    }

    .checkout-trust {
        display: none;
    }

    .detail-item__unit {
        display: none;
    }
}

/* ===== Product card polish ===== */

/* Base card: rounded, clipped, subtle border + shadow */
.productos .bg-white {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

/* Hover: gentle lift + warmer directional shadow */
.productos .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 66, 131, 0.14);
    border-color: rgba(0, 66, 131, 0.12);
}

/* Legacy img rule — superseded by the consolidated block at the bottom */
.productos .bg-white img {
    width: 100%;
    object-fit: cover;
    background-color: #ffffff;
    padding: 0;
}

/* Content padding */
.producto__content {
    padding: 12px 14px 10px;
}

/* Actions area: top border separates it from content, consistent padding */
.producto__actions {
    padding: 10px 14px 14px;
    border-top: 1px solid #f0f2f5;
    margin-top: 2px;
}

/* Title link */
.producto__title-link {
    display: block;
    text-decoration: none;
}

.producto__title-link h5 {
    margin-top: 0;
    margin-bottom: 4px;
    color: #1a1a2e;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    transition: color 0.15s;
}

.producto__title-link:hover h5 {
    color: #004283;
}

/* Product code */
.producto__codigo {
    font-size: 11px;
    color: #b0b8c4;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.producto__codigo strong {
    color: #8a9ab0;
    font-weight: 600;
}

/* Price block */
.producto__precio {
    margin-bottom: 0;
}

.producto__precio small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #c0c8d4;
    margin-bottom: 1px;
}

.producto__precio h4 {
    font-size: 17px;
    font-weight: 800;
    color: #004283;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

/* Description (guest view) */
.producto__descripcion {
    font-size: 12.5px;
    color: #8a9ab0;
    line-height: 1.45;
    margin-bottom: 0;
}

/* ===== Product detail page polish ===== */

/* Info column top spacing aligned with image */
.detalle-producto__info {
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

/* Product name inside info column */
.detalle-producto__info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 14px;
}

/* Detail image: contain + neutral bg */
.detalle-producto img {
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Price block in detail */
.detalle-precio {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.detalle-precio--sin-carrito {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.detalle-specs--sin-carrito {
    border-top: none;
    padding-top: 0;
}

.detalle-precio small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    margin-bottom: 4px;
}

.detalle-precio h4 {
    font-size: 30px;
    font-weight: 800;
    color: #004283;
    margin-bottom: 0;
    line-height: 1.1;
}

/* Add-to-cart row layout for detail page */
.add-to-cart--row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 10px !important;
}

/* Add-to-cart button width in detail context */
.btn-add-cart--detail {
    flex: none;
    white-space: nowrap;
}

/* Specs block */
.detalle-specs {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.detalle-specs p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 4px;
}

.detalle-specs p strong {
    color: #343a40;
}

.detalle-specs__section-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd !important;
}

/* Footer actions row */
.detalle-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 767px) {
    .detalle-producto__info {
        margin-top: 20px;
    }

    .detalle-precio h4 {
        font-size: 24px;
    }

    .add-to-cart--row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .btn-add-cart--detail {
        width: 100%;
        flex: none;
    }
}

/* ===== Cart aligned with checkout wizard ===== */

/* Cart items inside a checkout-card lose individual shadows/radii
   and use a simple border-bottom divider instead */
.cart-list--card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-list--card .cart-item {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f3f3f3;
    padding: 14px 18px;
    transition: background 0.12s;
}

.cart-list--card .cart-item:last-child {
    border-bottom: none;
}

.cart-list--card .cart-item:hover {
    background: #fafcff;
    box-shadow: none;
    transform: none;
}

/* checkout-card header with right-aligned action */
.cart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-card-header__action {
    font-size: 12px;
    font-weight: 600;
    color: #dc3545;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.cart-card-header__action:hover {
    opacity: 1;
    color: #dc3545;
    text-decoration: none;
}

/* checkout-sidebar__cta as a link (carrito uses <a>, detalle uses <button>) */
a.checkout-sidebar__cta {
    text-decoration: none;
    display: flex;
    border-radius: 0 !important;
    color: #fff;
}

a.checkout-sidebar__cta:hover {
    color: #fff;
    text-decoration: none;
}

/* ===== Micro-interactions ===== */

/* --- Product card --- */
/* Smooth card lift, shadow, and border */
.productos .bg-white {
    transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 220ms ease;
}

/* Image scales slightly on card hover — overflow:hidden on container clips cleanly */
.productos .bg-white .producto__imagen img {
    transition: transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.productos .bg-white:hover .producto__imagen img {
    transform: scale(1.04);
}

/* Press feedback */
.productos .bg-white:active {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 80ms;
}

/* --- btn-azul (add-to-cart, generic primary action) --- */
.btn-azul:not(:disabled):not(.disabled) {
    transition: background-color 150ms ease, border-color 150ms ease,
                box-shadow 150ms ease, transform 100ms ease;
}

.btn-azul:not(:disabled):not(.disabled):hover {
    background-color: #003471;
    border-color: #003471;
    box-shadow: 0 3px 10px rgba(0, 66, 131, .28);
}

.btn-azul:not(:disabled):not(.disabled):active {
    background-color: #002a5c;
    border-color: #002a5c;
    transform: scale(0.97);
    box-shadow: none;
}

/* --- btn-naranja --- */
.btn-naranja {
    transition: background-color 150ms ease, filter 150ms ease,
                box-shadow 150ms ease, transform 100ms ease;
}

.btn-naranja:hover {
    background-color: #d47500;
    filter: brightness(1.05);
    box-shadow: 0 3px 10px rgba(240, 131, 0, .30);
}

.btn-naranja:active {
    background-color: #b86600;
    transform: scale(0.97);
    box-shadow: none;
}

/* --- Stepper buttons — tactile press --- */
.btn-stepper {
    transition: background 120ms ease, color 120ms ease, transform 80ms ease;
}

.btn-stepper:not(:disabled):active {
    transform: scale(0.84);
    background: #d9e3ee;
}

/* --- Stepper container focus-within ring --- */
.input-stepper:focus-within {
    border-color: #004283;
    box-shadow: 0 0 0 3px rgba(0, 66, 131, .12);
    transition: box-shadow 150ms ease, border-color 150ms ease;
    background-color: #ffffff;
}

/* --- Nav links — subtle underline slide-in --- */
.navbar .nav-link {
    position: relative;
    transition: opacity 150ms ease;
}

.navbar .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: rgba(255, 240, 217, 0.7);
    transition: left 200ms ease, right 200ms ease;
}

.navbar .nav-link:not(.dropdown-toggle):hover::after,
.navbar .nav-link:not(.dropdown-toggle).active::after {
    left: 8px;
    right: 8px;
}

/* --- Category/page-size selects --- */
.productos .form-control,
form .form-control[id="cat"],
form .form-control[id="subcat"] {
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.productos .form-control:focus,
form .form-control[id="cat"]:focus,
form .form-control[id="subcat"]:focus {
    border-color: #004283;
    box-shadow: 0 0 0 3px rgba(0, 66, 131, .15);
}

/* --- Pagination links --- */
.pagination .page-link {
    transition: background-color 150ms ease, color 150ms ease, transform 100ms ease;
}

.pagination .page-item:not(.disabled) .page-link:hover {
    transform: translateY(-1px);
}

.pagination .page-item:not(.disabled) .page-link:active {
    transform: scale(0.95);
}

a.checkout-sidebar__cta.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Unit price hint shown inline below product name on mobile */
.cart-item__unit-price-mobile {
    display: none;
    font-size: 12px;
    color: #9099a7;
    margin-top: 3px;
}

/* ===== Responsive for cart wizard layout ===== */

@media (max-width: 767px) {
    .cart-item__unit-price {
        display: none;
    }

    .cart-item__unit-price-mobile {
        display: block;
    }

    .cart-list--card .cart-item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-list--card .cart-item .cart-item__image {
        flex: 0 0 56px;
    }

    .cart-list--card .cart-item .cart-item__image img,
    .cart-list--card .cart-item .cart-item__no-image {
        width: 56px;
        height: 56px;
    }

    .cart-list--card .cart-item .cart-item__info {
        flex: 1;
        min-width: 0;
    }

    .cart-list--card .cart-item .cart-item__qty {
        flex: 0 0 auto;
    }

    .cart-list--card .cart-item .cart-item__subtotal {
        flex: 1;
        text-align: right;
    }
}

/* ===== Navbar polish ===== */

/* Depth shadow separating navbar from page */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .20);
}

/* Toggler border color matches cream palette */
.navbar-toggler {
    border-color: rgba(255, 240, 217, .55);
    padding: 4px 8px;
    transition: border-color 150ms ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 240, 217, .9);
}

/* Brand vertical alignment */
.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Nav item vertical centering */
.navbar .nav-item {
    display: flex;
    align-items: center;
}

/* Nav link consistent padding */
.navbar .navbar-nav .nav-link {
    padding-left: .85rem;
    padding-right: .85rem;
}

/* Dropdown menu: modern card style */
.navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .13);
    padding: .4rem 0;
    margin-top: 6px;
    animation: navbar-dropdown-in 150ms ease forwards;
}

@keyframes navbar-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar .dropdown-item {
    font-size: 14px;
    padding: .45rem 1.1rem;
    color: #2c2c2c;
    transition: background-color 120ms ease, color 120ms ease, padding-left 120ms ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #eef3ff;
    color: #004283;
    padding-left: 1.4rem;
}

/* Sidebar: align top with actual navbar height (60px logo + 8px pad × 2 = 76px) */
.sidebar {
    top: 70px;
    height: calc(100vh - 70px);
}

/* Sidebar menu links: hover state */
.sidebar .menu li a {
    transition: color 150ms ease;
}

.sidebar .menu li a:hover {
    color: #004283;
    text-decoration: none;
}

/* Cart badge: scoped to the icon wrapper so positioning is reliable */
.navbar-nav li.carrito .cantidad,
.menu li.carrito .cantidad {
    top: 2px;
    right: 2px;
}

/* Cart nav link: keep label and icon inline, icon wrapper is the badge anchor */
.nav-link--carrito {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.nav-link--carrito__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Override the old absolute positioning that relied on the <li> being the offset parent */
.navbar-nav li.carrito .nav-link--carrito__icon .cantidad {
    top: -6px;
    right: -8px;
}

/* ===== Toast notification ===== */
.toast-cart {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    display: none;
    z-index: 9999;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ===== Sidebar menu heading ===== */
.sidebar .menu .menu__heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9099a7;
    padding-bottom: 4px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 4px;
    pointer-events: none;
}

/* ===== User dropdown: align to right edge on desktop ===== */
@media (min-width: 768px) {
    .navbar .dropdown-menu-right {
        right: 0;
        left: auto;
    }
}

/* ===== Minimum purchase bar (homepage, full-bleed) ===== */
.purchase-minimum-bar {
    background-color: #1e3349;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
}
.purchase-minimum-bar strong {
    color: #fff;
    font-weight: 700;
}

/* ===== Checkout sidebar: minimum note variants ===== */
.checkout-sidebar__total-note--warn {
    font-size: 12px;
    color: #b45309;
    margin-top: 6px;
    line-height: 1.4;
}
.checkout-sidebar__total-note--ok {
    font-size: 12px;
    color: #15803d;
    margin-top: 6px;
}

/* ===== Category dropdown fixes ===== */

/* Make each category item a flex row so the arrow is always pinned to the right */
.dropdown-submenu > .subcategoria > .dropdown-item.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Suppress the hover padding-left shift for category items — it fights with flex */
.navbar .dropdown-menu.categorias .dropdown-item:hover,
.navbar .dropdown-menu.categorias .dropdown-item:focus {
    padding-left: 1.1rem;
}

/* Subcategory flyout: cancel the margin-top and animate-in from the parent rule */
.navbar .dropdown-menu.subcategoria-menu {
    margin-top: 0;
    top: 0;
    animation: none;
}

/* --- Explore section (categories + search unified) --- */
.explore-section {
    padding: 3rem 0 3.5rem;
}
.explore-search {
    border-top: 1px solid #e9ecef;
    padding-top: 1.25rem;
    margin-top: .5rem;
}
.explore-search__label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #adb5bd;
}
.explore-search .btn-azul {
    background-color: #1e3349;
    border-color: #1e3349;
}
.explore-search .btn-azul:hover {
    background-color: #162636;
    border-color: #162636;
}

/* --- Section label (home) --- */
.section-label {
    font-size: .75rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
}

/* --- Explore split: intro card izquierda | categorías derecha --- */
.explore-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    align-items: stretch;
}
@media (max-width: 767px) {
    .explore-split {
        grid-template-columns: 1fr;
    }
}

/* Intro card */
.category-intro-card {
    background: #1e3349;
    border-radius: .375rem;
    border-left: 3px solid #F08300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.category-intro-card__eyebrow {
    display: block;
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    margin-bottom: .5rem;
}
.category-intro-card__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .4rem;
}
.category-intro-card__desc {
    font-size: .825rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Grid de categorías: 3 columnas, llena el lado derecho del split */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    height: 100%;
}
@media (max-width: 575px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Category cards — items directos del grid, se estiran por defecto */
.category-card {
    border: 1px solid #dee2e6;
    border-left: 3px solid #dee2e6;
    border-radius: .375rem;
    background: #fff;
    color: #004283;
    text-decoration: none;
    transition: border-left-color .15s, box-shadow .15s, color .15s;
}
.category-card:hover,
.category-card:focus {
    border-left-color: #F08300;
    box-shadow: 0 2px 6px rgba(0,66,131,.10);
    color: #003066;
    text-decoration: none;
    outline: none;
}
.category-card__name {
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.category-card__arrow {
    font-size: .65rem;
    color: #adb5bd;
    flex-shrink: 0;
    transition: color .15s, transform .15s;
}
.category-card:hover .category-card__arrow,
.category-card:focus .category-card__arrow {
    color: #F08300;
    transform: translateX(2px);
}

/* ── Admin layout ─────────────────────────────────────── */
.container-admin {
    max-width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ── Catalog panel (admin product list) ───────────────── */
.catalog-panel {
    border: 1px solid #dee2e6;
    border-left: 4px solid #F08300;
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    background: #fffaf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.catalog-panel__info {
    flex: 1;
    min-width: 200px;
}

.catalog-panel__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.catalog-panel__count {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.catalog-panel__count strong {
    color: #F08300;
    font-size: 1.2rem;
}

.catalog-panel__filters {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.catalog-panel__filters .badge {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 2rem;
    padding: 0.25em 0.65em;
    margin-right: 0.25rem;
}

.catalog-panel .btn-catalogo {
    white-space: nowrap;
}

.catalog-panel--warning {
    border-left-color: #ffc107;
    background: #fffdf0;
}

.catalog-panel--danger {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.catalog-size-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.catalog-size-hint--warning {
    color: #856404;
}

.catalog-size-hint--danger {
    color: #842029;
}

/* ===== Floating cart button ===== */
.cart-float-btn {
    position: fixed;
    right: calc(3.5rem + 46px + 0.75rem);
    bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 2rem;
    background-color: #004283;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 66, 131, 0.28);
    z-index: 999;
    cursor: pointer;
    color: white;
    font-family: "Montserrat", sans-serif;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.cart-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 66, 131, 0.36);
    color: white;
}

.cart-float-btn:active {
    transform: scale(0.97) translateY(0);
    box-shadow: 0 1px 5px rgba(0, 66, 131, 0.20);
}

.cart-float-btn__icon {
    font-size: 1.1rem;
    color: inherit;
}

.cart-float-btn__label {
    display: none;
}

.cart-float-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    background-color: #F08300;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.cart-float-btn__badge--hidden {
    display: none;
}

@keyframes cart-float-pulse {
    0%   { box-shadow: 0 3px 10px rgba(0, 66, 131, 0.28); }
    45%  { box-shadow: 0 3px 16px rgba(0, 66, 131, 0.44), 0 0 0 3px rgba(0, 66, 131, 0.09); }
    100% { box-shadow: 0 3px 10px rgba(0, 66, 131, 0.28); }
}

.cart-float-btn--pulse {
    animation: cart-float-pulse 0.35s ease;
}

/* ===== Cart drawer overlay ===== */
.cart-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.42);
    z-index: 1040;
}

.cart-drawer-overlay.open {
    display: block;
}

/* ===== Cart drawer panel ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 340px;
    max-width: 92vw;
    background-color: #fff;
    z-index: 1041;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

.cart-drawer__title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c2c2c;
}

.cart-drawer__close {
    background: none;
    border: none;
    padding: 0.2rem 0.4rem;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color 120ms ease;
}

.cart-drawer__close:hover {
    color: #333;
}

.cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.cart-drawer__loading,
.cart-drawer__empty {
    text-align: center;
    color: #999;
    padding: 2.5rem 1rem;
    font-size: 0.88rem;
}

.cart-drawer__loading::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 0.75rem;
    border: 3px solid #e8e8e8;
    border-top-color: #004283;
    border-radius: 50%;
    animation: cart-drawer-spin 0.7s linear infinite;
}

@keyframes cart-drawer-spin {
    to { transform: rotate(360deg); }
}

.cart-drawer__empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.35;
}

.cart-drawer__empty p {
    margin: 0;
}

.cart-drawer__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f4f4f4;
    transition: opacity 200ms ease, transform 200ms ease;
}

.cart-drawer__item:last-child {
    border-bottom: none;
}

.cart-drawer__item--removing {
    opacity: 0.35;
    pointer-events: none;
    transform: translateX(6px);
}

/* Thumbnail */
.cart-drawer__item-img {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f5f5f5;
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer__item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-drawer__item-thumb--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.2rem;
}

.cart-drawer__item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-drawer__item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c2c2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.1rem;
}

.cart-drawer__item-meta {
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 0.45rem;
}

/* Controls row: stepper + subtotal + remove */
.cart-drawer__item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Stepper */
.cart-drawer__stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.cart-drawer__stepper-btn {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    line-height: 1;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 100ms ease, color 100ms ease;
}

.cart-drawer__stepper-btn:hover {
    background-color: #f0f0f0;
    color: #004283;
}

.cart-drawer__stepper-btn:focus-visible {
    outline: 2px solid #004283;
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}

.cart-drawer__stepper-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

.cart-drawer__stepper-qty {
    min-width: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c2c2c;
    padding: 0 2px;
    user-select: none;
}

/* Subtotal */
.cart-drawer__item-subtotal {
    flex: 1 1 auto;
    text-align: right;
    font-size: 0.825rem;
    font-weight: 700;
    color: #004283;
    white-space: nowrap;
}

/* Remove button — visual size 22px, tap target expanded to 36px via margin offset */
.cart-drawer__item-remove {
    background: none;
    border: none;
    padding: 7px;
    margin: -7px -7px -7px 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 50%;
    transition: background-color 120ms ease, color 120ms ease;
    flex-shrink: 0;
}

.cart-drawer__item-remove:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.cart-drawer__item-remove:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 1px;
    color: #dc2626;
}

.cart-drawer__footer {
    flex-shrink: 0;
    padding: 0.85rem 1.25rem 1rem;
    border-top: 1px solid #efefef;
    background-color: #fafafa;
}

.cart-drawer__total {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.7rem;
    text-align: right;
}

.cart-drawer__total strong {
    color: #004283;
    font-size: 1.05rem;
}

.cart-drawer__btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease;
    cursor: pointer;
}

.cart-drawer__btn:last-child {
    margin-bottom: 0;
}

.cart-drawer__btn--primary {
    background-color: #004283;
    border: 1px solid #004283;
    color: #fff;
}

.cart-drawer__btn--primary:hover,
.cart-drawer__btn--primary:focus {
    background-color: #003471;
    border-color: #003471;
    color: #fff;
    text-decoration: none;
}

.cart-drawer__btn--secondary {
    background-color: transparent;
    border: 1px solid #d8d8d8;
    color: #555;
}

.cart-drawer__btn--secondary:hover,
.cart-drawer__btn--secondary:focus {
    background-color: #f3f3f3;
    border-color: #bbb;
    color: #333;
    text-decoration: none;
}

@media (max-width: 576px) {
    .cart-float-btn {
        right: calc(1rem + 46px + 0.75rem);
        bottom: 1rem;
    }
}

/* ===== Product detail — image wrapper ===================================================
   Overrides the legacy `.detalle-producto img` rules (height: 500px; border: 3px solid)
   via cascade: same specificity (0,1,1), this block is later in the file so it wins.
   ======================================================================================== */
.detalle-producto__imagen {
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.detalle-producto__imagen img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border: none;
    padding: 20px;
}

/* Keep the add-to-cart row proportional — without a cap the button
   stretches across the entire col-md-6 info column on wide screens.
   380px: stepper ~148px + 10px gap + button ~222px — 1.5× ratio.    */
.add-to-cart--row {
    max-width: 380px;
}

@media (max-width: 767px) {
    .add-to-cart--row {
        max-width: 100%;
    }
}


/* Back / navigation link — lighter than a button, reads as navigation */
.detalle-volver {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    padding: 3px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.detalle-volver .fa-arrow-left {
    font-size: 11px;
    transition: transform 0.15s ease;
}

.detalle-volver:hover,
.detalle-volver:focus {
    color: #004283;
    border-bottom-color: rgba(0, 66, 131, 0.25);
    text-decoration: none;
    outline: none;
}

.detalle-volver:hover .fa-arrow-left {
    transform: translateX(-3px);
}

/* ===== Product card — image container ================================================
   The height is constrained on .producto__imagen (the wrapper), not the <img> itself.
   This prevents layout shifts and keeps title/price/actions aligned across all cards
   in a row regardless of the image's native aspect ratio.

   Design decision — cover vs. contain
   ────────────────────────────────────
   object-fit: cover is used here so product photos fill the frame edge-to-edge, giving
   the grid a clean, editorial look without letterbox gaps. The bg is white so that any
   image that IS transparent or lighter than the card doesn't create a visible seam.
   If catalog images have very different aspect ratios and cropping is unacceptable,
   switch to object-fit: contain and set background-color: #fafafa on .producto__imagen.

   Specificity reference
   ─────────────────────
   Legacy (~l.549):       .productos .bg-white img              → 0,2,1
   Polish  (~l.1861):     .productos .bg-white img              → 0,2,1
   Micro   (~l.2139):     .productos .bg-white .producto__imagen img → 0,3,1
   This block:            .productos .bg-white .producto__imagen img → 0,3,1 (wins by source order)
   ======================================================================================== */

/* Image container: fixed height, white bg, clips the img on hover-zoom */
.producto__imagen {
    height: 220px;
    overflow: hidden;
    background-color: #ffffff;
    /* Subtle inner bottom border separates image zone from content without a hard line */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* <a> must be block to fill the container height (inline anchors don't stretch) */
.producto__imagen a {
    display: block;
    height: 100%;
}

/* Image fills container; cover crops cleanly with no grey letterbox gaps */
.productos .bg-white .producto__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background-color: transparent;
    transition: transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* WhatsApp float — slightly smaller (55px → 46px) */
.whatsapp-chat {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-chat i {
    font-size: 1.7rem; /* overrides fa-3x; proportional to the smaller circle */
    padding: 0;
    vertical-align: baseline;
}

/* ===== Product carousel (multiple images) ================================================ */
.detalle-producto__carousel {
    border-radius: 10px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.detalle-producto__carousel .carousel-inner {
    background-color: #f8f9fa;
}

.detalle-producto__carousel .carousel-inner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    padding: 20px;
    border: none;
}

.detalle-producto__carousel .carousel-control-prev,
.detalle-producto__carousel .carousel-control-next {
    width: 10%;
    opacity: 1;
    transition: opacity 0.2s;
}

.detalle-producto__carousel .carousel-control-prev:hover,
.detalle-producto__carousel .carousel-control-next:hover {
    opacity: 0.7;
}

/* Dark icons — override Bootstrap's white SVGs */
.detalle-producto__carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}

.detalle-producto__carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}

.detalle-producto__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.detalle-producto__thumbs .thumb-nav {
    width: 58px !important;
    height: 58px !important;
    object-fit: cover !important;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #dee2e6 !important;
    padding: 0 !important;
    opacity: 0.6;
    transition: border-color 0.2s, opacity 0.2s;
}

.detalle-producto__thumbs .thumb-nav.active,
.detalle-producto__thumbs .thumb-nav:hover {
    border-color: #F08300 !important;
    opacity: 1;
}

/* ===== Admin image gallery management ==================================================== */
.imagenes-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.imagen-galeria-item {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.imagen-galeria-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: 2px solid #dee2e6 !important;
    padding: 0 !important;
    display: block;
}

.imagen-galeria-item.principal img {
    border-color: #F08300 !important;
}

.imagen-galeria-item .badge-principal {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #F08300;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
}

.imagen-galeria-item .btn-remove-img {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: background 0.15s;
}

.imagen-galeria-item .btn-remove-img:hover {
    background: #b02a37;
}

.imagenes-contador {
    font-size: 13px;
    color: #6c757d;
}

.imagenes-contador.limit-warning {
    color: #dc3545;
    font-weight: 600;
}

/* ===== Card carousel (multiple images in product grid) ==================================== */
.producto__carousel {
    height: 100%;
    position: relative;
}

.producto__carousel .carousel-inner {
    height: 100%;
}

.producto__carousel .carousel-item {
    height: 100%;
}

.producto__carousel .carousel-item a {
    display: block;
    height: 100%;
}

.producto__carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Custom arrow buttons */
.prod-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.prod-carousel-btn--prev { left: 7px; }
.prod-carousel-btn--next { right: 7px; }

.producto__imagen:hover .prod-carousel-btn {
    opacity: 1;
}

.prod-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .prod-carousel-btn {
        opacity: 1;
    }
}
