/* ===== SECCIÓN PANTALLA COMPLETA ===== */
#catalogo-impresoras {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

#catalogo-impresoras::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(253, 4, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: float 15s ease-in-out infinite;
}

#catalogo-impresoras::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255, 252, 1, 0.04) 0%, transparent 70%);
    pointer-events: none;
    animation: floatReverse 12s ease-in-out infinite;
}

/* ===== TÍTULO PROFESIONAL ===== */
.section-title-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.section-title-wrapper .section-badge {
    display: inline-block;
    background: #FD0400;
    color: #FFFFFF;
    padding: 0.3rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 20px rgba(253, 4, 0, 0.25);
}

.section-title-wrapper .main-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-title-wrapper .main-title .highlight-red {
    background: linear-gradient(135deg, #FD0400, #cc0300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title-wrapper .main-title .highlight-yellow {
    background: linear-gradient(135deg, #FFFC01, #f5e800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title-wrapper .main-title .highlight-yellow::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 252, 1, 0.3);
    border-radius: 4px;
    -webkit-text-fill-color: transparent;
    z-index: -1;
}

.section-title-wrapper .main-title .highlight-red::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(253, 4, 0, 0.15);
    border-radius: 4px;
    -webkit-text-fill-color: transparent;
    z-index: -1;
}

.section-title-wrapper .subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.section-title-wrapper .subtitle span {
    color: #FD0400;
    font-weight: 600;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 0.5rem;
}

.title-decoration .line {
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #FD0400, #FFFC01);
}

.title-decoration .diamond {
    width: 10px;
    height: 10px;
    background: #FD0400;
    transform: rotate(45deg);
    border-radius: 2px;
    opacity: 0.6;
}

/* ===== CATALOGO LAYOUT ===== */
.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    align-items: start;
    margin-top: 2rem;
}

/* ===== CATEGORIAS ===== */
.categories-box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.categories-box:hover {
    box-shadow: 0 15px 45px rgba(253, 4, 0, 0.08);
    border-color: rgba(253, 4, 0, 0.06);
}

.categories-box h5 {
    font-weight: 800;
    color: #FD0400;
    border-bottom: 3px solid #FFFC01;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

.categories-box h5 i {
    font-size: 1.3rem;
    color: #FD0400;
}

.categories-box ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    max-height: 500px;
    overflow-y: auto;
}

.categories-box ul::-webkit-scrollbar {
    width: 4px;
}

.categories-box ul::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.categories-box ul::-webkit-scrollbar-thumb {
    background: #FFFC01;
    border-radius: 4px;
}

.categories-box li {
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 500;
    position: relative;
}

/* ===== ESTILOS PARA LINKS EN CATEGORÍAS ===== */
.categories-box ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: inherit;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-box ul li a:hover {
    color: inherit;
}

.categories-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #FD0400;
    border-radius: 0 3px 3px 0;
    transition: all 0.3s ease;
}

.categories-box li:hover::before,
.categories-box li.active::before {
    height: 70%;
}

.categories-box li:hover {
    background: rgba(255, 252, 1, 0.15);
    transform: translateX(6px);
    color: #000000;
    font-weight: 700;
}

.categories-box li.active {
    background: #FFFC01;
    color: #000000;
    font-weight: 700;
    transform: translateX(6px);
}

