/**
 * CardShop Compare - Ürün karşılaştırma sayfası
 */

 .cardshop-compare-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: var(--cardshop-card-font-family, var(--font-family));
}

.cardshop-compare-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--cardshop-primary, #07245e);
    margin: 0 0 32px;
    text-align: center;
}

.cardshop-compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .cardshop-compare-wrapper {
        padding: 16px 12px;
    }
    .cardshop-compare-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .cardshop-compare-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cardshop-compare-slot:nth-child(3) {
        display: none;
    }
    .cardshop-compare-slot {
        grid-template-rows: auto 260px 1fr;
    }
    .cardshop-compare-slot-content {
        padding: 12px;
    }
    .cardshop-compare-image-wrap {
        max-width: 140px;
        margin-bottom: 10px;
    }
    .cardshop-compare-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .cardshop-compare-summary {
        padding: 14px 14px 18px;
    }
    .cardshop-compare-summary-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .cardshop-compare-feature-item {
        margin-bottom: 8px;
        font-size: 0.8125rem;
    }
    .cardshop-compare-feature-item .cardshop-checkmark-icon,
    .cardshop-compare-feature-item .cardshop-cross-icon {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        margin-right: 8px;
    }
}

.cardshop-compare-slot {
    display: grid;
    grid-template-rows: auto 300px 1fr;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    min-height: 0;
}

.cardshop-compare-select-wrap {
    padding: 20px 20px 16px;
}

.cardshop-compare-select {
    width: 100%;
    padding: 14px 44px 14px 18px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #1a1a1a;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cardshop-compare-select:hover {
    background-color: #f4f5f7;
    border-color: #dfe1e4;
}

.cardshop-compare-select:focus {
    outline: none;
    border-color: var(--cardshop-primary, #07245e);
    box-shadow: 0 0 0 3px rgba(7, 36, 94, 0.12);
    background-color: #fff;
}

.cardshop-compare-slot-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

.cardshop-compare-image-wrap {
    width: 100%;
    max-width: 220px;
    margin-bottom: 16px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.cardshop-compare-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cardshop-compare-no-image {
    color: #9ca3af;
    padding: 24px;
}

.cardshop-compare-no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.cardshop-compare-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.cardshop-compare-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.cardshop-compare-add-to-cart,
.cardshop-compare-actions .cardshop-product-details-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    font-size: 13px;
    font-family: var(--cardshop-add-to-cart-font-family, inherit);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    border-radius: var(--cardshop-add-to-cart-border-radius, 25px);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cardshop-compare-add-to-cart {
    border: 2px solid var(--cardshop-add-to-cart-color, #07245e);
    color: #fff;
    background: var(--cardshop-add-to-cart-color, #07245e);
    cursor: pointer;
}

.cardshop-compare-add-to-cart:hover {
    background: var(--cardshop-add-to-cart-hover, #051a3d);
    border-color: var(--cardshop-add-to-cart-hover, #051a3d);
}

.cardshop-compare-actions .cardshop-product-details-link {
    border: 2px solid #e67e22;
    color: #e67e22;
    background: transparent;
}

.cardshop-compare-actions .cardshop-product-details-link:hover {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

.cardshop-compare-empty {
    color: #6b7280;
    font-size: 14px;
    padding: 24px;
}

.cardshop-compare-summary {
    padding: 20px 20px 24px;
    background: #fff;
    min-height: 0;
    overflow: auto;
}

.cardshop-compare-summary-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cardshop-primary, #07245e);
    margin: 0 0 14px;
}

.cardshop-compare-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cardshop-compare-features-list.cardshop-features-list {
    margin: 0;
}

.cardshop-compare-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.cardshop-compare-feature-item:last-child {
    margin-bottom: 0;
}

.cardshop-compare-feature-item .cardshop-checkmark-icon,
.cardshop-compare-feature-item .cardshop-cross-icon {
    flex-shrink: 0;
}

.cardshop-compare-feature-item .cardshop-feature-text {
    color: #374151;
}

.cardshop-compare-no-features {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.cardshop-compare-no-products {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}

/* Compare button (shop page) - CTA style */
.cardshop-compare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--cardshop-add-to-cart-padding, 10px 20px);
    font-size: var(--cardshop-add-to-cart-font-size, 13px);
    font-weight: 600;
    font-family: var(--cardshop-add-to-cart-font-family, var(--font-family));
    color: #fff;
    background: var(--cardshop-add-to-cart-color, #07245e);
    border: 2px solid var(--cardshop-add-to-cart-color, #07245e);
    border-radius: var(--cardshop-add-to-cart-border-radius, 25px);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
    min-height: 44px;
    cursor: pointer;
}

.cardshop-compare-button:hover {
    background: var(--cardshop-add-to-cart-hover, #051a3d);
    border-color: var(--cardshop-add-to-cart-hover, #051a3d);
    color: #fff;
}

.cardshop-compare-button::after {
    content: "→";
    font-size: 1.1em;
    font-weight: 700;
}

@media (max-width: 400px) {
    .cardshop-compare-add-to-cart,
    .cardshop-compare-actions .cardshop-product-details-link {
        padding: 10px 14px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }
}
