/* configurator.css */

:root {
    --bg-main: #f0f2f5;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --primary: #2563eb; /* Mavi */
    --primary-light: #eff6ff;
    --font-family: 'Roboto', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.config-header {
    background: var(--bg-white);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.config-header .container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}
.header-title h1 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-dark);
}
.header-title p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
}

/* Ana İçerik Alanı */
.config-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Sol Taraf: Özellikler */
.feature-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.feature-category {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.feature-category h2 {
    font-size: 1.25rem;
    margin: 0;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2'li grid */
    gap: 20px;
    padding: 25px;
}
.feature-card {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.feature-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}
.feature-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.card-header input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.card-header label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
}
.card-header input[disabled] + label {
    cursor: not-allowed;
    color: var(--text-light);
}
.card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 12px 26px; /* Checkbox ile hizalı */
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding-left: 26px;
}
.card-footer .time {
    color: var(--text-light);
}
.card-footer .price {
    font-weight: 700;
    color: var(--primary);
}

/* Sağ Taraf: Sepet */
.cart-summary-wrapper {
    position: sticky;
    top: 30px;
}
.cart-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 25px;
}
.cart-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.cart-items-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.cart-item span {
    max-width: 70%;
}
.cart-item .price {
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-dark);
}
.cart-empty {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 20px 0;
}

.cart-total {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-bottom: 20px;
}
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.total-row span {
    font-size: 0.9rem;
    color: var(--text-light);
}
.total-row strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.total-row.recurring strong {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.btn-cta {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.btn-cta:hover {
    background-color: #1d4ed8;
}
.cta-info {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .config-wrapper .container {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    .cart-summary-wrapper {
        position: static; /* Sticky özelliği kalksın */
    }
}
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    .header-title h1 {
        font-size: 1.4rem;
    }
    .header-title p {
        font-size: 0.9rem;
    }
}