/* Scoped modern product card styling */
.modern-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}
.modern-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.1), 0 8px 15px -12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}
.modern-card-image-wrap {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    display: block;
    background: #ffffff;
    overflow: hidden;
}
.modern-card-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}
.modern-product-card:hover .modern-card-image-wrap img {
    transform: scale(1.03);
}
.modern-stock-indicator {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.modern-stock-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}
.modern-stock-indicator.fast-delivery {
    color: #059669; /* Slightly darker emerald for text readability */
}
.modern-stock-indicator.fast-delivery::before {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.modern-stock-indicator.preorder {
    color: #d97706; /* Darker amber */
}
.modern-stock-indicator.preorder::before {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.modern-stock-indicator.out-of-stock {
    color: #dc2626; /* Darker red */
}
.modern-stock-indicator.out-of-stock::before {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.modern-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #f8fafc;
}
.modern-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Strict 2 line clamp */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* Force height so grid aligns even if title is 1 line */
}
.modern-card-title:hover {
    color: #0ea5e9;
}
.modern-card-reviews {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.modern-card-reviews svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24; /* Golden yellow */
    margin-right: 2px;
}
.modern-card-reviews span {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 6px;
    font-weight: 500;
}
.modern-card-price-row {
    margin-top: auto;
    margin-bottom: 16px;
}
.modern-price-old {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.modern-price-new {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}
.modern-card-actions {
    display: flex;
    gap: 8px;
}
.modern-btn-add {
    flex-grow: 1;
    background: #0ea5e9;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}
.modern-btn-add:hover {
    background: #0284c7;
    box-shadow: 0 6px 8px -1px rgba(14, 165, 233, 0.3);
}
.modern-btn-add.disabled {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
}
.modern-btn-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.modern-btn-icon:hover {
    background: #f1f5f9;
    color: #0ea5e9;
    border-color: #cbd5e1;
}
.modern-btn-icon.favorited {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}
.modern-btn-icon.favorited:hover {
    background: #fee2e2;
}
.modern-btn-icon.loading {
    opacity: 0.5;
    pointer-events: none;
}
