/* CulerDamage Affiliates - Frontend Styles */

/* Product Card */
.cda-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cda-product-card.cda-layout-compact {
    padding: 15px;
}

.cda-product-card.cda-layout-featured {
    border: 2px solid #2271b1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.cda-product-image {
    flex: 0 0 200px;
}

.cda-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cda-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cda-product-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.cda-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cda-stars {
    display: inline-flex;
    gap: 2px;
}

.cda-star {
    font-size: 18px;
}

.cda-star-full {
    color: #ffa500;
}

.cda-star-half {
    color: #ffa500;
    position: relative;
}

.cda-star-empty {
    color: #ddd;
}

.cda-rating-number {
    font-weight: bold;
    color: #666;
}

.cda-best-for {
    margin: 10px 0;
    padding: 10px;
    background: #f0f7ff;
    border-left: 3px solid #2271b1;
    font-size: 14px;
}

.cda-product-excerpt {
    margin: 15px 0;
    flex: 1;
}

.cda-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cda-product-price {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
}

.cda-regular-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.cda-current-price {
    color: #27ae60;
}

/* Product Box (Compact) */
.cda-product-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}

.cda-box-image {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.cda-box-content {
    flex: 1;
}

.cda-box-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.cda-box-rating {
    font-size: 14px;
    margin-bottom: 5px;
}

.cda-box-price {
    font-size: 18px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 10px;
}

/* Buttons */
.cda-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.cda-btn-primary {
    background: #2271b1;
    color: #fff;
}

.cda-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.cda-btn-secondary {
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.cda-btn-secondary:hover {
    background: #2271b1;
    color: #fff;
}

.cda-btn-cta {
    background: #27ae60;
    color: #fff;
}

.cda-btn-cta:hover {
    background: #229954;
    color: #fff;
}

.cda-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Comparison Table */
.cda-comparison-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.cda-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cda-comparison-table thead {
    background: #2271b1;
    color: #fff;
}

.cda-comparison-table th,
.cda-comparison-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.cda-comparison-table th {
    font-weight: bold;
}

.cda-comparison-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.cda-comparison-table tbody tr:hover {
    background: #f0f7ff;
}

.cda-comparison-table .cda-table-cta {
    background: #f0f7ff;
}

.cda-comparison-table .cda-table-cta td {
    text-align: center;
}

/* Pros and Cons */
.cda-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.cda-pros,
.cda-cons {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cda-pros {
    border-left: 4px solid #27ae60;
}

.cda-cons {
    border-left: 4px solid #e74c3c;
}

.cda-pros h4 {
    margin: 0 0 15px 0;
    color: #27ae60;
    font-size: 18px;
}

.cda-cons h4 {
    margin: 0 0 15px 0;
    color: #e74c3c;
    font-size: 18px;
}

.cda-pros ul,
.cda-cons ul {
    margin: 0;
    padding-left: 20px;
}

.cda-pros li,
.cda-cons li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Specs Table */
.cda-specs-table {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cda-specs-table h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.cda-specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.cda-specs-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    width: 40%;
}

.cda-specs-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.cda-specs-table tr:last-child td {
    border-bottom: none;
}

/* Product Grid */
.cda-product-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

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

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

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

.cda-grid-item {
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cda-product-card {
        flex-direction: column;
    }
    
    .cda-product-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .cda-product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cda-btn {
        text-align: center;
    }
    
    .cda-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .cda-comparison-table {
        font-size: 14px;
    }
    
    .cda-comparison-table th,
    .cda-comparison-table td {
        padding: 10px;
    }
    
    .cda-product-grid.cda-columns-2,
    .cda-product-grid.cda-columns-3,
    .cda-product-grid.cda-columns-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cda-product-title {
        font-size: 20px;
    }
    
    .cda-product-price {
        font-size: 20px;
    }
}
