/* =========================================
   11. PRODUCT CARD (Shared Partial Support)
   ========================================= */

.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-primary);
    transform: translateY(-5px);
    z-index: 2;
}

.product-card__image-container {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

.product-card__image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-danger);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 5px 50%);
    padding-left: 8px;
    z-index: 2;
}

.product-card__labels-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    z-index: 2;
}

.product-card__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    color: #fff;
    border-radius: 2px;
}

/* Quick Actions Overlay */
.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.product-card:hover .product-actions-overlay {
    transform: translateY(0);
}

.product-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
    /* Reset default padding */
}

.action-btn i {
    pointer-events: none;
    /* Ensure click hits button */
    display: block;
    /* Fix for some flex alignment issues */
}

.action-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Active State (e.g. Favorited) */
.action-btn.is-active {
    background: var(--accent-danger);
    color: #fff;
    border-color: var(--accent-danger);
    animation: pulse 0.4s;
}

.action-btn.is-active:hover {
    background: #dc2626;
    /* Darker red */
}

.product-card__content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.product-card__meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.product-card__category {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.product-card__network {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.product-card__network.is-testnet {
    color: var(--accent-warning);
}

.product-card__title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.product-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__title a:hover {
    color: var(--accent-primary);
}

.product-card__price {
    margin-bottom: 10px;
    font-family: var(--font-head);
    font-weight: 700;
}

.product-card__price .new-price {
    font-size: 1.2rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card__price .old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

.network-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.product-card__rating {
    font-size: 0.8rem;
    color: #fbbf24;
    /* Star Color */
}

.product-card__rating .review-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 2px;
}

.product-card__vendor {
    font-size: 0.75rem;
}

.product-card__vendor a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__vendor a:hover {
    color: var(--text-primary);
}

.product-card__vendor img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}