/* ========================================
   UNIVERSAL PRODUCT CARD COMPONENT
   ======================================== */
/* 
   Self-contained, reusable product card component
   Usage: {% include "components/product_card.html" with product=product %}
   Dependencies: giftsy.css variables, Lucide icons
*/

/* ========================================
   Base Product Card Styles
   ======================================== */

.product-card {
    position: relative;
    background: var(--background, white);
    border-radius: 0.75rem;
    border: 1px solid var(--accent-100, #e5e7eb);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    height: auto;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    transform: translateY(-4px);
}

.product-card:focus {
    outline: 2px solid var(--primary, #f97316);
    outline-offset: 2px;
}

/* ========================================
   Default Product Card (No Variant)
   ======================================== */

.product-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    background: white;
    border-bottom: 1px solid var(--accent-100, #f3f4f6);
    overflow: hidden;
}

.product-card__image-button {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    opacity: 1;
}

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

.product-card__image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .product-card__image-overlay {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.product-card__image-overlay-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.product-card:hover .product-card__image-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.product-card__overlay-icon {
    width: 1rem;
    height: 1rem;
}

/* Overlay Actions */
.product-card__actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card__action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.product-card__action-btn:hover {
    color: white;
    border-color: #f97316;
    background: #f97316;
    transform: scale(1.1);
}

.product-card__action-btn--share:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

.product-card__action-btn--wishlist:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.product-card__action-icon {
    width: 1rem;
    height: 1rem;
}

/* Content Section */
.product-card__content {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__content-main {
    margin-bottom: 0.5rem;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-800, #111827);
    line-height: 1.3;
    margin: 0 0 0.375rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__brand {
    font-size: 0.875rem;
    color: var(--accent-600, #6b7280);
    margin: 0 0 0.5rem 0;
}

/* Rating */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.product-card__stars {
    display: flex;
    gap: 0.125rem;
}

.product-card__star {
    width: 1rem;
    height: 1rem;
    color: var(--accent-300, #d1d5db);
}

.product-card__star--filled {
    color: var(--warning, #fbbf24);
}

.product-card__rating-count {
    font-size: 0.875rem;
    color: var(--accent-600, #6b7280);
}

/* Price */
.product-card__price {
    margin-bottom: 0.5rem;
}

.product-card__price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card__price-original {
    font-size: 1rem;
    color: var(--accent-600, #6b7280);
    text-decoration: line-through;
}

.product-card__price-sale {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger, #dc2626);
}

.product-card__price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-800, #111827);
}

/* Badges */
.product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-card__badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card__badge--age {
    background: #fef3c7;
    color: #92400e;
}

.product-card__badge--gender {
    background: #e0f2fe;
    color: #0369a1;
}

.product-card__badge--occasion {
    background: #f3e8ff;
    color: #7c3aed;
}

.product-card__badge--category {
    background: #f3f4f6;
    color: #374151;
}

.product-card__badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary Action Button */
.product-card__view-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--primary, #f97316);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.product-card__view-btn:hover {
    background: var(--primary-dark, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.product-card__btn-icon {
    width: 1rem;
    height: 1rem;
}

/* Secondary Actions */
.product-card__secondary-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--accent-100, #f3f4f6);
    padding-top: 0.75rem;
    gap: 0.5rem;
    margin-top: auto;
}

.product-card__secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: var(--accent-600, #6b7280);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.product-card__secondary-btn:hover {
    background: var(--accent-50, #f3f4f6);
    color: var(--accent-700, #374151);
}

.product-card__secondary-icon {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 640px) {
    .product-card {
        max-width: none;
    }

    .product-card__image {
        height: 160px;
    }

    .product-card__content {
        padding: 0.5rem;
    }

    .product-card__secondary-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card__secondary-btn {
        width: 100%;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.product-card:focus-visible {
    outline: 2px solid var(--primary, #f97316);
    outline-offset: 2px;
}

.product-card__view-btn:focus-visible,
.product-card__secondary-btn:focus-visible {
    outline: 2px solid var(--primary, #f97316);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .product-card,
    .product-card *,
    .product-card::before,
    .product-card::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--accent-200, #e5e7eb);
    }

    .product-card__actions,
    .product-card__secondary-actions {
        display: none;
    }
}

/* ========================================
   COMPONENT USAGE NOTES
   ======================================== */
/*
   UNIVERSAL PRODUCT CARD COMPONENT
   
   This component is self-contained and can be used anywhere in the application.
   
   Template Usage:
   {% include "components/product_card.html" with product=product %}
   
   CSS Dependencies:
   - giftsy.css (for CSS variables)
   - Lucide icons (for icons)
   
   Features:
   - Responsive design
   - Accessibility compliant
   - Print-friendly
   - Hover effects
   - Multiple action buttons
   - Rating display
   - Price display (regular and sale)
   - Gift context badges
   - Image overlay actions
   
   Variants:
   This base component works universally. The original --full, --mini, --list, 
   --search variants are maintained for backward compatibility but this base 
   component should be used for new implementations.
*/

/* ========================================
   Full Variant (Primary)
   ======================================== */

.product-card--full {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
}

.product-card--full .product-card__image {
    position: relative;
    width: 100%;
    height: 240px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
}

.product-card--full .product-card__image-button {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card--full .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    opacity: 0;
}

.product-card--full .product-card__image img.product-card__image--loaded {
    opacity: 1;
}

.product-card--full .product-card__image img.product-card__image--loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.product-card--full .product-card__image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card--full:hover .product-card__image-overlay {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.product-card--full .product-card__image-overlay-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.product-card--full:hover .product-card__image-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.product-card--full .product-card__icon {
    width: 1rem;
    height: 1rem;
}

/* Image Actions (Overlay buttons) */
.product-card--full .product-card__image-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.product-card--full:hover .product-card__image-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card--full .product-card__action {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.product-card--full .product-card__action:hover {
    color: white;
    border-color: #f97316;
    background: #f97316;
    transform: scale(1.1);
}

.product-card--full .product-card__action svg {
    width: 1rem;
    height: 1rem;
}

.product-card--full .product-card__action--save.product-card__action--saved {
    color: white;
    background: #ef4444;
    border-color: #ef4444;
}

.product-card--full .product-card__action--share:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* Content Section */
.product-card--full .product-card__content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card--full .product-card__header {
    margin-bottom: 0.75rem;
}

.product-card--full .product-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--full .product-card__brand {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Rating */
.product-card--full .product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-card--full .product-card__stars {
    display: flex;
    gap: 0.125rem;
}

.product-card--full .product-card__star {
    width: 1rem;
    height: 1rem;
    color: #d1d5db;
}

.product-card--full .product-card__star--filled {
    color: #fbbf24;
}

.product-card--full .product-card__star--half {
    position: relative;
    color: #d1d5db;
}

.product-card--full .product-card__star--half::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    color: #fbbf24;
}

.product-card--full .product-card__rating-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.product-card--full .product-card__review-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Price */
.product-card--full .product-card__price {
    margin-bottom: 0.75rem;
}

.product-card--full .product-card__price-original {
    font-size: 1rem;
    color: #6b7280;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-card--full .product-card__price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.product-card--full .product-card__price:has(.product-card__price-original) .product-card__price-current {
    color: #dc2626;
}

/* Badges */
.product-card--full .product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.product-card--full .product-card__badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card--full .product-card__badge--age {
    background: #fef3c7;
    color: #92400e;
}

.product-card--full .product-card__badge--gender {
    background: #e0f2fe;
    color: #0369a1;
}

.product-card--full .product-card__badge--occasion {
    background: #f3e8ff;
    color: #7c3aed;
}

.product-card--full .product-card__badge--category {
    background: #f3f4f6;
    color: #374151;
}

.product-card--full .product-card__badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Actions */
.product-card--full .product-card__actions {
    margin-top: auto;
}

.product-card--full .product-card__action--primary {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.product-card--full .product-card__action--primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.product-card--full .product-card__secondary-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    gap: 0.5rem;
}

.product-card--full .product-card__action--secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.product-card--full .product-card__action--secondary:hover {
    background: #f3f4f6;
    color: #374151;
}

.product-card--full .product-card__action--secondary.product-card__action--purchased {
    color: #059669;
    background: #d1fae5;
}

/* ========================================
   Mini Variant (Compact)
   ======================================== */

.product-card--mini {
    display: block;
    max-width: none;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.product-card--mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.product-card--mini .product-card__layout {
    display: flex;
    gap: 0.75rem;
}

.product-card--mini .product-card__image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
}

.product-card--mini .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card--mini .product-card__image img.product-card__image--loaded {
    opacity: 1;
}

.product-card--mini .product-card__content {
    flex: 1;
    min-width: 0;
}

.product-card--mini .product-card__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card--mini .product-card__description {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--mini .product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card--mini .product-card__price-current {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f97316;
}

.product-card--mini .product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card--mini .product-card__star {
    width: 0.75rem;
    height: 0.75rem;
    color: #fbbf24;
}

.product-card--mini .product-card__rating span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ========================================
   List Variant (Horizontal)
   ======================================== */

.product-card--list {
    display: block;
    max-width: none;
    border-radius: 0.5rem;
    padding: 1rem;
}

.product-card--list .product-card__layout {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-card--list .product-card__image {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
}

.product-card--list .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card--list .product-card__image img.product-card__image--loaded {
    opacity: 1;
}

.product-card--list .product-card__content {
    flex: 1;
    min-width: 0;
}

.product-card--list .product-card__header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-card--list .product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card--list .product-card__brand {
    font-size: 0.875rem;
    color: #6b7280;
    flex-shrink: 0;
}

.product-card--list .product-card__description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--list .product-card__details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-card--list .product-card__price-current {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.product-card--list .product-card__price-original {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-card--list .product-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.product-card--list .product-card__action {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-card--list .product-card__action--primary {
    background: #f97316;
    color: white;
    border: none;
}

.product-card--list .product-card__action--primary:hover {
    background: #ea580c;
}

.product-card--list .product-card__action--save {
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.5rem;
}

.product-card--list .product-card__action--save:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.product-card--list .product-card__action--save.product-card__action--saved {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* ========================================
   Search Variant (Minimal)
   ======================================== */

.product-card--search {
    display: block;
    max-width: none;
    border-radius: 0.375rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    transition: background-color 0.2s ease;
}

.product-card--search:hover {
    background: #f9fafb;
    transform: none;
    box-shadow: none;
}

.product-card--search .product-card__layout {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-card--search .product-card__image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
}

.product-card--search .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card--search .product-card__image img.product-card__image--loaded {
    opacity: 1;
}

.product-card--search .product-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card--search .product-card__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card--search .product-card__price-current {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f97316;
    flex-shrink: 0;
}

/* ========================================
   State Classes
   ======================================== */

.product-card--saved {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.product-card--purchased {
    opacity: 0.7;
}

.product-card--purchased::after {
    content: 'PURCHASED';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #059669;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 10;
}

.product-card--loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-card--disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(50%);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
    .product-card--full {
        max-width: none;
    }

    .product-card--full .product-card__image {
        height: 200px;
    }

    .product-card--full .product-card__content {
        padding: 0.75rem;
    }

    .product-card--full .product-card__secondary-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card--full .product-card__action--secondary {
        width: 100%;
    }

    .product-card--list .product-card__layout {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .product-card--list .product-card__image {
        align-self: center;
    }

    .product-card--list .product-card__actions {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .product-card--full:hover .product-card__image-actions {
        opacity: 1;
    }

    .product-card--full .product-card__image-actions {
        opacity: 0;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================
   Accessibility
   ======================================== */

.product-card:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.product-card__action:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .product-card,
    .product-card *,
    .product-card::before,
    .product-card::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .product-card__image-actions,
    .product-card__actions {
        display: none;
    }
}