/* ========================================
   PRODUCT CARD
   Shared component: Pages/Shared/_ProductCard.cshtml + wwwroot/js/product-card.js.
   Loaded globally from _Layout, because the card renders on pages that don't pull in browse.css.
   ======================================== */

.product-card-link {
    position: relative;
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card-overlay-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

@media (hover: hover) {
    .product-card-link:hover .product-card,
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        border-color: var(--gold-light);
    }
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

@media (hover: hover) {
    .product-card-link:hover .product-image,
    .product-card:hover .product-image {
        transform: scale(1.08);
    }
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* StyleBar badges - positioned on left side, stacking vertically */
.product-badge.stylebar-badge {
    background: #1a365d;
    top: 12px;
    right: auto;
    left: 12px;
}

.product-badge.stylebar-badge:nth-of-type(2) {
    top: 42px;
}

.product-badge.stylebar-badge:nth-of-type(3) {
    top: 72px;
}

/* Specific styleBar colors */
.product-badge.stylebar-nyvault {
    background: #0d6efd;
}

.product-badge.stylebar-show-special,
.product-badge.stylebar-showspecial {
    background: #b91c1c;
}

.product-details {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.product-tag {
    background: var(--cream);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.06);
}

.product-tag.nyvault-tag {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.product-price .list-price {
    font-size: 0.9rem;
    color: var(--text-muted-price);
    text-decoration: line-through;
    font-weight: 400;
}

.product-price .sale-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
}

@media (min-width: 768px) {
    .product-title {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.5rem;
    }
}

/* ========================================
   WISHLIST HEART BUTTON ON PRODUCT CARDS
   ======================================== */

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .wishlist-btn:hover {
        transform: scale(1.1);
    }
}

.wishlist-btn i {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.wishlist-btn.active i {
    color: var(--gold);
}

@media (hover: hover) {
    .wishlist-btn:hover i {
        color: var(--gold);
    }
}

.wishlist-btn.active i {
    color: #e91e63;
}
