/* PLM Product Card Styles - Exact Match to Professional Demo */

.plm-product-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin: 15px auto;
    width: 280px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.plm-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.plm-product-card.plm-featured {
    border-color: #3498db;
    border-width: 2px;
}

.plm-popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: #fff;
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    letter-spacing: 0.3px;
}

.plm-card-image {
    padding: 20px 20px 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plm-card-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.plm-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.plm-card-content {
    padding: 0 16px 16px 16px;
}

.plm-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.plm-card-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.plm-card-license-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 11px;
}

.plm-license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.plm-license-item:last-child {
    margin-bottom: 0;
}

.plm-license-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

.plm-license-value {
    font-size: 11px;
    color: #2c3e50;
    font-weight: 600;
}

.plm-card-pricing {
    text-align: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.plm-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.plm-card-sale-price {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    margin-right: 6px;
}

.plm-card-regular-price {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 400;
}

.plm-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.plm-btn-buy-now {
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 180px;
    display: inline-block;
}

.plm-btn-buy-now:hover {
    background: #2980b9;
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.plm-btn-view-details {
    background: transparent;
    color: #3498db;
    padding: 8px 20px;
    border: 1px solid #3498db;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 180px;
    display: inline-block;
}

.plm-btn-view-details:hover {
    background: #3498db;
    color: #fff;
    text-decoration: none;
}

/* Card Manager (Admin Only) */
.plm-card-manager {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 15;
}

.plm-manager-toggle {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.plm-manager-toggle:hover {
    background: rgba(0,0,0,0.9);
}

.plm-manager-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.plm-card-manager:hover .plm-manager-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.plm-manager-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    border-bottom: 1px solid #f1f2f6;
    transition: background 0.2s ease;
}

.plm-manager-link:last-child {
    border-bottom: none;
}

.plm-manager-link:hover {
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
}

.plm-manager-link .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Products Grid */
.plm-products-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
    justify-items: center;
}

.plm-grid-columns-1 {
    grid-template-columns: 1fr;
}

.plm-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.plm-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.plm-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Design */
@media (max-width: 768px) {
    .plm-grid-columns-3,
    .plm-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .plm-product-card {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .plm-grid-columns-2,
    .plm-grid-columns-3,
    .plm-grid-columns-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .plm-product-card {
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
    }
}

/* Copy Shortcode Animation */
.plm-copy-shortcode.copied {
    background: #27ae60 !important;
    color: #fff !important;
}

.plm-copy-shortcode.copied::after {
    content: " ✓";
}

/* Legacy support for old shortcode */
.dc-product-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin: 15px auto;
    width: 280px;
    text-align: center;
}

.dc-product-card .dc-card-image {
    padding: 20px 20px 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dc-product-card .dc-card-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}