/* Koleksiyon: ürün detayı butonu, toast ve header bağlantısı. */

/* Eylem satırında koleksiyon butonu kendi satırını kaplar. */
.product-actions-row {
    flex-wrap: wrap;
}

.collection-add {
    flex: 1 1 100%;
    min-width: 0;
}

.collection-add-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    background: #0d1b3e;
    border: 1.5px solid #0d1b3e;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.16);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.22s ease;
}

.collection-add-saved-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0d1b3e;
    background: #eef2ff;
    border-radius: 999px;
}

.collection-add-saved-pill[hidden] {
    display: none !important;
}

.collection-add-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
    transform: translateX(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.collection-add-btn svg {
    flex: 0 0 auto;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .collection-add-btn:hover {
        background: #162b5c;
        border-color: #162b5c;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px -6px rgba(13, 27, 62, 0.28);
    }

    .collection-add-btn:hover svg {
        transform: translate(1px, -1px) scale(1.08);
    }

    .collection-add-btn:hover::after {
        opacity: 1;
        transform: translateX(115%);
    }
}

.collection-add-btn:active {
    transform: scale(0.985);
}

.collection-add-btn:focus-visible {
    outline: 3px solid #1c3a7a;
    outline-offset: 2px;
}

.collection-add-btn.is-added {
    background: #0d1b3e;
    border-color: #0d1b3e;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 27, 62, 0.18);
}

.collection-add-btn.is-just-added {
    animation: colSavePulse 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-add-btn.is-just-added svg {
    animation: colBookmarkPop 0.46s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes colSavePulse {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.015, 0.96);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes colBookmarkPop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.28) rotate(-8deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.collection-add-btn .collection-add-icon-plus {
    display: inline;
}

.collection-add-btn.is-added .collection-add-icon-plus {
    display: none;
}

.collection-add-btn.is-added .collection-add-icon-bookmark {
    fill: currentColor;
}

@media (hover: hover) {
    .collection-add-btn.is-added:not(.is-just-added):hover {
        background: #162b5c;
        border-color: #162b5c;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px -6px rgba(13, 27, 62, 0.32);
    }

    .collection-add-btn.is-added:not(.is-just-added):hover svg {
        transform: translateY(-1px) scale(1.1);
    }
}

/* Toast */
.collection-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10001;
    max-width: calc(100vw - 32px);
    padding: 12px 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #0d1b3e;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 27, 62, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.collection-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.collection-toast.is-error {
    background: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {

    .collection-add-btn,
    .collection-toast {
        transition: none;
    }
}

/* Header bağlantısı: N=0 iken gizli. */
[data-collection-link][hidden],
[data-collection-count-wrap][hidden] {
    display: none !important;
}

.collection-nav-link {
    white-space: nowrap;
}

.collection-nav-icon {
    display: inline-block;
    flex: 0 0 auto;
}

.collection-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    background: #0F2554;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease;
}

.collection-nav-link.is-bumped .collection-nav-badge {
    animation: colBadgeBump 0.44s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collection-nav-link.is-bumped .collection-nav-icon {
    animation: colBookmarkPop 0.44s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes colBadgeBump {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.28);
    }

    100% {
        transform: scale(1);
    }
}

.site_header .action_list .collection-nav-link--header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 9px 0 11px;
    border-radius: 9999px;
    background: #eef3fc;
    border: 1.5px solid rgba(15, 37, 84, 0.22);
    color: #0F2554;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 37, 84, 0.08);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Koleksiyon bağlantısı görünürken üst menü sağ kenara taşmasın. */
@media screen and (min-width: 1251px) and (max-width: 1540px) {
    body:has(.collection-nav-link--header:not([hidden])) .site_header .wrapper {
        padding: 0 22px !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .navbar {
        margin-left: 18px !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .navbar .nav_link {
        font-size: 14.5px !important;
        padding: 6px 8px !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .search_bar {
        margin-right: 12px !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .search-pill-btn {
        width: 196px !important;
        min-width: 180px !important;
        padding: 7px 13px !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .search-pill-text {
        max-width: 138px !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .action_list {
        gap: 6px !important;
        margin-right: 12px !important;
    }
}

@media screen and (min-width: 1251px) and (max-width: 1360px) {
    body:has(.collection-nav-link--header:not([hidden])) .site_header .search-pill-text {
        display: none !important;
    }

    body:has(.collection-nav-link--header:not([hidden])) .site_header .search-pill-btn {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 8px !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
}

.site_header .action_list .collection-nav-link--header:hover {
    background: #0F2554;
    border-color: #0F2554;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 37, 84, 0.2);
}

.site_header .action_list .collection-nav-link--header:hover .collection-nav-badge {
    background: #ffffff;
    color: #0F2554;
}

.site_header .action_list .collection-nav-link--header:focus-visible {
    outline: 3px solid #4a7bff;
    outline-offset: 2px;
}

body.is-home-page .site_header:not(.is-scrolled) .action_list .collection-nav-link--header {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.44);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

body.is-home-page .site_header:not(.is-scrolled) .action_list .collection-nav-link--header:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #ffffff;
    color: #ffffff;
}

body.is-home-page .site_header:not(.is-scrolled) .action_list .collection-nav-link--header .collection-nav-badge {
    background: #ffffff;
    color: #0F2554;
}

.mobile_menu .action_list .collection-nav-link--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eef3fc;
    border: 1.5px solid rgba(15, 37, 84, 0.24);
    color: #0F2554;
    border-radius: 9999px;
    font-weight: 600;
}

@media screen and (max-width: 1100px) {
    .site_header .action_list .collection-nav-link--header {
        padding: 0 9px;
        gap: 6px;
    }

    .collection-nav-link--header .collection-nav-text {
        display: none;
    }
}

/* Telefon: üst çubukta logo ortalı olduğundan buraya sığmaz; bağlantı hamburger menüsünde (tam metinle) ve
   Koleksiyonum sayfasında alttaki sabit çubukta zaten var. */
@media screen and (max-width: 640px) {
    .collection-nav-link--header {
        display: none !important;
    }
}

/* Public oturum: header'daki Cikis formu duz metin butonu gibi gorunur. */
.account-logout-form {
    display: inline-flex;
    margin: 0;
}

.account-logout-form button {
    font-family: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.account-logout-form button:focus-visible {
    outline: 3px solid #4a7bff;
    outline-offset: 2px;
}

/* Koleksiyon seçici pop-up penceresi (üye ve misafir). */
.collection-picker {
    width: min(460px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(13, 27, 62, 0.28);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0d1b3e;
    overflow: hidden;
}

.collection-picker[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    animation: cpkPopIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-picker::backdrop {
    background: rgba(13, 27, 62, 0.52);
    backdrop-filter: blur(2px);
}

@keyframes cpkPopIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.collection-picker-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px 22px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

.cpk-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eceff5;
}

.cpk-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 54px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #f5f6f8;
    border: 1px solid #e6ebf4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cpk-thumb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

.cpk-thumb-ph {
    font-size: 20px;
    font-weight: 700;
    color: #4a5a7e;
    line-height: 1;
}

.cpk-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cpk-kicker {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.cpk-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #0d1b3e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.cpk-close {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b6782;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.cpk-close:hover {
    background: #f1f4fa;
    color: #0d1b3e;
}

.cpk-section-label {
    margin: 2px 0 -4px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.collection-picker-status {
    margin: 0;
    min-height: 0;
    font-size: 13px;
    color: #334155;
}

.collection-picker-status:empty {
    display: none;
}

.collection-picker-status.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.collection-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 264px;
    overflow-y: auto;
}

.collection-picker-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    font: inherit;
    text-align: left;
    color: #0d1b3e;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.18s ease;
}

.collection-picker-item.is-new-item {
    animation: cpkRowSlideIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cpkRowSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (hover: hover) {
    .collection-picker-choice:hover:not(:disabled) {
        background: #f8fafc;
        border-color: #94a3b8;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px -8px rgba(13, 27, 62, 0.14);
    }

    .collection-picker-choice:hover:not(:disabled) .cpk-choice-icon {
        transform: scale(1.06);
    }
}

.collection-picker-choice:active:not(:disabled) {
    transform: scale(0.985);
}

.collection-picker-choice.is-just-toggled .cpk-choice-icon {
    animation: colBookmarkPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collection-picker-choice.is-just-toggled .collection-picker-choice-action {
    animation: cpkActionPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cpkActionPop {
    0% {
        transform: scale(0.86);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.collection-picker-choice:disabled {
    opacity: 0.6;
    cursor: default;
}

.cpk-choice-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.16s ease, color 0.16s ease;
}

.cpk-choice-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.collection-picker-choice-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.collection-picker-choice-count {
    font-size: 12px;
    color: #64748b;
}

.collection-picker-choice-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #0d1b3e;
    background: #f1f5f9;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.collection-picker-choice.is-in {
    background: #f4f7ff;
    border-color: #0d1b3e;
}

.collection-picker-choice.is-in .cpk-choice-icon {
    background: #0d1b3e;
    color: #ffffff;
}

.collection-picker-choice.is-in .collection-picker-choice-action {
    background: #0d1b3e;
    color: #ffffff;
}

.collection-picker-choice-action-remove {
    display: none;
}

@media (hover: hover) {
    .collection-picker-choice.is-in:not(:disabled):hover {
        background: #fdf2f2;
        border-color: #f0c4c4;
    }

    .collection-picker-choice.is-in:not(:disabled):hover .collection-picker-choice-action {
        background: #fee2e2;
        color: #b91c1c;
    }

    .collection-picker-choice.is-in:not(:disabled):hover .collection-picker-choice-action-main {
        display: none;
    }

    .collection-picker-choice.is-in:not(:disabled):hover .collection-picker-choice-action-remove {
        display: inline;
    }
}

.collection-picker-more {
    align-self: flex-start;
    height: 36px;
    padding: 0 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #0d1b3e;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
}

.collection-picker-more:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #0d1b3e;
}

.cpk-footer {
    padding-top: 12px;
    border-top: 1px solid #eceff5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpk-new-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #0d1b3e;
    background: transparent;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.cpk-new-trigger:hover {
    background: #f8fafc;
    border-color: #0d1b3e;
}

.cpk-new-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef2ff;
    color: #0d1b3e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.collection-picker-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collection-picker-new[hidden],
.cpk-new-trigger[hidden] {
    display: none;
}

.collection-picker-new-label {
    font-size: 13px;
    font-weight: 600;
    color: #0d1b3e;
}

.collection-picker-input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    font: inherit;
    font-size: 14px;
    color: #0d1b3e;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
}

.collection-picker-input:focus {
    outline: none;
    border-color: #0d1b3e;
}

.cpk-new-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.collection-picker-create,
.cpk-new-cancel {
    height: 40px;
    padding: 0 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.collection-picker-create {
    color: #ffffff;
    background: #0d1b3e;
    border: 1.5px solid #0d1b3e;
}

.collection-picker-create:hover:not(:disabled) {
    background: #162b5c;
}

.cpk-new-cancel {
    color: #334155;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
}

.cpk-new-cancel:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
}

.cpk-new-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

.collection-picker-create:disabled,
.collection-picker-more:disabled {
    opacity: 0.6;
    cursor: default;
}

.collection-picker button:focus-visible,
.collection-picker-input:focus-visible {
    outline: 3px solid #1c3a7a;
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .collection-picker-inner {
        padding: 16px;
        gap: 12px;
    }

    .cpk-head {
        gap: 11px;
        padding-bottom: 12px;
    }

    .cpk-thumb {
        flex-basis: 58px;
        width: 58px;
        height: 48px;
        padding: 4px;
    }

    .collection-picker-list {
        max-height: min(210px, 34dvh);
    }

    .cpk-new-actions>* {
        flex: 1 1 0;
        min-height: 42px;
    }
}

/* ---------- İkili Seçim & Doğrudan Teklif Talebi Modal Görünümleri ---------- */
.collection-picker {
    width: min(500px, calc(100vw - 24px));
}

.cpk-head-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

.cpk-back {
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.cpk-back[hidden] {
    display: none !important;
}

@media (hover: hover) {
    .cpk-back:hover {
        background: #e2e8f0;
        color: #0d1b3e;
    }
}

/* Konfigürasyon Özet Şeridi (Ürün Detay Modal) */
.cpk-cfg-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.cpk-cfg-bar[hidden] {
    display: none !important;
}

.cpk-cfg-bar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.cpk-cfg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cpk-cfg-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #0d1b3e;
    background: #ffffff;
    border: 1px solid #dbe2ee;
    border-radius: 999px;
}

.cpk-cfg-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(13, 27, 62, 0.18);
    flex: 0 0 auto;
    display: block;
}

/* Panel Geçiş Animasyonları (GPU: transform + opacity) */
.cpk-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cpk-panel[hidden] {
    display: none !important;
}

.cpk-panel.is-enter-forward {
    animation: cpkSlideForward 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.cpk-panel.is-enter-back {
    animation: cpkSlideBack 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cpkSlideForward {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cpkSlideBack {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hub İkili Seçim Kartları */
.cpk-hub-lead {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
}

.cpk-hub-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpk-hub-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 16px;
    font: inherit;
    text-align: left;
    color: #0d1b3e;
    background: #ffffff;
    border: 1.5px solid #dbe2ee;
    border-radius: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.2s ease;
}

.cpk-hub-card--quote {
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
    border-color: #b7c8f2;
}

@media (hover: hover) {
    .cpk-hub-card:hover {
        transform: translateY(-2px);
        border-color: #0d1b3e;
        box-shadow: 0 10px 24px -10px rgba(13, 27, 62, 0.22);
    }

    .cpk-hub-card:hover .cpk-hub-arrow {
        transform: translateX(3px);
        color: #0d1b3e;
    }
}

.cpk-hub-card:active {
    transform: scale(0.985);
}

.cpk-hub-ic {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #0d1b3e;
}

.cpk-hub-card--quote .cpk-hub-ic {
    background: #0d1b3e;
    color: #ffffff;
}

.cpk-hub-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cpk-hub-title {
    font-size: 15px;
    font-weight: 700;
    color: #0d1b3e;
    line-height: 1.25;
}

.cpk-hub-desc {
    font-size: 12.5px;
    line-height: 1.4;
    color: #64748b;
}

.cpk-hub-arrow {
    flex: 0 0 auto;
    color: #94a3b8;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s ease;
}

/* Doğrudan Teklif Formu (Panel 2B) */
.cpk-quote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cpk-quote-note-banner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #1c325f;
    background: #eef3fc;
    border: 1px solid #d5e0fa;
    border-radius: 10px;
}

.cpk-quote-note-banner[hidden] {
    display: none !important;
}

.cpk-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cpk-quote-grid[hidden] {
    display: none !important;
}

.cpk-qfield {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cpk-qfield--full {
    grid-column: 1 / -1;
}

.cpk-qfield label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
}

.cpk-qfield input,
.cpk-qfield textarea {
    width: 100%;
    padding: 9px 12px;
    font: inherit;
    font-size: 13.5px;
    color: #0d1b3e;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.16s ease;
}

.cpk-qfield input {
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

.cpk-qfield textarea {
    resize: vertical;
    min-height: 68px;
}

.cpk-qfield input:focus,
.cpk-qfield textarea:focus {
    outline: none;
    border-color: #0d1b3e;
}

.cpk-qfield.is-invalid input {
    border-color: #dc2626;
}

.cpk-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.cpk-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #0d1b3e;
}

.cpk-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    overflow: hidden;
}

.cpk-qty-ctrl button {
    width: 34px;
    height: 34px;
    padding: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #0d1b3e;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cpk-qty-ctrl button:hover {
    background: #eef2ff;
}

.cpk-qty-ctrl input {
    width: 48px;
    height: 34px;
    padding: 0 4px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    color: #0d1b3e;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background: transparent;
}

.cpk-quote-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #334155;
}

.cpk-quote-check[hidden] {
    display: none !important;
}

.cpk-quote-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.cpk-quote-check a {
    color: #0d1b3e;
    font-weight: 600;
    text-decoration: underline;
}

.cpk-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cpk-quote-error {
    margin: 0;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
}

.cpk-quote-error[hidden] {
    display: none !important;
}

.cpk-quote-submit {
    width: 100%;
    height: 46px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: #0d1b3e;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .cpk-quote-submit:hover:not(:disabled) {
        background: #162b5c;
        box-shadow: 0 8px 20px -6px rgba(13, 27, 62, 0.35);
    }
}

.cpk-quote-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Başarı Durumu (Panel 3) */
.cpk-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 8px 6px;
}

.cpk-success-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: cpkSuccessPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cpkSuccessPop {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cpk-success-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0d1b3e;
}

.cpk-success-msg {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #475569;
}

.cpk-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.cpk-success-actions > button {
    flex: 1 1 0;
    min-height: 42px;
    padding: 0 14px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.cpk-success-sec {
    color: #0d1b3e;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
}

.cpk-success-pri {
    color: #ffffff;
    background: #0d1b3e;
    border: 1.5px solid #0d1b3e;
}

@media (max-width: 520px) {
    .cpk-quote-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-picker[open],
    .cpk-panel.is-enter-forward,
    .cpk-panel.is-enter-back,
    .cpk-success-badge,
    .collection-add-btn.is-just-added,
    .collection-add-btn.is-just-added svg,
    .collection-nav-link.is-bumped .collection-nav-badge,
    .collection-nav-link.is-bumped .collection-nav-icon,
    .collection-picker-item.is-new-item,
    .collection-picker-choice.is-just-toggled .cpk-choice-icon,
    .collection-picker-choice.is-just-toggled .collection-picker-choice-action {
        animation: none;
    }

    .collection-add-btn,
    .collection-add-btn::after,
    .collection-add-btn svg,
    .cpk-hub-card,
    .cpk-hub-arrow,
    .cpk-quote-submit,
    .cpk-back,
    .collection-picker-choice,
    .cpk-choice-icon,
    .collection-nav-badge {
        transition: none;
    }
}