/* Ürün kartı "+" (hızlı sepete ekle) listesi — ON404-102. İşaretleme: partials/quick-add-options.blade.php, davranış: js/quick-add.js.
   Liste ilk boyamada gizli olduğu için layout'ta ertelenerek yüklenir (critical-home.css'e girmez). */

/* Çok gruplu liste: sayfaların .size-dropdown yükseklik sınırı yerine listenin kendi kaydırması kullanılır */
.size-dropdown.show:has(.qa-multi) {
    max-height: none;
    overflow: visible;
}

.qa-multi {
    min-width: 210px;
    max-height: min(60vh, 380px);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
}

/* Ana sayfa product.css'i yüklemediği için başlık ve satır stilleri burada da tanımlı */
.qa-multi .qa-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #666;
    background-color: #f1f1ea;
    border-bottom: 1px solid #e3e3db;
    text-transform: uppercase;
}

.qa-multi .qa-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.qa-multi .qa-option:hover {
    background-color: #f8f8f8;
}

.qa-multi .qa-option.selected {
    background-color: #f3f3ee;
    font-weight: 600;
}

.qa-check {
    flex: 0 0 auto;
    width: 6px;
    height: 11px;
    margin: -3px 2px 0 12px;
    border: solid #34352a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.qa-option.selected .qa-check {
    opacity: 1;
}

.qa-option:focus-visible,
.qa-submit:focus-visible {
    outline: 2px solid #34352a;
    outline-offset: -2px;
}

.qa-submit {
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 0;
    background-color: #34352a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.qa-submit:hover:not(:disabled) {
    background-color: #000;
}

.qa-submit:disabled {
    background-color: #b9b9ad;
    cursor: not-allowed;
}

.qa-pending {
    opacity: 0.5;
    pointer-events: none;
}
