html {
    /* Mobil tarayıcı adres çubuğu ile içerik yüksekliği tutarlılığı */
    min-height: 100%;
    /* Kaydırınca son satırın çentik / gesture alanında kalmaması */
    scroll-padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
}

body {
    margin: 0;
    padding: 0;
    background: var(--surface);
    color: var(--slate950);
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button,
input {
    font: inherit;
    color: inherit;
}

:root {
    --primary: #87c547;
    --primary-hover: #78b33d;
    --soft-primary: rgba(135, 197, 71, 0.2);
    --slate950: #020617;
    --slate600: #475569;
    --slate400: #94a3b8;
    --light: #ffffff;
    --surface: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --space-section: clamp(1rem, 4vw, 2.5rem);
    --font: "Urbanist", system-ui, sans-serif;
    --font-display: "Urbanist", system-ui, sans-serif;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #1e3a8a;
    --info-strong: #1e40af;
    --neutral-bg: #f1f5f9;
    --neutral-border: #e2e8f0;
    --neutral-text: var(--slate600);
    --success-soft-bg: rgba(135, 197, 71, 0.14);
    --success-soft-border: rgba(135, 197, 71, 0.45);
    --success-text: #3f6212;
    --warn-orange: #ea580c;
}

body,
button,
input,
label {
    font-family: var(--font);
}

.catalog-banner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.85rem var(--space-section);
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.45;
}

.catalog-banner[hidden] {
    display: none !important;
}

.site-header {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-section);
    padding-bottom: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate950);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #5a9a2e);
    box-shadow: 0 4px 14px rgba(135, 197, 71, 0.35);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.base-section {
    width: 100%;
    padding: var(--space-section);
    padding-top: 1.25rem;
    /* Son blok (güven satırı) çentik / home bar altında kalmaması için */
    padding-bottom: max(var(--space-section), calc(env(safe-area-inset-bottom, 0px) + 2rem));
}

/* Programatik scroll: bölüm üstte kalsın (mobil + masaüstü) */
#details-section,
#installation-section,
#summary-aside {
    scroll-margin-top: max(0.75rem, env(safe-area-inset-top, 0px));
}

.base-div {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.base-div-left {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.base-div-left-top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.eyebrow {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin: 0;
}

h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.75rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
    color: var(--slate950);
    margin: 0;
    line-height: 1.2;
}

.lede {
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--slate600);
    margin: 0;
    max-width: 52ch;
    line-height: 1.55;
}

.step-area {
    display: flex;
    flex-direction: column;
    row-gap: 1.125rem;
}

.step-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 21px;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    font-weight: 600;
    font-size: 1rem;
}

.step-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
    margin: 0;
    line-height: 1.3;
}

.step-desc {
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: -0.015em;
    color: var(--slate400);
    margin: 0.35rem 0 0;
    line-height: 1.5;
    max-width: 60ch;
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-body {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.selection-wrap {
    position: relative;
    flex: 1 1 calc(25% - 0.75rem);
    width: 100%;
    display: flex;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.selection-area {
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 8px;
    row-gap: 0.5rem;
    box-shadow: 0 2px 12px 2px var(--shadow-color);
    height: 84px;
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.selection-wrap:has(input:focus-visible) .selection-area {
    outline: 1px solid var(--primary);
    outline-offset: 1px;
}

input[type="radio"]:checked+.selection-area {
    box-shadow: 0px 0px 12px 0px var(--primary-hover);
}

.selection-area:active {
    transform: none;
}

.selection-area .iconFrame i {
    margin: auto;
    color: var(--primary);
    font-size: 1.75rem;
    line-height: 1;
}

.iconFrame {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--soft-primary);
    border-radius: var(--radius-sm);
    aspect-ratio: 1;
    flex-shrink: 0;
    min-width: fit-content;
}

.selection-title {
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--slate950);
    display: block;
}

.selection-left {
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    height: 100%;
    aspect-ratio: 1;
}

.selection-body {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: var(--slate400);
    line-height: calc(100% + 2px);
    margin: 0;
}

.selection-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.details-section:not([hidden]) {
    display: flex;
    flex-direction: column;
    row-gap: 1.125rem;
    margin-top: 0.25rem;
}

.details-section[hidden] {
    display: none !important;
}

.details-panel[hidden] {
    display: none !important;
}

.details-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.35rem);
    box-shadow: 0 2px 12px 2px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.detail-shell__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-shell__icon {
    font-size: 1.35rem;
    color: var(--primary);
    line-height: 1;
}

.detail-shell__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
}

