:root {
    --black: #1a1817;
    --gold: #c9a24d;
    --gold-light: #deb887;
    --gold-dark: #9d8344;
    --secondary: #b8704d;
    --white: #ffffff;
    --gray: #b5b0aa;
    --bg-dark: #2a2723;
    --text-light: #f8f6f4;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #c2b8b8 0%, #f3eee5 50%, #e5d3bc 100%);
    color: var(--white);
    padding-top: 80px;
}

/* HEADER TOP - NAV - COPIADO DE INDEX.CSS */
.catalog-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #0f0d0b 0%, #1a1817 50%, #0f0d0b 100%);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    animation: fadeInDown 1s ease;
    box-shadow: rgba(201, 162, 77, 0.12) 0px 12px 40px, rgba(0, 0, 0, 0.4) 0px 0px 30px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-menu-container {
    display: flex;
    align-items: center;
    position: relative;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(229, 181, 103, 0.4));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(201, 162, 77, 0.5));
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(0);
}

.nav-link:hover {
    color: var(--gold-light);
}

/* HAMBURGER MENU */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

.hamburger:hover span {
    background: var(--gold-light);
    box-shadow: 0 0 10px rgba(201, 162, 77, 0.4);
}

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(26, 24, 23, 0.95) 0%, rgba(42, 39, 35, 0.95) 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    min-width: 200px;
    padding: 0.8rem 0;
    margin-top: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scaleY(0.95);
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 162, 77, 0.2);
    backdrop-filter: blur(12px);
}

.dropdown-item {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(201, 162, 77, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(201, 162, 77, 0.08);
    border-left-color: var(--gold);
    color: var(--gold-light);
    padding-left: 1.8rem;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

/* GOLD LINE ANIMATION */
.gold-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--gold-light),
        var(--secondary),
        transparent
    );
    background-size: 200% 100%;
    animation: goldMove 3s ease-in-out infinite;
}

@keyframes goldMove {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* HEADER */
/* ================= HEADER CATÁLOGO ================= */

.catalog-header {
    max-width: 1200px;
    margin: 40px auto 30px;
    padding: 70px 40px 60px;
    text-align: center;

    background: linear-gradient(
        135deg,
        #fffaf4 0%,
        #f1f0ed 100%
    );

    border-radius: 28px;
    border: 2px solid rgba(201, 162, 77, 0.25);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* TÍTULO */
.catalog-header h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;

    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 1px;

    background: linear-gradient(135deg, #493f3f, rgb(151, 118, 75));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 6px 18px rgba(201, 162, 77, 0.35),
        0 0 35px rgba(201, 162, 77, 0.15);
}

/* Línea dorada inferior */
.catalog-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #c9a24d,
        #deb887,
        #c9a24d,
        transparent
    );

    box-shadow: 0 0 12px rgba(201, 162, 77, 0.6);
}

/* Línea dorada inferior */
.catalog-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        #c9a24d,
        #deb887,
        #c9a24d,
        transparent
    );

    box-shadow: 0 0 12px rgba(201, 162, 77, 0.6);
}

@keyframes goldGlow {
    0% { box-shadow: 0 0 8px rgba(201,162,77,.4); }
    50% { box-shadow: 0 0 18px rgba(201,162,77,.7); }
    100% { box-shadow: 0 0 8px rgba(201,162,77,.4); }
}

.catalog-header h1::after {
    animation: goldGlow 3s ease-in-out infinite;
}


/* SUBTÍTULO */
.catalog-header p {
    font-size: 1.15rem;
    color: #4a3a2f;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


/* FILTER CONTAINER */
.filter-container {
    max-width: 1000px;
    margin: 15px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.08) 0%, rgba(201, 162, 77, 0.04) 100%);
    border-radius: 16px;
    border: 2px solid rgba(201, 162, 77, 0.2);
    box-shadow: 0 8px 25px rgba(201, 162, 77, 0.1);
}

/* VERSIÓN SIMPLE - elimina las anteriores y usa esto */
.search-box {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
}

/* Para móviles */
@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
        padding: 0 10px;
    }
}

