/* Amazon Affiliate Product Display Styles */

/* Product comparison table */
.product-comparison {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-comparison thead {
    background: var(--primary-color);
    color: white;
}

.product-comparison th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.product-comparison td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.product-comparison tr:last-child td {
    border-bottom: none;
}

.product-comparison tr:hover {
    background: var(--bg-secondary);
}

/* Product name styling */
.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Price styling */
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-old {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Rating stars */
.product-rating {
    color: #fbbf24;
    font-size: 14px;
    margin-right: 4px;
}

.product-rating-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Features list */
.product-features {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.product-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* Amazon button */
.amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff9900;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.amazon-btn:hover {
    background: #ffb84d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    text-decoration: none;
}

.amazon-btn:before {
    content: "🛒";
}

/* Best choice badge */
.best-choice-badge {
    display: inline-block;
    background: #22c55e;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Budget badge */
.budget-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Premium badge */
.premium-badge {
    display: inline-block;
    background: #8b5cf6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Product card (alternative to table) */
.product-card-list {
    display: grid;
    gap: 20px;
    margin: 32px 0;
}

.product-card-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.product-card-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.product-card-item.featured {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.product-info {
    flex: 1;
    min-width: 200px;
}

.product-price-section {
    text-align: right;
}

.product-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 12px 0;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.product-spec {
    font-size: 14px;
}

.product-spec-label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.product-spec-value {
    color: var(--text-secondary);
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Affiliate disclosure */
.affiliate-disclosure {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.affiliate-disclosure strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .product-comparison {
        font-size: 13px;
    }
    
    .product-comparison th,
    .product-comparison td {
        padding: 12px 8px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .amazon-btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-specs {
        grid-template-columns: 1fr;
    }
}
