body {
    padding-top: 150px;
    /* ajusta según la altura real del top bar */
}

/* ================== BASE ================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
}

/* ================== HEADER ================== */
.top-info {
    font-size: 13px;
    color: #555;
}

.search-input {
    border-radius: 50px 0 0 50px;
}

.search-btn {
    border-radius: 0 50px 50px 0;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* ================== SLIDER ================== */
.carousel-item img {
    object-fit: cover;
    height: 420px;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 240px;
    }
}

/* ===== GRID 5 COLUMNAS ===== */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    transition: all 0.25s ease;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-card img {
    padding: 15px;
    max-height: 180px;
    object-fit: contain;
}

/* ===== TEXTO ===== */
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.product-code {
    font-size: 12px;
    color: #007bff;
    margin-top: 6px;
}

/* ====== SLIDER CONTROLS ====== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #0d6efd;
    /* mismo azul Bootstrap */
    border-radius: 50%;
    padding: 15px;
    background-size: 60%;
}

/* Hover effect */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #084298;
}

/* ====== PRODUCT CARD ====== */
.product-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Hover efecto */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Imagen */
.product-card img {
    transition: transform 0.4s ease;
}

/* Zoom imagen */
.product-card:hover img {
    transform: scale(1.08);
}

/* Texto */
.product-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.product-code {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ================== PAGINACIÓN ================== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-item {
    margin: 0 4px;
}

.page-link {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.page-link:hover {
    background: #f0f0f0;
}

.page-item.active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

body {
    font-family: 'Open Sans', sans-serif;
}

/* LOGO PRINCIPAL */
.main-logo {
    max-height: 150px;
    /* ajusta si quieres más grande */
    width: auto;
}

/* TOP BAR 2 - FIJO EN TODA LA PÁGINA */
.top-bar-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

/* ================= CATEGORÍAS GRID ================= */

.custom-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.category-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-card span {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--bs-primary);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .custom-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .custom-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.categories-title img,
.catalog-title img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}