/* ZK Product Comparison - Frontend Styles */

/* Comparison Button */
.zk-add-to-compare,
.zk-view-compare {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: 1px solid #0073aa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zk-add-to-compare:hover,
.zk-view-compare:hover {
    background: #0073aa;
    border-color: #005a87;
}

.zk-add-to-compare.added {
    background: #46b450;
    border-color: #3d995a;
}

.zk-compare-count {
    display: inline-block;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

/* Comparison Wrapper */
.zk-comparison-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.zk-comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.zk-comparison-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.zk-clear-compare {
    background: #e74c3c;
    border-color: #c0392b;
}

.zk-clear-compare:hover {
    background: #c0392b;
}

/* Comparison Table */
.zk-comparison-table-wrapper {
    overflow-x: auto;
}

.zk-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.zk-comparison-table th {
    background: #f9f9f9;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: #333;
    min-width: 150px;
}

.zk-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.comparison-row-title td {
    background: #fbfbfb;
    border-bottom: 2px solid #ddd;
}

.comparison-row:hover {
    background: #f9f9f9;
}

/* Product Column */
.comparison-product {
    text-align: center;
}

.comparison-image {
    margin-bottom: 10px;
}

.comparison-thumb {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.comparison-product h3 {
    margin: 10px 0;
    font-size: 16px;
}

.comparison-product h3 a {
    color: #007cba;
    text-decoration: none;
}

.comparison-product h3 a:hover {
    text-decoration: underline;
}

.zk-remove-compare {
    margin-top: 10px;
    font-size: 12px;
    padding: 6px 12px;
    background: #e74c3c;
    border-color: #c0392b;
}

.zk-remove-compare:hover {
    background: #c0392b;
}

/* Price */
.comparison-price {
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
}

.comparison-price .sale {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.comparison-price .regular {
    display: block;
    font-size: 12px;
    color: #999;
}

/* Stock Status */
.stock-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Features List */
.comparison-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.comparison-features li:last-child {
    border-bottom: none;
}

.comparison-features li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .zk-comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .zk-comparison-table th,
    .zk-comparison-table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .comparison-thumb {
        max-width: 100px;
    }
    
    .zk-comparison-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .zk-comparison-header h2 {
        font-size: 18px;
    }
}

/* Notices */
.notice {
    margin: 20px 0;
    padding: 12px 20px;
    border-left: 4px solid #007cba;
    background: #ecf7fc;
}

.notice.notice-success {
    border-left-color: #27ae60;
    background: #d4edda;
}

.notice.notice-error {
    border-left-color: #e74c3c;
    background: #f8d7da;
}
