/* Catalog Card Styles - Estilos unificados para las cards del catálogo */

/* Grid container responsive */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem 2rem;
}

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

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

/* Card container */
.catalog-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Featured card background */
.catalog-card-featured-bg {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(0, 0, 0, 0.9));
    border: 2px solid rgb(220, 38, 38);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.catalog-card-featured-bg:hover {
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
}

/* Tags container */
.catalog-card-tags {
    position: absolute;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    top: 0.5rem;
    left: 0.5rem;
}

/* Discount tag */
.catalog-card-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, rgb(220, 38, 38), rgb(127, 29, 29));
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Free shipping text */
.catalog-card-free-shipping-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(34, 197, 94);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured tag */
.catalog-card-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: black;
    background-color: rgb(250, 204, 21);
    border: 2px solid rgb(234, 179, 8);
    border-radius: 0.5rem;
}

/* Free shipping tag */
.catalog-card-free-shipping {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    border: 2px solid #34d399;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite alternate;
    transform: scale(1);
    transition: all 0.3s ease;
}

.catalog-card-free-shipping:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5), 0 0 25px rgba(16, 185, 129, 0.4);
}

.catalog-card-free-shipping::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.5);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Image container */
.catalog-card-image-container {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.catalog-card-image {
    object-fit: contain;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    background-color: white;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    padding: 12px 0;
    transform: scale(1.2);
}

.catalog-card-image:hover {
    transform: scale(1.3);
}

/* Placeholder image */
.catalog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgb(243, 244, 246);
    border-radius: 0.5rem;
}

.catalog-card-image-placeholder i {
    font-size: 2.5rem;
    color: rgb(156, 163, 175);
}

/* Content container */
.catalog-card-content {
    padding: 0.5rem 1rem 1rem 1rem;
}

.catalog-card-info {
    margin-top: 0.75rem;
}

/* Product name */
.catalog-card-name {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    color: white;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .catalog-card-name {
        font-size: 1.25rem;
    }
}

/* Price container */
.catalog-card-price-container {
    margin-bottom: 1rem;
}

.catalog-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: rgb(248, 113, 113);
}

@media (min-width: 768px) {
    .catalog-card-price {
        font-size: 1.875rem;
    }
}

.catalog-card-old-price {
    margin-left: 0.5rem;
    font-size: 1.125rem;
    color: rgb(156, 163, 175);
    text-decoration: line-through;
}

@media (min-width: 768px) {
    .catalog-card-old-price {
        font-size: 1.25rem;
    }
}

/* Buttons container */
.catalog-card-buttons {
    display: flex;
    height: 3rem;
    gap: 0.5rem;
}

/* Buy now button */
.catalog-card-buy-btn {
    flex: 1;
    height: 60%;
    height: 100%;
    padding: 0 1rem;
    text-align: center;
    color: white;
    background-color: rgb(127, 29, 29);
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
}

.catalog-card-buy-btn:hover {
    background-color: rgb(153, 27, 27);
}

@media (min-width: 768px) {
    .catalog-card-buy-btn {
        font-size: 0.9rem;
    }
}

/* Cart button */
.catalog-card-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width:40%;
    height: 100%;
    padding: 0 1rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.catalog-card-cart-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.catalog-card-cart-btn i:first-child {
    font-size: 1rem;
}

.catalog-card-cart-btn i:last-child {
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .catalog-grid {
        gap: 1.5rem 1rem;
    }
    
    .catalog-card-content {
        padding: 0.75rem;
        padding-top: 0;
    }
    
    .catalog-card-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .catalog-card-price {
        font-size: 1.375rem;
    }
    
    .catalog-card-old-price {
        font-size: 1rem;
    }
    
    .catalog-card-buttons {
        height: 2.75rem;
    }
    
    .catalog-card-buy-btn {
        font-size: 0.8rem;
        padding: 0 0.75rem;
    }
    
    .catalog-card-cart-btn {
        padding: 0 0.75rem;
    }
}