/* 
   Catálogo Styles
   Separated from styles.css
   Depends on variables defined in styles.css
*/

/* Category Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition-mid);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary);
    border-color: var(--primary);
    padding-bottom: 1rem;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    padding: 0 4%;
    max-width: 1600px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    padding: 2rem 1.5rem;
    position: relative;
    transition: var(--transition-mid);
    height: 550px;
    /* Tamaño estandarizado */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    background: var(--glass-heavy);
    box-shadow: var(--shadow-hard);
    border-color: hsla(var(--p-h), var(--p-s), var(--p-l), 0.3);
}

.card-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 500;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}

.product-img-container {
    height: 350px;
    /* Altura fija para el área de imagen */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Vuelve al efecto zoom/relleno completo sin bordes */
    transition: var(--transition-mid);
}

.product-card:hover .product-img {
    transform: scale(1.08) translateY(-5px);
}

.card-details {
    text-align: center;
}

.product-brand {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.product-name {
    font-size: 1.2rem;
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.product-price {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 300;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-dim);
    opacity: 0.7;
    margin-right: 10px;
    font-size: 0.9em;
}

/* Pricing Update for Unit/Box Logic */
.product-pricing-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.5rem;
    width: 100%;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Keep it cleaner */
    border-bottom: 1px solid transparent;
}


.unit-price {
    /* Standard look - placeholder for future specific unit styles */
    display: flex;
    justify-content: space-between;
}

.box-price {
    background: hsla(var(--p-h), var(--p-s), var(--p-l), 0.05);
    /* Subtle highlight background */
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    /* Rounded corners */
    border: 1px solid hsla(var(--p-h), var(--p-s), var(--p-l), 0.1);
    margin-top: 5px;
}

.price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    flex-grow: 1;
    text-align: left;
}

.price-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-main {
    font-size: 1rem;
    color: var(--text-pure);
    font-weight: 500;
    font-family: var(--font-sans);
}

.box-price .price-label {
    color: var(--primary);
    /* Gold header for Box */
    font-weight: 600;
}

.highlight-box {
    color: var(--primary);
    font-weight: 700;
}