/* ================================================
   TROPIMAS 2026 — Merch Page Styles
   Premium Carnival Merchandise Experience
   ================================================ */

/* === MERCH HERO === */
.merch-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 0 80px;
    overflow: hidden;
}

.merch-hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-black);
    background-image:
        radial-gradient(ellipse at 25% 30%, rgba(233, 30, 140, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(123, 47, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 230, 118, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 20%, rgba(255, 107, 26, 0.06) 0%, transparent 40%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.merch-hero-noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

.merch-hero .container {
    position: relative;
    z-index: 2;
}

.merch-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 20px;
}

.merch-hero-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Floating decorative elements */
.merch-hero::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 26, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.merch-hero::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* === MERCH SECTION === */
.merch-section {
    padding: var(--section-pad) 0;
    position: relative;
}

.merch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.merch-header {
    text-align: center;
    margin-bottom: 60px;
}

/* === PRODUCTS GRID (centered flex layout) === */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.products-grid>.product-card {
    width: calc(50% - 16px);
    max-width: 484px;
    flex: 0 0 auto;
}

/* === PRODUCT CARD === */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(255, 107, 26, 0.08);
    transform: translateY(-6px);
}

/* Product Image */
.product-image-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.product-image-wrap:hover img {
    transform: scale(1.08);
}

/* Zoom icon on hover */
.product-image-zoom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-dim);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.product-image-wrap:hover .product-image-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Product badge */
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 107, 26, 0.12);
    border: 1px solid rgba(255, 107, 26, 0.25);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: var(--orange);
    z-index: 2;
    backdrop-filter: blur(8px);
}

.product-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Product Details */
.product-details {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid var(--border);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 4px;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Features list */
.product-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-feat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--text-dim);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* Price */
.product-price-row {
    margin-bottom: 20px;
}

.product-price {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 2px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Size selector */
.size-selector {
    margin-bottom: 24px;
}

.size-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 26, 0.06);
}

.size-btn.active {
    border-color: var(--orange);
    background: rgba(255, 107, 26, 0.12);
    color: var(--orange);
    box-shadow: 0 0 16px rgba(255, 107, 26, 0.15);
}

/* Order button */
.btn-merch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-fire);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(255, 107, 26, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: auto;
    width: 100%;
}

.btn-merch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-merch:hover::before {
    left: 100%;
}

.btn-merch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 26, 0.35);
}

/* === DETAILS STRIP === */
.details-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.detail-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.detail-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.detail-icon {
    margin-bottom: 16px;
}

.detail-card h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.detail-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === MERCH CTA BANNER === */
.merch-cta {
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
}

.merch-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(255, 107, 26, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.merch-cta .container {
    position: relative;
    z-index: 1;
}

.merch-cta p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* === IMAGE LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: zoom-out;
    padding: 40px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 107, 26, 0.2);
    border-color: var(--orange);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .products-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        max-width: 440px;
    }

    .products-grid>.product-card {
        width: 100%;
    }

    .details-strip {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .merch-hero {
        padding: 140px 0 60px;
        min-height: 45vh;
    }

    .product-details {
        padding: 20px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .size-options {
        justify-content: center;
    }
}