.search-input {
    width: 100%;
    padding: 8px 14px;
    border: 2px solid #c9a24d;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1817;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #deb887;
    box-shadow: 0 8px 25px rgba(201, 162, 77, 0.2);
    background: rgba(255, 255, 255, 1);
}

.search-input::placeholder {
    color: #b5b0aa;
}

.gender-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #c9a24d;
    background: transparent;
    color: #1a1817;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background: rgba(201, 162, 77, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(201, 162, 77, 0.15);
}

.filter-btn.active {
    background: linear-gradient(120deg, #c9a24d, #b8704d);
    color: #ffffff;
    border-color: #9d8344;
    box-shadow: 0 8px 20px rgba(201, 162, 77, 0.3);
}

.filter-btn.active:hover {
    transform: translateY(-3px);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* GRID */
.catalog-container {
    padding: 40px 5%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.pagination-controls {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 18px 24px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(201, 162, 77, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #1a1817;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.pagination-controls.active {
    display: flex;
}

.pagination-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(120deg, #c9a24d, #b8704d);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(201, 162, 77, 0.25);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(201, 162, 77, 0.35);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-page-indicator {
    font-weight: 600;
    color: #7a6653;
    min-width: 140px;
    text-align: center;
}

@media (max-width: 768px) {
    .pagination-controls {
        padding: 14px 16px;
        gap: 8px;
    }

    .pagination-info {
        text-align: center;
        font-size: 0.95rem;
    }

    .pagination-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }

    .pagination-page-indicator {
        width: 100%;
        min-width: 0;
    }
}

/* CARD */
/* Ajustes para las tarjetas de productos */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(201, 162, 77, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(201, 162, 77, 0.2);
}

/* IMAGEN CON DESCUENTO */
.product-image-container {
    position: relative;
    background: #f9f7f4;
    overflow: hidden;
    flex: 1; /* Ocupa el espacio disponible */
    min-height: 200px; /* Altura mínima */
}

.discount-band {
    position: absolute;
    top: 10px;
    left: -38px;
    width: 130px;
    background: linear-gradient(135deg, #ff5733, #c81a1a);
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 15px rgba(255, 87, 51, 0.4);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.discount-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

/* ETIQUETAS */
.product-tags {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 8;
}

.tag {
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.product-image {
    width: 100%;
    height: 100%; /* Cambiado de altura fija a porcentaje */
    max-height: 280px; /* Altura máxima */
    object-fit: contain;
    object-position: center;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}


.product-card:hover .product-image {
    transform: scale(1.05);
}

/* INFORMACIÓN DEL PRODUCTO */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 0; /* No crece, tamaño fijo */
}


.product-name {
    margin: 0 0 10px 0;
    color: #1a1817;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.product-info .category {
    font-size: 0.9rem;
    color: #999;
    margin: 6px 0 14px 0;
    text-transform: capitalize;
}

/* PRECIOS */
.price-container {
    margin-bottom: 16px;
}

.original-price {
    font-size: 1rem;
    color: #ccc;
    text-decoration: line-through;
    margin: 0 0 6px 0;
}

.sale-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1817;
    margin: 0;
}

/* BOTÓN AÑADIR */
.add-button {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #c9a24d, #b8904d);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 77, 0.4);
    background: linear-gradient(135deg, #deb887, #c9a24d);
}

.add-button:active {
    transform: translateY(0);
}

.add-button i {
    font-size: 1.2rem;
}

/* ENLACE MÁS INFORMACIÓN */
.more-info {
    text-align: center;
    color: #c9a24d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.more-info:hover {
    color: #deb887;
    text-decoration: underline;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray);
}

.product-limit-note {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 77, 0.3);
    background: rgba(201, 162, 77, 0.1);
    color: #4a3a2f;
    font-size: 0.95rem;
    font-weight: 500;
}

/* FOOTER - COPIADO DE INDEX.CSS */
.catalog-footer {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        #1a1817 0%,
        #0f0d0b 100%
    );
    color: var(--white);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    border-top: 2px solid rgba(201, 162, 77, 0.4);
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.7);
}

.catalog-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--amber),
        var(--rose-gold),
        transparent
    );
}