.categories-box .category-count {
    margin-left: auto;
    background: #f0f0f0;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.categories-box li:hover .category-count,
.categories-box li.active .category-count {
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
}

/* ===== BUSCADOR ===== */
.search-box {
    background: #FFFFFF;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.search-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    padding: 2px;
    background: linear-gradient(135deg, #FD0400, #FFFC01, #FD0400);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.search-box:focus-within::before {
    opacity: 1;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-box:focus-within {
    border-color: transparent;
    box-shadow: 0 8px 40px rgba(253, 4, 0, 0.10);
    transform: translateY(-2px);
}

.search-box .search-icon-wrapper {
    background: linear-gradient(135deg, #FD0400, #cc0300);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.search-box:focus-within .search-icon-wrapper {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 4px 20px rgba(253, 4, 0, 0.3);
}

.search-box .search-icon-wrapper i {
    color: #FFFFFF;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
    color: #000000;
    font-weight: 500;
    padding: 10px 0;
    min-width: 0;
}

.search-box input::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.search-box input:focus::placeholder {
    opacity: 0.6;
}

.search-box .search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-box .search-results-count {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.search-box:focus-within .search-results-count {
    background: #FFFC01;
    color: #000000;
}

.search-box .clear-search {
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.search-box .clear-search.visible {
    display: block;
}

.search-box .clear-search:hover {
    color: #FD0400;
    transform: rotate(90deg);
    background: rgba(253, 4, 0, 0.05);
}

/* ===== PRODUCTOS GRID ===== */
.products-content {
    min-height: 400px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.products-header .results-info {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.products-header .results-info span {
    color: #000000;
    font-weight: 800;
}

.products-header .results-info .highlight-count {
    color: #FD0400;
    font-weight: 900;
}

.products-header .view-options {
    display: flex;
    gap: 0.4rem;
}

.products-header .view-options button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 2px solid #eee;
    background: transparent;
    color: #bbb;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.products-header .view-options button:hover,
.products-header .view-options button.active {
    border-color: #FFFC01;
    color: #000000;
    background: #FFFC01;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 252, 1, 0.25);
}

/* ===== TARJETA DE IMPRESORA ===== */
.printer-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.printer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FD0400, #FFFC01, #FD0400);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.printer-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.printer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(253, 4, 0, 0.08);
    border-color: rgba(253, 4, 0, 0.08);
}

.printer-card .card-img-top {
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    padding: 1.8rem 1rem;
    text-align: center;
    min-height: 200px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid #FFFC01;
    overflow: hidden;
}

.printer-card .card-img-top img {
    width: 100%;
    max-width: 180px;
    height: 140px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.08));
}

.printer-card:hover .card-img-top img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 30px rgba(253, 4, 0, 0.15));
}

.printer-card .card-body {
    padding: 0.8rem 0.8rem 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.printer-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 0.1rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
    line-height: 1.2;
}

.printer-card:hover .card-title {
    color: #FD0400;
}

.printer-card .card-brand {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.printer-card .printer-type-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    background: #f0f0f0;
    color: #666;
}

.printer-card .printer-type-badge.fdm {
    background: #e3f2fd;
    color: #0d47a1;
}

.printer-card .printer-type-badge.resin {
    background: #fce4ec;
    color: #880e4f;
}

.printer-card .specs-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0.3rem 0;
}

.printer-card .specs-preview .spec-tag {
    background: #f5f5f5;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    font-size: 0.55rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.printer-card:hover .specs-preview .spec-tag {
    background: #FFFC01;
    color: #000000;
}

.printer-card .price {
    font-weight: 800;
    font-size: 1.05rem;
    color: #FD0400;
    margin-top: 0.1rem;
}

.printer-card .price .currency {
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== PRECIOS ESPECIALES ===== */
.price-special {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.price-special .price-x5 {
    color: #FD0400;
    font-weight: 600;
}

.price-special .price-x20 {
    color: #FFFC01;
    font-weight: 600;
}

.printer-card .product-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.printer-card .btn-add-cart {
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    font-size: 0.65rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.printer-card .btn-add-cart::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.printer-card .btn-add-cart:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.printer-card .btn-add-cart:hover {
    background: #FFFC01;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 252, 1, 0.3);
}

.printer-card .btn-view-detail {
    background: transparent;
    color: #000000;
    border: 2px solid #eee;
    border-radius: 50px;
    padding: 0.35rem 0.5rem;
    font-weight: 700;
    font-size: 0.65rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    flex-shrink: 0;
}

.printer-card .btn-view-detail:hover {
    background: #FFFC01;
    border-color: #FFFC01;
    color: #000000;
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 252, 1, 0.2);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFFC01;
    color: #000000;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 252, 1, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.no-results i {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h4 {
    color: #000000;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.no-results p {
    color: #999;
    font-size: 0.9rem;
}

/* ===== MODAL IMPRESORA ===== */
.printer-modal .modal-dialog {
    max-width: 1000px;
    width: 95%;
    margin: 1.75rem auto;
}

.printer-modal .modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
    max-height: 90vh;
}

.printer-modal .modal-header {
    border-bottom: 3px solid #FFFC01;
    padding: 1.2rem 2rem;
    background: #FFFFFF;
    flex-shrink: 0;
}

.printer-modal .modal-header .modal-title {
    font-weight: 800;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.printer-modal .modal-header .modal-title i {
    color: #FD0400;
    font-size: 1.6rem;
}

.printer-modal .modal-header .btn-close {
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.printer-modal .modal-header .btn-close:hover {
    transform: rotate(90deg);
    color: #FD0400;
}

.printer-modal .modal-body {
    padding: 0;
    flex: 1;
}

.printer-modal-layout {
    display: flex;
    min-height: 450px;
    max-height: 70vh;
}

.printer-modal-image {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.printer-modal-image .image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.printer-modal-image .image-wrapper img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.08));
    animation: float 6s ease-in-out infinite;
    transition: all 0.4s ease;
}

.printer-modal-image .image-wrapper img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 12px 40px rgba(253, 4, 0, 0.12));
}

.printer-modal-image .image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFFC01;
    color: #000000;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 252, 1, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

.printer-modal-image .image-stock {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.printer-modal-image .image-stock.in-stock {
    color: #2e7d32;
}
.printer-modal-image .image-stock.in-stock i { color: #4caf50; }

.printer-modal-image .image-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.03), transparent);
    pointer-events: none;
}

