.cart-icon {
    position: relative;
    font-size: 24px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 50%;
}

.logo {
    width: 150px;
}

.header-bg {
    background-color: #fff5f3;
}

header a {
    text-decoration: none;
    color: #F34A37;
}

.enlaces-nav {
    background-color: #fff5f3;
}

header nav a:hover {
    color: #D12B1A;
    text-decoration: underline 1px #D12B1A;
}

header i {
    font-size: 1.25rem;
}

header .contacto a {
    color: black;
    text-decoration: underline 1px black;
}

#banner {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    animation: cambiarFondo 15s infinite;
    overflow: hidden;
    color: white;
}

#banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* 0.5 = oscuridad */
    z-index: 1;
}

#banner * {
    position: relative;
    z-index: 2;
}

@keyframes cambiarFondo {

    0% {
        background-image: url("../img/fondo1.jpg");
    }

    33% {
        background-image: url("../img/fondo2.jpg");
    }

    66% {
        background-image: url("../img/fondo3.jpg");
    }

    100% {
        background-image: url("../img/fondo1.jpg");
    }
}

#banner h2 {
    font-size: 3rem;
    font-weight: bold;
}

#banner a {
    background-color: #F34A37;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
}

.mobile {
    display: none;
}

@media (max-width: 768px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: inline-block;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    border-color: #8b0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.category-card.active {
    border-color: #F34A37;
    background: #fff5f3;
    box-shadow: 0 4px 12px rgba(243, 74, 55, 0.2);
}


.category-card h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
        justify-content: center;
    gap: 20px;
}

.product-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
}

.product-card:hover {
    border-color: #8b0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    width: 100%;
    text-align: left;
    margin: 10px 0 6px;
}

.short-desc {
    width: 100%;
    text-align: left;
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #8b0000;
    width: 100%;
    text-align: left;
    margin-top: auto;
    margin-bottom: 12px;
}

.btn-view {
    padding: 8px 15px;
    background: #8b0000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    align-self: center;
}

.btn-view:hover {
    opacity: 0.8;
}

.btn-load-more {
    padding: 10px 20px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-load-more:hover {
    opacity: 0.8;
}

.contacto-info {
    font-size: 1.15rem;
}

#contacto a {
    color: #F34A37;
}

#contacto {
    background-color: #fff5f3;
}

footer {
    background-color: #8b0000;
    color: white;
}