html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.banner-carousel-item {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 500px;
    overflow: visible;
}

.banner-carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 10;
    color: white;
    height: 100%;
}

/* Asegurar que los textos sean visibles */
.slide-title, .slide-sub-title {
    position: relative;
    z-index: 15;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
}

.bg-primary{
   background-color: #2b4170 !important;

}

.btn-primary{
    background-color: #2b4170 !important;
    border-color: #2b4170 !important;
    color: #fff !important;
}

/* Estilos del catálogo minimalista */
.catalog-container {
    background-color: #ffffff;
    min-height: 100vh;
    padding-top: 2rem;
}

.filter-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filter-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.25rem;
}

.filter-card .card-body {
    padding: 1.25rem;
}

.dropdown-toggle {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-weight: normal;
    transition: border-color 0.15s ease-in-out;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 150px;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    border-color: #2b4170;
}

.dropdown-menu {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    min-width: 200px;
    z-index: 1050;
}

.dropdown-item {
    border-radius: 0;
    margin: 0;
    transition: background-color 0.15s ease-in-out;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2b4170;
}

.dropdown-item.active {
    background-color: #2b4170;
    color: white;
}

.list-group-item-action {
    border-radius: 0;
    margin: 0;
    border: none;
    transition: background-color 0.15s ease-in-out;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    color: #2b4170;
}

.list-group-item.active,
.list-group-item-action.active {
    z-index: 2;
    color: #fff;
    background-color: #2b4170;
    border-color: #2b4170;
}

.product-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out;
    overflow: hidden;
    height: 100%;
    box-shadow: none !important;
}

.product-card:hover {
    border-color: #2b4170;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: none;
}

.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-title:hover {
    color: #2b4170;
    text-decoration: none;
}

.product-price {
    margin-top: auto;
    margin-bottom: 1rem;
}

.price-old {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.price {
    color: #2b4170;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    z-index: 5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-offer {
    left: 0.5rem;
    background-color: #28a745;
    color: white;
}

.badge-out-of-stock {
    right: 0.5rem;
    background-color: #dc3545;
    color: white;
}

.btn-link-details {
    color: #2b4170;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.15s ease-in-out;
}

.btn-link-details:hover {
    color: #1a2c4a;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .catalog-container {
        padding-top: 1rem;
    }
    
    .filter-card .card-header {
        padding: 0.75rem 1rem;
    }
    
    .filter-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .dropdown-toggle {
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-img-top {
        height: 160px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .dropdown-toggle {
        font-size: 0.75rem;
        min-width: 100px;
        padding: 0.25rem 0.5rem;
    }
    
    .dropdown-menu {
        min-width: 160px;
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 0.4rem 0.8rem;
    }
}