body {
    font-family: Arial, sans-serif!important;
    background-color:rgb(255, 255, 255)!important;
    
}
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.99);
    padding: 10px 50px!important;
}

.navbar-brand img {
    height: 50px;
}

.search-bar {
    width: 450px !important; 
    margin-left: 30px; 
    margin-right: 20px;
    display: flex; 
}

.search-bar input {
    width: 100%; 
}


.navbar-nav .nav-link {
    margin-right: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link i {
    font-size: 20px; 
    background-color: #f1f1f1;
    border-radius: 50%;
    padding: 12px; 
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}


.navbar-nav .nav-link:hover i {
    background-color:rgb(227, 227, 227); 
}

.navbar-nav .nav-link span {
    margin-left: 10px; 
    font-size: 14px;
}

.menu-label {
    background-color: #ff0000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}
.sidebar {
    background-color: #fff;
    border-right: 1px solidrgba(255, 255, 255, 0);
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 20px;
    
}
.sidebar h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}
.sidebar .form-check {
    margin-bottom: 10px;
}
.product-grid {
    padding: 20px;
}
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.product-card img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-card h6 {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
}
.product-card p {
    font-size: 12px;
    color: #666;
}
.product-card a {
    font-size: 14px;
    color:rgb(255, 0, 0);
    text-decoration: none;
}
.secondary-nav {
    background-color:rgb(255, 255, 255)!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0px 50px;
    position: relative; 
}
.secondary-nav a {
    color: black; 
    text-decoration: none; 
}
.secondary-nav span {
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px;
    position: relative; 
    color: black; 
    transition: color 0.3s ease; 
}

.secondary-nav span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px; 
    width: 0;
    height: 3px; 
    background-color: red; 
    transition: width 0.3s ease; 
}
.secondary-nav a:hover {
    color: red; 
    text-decoration: none;
}

.secondary-nav span:hover::after {
    width: 100%; 
}
.container-seccion{
    margin-left:50px;
    margin-right:50px;
}
.section-header {
    margin-top: 20px!important;
    font-size: 14px!important;
}

.link-red {
    color: red;
    text-decoration: none; 
    transition: color 0.3s ease;
}

.link-red:hover {
    color: darkred; 
}
.container-search{
    margin-left: 90px;
}
.productos {
    background-color: red;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    cursor: pointer;
}

.productos::before {
    content: '\229E'; 
    margin-right: 10px;
    color: white; 
}
.productos a {
    color: white; 
    text-decoration: none; 
}
.productos a:hover {
    color: White; 
    text-decoration: none; 
}   
.productos:hover {
    background-color:rgb(214, 7, 7);
    color: white; 
    text-decoration: none;
}
.product-card .stock-indicator {
  background-color: #FFCC00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  padding: 5px 0;
  width: 100%;
  margin-bottom: 10px;
}

.product-card {
  padding: 0;
  overflow: hidden; /* Evita que el stock se salga visualmente */
}

.product-card .image-container {
    position: relative; 
}

.product-card .image-container img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    width: 100%; 
}

.product-card .btn-detail {
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    background-color: rgb(255, 0, 0);
    color: white;
    font-size: 14px;
    padding: 12px 0;
    text-decoration: none;
    text-align: center;
    border-radius: 0px;
    
    opacity: 0;
    transform: translateY(20px); /* comienza más abajo */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card .image-container:hover .btn-detail {
    opacity: 1;
    transform: translateY(0); /* sube a su posición original */
}

.product-card .btn-detail:hover {
    background-color: #D10000;
}



/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px!important;
    }

    .search-bar {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    .container-seccion {
        margin-left: 20px;
        margin-right: 20px;
    }

    .container-search {
        margin-left: 0;
    }

    .secondary-nav {
        padding: 0px 20px;
    }

    .product-grid {
        padding: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-card img {
        max-height: 100px;
    }

    .product-card h6 {
        font-size: 12px;
    }

    .product-card p {
        font-size: 10px;
    }

    .product-card a {
        font-size: 12px;
    }

    .sidebar {
        padding: 10px;
    }

    .sidebar h5 {
        font-size: 14px;
    }

    .sidebar .form-check {
        margin-bottom: 5px;
    }
}


/* Media queries for responsive design */
@media (max-width: 768px) {
    /* Navbar adjustments */
    .navbar-brand img {
        width: 100px; /* Adjust logo size */
    }
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    /* Secondary Navigation adjustments */
    .secondary-nav .container-fluid {
        flex-direction: column;
        align-items: center;
    }
    .secondary-nav span {
        margin-bottom: 10px;
    }

    /* Sidebar adjustments */
    .sidebar {
        display: none; /* Hide sidebar on mobile */
    }

    /* Product grid adjustments */
    .product-grid .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-card {
        margin-bottom: 20px;
    }

    /* Search bar adjustments */
    .container-search {
        width: 100%;
    }
    .search-bar {
        width: 100%;
    }
    .search-bar input {
        width: calc(100% - 50px);
    }
    .search-bar button {
        width: 50px;
    }
}


/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
        margin: 0;
        width: 100% !important;
    }
    .search-bar input {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .secondary-nav span {
        font-size: 14px;
    }

    .product-card h6 {
        font-size: 12px;
    }

    .product-card p {
        font-size: 10px;
    }
}

/* Móviles grandes / tablets verticales (481px – 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .search-bar {
        width: 100% !important;
    }

    .product-grid .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-card img {
        max-height: 100px;
    }
}

/* Tablets horizontales / Laptops pequeños (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-bar {
        width: 300px !important;
    }

    .product-grid .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .container-seccion {
        margin: 0 30px;
    }
}

/* Laptops y pantallas medianas (1025px – 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .product-grid .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .container-seccion {
        margin: 0 50px;
    }

    .search-bar {
        width: 400px !important;
    }
}

/* Pantallas grandes (1441px – 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .container-seccion {
        margin-left: 80px;
        margin-right: 80px;
    }

    .search-bar {
        width: 500px !important;
    }
}

/* Ultra wide screens (más de 1920px) */
@media (min-width: 1921px) {
    .container-seccion {
        margin-left: 120px;
        margin-right: 120px;
    }

    .search-bar {
        width: 600px !important;
    }

    .product-grid .col-md-3 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
