/* Product-card CSS — Matches Featured Collections design on landing page */

:root {
    --we-bg: #0a0d15;
    --we-surface: #141a26;
    --we-surface-2: #1a2233;
    --we-surface-3: #202a3d;
    --we-border: rgba(255, 255, 255, 0.08);
    --we-border-strong: rgba(255, 255, 255, 0.16);
    --we-text: #f3f5f9;
    --we-text-dim: #9aa3b8;
    --we-text-faint: #626c80;
    --we-accent: #c9a86c;
    --we-accent-dark: #a8873a;
    --we-accent-soft: rgba(201, 168, 108, 0.16);
    --we-gold: #d7a84b;
    --we-heart: #e2637f;
    --we-radius-sm: 6px;
    --we-radius-md: 10px;
    --we-radius-lg: 16px;
}

/* ── Card Shell ── */
.we-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--we-surface, #141a26);
    border: 1px solid var(--we-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--we-radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: weCardIn 0.5s ease both;
    animation-delay: calc(var(--we-i, 0) * 45ms);
}

@keyframes weCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.we-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(201, 168, 108, 0.3);
}

/* ── Badges (Best Seller / New / Offer) ── */
.we-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.we-card-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    line-height: 1.5;
    white-space: nowrap;
}

.we-badge-best {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.we-badge-new {
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.we-badge-new i {
    font-size: 0.6rem;
}

.we-badge-offer {
    background: var(--we-accent, #c9a86c);
    color: #1a1208;
}

/* ── Wishlist / Compare buttons ── */
.we-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.we-card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 13, 21, 0.75);
    border: 1px solid var(--we-border-strong, rgba(255, 255, 255, 0.16));
    color: var(--we-text-dim, #9aa3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.we-card-action-btn:hover {
    background: var(--we-accent, #c9a86c);
    color: #1a1208;
    border-color: var(--we-accent, #c9a86c);
    transform: scale(1.08);
}

.we-card-wishlist.active,
.we-card-wishlist.wishlist-btn--added {
    color: var(--we-heart, #e2637f);
    border-color: var(--we-heart, #e2637f);
}


/* ── Image Area ── */
.we-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fafafa 0%, #f0f1f4 100%);
    height: 240px;
    padding: 0px;
    overflow: hidden;
     cursor:pointer;
}

.we-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.we-card:hover .we-card-img-wrap img {
    transform: scale(1.07);
}

/* ── Card Body / Typography ── */
.we-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.we-card-brand {
    font-size: 0.72rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--we-text-faint, #626c80);
    font-weight: 700;
    margin: 0;
}

.we-card-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--we-text, #f3f5f9);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.we-card-name:hover {
    color: var(--we-accent, #c9a86c);
}

.we-card-size {
    font-size: 0.78rem;
    color: var(--we-text-dim, #9aa3b8);
    margin: 0;
}

.we-card-size span {
    font-weight: 600;
    color: var(--we-text, #f3f5f9);
}

/* ── Pricing ── */
.we-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.we-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--we-gold, #d7a84b);
}

.we-price-original {
    font-size: 0.78rem;
    color: var(--we-text-faint, #626c80);
    text-decoration: line-through;
}

.we-price-tax {
    font-size: 0.68rem;
    color: var(--we-text-faint, #626c80);
    font-style: italic;
    margin: 0;
}

/* ── CTA Button ── */
.we-card-cta {
    display: block;
    margin-top: 12px;
    text-align: center;
    padding: 10px;
    border-radius: var(--we-radius-sm, 6px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #6b3c26, #3C1E12);
    color: var(--we-accent, #c9a86c);
    border: 1px solid rgba(201, 168, 108, 0.2);
    text-decoration: none;
    transition: all 0.28s ease;
}

.we-card-cta:hover {
    background: linear-gradient(135deg, #7a4530, #4a2518);
    color: #e8c880;
    box-shadow: 0 5px 18px rgba(90, 51, 35, 0.5);
}

/* ── Out of Stock State ── */
.we-card.oos-card .we-card-img-wrap img {
    opacity: 0.5;
    filter: grayscale(0.4);
}

.oos-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: #4b5563;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
}

.we-card-cta.oos-cta {
    background: #2a2f3d;
    color: var(--we-text-faint, #626c80);
    cursor: not-allowed;
    pointer-events: none;
    border-color: transparent;
}