/* ========== ZONA MERCH SECTION ========== */

.section-merch {
    background: linear-gradient(180deg, #0a0e1a 0%, #131722 100%);
}

/* Empty State - Coming Soon */
.merch-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(215, 38, 61, 0.05), rgba(19, 23, 34, 0.5));
    border-radius: 16px;
    border: 2px dashed rgba(215, 38, 61, 0.2);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.merch-empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(215, 38, 61, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.merch-empty-state h3 {
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.merch-empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* Products Grid */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.merch-card {
    background: #050608;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.merch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.merch-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
    padding: 1.5rem;
}

.merch-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0.5rem;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

.merch-card:hover .merch-card-image img {
    transform: scale(1.05);
}

.merch-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: var(--color-primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.merch-card-content {
    padding: 0 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
}

.merch-card-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.merch-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.merch-tallas,
.merch-color {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.merch-tallas strong,
.merch-color strong {
    color: var(--primary-color);
}

.merch-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1rem 0;
    letter-spacing: -0.5px;
}

/* Modern Minimalist Button */
.merch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* WhatsApp Icon */
.whatsapp-icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

.merch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.merch-btn:hover::before {
    left: 100%;
}

.merch-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #000000;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.merch-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* Add WhatsApp icon before text (optional) */
.merch-btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.merch-btn:hover::after {
    transform: translateX(3px);
}



/* Admin Controls */
.merch-card-admin {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.merch-card:hover .merch-card-admin {
    opacity: 1;
}

.merch-edit-btn {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.merch-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, #5ba3f5 0%, #4a90e2 100%);
}

.merch-delete-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.merch-delete-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 38, 61, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .merch-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .merch-empty-state {
        padding: 3rem 1.5rem;
        max-width: 100%;
        margin: 2rem 0;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .merch-empty-state h3 {
        font-size: 1.5rem;
    }

    .merch-empty-state p {
        font-size: 0.95rem;
    }

    .merch-card-admin {
        gap: 0.3rem;
    }

    .merch-edit-btn,
    .merch-delete-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .merch-grid {
        grid-template-columns: 1fr;
    }

    .merch-empty-state {
        padding: 2rem 1rem;
    }

    .merch-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ========== MERCH CAROUSEL ========== */
.merch-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.merch-carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.merch-carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.merch-carousel-images img.active {
    opacity: 1;
    pointer-events: auto;
}

.merch-carousel-prev,
.merch-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merch-card:hover .merch-carousel-prev,
.merch-card:hover .merch-carousel-next {
    opacity: 1;
}

.merch-carousel-prev:hover,
.merch-carousel-next:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.merch-carousel-prev {
    left: 10px;
}

.merch-carousel-next {
    right: 10px;
}

.merch-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.merch-carousel-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.merch-carousel-indicators span:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.merch-carousel-indicators span.active {
    background: var(--accent-red);
    width: 24px;
    border-radius: 4px;
}