/* ===== CONTROLES PARA MEDIA (IMAGEN/VIDEO) ===== */
.media-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.media-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.media-nav-btn.active {
    background: #FD0400;
    color: white;
    border-color: #FD0400;
    box-shadow: 0 0 15px rgba(253, 4, 0, 0.3);
}

.media-nav-btn i {
    font-size: 16px;
}

#modalImageContainer,
#modalVideoContainer {
    width: 100%;
    transition: opacity 0.3s ease;
}

#modalImageContainer img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #f8f9fa;
}

#modalVideoContainer {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#modalVideoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.video-wrapper {
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.printer-modal-content {
    flex: 1;
    padding: 2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    overflow-y: auto;
}

.printer-modal-content .modal-product-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.2rem;
    letter-spacing: -0.3px;
}

.printer-modal-content .modal-product-brand {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.printer-modal-content .modal-product-brand i {
    color: #FD0400;
}

.printer-modal-content .modal-product-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    background: #f0f0f0;
    color: #666;
}

.printer-modal-content .modal-product-type.fdm {
    background: #e3f2fd;
    color: #0d47a1;
}

.printer-modal-content .modal-product-type.resin {
    background: #fce4ec;
    color: #880e4f;
}

.printer-modal-content .modal-product-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FD0400;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.printer-modal-content .modal-product-price .currency {
    font-size: 1.2rem;
}

.printer-modal-content .specs-title {
    font-weight: 700;
    color: #000000;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.printer-modal-content .specs-title i {
    color: #FD0400;
}

.printer-modal-content .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.printer-modal-content .spec-item {
    background: #f8f8f8;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.printer-modal-content .spec-item:hover {
    background: #FFFC01;
    transform: translateX(4px);
}

.printer-modal-content .spec-item i {
    color: #FD0400;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.printer-modal-content .spec-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #000000;
}

.printer-modal-content .spec-item .spec-label {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
}

.printer-modal-content .spec-item .spec-value {
    font-weight: 700;
    color: #000000;
    display: block;
    font-size: 0.85rem;
}

.printer-modal-content .modal-quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #f8f8f8;
    border-radius: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto;
}

.printer-modal-content .modal-quantity-section label {
    font-weight: 700;
    color: #000000;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.printer-modal-content .modal-quantity-section label i {
    color: #FD0400;
}

.printer-modal-content .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #FFFFFF;
    border-radius: 8px;
    border: 2px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.printer-modal-content .quantity-selector:hover {
    border-color: #FFFC01;
}

.printer-modal-content .quantity-selector button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
}

.printer-modal-content .quantity-selector button:hover {
    background: #FFFC01;
    color: #000000;
}

.printer-modal-content .quantity-selector span {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
}

.printer-modal-content .subtotal {
    font-weight: 700;
    color: #000000;
    font-size: 0.9rem;
    margin-left: auto;
}

.printer-modal-content .subtotal span {
    color: #FD0400;
    font-size: 1.1rem;
}

.printer-modal .btn-modal-add {
    background: #FFFC01;
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 252, 1, 0.2);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.printer-modal .btn-modal-add:hover {
    background: #f5e800;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 252, 1, 0.3);
}

