body {
    font-family: Arial, sans-serif;
}

.store-card {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.store-card:hover {
    transform: translateY(-10px);
}

.card {
    border-radius: 10px;
}

.card-title {
    font-size: 1.25rem;
}

.card-text {
    font-size: 1rem;
}

.btn {
    width: 100%;
}

@media (max-width: 576px) {
    .store-card {
        margin-bottom: 1rem;
    }
}

.page-header.sticky-top-shadow {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.store-card {
    cursor: pointer;
    transition: transform .12s ease;
}

.store-card:hover {
    transform: translateY(-2px);
}

.product-card .card-img-top {
    object-fit: cover;
    height: 140px;
}

.sticky-top-shadow {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.store-card {
    cursor: pointer;
    transition: transform .12s ease;
}

.store-card:hover {
    transform: translateY(-2px);
}

.product-card .card-img-top {
    object-fit: cover;
    height: 140px;
}

.nav-tabs .nav-link {
    cursor: pointer;
}

.tab-content .tab-pane {
    display: none;
}

.tab-content .tab-pane.active {
    display: block;
}

@media (max-width: 576px) {
    #productSearch {
        max-width: 170px !important;
    }
}

/* Drawer */
.drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    display: flex;
    justify-content: center;
    /* align-items: flex-end; */
    z-index: 1050;
}

.drawer.hidden {
    display: none;
}

.drawer-card {
    background: #fff;
    width: 100%;
    max-width: 720px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
    padding: 20px;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.drawer-title {
    font-weight: 600;
}

.drawer-sub {
    font-size: .875rem;
    color: #6c757d;
}

/* Drawer gövdesi biraz daha kompakt ve kaydırılabilir kalsın */
.drawer-body {
    padding: 12px 16px;
    /* JS ile max-height ve padding-bottom set edilecek */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.drawer-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 1;
}

.total {
    font-weight: 700;
    font-size: 1.05rem;
}

/* Adet */
.quick-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-control input {
    width: 64px;
    text-align: center;
}

/* Kişi gezgini: kısa oklar + tek satır başlık */
.person-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.person-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.person-title span {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* tek satıra sığdır */
}

/* Tek sütun modifiers */
#od-person-mods .group-title {
    margin: 12px 0 6px;
    font-size: .9rem;
    color: #6c757d;
}

#od-person-mods .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.od-chip {
    display: inline-block;
    border: 1px solid #cfd5db;
    /* sabit kalınlık */
    border-radius: 999px;
    padding: 6px 12px;
    /* sabit padding */
    line-height: 1.2;
    /* sabit satır yüksekliği */
    font-size: .95rem;
    /* sabit font boyutu */
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;

    /* Sağda ✓ için sabit yer AYIR (seçili-değilken de yer kaplar) */
    padding-right: 28px;
}

.od-chip::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    opacity: 0;
    /* varsayılan görünmez */
    transition: opacity .12s ease;
}

.od-chip:hover {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.od-chip.selected {
    /* BOYUTU DEĞİŞTİRECEK hiçbir şey yok: font-weight YOK, border kalınlığı değişmiyor */
    background: #eaf3ff;
    border-color: #9cc7ff;
    color: #0b5ed7;
}

.od-chip.selected::after {
    opacity: 1;
}

/* Ürün kart görseli */
.product-card .card-img-top {
    object-fit: cover;
    height: 140px;
}

/* Küçük ekran optimizasyonu */
@media (max-width: 576px) {
    #productSearch {
        max-width: 170px !important;
    }

    .quick-actions.qgrid {
        width: 120px;
        gap: 6px;
    }

    .qbtn {
        font-size: .95rem;
    }

    .btn-icon {
        width: 34px;
        height: 34px;
    }

    .od-chip {
        font-size: .9rem;
        padding: 6px 8px;
    }

    /* çok uzun chip’ler için daha dar üst sınır (viewporta göre) */
    #od-person-mods .chips .od-chip {
        max-width: calc(100vw - 64px);
        /* sol/sağ padding + scroll payı */
    }

    /* grup başlığı aralıkları kompakt */
    #od-person-mods .group-title {
        margin: 10px 0 4px;
    }
}

/* Hızlı adet 2x2 kare grid */
.quick-actions.qgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 140px;
    /* geniş ekranlarda kompakt */
}

.qbtn {
    aspect-ratio: 1 / 1;
    /* kare */
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    font-weight: 700;
    /* “x1” dikey ortalansın */
}

.qbtn:active {
    transform: scale(0.98);
}

/* Modal içinde chip sabit ölçü (seçilince zıplamasın) */
.om-chip {
    display: inline-block;
    border: 1px solid #cfd5db;
    border-radius: 999px;
    padding: 6px 12px;
    padding-right: 28px;
    /* ✓ için sabit alan */
    line-height: 1.2;
    font-size: .95rem;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.om-chip::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    opacity: 0;
    transition: opacity .12s;
}

.om-chip.selected {
    background: #eaf3ff;
    border-color: #9cc7ff;
    color: #0b5ed7;
}

.om-chip.selected::after {
    opacity: 1;
}

#om-mods .group-title {
    margin: 12px 0 6px;
    font-size: .9rem;
    color: #6c757d;
}

#om-mods .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.qbtn {
    aspect-ratio: 1/1;
    font-weight: 700;
}

/* Kişi gezgini: ekstra küçük ikon buton */
.btn-icon-xs {
    width: 60px;
    height: 28px;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Orta yazı tek satır + dar ekran uyumu */
.person-title-xs {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: .95rem;
    /* istersen .9rem yapabilirsin */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobilde daha da kompakt istersen */
@media (max-width: 576px) {
    .btn-icon-xs {
        width: 60px;
        height: 26px;
        border-radius: 7px;
    }

    .person-title-xs {
        font-size: .9rem;
    }
}