.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: 0.875rem;
    line-height: 1.5;
}

.callout--info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-text);
}

.callout--neutral {
    background: var(--neutral-bg);
    border-color: var(--neutral-border);
    color: var(--neutral-text);
}

.callout--success {
    background: var(--success-soft-bg);
    border-color: var(--success-soft-border);
    color: var(--success-text);
    align-items: flex-start;
}

.callout__glyph {
    flex-shrink: 0;
    font-size: 1.35rem;
    margin-top: 0.1rem;
    line-height: 1;
}

.callout--info .callout__glyph {
    color: #2563eb;
}

.callout--neutral .callout__glyph {
    color: var(--slate400);
}

.callout--success .callout__glyph {
    color: var(--primary);
}

.callout__body {
    min-width: 0;
}

.callout__p {
    margin: 0;
}

.callout--info .callout__p strong {
    color: var(--info-strong);
}

.callout--neutral .callout__text,
.callout--success .callout__text {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.callout-list {
    margin: 0.75rem 0 0;
    padding: 0 0 0 1.1rem;
    list-style: disc;
}

.callout-list li {
    margin-bottom: 0.5rem;
}

.callout-list li:last-child {
    margin-bottom: 0;
}

.callout-list strong {
    color: #1d4ed8;
}

.detail-field {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.detail-field__label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
    margin: 0 0 0.625rem;
}

.detail-field__optional {
    font-weight: 500;
    color: var(--slate500);
    font-size: 0.8125rem;
}

.detail-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--slate950);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--soft-primary);
}

.detail-field:last-child .detail-input {
    margin-bottom: 0;
}

.door-chip-row {
    margin-top: 0.35rem;
}

.callout--door-relay {
    margin-top: 1rem;
}

.callout--door-relay.callout--success .callout__glyph {
    color: var(--primary);
}

.detail-field--stepper .detail-field__label {
    margin-bottom: 0.5rem;
}

.stepper-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--card);
}

.stepper__btn {
    width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--slate600);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.stepper__btn:hover {
    background: #e2e8f0;
}

.stepper__btn:active {
    transform: none;
}

.stepper__input {
    width: 3.5rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--card);
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate950);
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper-unit {
    font-size: 0.875rem;
    color: var(--slate400);
}

.detail-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.detail-hint {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--slate400);
}

.detail-fieldset {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

.detail-legend {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
    padding: 0;
    margin: 0 0 0.625rem;
}

.detail-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.detail-options--pills {
    gap: 0.5rem;
}

.detail-options--people {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.detail-options--people .detail-opt-wrap {
    min-width: 0;
}

.detail-options--chips {
    gap: 0.5rem;
}

.door-chip-row .detail-chip {
    white-space: normal;
    text-align: center;
    min-height: auto;
    height: auto;
    min-width: 44px;
    padding: 0.5rem 0.65rem;
    line-height: 1.25;
}

.detail-opt-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: min(140px, 100%);
    display: flex;
}

.detail-options--pills .detail-opt-wrap {
    flex: 0 1 auto;
    min-width: unset;
}

.detail-opt-wrap--chip {
    flex: 0 1 auto;
    min-width: unset;
    min-height: 44px;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.125rem;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--slate950);
    background-color: var(--card);
    border-radius: 999px;
    border: 2px solid var(--border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
}

.detail-pill--stretch {
    width: 100%;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--slate950);
    background-color: var(--card);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.detail-opt-wrap:has(input:focus-visible) .detail-pill,
.detail-opt-wrap:has(input:focus-visible) .detail-chip {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

input[type="radio"]:checked + .detail-pill {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--success-soft-bg);
    box-shadow: none;
}

input[type="radio"]:checked + .detail-chip {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--success-soft-bg);
}