/* ===== CARRITO FLOTANTE ===== */
.cart-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    background: #FD0400;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(253, 4, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.cart-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(253, 4, 0, 0.6);
}

.cart-float .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FFFF00;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== OFFCANVAS CARRITO ===== */
.cart-offcanvas {
    width: 400px !important;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item .item-info {
    flex: 1;
}

.cart-item .item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item .item-price {
    font-size: 0.85rem;
    color: #666;
}

.cart-item .item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item .item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item .item-qty button:hover {
    background: #f0f0f0;
}

.cart-item .item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-footer {
    padding: 16px 0;
    border-top: 2px solid #FD0400;
}

.cart-footer .total {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-checkout {
    background: #FD0400;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.btn-checkout:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 4, 0, 0.3);
}

/* ===== TOAST NOTIFICACIÓN ===== */
.toast-cruz {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-cruz.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-cruz i {
    font-size: 20px;
}

/* ===== ANIMACIONES ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .categories-box {
        position: relative;
        top: 0;
    }
    .categories-box ul {
        max-height: 200px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .categories-box li {
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .categories-box li::before {
        display: none;
    }
    .printer-modal-layout {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }
    .printer-modal-image {
        flex: 0 0 auto;
        min-height: 220px;
        padding: 1.5rem;
    }
    .printer-modal-image .image-wrapper img {
        max-height: 180px;
    }
    .printer-modal-content {
        padding: 1.5rem;
        max-height: 400px;
    }
    .printer-modal .modal-dialog {
        width: 95%;
        margin: 1rem auto;
    }
    .printer-modal .modal-content {
        max-height: 95vh;
    }
    .section-title-wrapper .main-title {
        font-size: 2.2rem;
    }
    .cart-offcanvas {
        width: 100% !important;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    #catalogo-impresoras {
        min-height: auto;
        padding: 3rem 0;
    }
    .catalog-layout {
        gap: 15px;
    }
    .categories-box ul {
        max-height: 150px;
    }
    .categories-box li {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box {
        padding: 6px 6px 6px 16px;
    }
    .search-box .search-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    .search-box .search-icon-wrapper i {
        font-size: 0.9rem;
    }
    .search-box input {
        font-size: 0.85rem;
    }
    .search-box .search-results-count {
        font-size: 0.65rem;
        padding: 2px 10px;
    }
    .printer-modal-image {
        min-height: 180px;
        padding: 1rem;
    }
    .printer-modal-image .image-wrapper img {
        max-height: 140px;
    }
    .printer-modal-content .modal-product-title {
        font-size: 1.4rem;
    }
    .printer-modal-content .modal-product-price {
        font-size: 1.6rem;
    }
    .printer-modal-content .specs-grid {
        grid-template-columns: 1fr;
    }
    .printer-modal-content .modal-quantity-section {
        flex-direction: column;
        align-items: stretch;
    }
    .printer-modal-content .subtotal {
        margin-left: 0;
        text-align: center;
    }
    .printer-modal .modal-header .modal-title {
        font-size: 1rem;
    }
    .printer-modal .modal-header {
        padding: 0.8rem 1.2rem;
    }
    .printer-modal-image .image-badge {
        top: 12px;
        left: 12px;
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
    }
    .printer-modal-image .image-stock {
        bottom: 12px;
        left: 12px;
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    .printer-modal .modal-dialog {
        width: 98%;
        margin: 0.5rem auto;
    }
    .printer-modal-content {
        max-height: 350px;
        padding: 1rem;
    }
    .printer-card .card-img-top {
        min-height: 160px;
        max-height: 160px;
        padding: 1.2rem 0.8rem;
    }
    .printer-card .card-img-top img {
        max-width: 130px;
        height: 110px;
    }
    .section-title-wrapper .main-title {
        font-size: 1.8rem;
    }
    .title-decoration .line {
        width: 30px;
    }
    .cart-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 80px;
        right: 15px;
    }
    .cart-float .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .categories-box ul {
        max-height: 120px;
    }
    .categories-box li {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .printer-card .card-img-top {
        min-height: 140px;
        max-height: 140px;
        padding: 1rem 0.6rem;
    }
    .printer-card .card-img-top img {
        max-width: 110px;
        height: 90px;
    }
    .printer-modal-image {
        min-height: 150px;
        padding: 0.8rem;
    }
    .printer-modal-image .image-wrapper img {
        max-height: 110px;
    }
    .printer-modal-content .modal-product-title {
        font-size: 1.2rem;
    }
    .printer-modal-content .modal-product-price {
        font-size: 1.3rem;
    }
    .printer-modal-content {
        max-height: 300px;
        padding: 0.8rem;
    }
    .printer-modal .modal-header {
        padding: 0.6rem 1rem;
    }
    .section-title-wrapper .main-title {
        font-size: 1.5rem;
    }
    .search-box {
        padding: 4px 4px 4px 12px;
    }
    .search-box .search-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    .search-box .search-icon-wrapper i {
        font-size: 0.8rem;
    }
    .search-box input {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    .search-box .search-results-count {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    .cart-float {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 70px;
        right: 10px;
    }
    .cart-float .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
}


/* ===== MODAL DE FINALIZACIÓN DE COMPRA ===== */
.checkout-modal .modal-dialog {
    max-width: 900px;
    width: 95%;
}

.checkout-modal .modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
}

.checkout-modal .modal-header {
    border-bottom: 3px solid #FFFC01;
    padding: 1.2rem 2rem;
    background: #FFFFFF;
}

.checkout-modal .modal-header .modal-title {
    font-weight: 800;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.checkout-modal .modal-header .modal-title i {
    color: #FD0400;
    font-size: 1.6rem;
}

.checkout-modal .modal-body {
    padding: 2rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.checkout-form .form-group label {
    font-weight: 700;
    color: #000000;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-form .form-group label i {
    color: #FD0400;
}

.checkout-form .form-group input,
.checkout-form .form-group select {
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f8f8;
    color: #000000;
    outline: none;
}

.checkout-form .form-group input:focus,
.checkout-form .form-group select:focus {
    border-color: #FFFC01;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 252, 1, 0.15);
}

.checkout-form .form-group input::placeholder {
    color: #999;
}

.checkout-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.checkout-form .delivery-info {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #FD0400;
    margin-top: 0.5rem;
}

.checkout-form .delivery-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    padding: 0.2rem 0;
}

.checkout-form .delivery-info .info-item i {
    color: #FD0400;
    width: 20px;
    text-align: center;
}

.checkout-form .delivery-info .info-item strong {
    color: #000000;
}

.checkout-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 16px;
    height: 350px;
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
}

.checkout-qr:hover {
    border-color: #FFFC01;
    background: #ffffff;
}

.checkout-qr .qr-wrapper {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 280px;
    width: 100%;
    text-align: center;
}

.checkout-qr .qr-wrapper img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.checkout-qr .qr-label {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.checkout-qr .qr-sub {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}

.checkout-qr .qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #bbb;
}

.checkout-qr .qr-placeholder i {
    font-size: 4rem;
}

.checkout-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.checkout-footer .btn-cancel-checkout {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.checkout-footer .btn-cancel-checkout:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.checkout-footer .btn-send-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-footer .btn-send-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    background: #1da851;
}

.checkout-footer .btn-send-whatsapp i {
    font-size: 1.2rem;
}

/* RESPONSIVE CHECKOUT MODAL */
@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-modal .modal-body {
        padding: 1.2rem;
    }
    
    .checkout-qr {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .checkout-qr .qr-wrapper {
        max-width: 200px;
        padding: 1rem;
    }
    
    .checkout-qr .qr-wrapper img {
        max-width: 180px;
    }
    
    .checkout-footer {
        flex-direction: column;
    }
    
    .checkout-footer .btn-cancel-checkout,
    .checkout-footer .btn-send-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .checkout-modal .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .checkout-modal .modal-header .modal-title {
        font-size: 1rem;
    }
    
    .checkout-modal .modal-body {
        padding: 1rem;
    }
    
    .checkout-qr .qr-wrapper {
        max-width: 160px;
        padding: 0.8rem;
    }
    
    .checkout-qr .qr-wrapper img {
        max-width: 140px;
    }}
/* ===== PAGINACIÓN ===== */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0 0.5rem 0;
    border-top: 2px solid rgba(253, 4, 0, 0.08);
}

.pagination-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pagination-info span {
    color: #FD0400;
    font-weight: 800;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.2rem 1rem 0.2rem 1.2rem;
    border-radius: 50px;
    white-space: nowrap;
}

.per-page-selector label {
    margin-bottom: 0;
    font-weight: 600;
    color: #555;
}

.per-page-selector select {
    padding: 0.3rem 1.8rem 0.3rem 0.8rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    background: #FFFFFF;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23FD0400' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.per-page-selector select:hover {
    border-color: #FD0400;
}

.per-page-selector select:focus {
    outline: none;
    border-color: #FD0400;
    box-shadow: 0 0 0 4px rgba(253, 4, 0, 0.1);
}

.per-page-selector select option {
    padding: 4px 8px;
}

/* Controles de paginación centrados */
.pagination-controls-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination-controls {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.pagination-controls button {
    min-width: 42px;
    height: 42px;
    border: 2px solid #e8e8e8;
    background: #FFFFFF;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 0 4px;
}

.pagination-controls button:hover:not(.disabled):not(.active) {
    border-color: #FFFC01;
    background: #FFFC01;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 252, 1, 0.25);
}

.pagination-controls button.active {
    background: #FD0400;
    color: #FFFFFF;
    border-color: #FD0400;
    box-shadow: 0 4px 20px rgba(253, 4, 0, 0.3);
    transform: translateY(-2px);
    font-weight: 800;
}

.pagination-controls button.active:hover {
    background: #cc0300;
    border-color: #cc0300;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(253, 4, 0, 0.4);
}

.pagination-controls button.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.pagination-controls button.disabled:hover {
    background: #FFFFFF;
    border-color: #e8e8e8;
    transform: none !important;
    box-shadow: none !important;
}

.pagination-controls button .dots {
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
}

.pagination-controls .page-nav {
    font-size: 0.9rem;
    background: #f8f9fa;
    border-color: #e8e8e8;
}

.pagination-controls .page-nav:hover:not(.disabled) {
    background: #FFFC01;
    border-color: #FFFC01;
    color: #000000;
}

.pagination-controls .page-nav i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-top {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
        white-space: normal;
        text-align: center;
    }
    
    .per-page-selector {
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
    }
    
    .per-page-selector select {
        font-size: 0.8rem;
        padding: 0.2rem 1.5rem 0.2rem 0.6rem;
    }
    
    .pagination-controls button {
        min-width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .pagination-controls {
        gap: 0.3rem;
    }
    
    .pagination-controls button {
        min-width: 34px;
        height: 34px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .pagination-controls button.hide-mobile {
        display: none;
    }
    
    .pagination-controls .page-nav {
        min-width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
    
    .per-page-selector {
        font-size: 0.75rem;
        padding: 0.15rem 0.6rem;
    }
    
    .per-page-selector select {
        font-size: 0.75rem;
        padding: 0.15rem 1.2rem 0.15rem 0.5rem;
    }
    
    .pagination-info {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
    }
}

@media (max-width: 400px) {
    .pagination-controls button {
        min-width: 30px;
        height: 30px;
        font-size: 0.65rem;
        border-radius: 6px;
    }
    
    .pagination-controls .page-nav {
        min-width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }
    
    .per-page-selector select {
        font-size: 0.7rem;
        padding: 0.1rem 1.2rem 0.1rem 0.4rem;
    }
}

/* ============================================================
   FILTRO DE MARCAS JERÁRQUICO
   ============================================================ */
#brandFilterContainer {
    max-height: 500px;
    overflow-y: auto;
    padding: 4px 0;
}

#brandFilterContainer::-webkit-scrollbar {
    width: 4px;
}

#brandFilterContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#brandFilterContainer::-webkit-scrollbar-thumb {
    background: var(--cruz-red, #FD0400);
    border-radius: 10px;
}

.brand-item {
    margin-bottom: 2px;
}

.brand-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #333;
}

.brand-main:hover {
    background: rgba(253, 4, 0, 0.08);
}

.brand-main.active {
    background: var(--cruz-red, #FD0400);
    color: white;
}

.brand-main .brand-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-main .brand-name i {
    font-size: 12px;
    transition: transform 0.3s ease;
    width: 14px;
}

.brand-main .brand-name i.collapsed {
    transform: rotate(-90deg);
}

.brand-main .brand-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.brand-main.active .brand-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.submarca-list {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submarca-list.open {
    max-height: 500px;
}

.submarca-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px 5px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #555;
}

.submarca-item:hover {
    background: rgba(253, 4, 0, 0.06);
}

.submarca-item.active {
    background: rgba(253, 4, 0, 0.12);
    color: var(--cruz-red, #FD0400);
    font-weight: 500;
}

.submarca-item .sub-count {
    font-size: 11px;
    color: #999;
}

.divider-custom {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 12px 0;
}

.brand-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
}

.brand-loading i {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Badge de estado en tarjeta */
.product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    letter-spacing: 0.5px;
}

.status-agotado {
    background: #dc3545;
    color: white;
}

.status-transito {
    background: #ffc107;
    color: #333;
}

.status-stock {
    display: none;
}

.btn-add-cart.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d !important;
}

.btn-add-cart.disabled:hover {
    background: #6c757d !important;
    transform: none !important;
}

.brand-filter-actions .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.brand-filter-actions .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* Estilos para el total en el modal de checkout */
.qr-total {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--cruz-red, #FD0400);
    text-align: center;
}

.qr-total .qr-total-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-total .qr-total-amount {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cruz-red, #FD0400);
    margin-top: 2px;
}

.qr-message {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #856404;
    text-align: center;
    border: 1px solid #ffc107;
}

.qr-message i {
    margin-right: 6px;
    color: #ffc107;
}
/* ===== ESTADOS DE PRODUCTOS ===== */
/* Producto Agotado - Borde Rojo */
.printer-card.card-agotado {
    border: 3px solid #dc3545 !important;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.printer-card.card-agotado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.05);
    pointer-events: none;
    z-index: 1;
}

.printer-card.card-agotado .card-body {
    opacity: 0.85;
}

/* Producto En Tránsito - Borde Amarillo */
.printer-card.card-transito {
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.printer-card.card-transito::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.05);
    pointer-events: none;
    z-index: 1;
}

