/**
 * Shop Product Card Styles
 * Shared component used by wife onward traffic, archetype pages, and shop templates.
 * Matches the wse-product-card markup in template-parts/shop-product-card.php.
 */

.wse-product-card {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
}

.wse-product-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Image area */
.wse-card-img-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    flex-shrink: 0;
}

.wse-card-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.wse-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.wse-product-card:hover .wse-card-img-wrap img {
    transform: scale(1.06);
}

.wse-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0d0d12 0%, #181820 50%, #0f0f14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wse-card-img-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.2;
    stroke: var(--sovereign, #D4AF37);
}

.wse-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 10, 12, 0.7) 100%
    );
    pointer-events: none;
}

/* Legacy taxonomy badges rendered inside the image wrap */
.wse-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 8;
}

.wse-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(250, 247, 242, 0.95);
    background: rgba(10, 10, 12, 0.7);
}

.wse-badge.badge-seen-on-bravo { background: rgba(212, 175, 55, 0.95); color: #020B13; }
.wse-badge.badge-luxury-dupe   { background: rgba(76, 175, 80, 0.85); color: #fff; }
.wse-badge.badge-steal         { background: rgba(255, 193, 7, 0.85); color: #020B13; }
.wse-badge.badge-trending      { background: rgba(33, 150, 243, 0.85); color: #fff; }
.wse-badge.badge-splurge       { background: rgba(244, 67, 54, 0.85); color: #fff; }
.wse-badge.badge-under-100     { background: rgba(33, 150, 243, 0.85); color: #fff; }

/* Card body */
.wse-card-body {
    padding: 1.25rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.wse-card-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sovereign, #D4AF37);
    margin: 0;
}

.wse-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(250, 247, 242, 0.92);
    margin: 0;
    line-height: 1.3;
}

.wse-card-title a {
    color: inherit;
    text-decoration: none;
}

.wse-card-title a:hover {
    color: var(--sovereign, #D4AF37);
}

/* Meta row (wife, franchise) — prevents giant icons */
.wse-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.wse-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(250, 247, 242, 0.55);
}

.wse-card-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: var(--sovereign, #D4AF37);
}

.wse-card-meta-item a {
    color: rgba(250, 247, 242, 0.7);
    text-decoration: none;
}

.wse-card-meta-item a:hover {
    color: var(--sovereign, #D4AF37);
}

/* Price */
.wse-card-price {
    margin-top: auto;
    padding-top: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(250, 247, 242, 0.95);
}

.wse-card-price.no-price {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(250, 247, 242, 0.4);
}

/* Footer / CTA */
.wse-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wse-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--sovereign, #D4AF37) 0%, #D4AF37 100%);
    border: none;
    color: #020B13;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.wse-card-cta:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.wse-card-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wse-card-ftc {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.4;
    color: rgba(250, 247, 242, 0.35);
    text-align: center;
}

.wse-card-ftc a {
    color: var(--sovereign, #D4AF37);
    text-decoration: underline;
}

/* Mobile adjustments for product cards */
@media (max-width: 768px) {
    .wse-card-body {
        padding: 1rem 1.25rem 0.75rem;
    }

    .wse-card-footer {
        padding: 0 1.25rem 1.25rem;
    }

    .wse-card-title {
        font-size: 0.95rem;
    }

    .wse-card-meta-item svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .wse-card-img-wrap {
        aspect-ratio: 2/3;
    }
}