.detail-pill:active,
.detail-chip:active {
    transform: none;
}

@media (max-width: 520px) {
    .detail-options--people {
        grid-template-columns: 1fr;
    }
}

.installation-section:not([hidden]) {
    display: flex;
    flex-direction: column;
    row-gap: 1.125rem;
    margin-top: 0.25rem;
}

.installation-section[hidden] {
    display: none !important;
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.install-card-wrap {
    position: relative;
    min-width: 0;
}

.install-bundle {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    overflow: hidden;
}

.install-card-wrap--pro:has(#inst-pro:checked) .install-bundle {
    border-color: var(--primary);
    box-shadow: 0 2px 12px 2px var(--shadow-color);
}

.install-card-wrap--pro:has(#inst-pro:focus-visible) .install-bundle {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.install-card {
    position: relative;
    display: block;
    height: 100%;
    margin: 0;
    padding: 1.25rem;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: none;
}

.install-card--in-bundle {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1 1 auto;
    min-height: 0;
}

.install-card:active {
    transform: none;
}

input[type="radio"]:checked + .install-card {
    border-color: var(--primary);
    box-shadow: 0 2px 12px 2px var(--shadow-color);
}

.install-card-wrap--pro:has(#inst-pro:checked) .install-card--in-bundle .install-card__check {
    opacity: 1;
}

.install-card-wrap:has(input:focus-visible) .install-card {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.install-card-wrap--pro:has(#inst-pro:focus-visible) .install-card--in-bundle {
    outline: none;
}

.install-card__check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
}

input[type="radio"]:checked + .install-card .install-card__check {
    opacity: 1;
}

.install-card__city-panel {
    padding: 0.85rem 1.25rem 1.1rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.install-card-wrap--pro:has(#inst-pro:checked) .install-card__city-panel {
    border-top-color: rgba(135, 197, 71, 0.35);
}

.install-card__city-label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
    margin-bottom: 0.45rem;
}

.install-city-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--slate950);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    padding-right: 2.25rem;
}

.install-city-select:hover {
    border-color: var(--slate400);
}

.install-city-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--soft-primary);
}

.install-card__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 1.75rem;
}

.install-card__top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.install-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.install-card__icon--primary {
    background: var(--soft-primary);
    color: var(--primary);
}

.install-card__icon--muted {
    background: #f1f5f9;
    color: var(--slate400);
}

.install-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.install-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
}

.install-card__badge-rec {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: var(--soft-primary);
    color: var(--primary);
}

.install-card__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--slate600);
}

.install-card__divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.install-card__footer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--slate600);
}

.install-card__footer i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

.install-card__footer--info i {
    color: #2563eb;
}

.install-card__footer--warn {
    color: var(--slate600);
}

.install-card__footer--warn i {
    color: var(--warn-orange);
}

@media (max-width: 720px) {
    .install-grid {
        grid-template-columns: 1fr;
    }
}

.base-div-right {
    flex: 0 0 min(100%, 340px);
    width: 100%;
    position: sticky;
    top: var(--space-section);
}

.summary-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 12px 2px var(--shadow-color);
    border: 1px solid var(--border);
}

.summary-heading {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--slate950);
}

.summary-head-rule {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0 1rem;
}

.summary-empty {
    margin: 0;
}

.summary-empty p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--slate600);
}

.summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-line:first-child {
    padding-top: 0;
}

.summary-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-line__main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.summary-line__title {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
}

.summary-line__meta {
    font-size: 0.8125rem;
    color: var(--slate600);
    line-height: 1.4;
}

.summary-line__price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--slate950);
    letter-spacing: -0.02em;
}

.summary-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.summary-notes__label {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate950);
}

.summary-notes__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    color: var(--slate600);
    line-height: 1.45;
}

.summary-notes__list li {
    margin-bottom: 0.25rem;
}

.summary-total-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.summary-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.summary-total-row__label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--slate950);
}

.summary-total-row__amount {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--slate950);
}

.summary-vat {
    margin: 0.35rem 0 0;
    text-align: right;
    font-size: 0.75rem;
    color: var(--slate400);
}

.summary-license-hint {
    margin: 0.5rem 0 0;
    text-align: right;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--slate600);
}