.printer-card.card-transito .card-body {
    opacity: 0.85;
}

/* ===== BOTÓN DE ESTADO - AGOTADO (ROJO) ===== */
.btn-add-cart.disabled.btn-estado-agotado {
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.btn-add-cart.disabled.btn-estado-agotado:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 0 25px rgba(220, 53, 69, 0.5) !important;
    transform: scale(1.02);
}

/* ===== BOTÓN DE ESTADO - EN TRÁNSITO (AMARILLO) ===== */
.btn-add-cart.disabled.btn-estado-transito {
    background: #ffc107 !important;
    color: #000 !important;
    border: 2px solid #ffc107 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.btn-add-cart.disabled.btn-estado-transito:hover {
    background: #e0a800 !important;
    border-color: #e0a800 !important;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5) !important;
    transform: scale(1.02);
}

/* ===== BOTÓN NORMAL (HABILITADO) ===== */
.btn-add-cart {
    background: var(--color1, #0d6efd) !important;
    color: white !important;
    border: 2px solid var(--color1, #0d6efd) !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-add-cart i {
    margin-right: 6px;
}

/* ===== BOTÓN DESHABILITADO GENÉRICO (por si acaso) ===== */
.btn-add-cart.disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.btn-add-cart.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Badges de estado */
.product-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}

.status-agotado {
    background: #dc3545;
    color: white;
}

.status-agotado i {
    margin-right: 5px;
}

.status-transito {
    background: #ffc107;
    color: #000;
}

.status-transito i {
    margin-right: 5px;
}

/* Efecto hover para tarjetas con estados */
.printer-card.card-agotado:hover {
    border-color: #c82333 !important;
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.25) !important;
    transform: translateY(-5px);
}

.printer-card.card-transito:hover {
    border-color: #e0a800 !important;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.25) !important;
    transform: translateY(-5px);
}

/* Botón ojo (sin cambios, se mantiene igual) */
.btn-view-detail {
    background: var(--color1, #0d6efd) !important;
    color: white !important;
    border: 2px solid var(--color1, #0d6efd) !important;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-detail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-add-cart.disabled.btn-estado-agotado,
    .btn-add-cart.disabled.btn-estado-transito {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
    
    .btn-add-cart {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}