.catalog-footer p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.4px;
}

.footer-bottom {
    margin: 0;
}.footer-section i {
    color: var(--gold);
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 77, 0.15);
    border: 1px solid rgba(201, 162, 77, 0.3);
    border-radius: 50%;
    color: var(--gold);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(201, 162, 77, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(201, 162, 77, 0.2);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE AUTOMÁTICO Y COHERENTE ===== */

/* 🖥️ DESKTOP (1200px+) - BASE */
@media (min-width: 1200px) {
    .catalog-top-header {
        padding: 1rem 3rem;
    }
    
    .nav {
        gap: 1.5rem;
        font-size: 1rem;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .catalog-header {
        max-width: 1200px;
        margin: 40px auto 30px;
        padding: 70px 40px 60px;
    }
    
    .catalog-header h1 {
        font-size: 3.2rem;
    }
    
    .catalog-header p {
        font-size: 1.15rem;
    }
    
    .filter-container {
        max-width: 1000px;
        padding: 25px 20px;
    }
    
    .gender-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .product-card {
        height: 100%;
    }
    
    .product-image-container {
        min-height: 200px;
    }
    
    .product-image {
        max-height: 280px;
        padding: 15px;
    }
    
    .catalog-container {
        padding: 40px 5%;
    }
}

/* 📱 TABLETS MEDIANOS (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .catalog-top-header {
        padding: 1rem 2rem;
    }
    
    .nav {
        gap: 1.2rem;
        font-size: 0.95rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .catalog-header {
        max-width: 100%;
        margin: 30px auto 25px;
        padding: 60px 30px 50px;
    }
    
    .catalog-header h1 {
        font-size: 2.8rem;
    }
    
    .catalog-header p {
        font-size: 1.1rem;
    }
    
    .filter-container {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .gender-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-image-container {
        min-height: 180px;
    }
    
    .product-image {
        max-height: 240px;
        padding: 12px;
    }
    
    .catalog-container {
        padding: 35px 4%;
    }
}

/* 📱 TABLETS (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .catalog-top-header {
        padding: 0.9rem 1.5rem;
        flex-direction: row;
        gap: 0.8rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav {
        gap: 1rem;
        font-size: 0.85rem;
        display: flex;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .catalog-header {
        padding: 50px 20px;
        margin: 25px auto 20px;
    }
    
    .catalog-header h1 {
        font-size: 2.4rem;
    }
    
    .catalog-header p {
        font-size: 1rem;
    }
    
    .filter-container {
        padding: 18px 12px;
        gap: 12px;
    }
    
/*     .search-box {
        max-width: 100%;
    } */
    
    .gender-filters {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .filter-btn i {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-image-container {
        min-height: 160px;
    }
    
    .product-image {
        max-height: 220px;
        padding: 10px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .sale-price {
        font-size: 1.3rem;
    }
    
    .add-button {
        padding: 11px 14px;
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .catalog-container {
        padding: 30px 3%;
    }
}

/* 📱 CELULAR GRANDE (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .catalog-top-header {
        padding: 0.8rem 1rem;
        flex-direction: row;
        gap: 0.6rem;
        justify-content: space-between;
    }
    
    .nav {
        gap: 0.8rem;
        font-size: 0.8rem;
        display: flex;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .catalog-header {
        padding: 40px 15px;
        margin: 20px auto 15px;
        border-radius: 20px;
    }
    
    .catalog-header h1 {
        font-size: 2rem;
    }
    
    .catalog-header p {
        font-size: 0.95rem;
    }
    
    .filter-container {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .gender-filters {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
    
    /* IMPORTANTE: 2 o 3 tarjetas en celular grande */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .product-image-container {
        min-height: 140px;
    }
    
    .product-image {
        max-height: 190px;
        padding: 8px;
    }
    
    .product-name {
        font-size: 0.9rem;
        margin: 0 0 8px 0;
    }
    
    .product-info .category {
        font-size: 0.85rem;
        margin: 4px 0 10px 0;
    }
    
    .sale-price {
        font-size: 1.2rem;
    }
    
    .add-button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .catalog-container {
        padding: 20px 2.5%;
    }
}

/* 📱 CELULAR PEQUEÑO (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .catalog-top-header {
        padding: 0.7rem 0.8rem;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .nav {
        gap: 0.6rem;
        font-size: 0.75rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .catalog-header {
        padding: 30px 12px;
        margin: 15px auto 12px;
        border-radius: 18px;
    }
    
    .catalog-header h1 {
        font-size: 1.8rem;
    }
    
    .catalog-header p {
        font-size: 0.9rem;
    }
    
    .filter-container {
        padding: 12px 8px;
        gap: 8px;
    }
    
    .search-input {
        padding: 9px 10px;
        font-size: 0.8rem;
    }
    
    .gender-filters {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .filter-btn i {
        font-size: 0.85rem;
    }
    
    /* IMPORTANTE: 2 tarjetas en celular pequeño */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image-container {
        min-height: 120px;
    }
    
    .product-image {
        max-height: 160px;
        padding: 6px;
    }
    
    .product-name {
        font-size: 0.85rem;
        margin: 0 0 6px 0;
    }
    
    .product-info .category {
        font-size: 0.8rem;
        margin: 3px 0 8px 0;
    }
    
    .sale-price {
        font-size: 1.1rem;
    }
    
    .add-button {
        padding: 9px 10px;
        font-size: 0.8rem;
    }
    
    .tag {
        font-size: 0.55rem;
        padding: 2px 5px;
    }
    
    .catalog-container {
        padding: 15px 2%;
    }
}

/* 📱 CELULAR EXTRA PEQUEÑO (< 480px) */
@media (max-width: 479px) {
    .catalog-top-header {
        padding: 0.6rem 0.6rem;
        flex-direction: row;
        gap: 0.4rem;
        justify-content: space-between;
    }
    
    .nav {
        gap: 0.4rem;
        font-size: 0.7rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.3rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .catalog-header {
        padding: 25px 10px;
        margin: 12px auto 10px;
        border-radius: 16px;
    }
    
    .catalog-header h1 {
        font-size: 1.5rem;
    }
    
    .catalog-header p {
        font-size: 0.85rem;
    }
    
    .filter-container {
        padding: 10px 6px;
        gap: 6px;
    }
    
/*     .search-box {
        width: 100%;
        max-width: 100%;
    } */
    
    .search-input {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .gender-filters {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .filter-btn i {
        font-size: 0.8rem;
    }
    
    /* IMPORTANTE: 2 tarjetas en móvil (o 1 si muy estrecho) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 14px;
    }
    
    .product-image-container {
        min-height: 100px;
    }
    
    .product-image {
        max-height: 140px;
        padding: 5px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 0.8rem;
        margin: 0 0 4px 0;
    }
    
    .product-info .category {
        font-size: 0.75rem;
        margin: 2px 0 6px 0;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .sale-price {
        font-size: 1rem;
    }
    
    .add-button {
        padding: 8px 8px;
        font-size: 0.75rem;
        margin-bottom: 6px;
        border-radius: 20px;
    }
    
    .more-info {
        font-size: 0.8rem;
    }
    
    .tag {
        font-size: 0.55rem;
        padding: 2px 4px;
    }
    
    .catalog-container {
        padding: 12px 1.5%;
    }
    
    .catalog-footer {
        padding: 2rem 1rem;
        font-size: 0.8rem;
    }
    
    .catalog-footer p {
        max-width: 100%;
    }
}

/* ==========================
   ESTILOS DESCUENTOS Y AGOTADO
   ========================== */

.out-of-stock-band {
    position: absolute;
    top: 10px;
    right: -38px;
    width: 140px;
    background: linear-gradient(135deg, #8b6a47, #5a4a37);
    transform: rotate(45deg);
    z-index: 11;
    box-shadow: 0 8px 20px rgba(90, 74, 55, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 15px rgba(139, 106, 71, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.out-of-stock-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.add-button.disabled {
    background: linear-gradient(135deg, #999, #888);
    cursor: not-allowed;
    opacity: 0.8;
}

.add-button.disabled:hover {
    transform: none;
    box-shadow: none;
}