.summary-license-hint[hidden] {
    display: none !important;
}

.summary-wifi-box {
    margin-top: 1rem;
}

.summary-wifi-box__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.summary-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.summary-wifi-box__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #2563eb;
    margin-top: 0.05rem;
}

.summary-wifi-box__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.summary-wifi-box__title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--slate950);
}

.summary-wifi-box__desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--slate600);
}

.summary-install-terms-box {
    margin-top: 0.75rem;
}

.summary-install-terms-box__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.summary-install-terms-box__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.summary-install-terms-box__title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--slate950);
}

.summary-install-terms-box__desc {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--slate600);
}

.summary-card__cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.btn-block {
    width: 100%;
}

.btn-sales {
    gap: 0.5rem;
}

.btn-sales i {
    font-size: 1.1rem;
}

.summary-warnings {
    margin-top: 0.75rem;
}

.summary-warnings p {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--warn-orange);
}

.summary-warnings p:last-child {
    margin-bottom: 0;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--slate950);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--slate400);
    background: var(--surface);
}

.trust-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    font-size: 0.875rem;
    color: var(--slate600);
    align-items: center;
    /* Sütun (mobil) düzeninde flex-basis:% yükseklik döngüsü yapmasın */
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-self: stretch;
    min-height: min-content;
}

@media (min-width: 1025px) {
    .trust-row {
        /* Satır + wrap: alt satıra düşüp tam genişlik (dikey şişme yok) */
        flex: 0 0 100%;
    }
}

.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.trust-row i {
    font-size: 1.25rem;
    color: var(--primary);
}

@media (max-width: 1024px) {
    .base-div {
        flex-direction: column;
        /* Sütunda flex:1 sol sütunun gereksiz dikey şişmesini engelle */
        min-height: 0;
    }

    .base-div-left {
        order: 1;
        flex: 0 1 auto;
        width: 100%;
        min-height: 0;
    }

    .base-div-right {
        flex-basis: 100%;
        position: static;
        max-width: none;
        order: 2;
    }

    .trust-row {
        order: 3;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border);
    }

    .base-section {
        padding-bottom: max(3.5rem, calc(env(safe-area-inset-bottom, 0px) + 2.75rem));
    }
}

@media (max-width: 640px) {
    .selection-area{
        height: 100px;
    }
    .selection-title {
        text-align: left;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: -0.02em;
        color: var(--slate950);
        display: block;
    }

    .selection-body {
        text-align: left;
        font-size: 13px;
        font-weight: 400;
        color: var(--slate400);
        line-height: calc(100% + 2px);
        margin: 0;
        letter-spacing: -0.015em;
    }

    .selection-area {
        min-height: auto;
    }

    .selection-top {
        align-items: flex-start;
    }

    .cta-row .btn {
        width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {}

/* Sipariş özelleştirme (Satın Alma Adımına Geç) */
.checkout-dialog {
    padding: 0;
    border: none;
    background: transparent;
    max-width: calc(100vw - 1.5rem);
    width: min(480px, 100%);
    color: var(--slate950);
}

.checkout-dialog::backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
}

.checkout-dialog__panel {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 2px 12px 2px var(--shadow-color);
    overflow: hidden;
}

.checkout-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem;
}

.checkout-dialog__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--slate950);
}

.checkout-dialog__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -0.35rem -0.35rem 0 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--slate600);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.checkout-dialog__close:hover {
    background: var(--neutral-bg);
    color: var(--slate950);
}

.checkout-dialog__close i {
    font-size: 1.25rem;
}

.checkout-dialog__rule {
    height: 1px;
    margin: 0 1.25rem;
    background: var(--border);
}

.checkout-dialog__body {
    padding: 1.1rem 1.25rem 1.25rem;
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

.checkout-dialog__section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkout-dialog__section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--soft-primary);
    color: var(--primary);
    font-size: 1.1rem;
}

.checkout-dialog__section-label {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
}

.checkout-dialog__hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--slate600);
}

.checkout-dialog__generic {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--slate600);
}

.checkout-addon-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checkout-addon-wrap {
    position: relative;
}

.checkout-addon {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.checkout-addon-wrap:has(input:focus-visible) .checkout-addon {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.checkout-addon:hover {
    border-color: var(--slate400);
}

.checkout-addon-wrap:has(input:checked) .checkout-addon {
    border-color: var(--primary);
    background: var(--success-soft-bg);
    box-shadow: 0 2px 12px 2px var(--shadow-color);
}

.checkout-addon__mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    border-radius: 6px;
    border: 2px solid var(--slate400);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.checkout-addon-wrap:has(input:checked) .checkout-addon__mark {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--light);
}

.checkout-addon__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkout-addon__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.checkout-addon__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    color: var(--slate950);
    line-height: 1.3;
}

.checkout-addon__price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.checkout-addon__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--slate600);
}

.checkout-dialog__digital-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--info-text);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius-md);
}

.checkout-dialog__digital-notice[hidden] {
    display: none !important;
}

.checkout-dialog__digital-notice i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.1rem;
    color: var(--info-strong);
}

.checkout-dialog__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), var(--card));
}

.checkout-dialog__btn-secondary,
.checkout-dialog__btn-primary {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
}

@media (max-width: 400px) {

    .checkout-dialog__btn-secondary,
    .checkout-dialog__btn-primary {
        flex: 1 1 100%;
    }
}

/* Ödeme öncesi üyelik / giriş / kayıt */
.checkout-dialog--payment-auth {
    width: min(440px, 100%);
}

.checkout-dialog--payment-auth .checkout-dialog__body {
    max-height: min(72vh, 520px);
}

.payment-auth-step__intro {
    margin-top: 0;
}

.payment-auth-error {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--danger-text, #b91c1c);
    background: var(--danger-bg, #fef2f2);
    border: 1px solid var(--danger-border, #fecaca);
    border-radius: var(--radius-md);
}

.payment-auth-error[hidden] {
    display: none !important;
}

.payment-auth-error--success {
    color: var(--success-text, #166534);
    background: var(--success-soft-bg, #ecfdf5);
    border-color: var(--success-border, #bbf7d0);
}

.payment-auth-choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

@media (min-width: 420px) {
    .payment-auth-choice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-auth-choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 1rem 1rem 1.1rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--slate950);
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.payment-auth-choice-card:hover:not(:disabled) {
    border-color: var(--slate400);
}

.payment-auth-choice-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.payment-auth-choice-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.payment-auth-choice-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--soft-primary);
    color: var(--primary);
    font-size: 1.25rem;
}

.payment-auth-choice-card__icon--muted {
    background: var(--neutral-bg);
    color: var(--slate600);
}

.payment-auth-choice-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}

.payment-auth-choice-card__desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--slate600);
}

.payment-auth-foot--membership-only .payment-auth-foot__cancel {
    flex: 1 1 100%;
}

.payment-addr-textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.payment-addr-checkbox-row {
    margin-top: 0.25rem;
}

.payment-addr-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate700);
    cursor: pointer;
}

.payment-addr-checkbox-label input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--primary);
}

.payment-addr-billing-block {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border);
}

.payment-addr-billing-hint {
    margin-top: 0.5rem;
}

/* .btn display: inline-flex, [hidden] ile aynı özgüllükte; gizli butonların gerçekten gizlenmesi için */
#dialog-payment-auth .payment-auth-foot button[hidden] {
    display: none !important;
}

#dialog-contact-sales .payment-auth-error[hidden] {
    display: none !important;
}

/* Satış ekibi iletişim diyaloğu */
.contact-sales-pref-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.35rem 0 0.25rem;
}

.contact-sales-pref-item {
    position: relative;
}

.contact-sales-pref-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--slate950);
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-sales-pref-item:has(input:focus-visible) .contact-sales-pref-label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.contact-sales-pref-item:has(input:checked) .contact-sales-pref-label {
    border-color: var(--primary);
    background: var(--success-soft-bg);
    color: var(--slate950);
}

.contact-sales-thanks {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--slate600);
}

.contact-sales-footer-form .checkout-dialog__btn-primary,
.contact-sales-footer-thanks .checkout-dialog__btn-primary {
    flex: 1 1 100%;
}
