/**
 * Header sepet & favori — modal / sağ panel / mobil alt sayfa
 */

/* Sepet / favori — tanıtım şeridi ve header katmanlarının üstünde */
#cart-modal.header-quick-panel,
#favorites-modal.header-quick-panel {
    z-index: 10200;
}

#cart-modal.header-quick-panel.open,
#favorites-modal.header-quick-panel.open {
    z-index: 10200;
}

/* —— Modal modu (varsayılan, mevcut davranış) —— */
body.ui-quick-panel-modal .header-quick-panel__head,
body.ui-quick-panel-modal .header-quick-panel__close--legacy {
    display: none;
}

body.ui-quick-panel-modal .header-quick-panel__intro {
    display: block;
}

body.ui-quick-panel-modal .header-quick-panel__close {
    display: none;
}

body.ui-quick-panel-modal .header-quick-panel__panel > .header-quick-panel__close--legacy {
    display: block;
}

/* —— Panel modu ortak —— */
body.ui-quick-panel-drawer .header-quick-panel,
body.ui-quick-panel-adaptive .header-quick-panel,
body.ui-quick-panel-bottom_dock .header-quick-panel,
body.ui-quick-panel-peek_expand .header-quick-panel {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

body.ui-quick-panel-drawer .header-quick-panel.open,
body.ui-quick-panel-adaptive .header-quick-panel.open,
body.ui-quick-panel-bottom_dock .header-quick-panel.open,
body.ui-quick-panel-peek_expand .header-quick-panel.open,
body.ui-quick-panel-inline_strip .header-quick-panel.open {
    opacity: 1;
    visibility: visible;
}

body.ui-quick-panel-drawer .header-quick-panel__intro,
body.ui-quick-panel-adaptive .header-quick-panel__intro,
body.ui-quick-panel-bottom_dock .header-quick-panel__intro,
body.ui-quick-panel-peek_expand .header-quick-panel__intro,
body.ui-quick-panel-inline_strip .header-quick-panel__intro,
body.ui-quick-panel-drawer .header-quick-panel__close--legacy,
body.ui-quick-panel-adaptive .header-quick-panel__close--legacy,
body.ui-quick-panel-bottom_dock .header-quick-panel__close--legacy,
body.ui-quick-panel-peek_expand .header-quick-panel__close--legacy,
body.ui-quick-panel-inline_strip .header-quick-panel__close--legacy {
    display: none;
}

body.ui-quick-panel-drawer .header-quick-panel__panel,
body.ui-quick-panel-adaptive .header-quick-panel__panel,
body.ui-quick-panel-bottom_dock .header-quick-panel__panel,
body.ui-quick-panel-peek_expand .header-quick-panel__panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    animation: headerQuickPanelSlideIn 0.32s ease;
    overflow: hidden;
    background: #fff;
}

/* style.css #cart-modal .modal padding / margin kurallarını panel modunda sıfırla */
body.ui-quick-panel-drawer #cart-modal .header-quick-panel__panel,
body.ui-quick-panel-drawer #favorites-modal .header-quick-panel__panel,
body.ui-quick-panel-adaptive #cart-modal .header-quick-panel__panel,
body.ui-quick-panel-adaptive #favorites-modal .header-quick-panel__panel,
body.ui-quick-panel-bottom_dock #cart-modal .header-quick-panel__panel,
body.ui-quick-panel-bottom_dock #favorites-modal .header-quick-panel__panel,
body.ui-quick-panel-peek_expand #cart-modal .header-quick-panel__panel,
body.ui-quick-panel-peek_expand #favorites-modal .header-quick-panel__panel,
body.ui-quick-panel-inline_strip #cart-modal .header-quick-panel__panel,
body.ui-quick-panel-inline_strip #favorites-modal .header-quick-panel__panel {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: min(100%, 420px);
}

body.ui-quick-panel-modal .header-quick-panel__dock {
    display: none !important;
}

body.ui-quick-panel-adaptive .header-quick-panel[data-quick-panel-layout="sheet"] {
    align-items: stretch;
    justify-content: flex-start;
}

body.ui-quick-panel-adaptive .header-quick-panel[data-quick-panel-layout="sheet"] .header-quick-panel__panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    animation: headerQuickPanelSheetIn 0.32s ease;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
}

body.ui-quick-panel-adaptive #cart-modal[data-quick-panel-layout="sheet"] .header-quick-panel__panel,
body.ui-quick-panel-adaptive #favorites-modal[data-quick-panel-layout="sheet"] .header-quick-panel__panel {
    max-width: 100% !important;
    border-radius: 0 !important;
}

body.ui-quick-panel-adaptive .header-quick-panel[data-quick-panel-layout="sheet"] .header-quick-panel__head {
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

@keyframes headerQuickPanelSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes headerQuickPanelSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.header-quick-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
    z-index: 2;
}

.header-quick-panel__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
    line-height: 1.3;
}

.header-quick-panel__count {
    font-weight: 700;
}

.header-quick-panel__close {
    position: static;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    padding: 0;
}

.header-quick-panel__close:hover {
    background: var(--bg-light, #f3f4f6);
}

body.ui-quick-panel-drawer .header-quick-panel__body,
body.ui-quick-panel-adaptive .header-quick-panel__body,
body.ui-quick-panel-bottom_dock .header-quick-panel__body,
body.ui-quick-panel-peek_expand .header-quick-panel__body,
body.ui-quick-panel-inline_strip .header-quick-panel__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    max-height: none;
}

/* style.css modal-body max-height kurallarını panel modunda devre dışı bırak */
body.ui-quick-panel-drawer #cart-modal .header-quick-panel__body,
body.ui-quick-panel-drawer #favorites-modal .header-quick-panel__body,
body.ui-quick-panel-adaptive #cart-modal .header-quick-panel__body,
body.ui-quick-panel-adaptive #favorites-modal .header-quick-panel__body,
body.ui-quick-panel-bottom_dock #cart-modal .header-quick-panel__body,
body.ui-quick-panel-bottom_dock #favorites-modal .header-quick-panel__body,
body.ui-quick-panel-peek_expand #cart-modal .header-quick-panel__body,
body.ui-quick-panel-peek_expand #favorites-modal .header-quick-panel__body,
body.ui-quick-panel-inline_strip #cart-modal .header-quick-panel__body,
body.ui-quick-panel-inline_strip #favorites-modal .header-quick-panel__body {
    max-height: none;
    overflow: hidden;
}

body.ui-quick-panel-adaptive .header-quick-panel[data-quick-panel-layout="sheet"] .header-quick-panel__panel {
    display: flex;
    flex-direction: column;
}

body.header-quick-panel-open {
    overflow: hidden;
}

/* Alt sabit dock — panel tabanına tam yapışık, kenardan kenara */
.header-quick-panel__dock {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.header-quick-panel__dock-bar,
.header-drawer-cart__bar,
.header-drawer-fav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 15px 16px;
    background: #111827;
    color: #fff;
    flex-shrink: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
}

.header-drawer-cart__actions,
.header-quick-panel__dock-cta {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px 16px 12px;
    background: #fff;
    flex-shrink: 0;
    border: 0;
    box-sizing: border-box;
}

.header-drawer-cart__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--ui-btn-drawer-cart-checkout-border, #111827) !important;
    border-radius: 0 !important;
    background: var(--ui-btn-drawer-cart-checkout-bg, #fff) !important;
    color: var(--ui-btn-drawer-cart-checkout-text, #111827) !important;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none !important;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-drawer-cart__checkout:hover {
    background: var(--ui-btn-drawer-cart-checkout-hover-bg, #111827) !important;
    color: var(--ui-btn-drawer-cart-checkout-hover-text, #fff) !important;
    border-color: var(--ui-btn-drawer-cart-checkout-hover-bg, #111827) !important;
}

body.ui-quick-panel-drawer .header-drawer-cart__checkout,
body.ui-quick-panel-adaptive .header-drawer-cart__checkout,
body.ui-quick-panel-bottom_dock .header-drawer-cart__checkout,
body.ui-quick-panel-peek_expand .header-drawer-cart__checkout,
body.ui-quick-panel-inline_strip .header-drawer-cart__checkout {
    background: var(--ui-btn-drawer-cart-checkout-bg, #fff) !important;
    color: var(--ui-btn-drawer-cart-checkout-text, #111827) !important;
    border: 1px solid var(--ui-btn-drawer-cart-checkout-border, #111827) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 48px !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.1em !important;
}

body.ui-quick-panel-drawer .header-drawer-cart__checkout:hover,
body.ui-quick-panel-adaptive .header-drawer-cart__checkout:hover,
body.ui-quick-panel-bottom_dock .header-drawer-cart__checkout:hover,
body.ui-quick-panel-peek_expand .header-drawer-cart__checkout:hover,
body.ui-quick-panel-inline_strip .header-drawer-cart__checkout:hover {
    background: var(--ui-btn-drawer-cart-checkout-hover-bg, #111827) !important;
    color: var(--ui-btn-drawer-cart-checkout-hover-text, #fff) !important;
    border-color: var(--ui-btn-drawer-cart-checkout-hover-bg, #111827) !important;
}

.header-drawer-cart__checkout i {
    font-size: 0.875rem;
}

.header-drawer-cart__bar-total span,
.header-drawer-fav__bar-total span {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
    line-height: 1.2;
}

.header-drawer-cart__bar-total strong,
.header-drawer-fav__bar-total strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: 3px;
    line-height: 1.2;
    color: #fff;
}

.header-drawer-cart__bar-link,
.header-drawer-fav__bar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.header-drawer-cart__bar-link:hover,
.header-drawer-fav__bar-link:hover {
    opacity: 0.88;
}

/* —— Drawer sepet satırı —— */
.header-drawer-cart,
.header-drawer-fav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.header-drawer-cart__scroll,
.header-drawer-fav__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 16px 6px;
}

.header-drawer-cart__actions,
.header-drawer-cart__bar,
.header-drawer-fav__bar {
    flex-shrink: 0;
}

.header-drawer-cart__row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 12px 14px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    align-items: start;
    background: #fff;
}

.header-drawer-cart__thumb,
.header-drawer-fav__thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    border: 0;
}

.header-drawer-cart__thumb img,
.header-drawer-fav__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.header-drawer-cart__content,
.header-drawer-fav__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-right: 4px;
}

.header-drawer-cart__head,
.header-drawer-fav__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.header-drawer-cart__title,
.header-drawer-fav__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: #111827;
}

.header-drawer-cart__title a,
.header-drawer-fav__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-drawer-cart__title a:hover,
.header-drawer-fav__title a:hover {
    color: #111827;
    text-decoration: underline;
}

.header-drawer-cart__remove,
.header-drawer-fav__remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: -4px -2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-btn-drawer-icon-remove-text, #9ca3af);
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.header-drawer-cart__remove:hover,
.header-drawer-fav__remove:hover {
    color: #e11d48;
    background: #fff1f2;
    border-radius: 8px;
}

.header-drawer-cart__price-label,
.header-drawer-fav__price-label {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6b7280;
}

.header-drawer-cart__price-label span,
.header-drawer-fav__price-label span {
    color: #111827;
    font-weight: 500;
}

.header-drawer-cart__qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.header-drawer-cart__qty-label {
    margin-right: 2px;
}

.header-drawer-cart__qty-btn {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-drawer-cart__qty-btn:hover {
    opacity: 0.65;
}

.header-drawer-cart__qty-value {
    min-width: 14px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #111827;
}

.header-drawer-cart__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: stretch;
    min-width: 68px;
    padding-bottom: 2px;
    text-align: right;
}

.header-drawer-cart__aside s {
    display: block;
    font-size: 0.6875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 3px;
    line-height: 1.2;
}

.header-drawer-cart__aside strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.header-drawer-fav__add {
    align-self: flex-start;
    margin-top: 0;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--ui-btn-drawer-favorites-add-bg, transparent) !important;
    color: var(--ui-btn-drawer-favorites-add-text, #111827) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    line-height: 1.4;
}

.header-drawer-fav__add:hover {
    opacity: 0.65;
    background: var(--ui-btn-drawer-favorites-add-hover-bg, transparent) !important;
    color: var(--ui-btn-drawer-favorites-add-hover-text, #111827) !important;
    border-color: transparent !important;
}

.header-drawer-fav__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: stretch;
    min-width: 68px;
    padding-bottom: 2px;
    text-align: right;
}

.header-drawer-fav__aside s {
    display: block;
    font-size: 0.6875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 3px;
    line-height: 1.2;
}

.header-drawer-fav__aside strong {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.header-drawer-fav__aside .price-vat-note,
.header-strip-card__price .price-vat-note {
    font-size: 10px;
    font-weight: 800;
    color: inherit;
}

/* Panel modunda tema modal buton stillerini devre dışı bırak */
body.ui-quick-panel-drawer #favorites-modal .header-drawer-fav__add.add-to-cart-from-favorite,
body.ui-quick-panel-adaptive #favorites-modal .header-drawer-fav__add.add-to-cart-from-favorite,
body.ui-quick-panel-bottom_dock #favorites-modal .header-drawer-fav__add.add-to-cart-from-favorite,
body.ui-quick-panel-peek_expand #favorites-modal .header-drawer-fav__add.add-to-cart-from-favorite,
body.ui-quick-panel-inline_strip #favorites-modal .header-drawer-fav__add.add-to-cart-from-favorite {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--ui-btn-drawer-favorites-add-bg, transparent) !important;
    color: var(--ui-btn-drawer-favorites-add-text, #111827) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

body.ui-quick-panel-drawer #favorites-modal .header-drawer-fav__remove.remove-from-favorite,
body.ui-quick-panel-adaptive #favorites-modal .header-drawer-fav__remove.remove-from-favorite,
body.ui-quick-panel-bottom_dock #favorites-modal .header-drawer-fav__remove.remove-from-favorite,
body.ui-quick-panel-peek_expand #favorites-modal .header-drawer-fav__remove.remove-from-favorite,
body.ui-quick-panel-inline_strip #favorites-modal .header-drawer-fav__remove.remove-from-favorite {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: var(--ui-btn-drawer-icon-remove-bg, transparent) !important;
    color: var(--ui-btn-drawer-icon-remove-text, #9ca3af) !important;
    font-size: 0.9375rem !important;
    width: 28px !important;
    height: 28px !important;
}

body #favorites-modal .header-drawer-fav__remove.remove-from-favorite:hover,
body #cart-modal .header-drawer-cart__remove:hover,
body.ui-quick-panel-drawer #favorites-modal .header-drawer-fav__remove.remove-from-favorite:hover,
body.ui-quick-panel-adaptive #favorites-modal .header-drawer-fav__remove.remove-from-favorite:hover,
body.ui-quick-panel-bottom_dock #favorites-modal .header-drawer-fav__remove.remove-from-favorite:hover,
body.ui-quick-panel-peek_expand #favorites-modal .header-drawer-fav__remove.remove-from-favorite:hover,
body.ui-quick-panel-inline_strip #favorites-modal .header-drawer-fav__remove.remove-from-favorite:hover,
body.ui-quick-panel-drawer #cart-modal .header-drawer-cart__remove:hover,
body.ui-quick-panel-adaptive #cart-modal .header-drawer-cart__remove:hover,
body.ui-quick-panel-bottom_dock #cart-modal .header-drawer-cart__remove:hover,
body.ui-quick-panel-peek_expand #cart-modal .header-drawer-cart__remove:hover {
    background: #fff1f2 !important;
    color: #e11d48 !important;
    border-color: transparent !important;
    border-radius: 8px !important;
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
}

.header-drawer-cart__scroll > .header-drawer-cart__row:last-child,
.header-drawer-fav__scroll > .header-drawer-fav__row:last-child {
    border-bottom: 0;
}

.header-drawer-cart__empty,
.header-drawer-fav__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    min-height: 240px;
}

.header-drawer-cart__empty-icon,
.header-drawer-fav__empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-light, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-light, #6b7280);
    font-size: 1.25rem;
}

.header-drawer-cart__empty h3,
.header-drawer-fav__empty h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.header-drawer-cart__empty p,
.header-drawer-fav__empty p {
    margin: 0 0 16px;
    color: var(--text-light, #6b7280);
    font-size: 0.875rem;
}

/* —— Drawer favori satırı —— */
.header-drawer-fav__row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 12px 14px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    align-items: start;
    background: #fff;
}

.header-drawer-fav__bar-total span {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.header-drawer-fav__bar-total strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: 3px;
    color: #fff;
}

.header-drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: var(--text-light, #6b7280);
}

@media (max-width: 768px) {
    body.ui-quick-panel-drawer .header-quick-panel__panel,
    body.ui-quick-panel-drawer #cart-modal .header-quick-panel__panel,
    body.ui-quick-panel-drawer #favorites-modal .header-quick-panel__panel {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.ui-quick-panel-drawer .header-quick-panel__head {
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
    }

    body.ui-quick-panel-drawer .header-quick-panel__panel {
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    body.ui-quick-panel-bottom_dock .header-quick-panel__panel,
    body.ui-quick-panel-peek_expand .header-quick-panel__panel {
        width: 100%;
    }

    body:not(.ui-quick-panel-inline_strip) .header-drawer-cart__row {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 0;
    }

    body:not(.ui-quick-panel-inline_strip) .header-drawer-fav__row {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 0;
    }

    body:not(.ui-quick-panel-inline_strip) .header-drawer-fav__aside {
        min-width: 58px;
    }

    body:not(.ui-quick-panel-inline_strip) .header-drawer-cart__scroll,
    body:not(.ui-quick-panel-inline_strip) .header-drawer-fav__scroll {
        padding-left: 12px;
        padding-right: 12px;
    }

    body:not(.ui-quick-panel-inline_strip) .header-drawer-cart__thumb,
    body:not(.ui-quick-panel-inline_strip) .header-drawer-fav__thumb {
        width: 68px;
        height: 68px;
    }

    body:not(.ui-quick-panel-inline_strip) .header-drawer-cart__aside {
        min-width: 58px;
    }

    body.ui-quick-panel-inline_strip #cart-modal .header-strip-card,
    body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card {
        flex: 0 0 228px !important;
        width: 228px !important;
        min-width: 228px !important;
        max-width: 228px !important;
        height: 92px !important;
    }

    body.ui-quick-panel-inline_strip .header-strip-card__media {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

/* Admin önizleme */
.quick-panel-preview {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.quick-panel-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.quick-panel-preview__box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    height: 52%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-panel-preview--drawer .quick-panel-preview__panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 38%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.12);
}

.quick-panel-preview--adaptive .quick-panel-preview__panel--side {
    position: absolute;
    right: 0;
    top: 0;
    width: 34%;
    height: 100%;
    background: #fff;
}

.quick-panel-preview--adaptive .quick-panel-preview__panel--bottom {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    background: #fff;
    border-radius: 0;
    opacity: 0.55;
}

.header-quick-panel__handle {
    display: none;
}

/* —— Alt vitrin (bottom_dock) —— */
body.ui-quick-panel-bottom_dock .header-quick-panel {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

body.ui-quick-panel-bottom_dock .header-quick-panel__dock-expand {
    display: none;
    width: 100%;
    padding: 12px 16px;
    margin: 0 0 12px;
    background: #fff;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
}

body.ui-quick-panel-bottom_dock .header-quick-panel__panel {
    width: 100%;
    max-width: min(100%, 520px);
    height: auto;
    max-height: min(72vh, 72dvh);
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.22);
    animation: headerQuickPanelSheetIn 0.32s ease;
    transition: max-height 0.28s ease;
}

body.ui-quick-panel-bottom_dock .header-quick-panel__handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto 4px;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    cursor: pointer;
    flex-shrink: 0;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__head,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__head,
body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__body,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__body {
    display: none !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel--dock-expanded .header-quick-panel__head,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel--dock-expanded .header-quick-panel__head {
    display: flex !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel--dock-expanded .header-quick-panel__body,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel--dock-expanded .header-quick-panel__body {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__panel,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__panel {
    max-height: none;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel--dock-expanded .header-quick-panel__panel,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel--dock-expanded .header-quick-panel__panel {
    max-height: min(72vh, 72dvh) !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__handle,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__handle {
    display: none !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel--dock-expanded .header-quick-panel__handle,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel--dock-expanded .header-quick-panel__handle {
    display: block !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__dock-expand,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel.open.header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__dock-expand {
    display: block !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel--dock-expanded .header-quick-panel__dock-expand,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel--dock-expanded .header-quick-panel__dock-expand {
    display: none !important;
}

body.ui-quick-panel-bottom_dock #cart-modal.header-quick-panel--dock-expanded .header-drawer-cart__scroll,
body.ui-quick-panel-bottom_dock #favorites-modal.header-quick-panel--dock-expanded .header-drawer-fav__scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(50vh, 420px);
    overflow-y: auto !important;
}

.header-quick-panel__dock-expand-btn,
.header-quick-panel__expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #f9fafb;
    color: #111827;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.header-quick-panel__dock-expand-btn:hover,
.header-quick-panel__expand-btn:hover {
    background: #f3f4f6;
}

/* —— Mini bar + genişleme (peek_expand) —— */
body.ui-quick-panel-peek_expand .header-quick-panel {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

body.ui-quick-panel-peek_expand .header-quick-panel__panel {
    width: 100%;
    max-width: min(100%, 440px);
    height: auto;
    max-height: min(88vh, 88dvh);
    margin: 0 auto !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.2);
    animation: headerQuickPanelSheetIn 0.32s ease;
    transition: max-height 0.28s ease;
}

/* Peek: kompakt panel — yalnızca son ürün + genişlet butonu */
body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-quick-panel__panel,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-quick-panel__panel {
    max-height: none;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--expanded .header-quick-panel__panel,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--expanded .header-quick-panel__panel {
    max-height: min(88vh, 88dvh);
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-cart__scroll .header-drawer-cart__row:not(:last-child),
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-fav__scroll .header-drawer-fav__row:not(:last-child) {
    display: none !important;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-cart__scroll .header-drawer-cart__row:last-child,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-fav__scroll .header-drawer-fav__row:last-child {
    display: grid !important;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-cart,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-fav {
    flex: 0 0 auto;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-cart__scroll,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-fav__scroll {
    flex: 0 0 auto;
    overflow: hidden !important;
    max-height: none;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--expanded .header-drawer-cart__scroll,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--expanded .header-drawer-fav__scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(50vh, 420px);
    overflow-y: auto !important;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-quick-panel__peek-bar,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--peek:not(.header-quick-panel--expanded) .header-quick-panel__peek-bar {
    display: block !important;
}

body.ui-quick-panel-peek_expand #cart-modal.header-quick-panel--expanded .header-quick-panel__peek-bar,
body.ui-quick-panel-peek_expand #favorites-modal.header-quick-panel--expanded .header-quick-panel__peek-bar {
    display: none !important;
}

.header-quick-panel__peek-bar {
    display: none;
    flex-shrink: 0;
    width: 100%;
    padding: 12px 16px;
    margin: 0 0 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
}

body.ui-quick-panel-bottom_dock .header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__dock,
body.ui-quick-panel-peek_expand .header-quick-panel--peek:not(.header-quick-panel--expanded) .header-quick-panel__dock {
    border-top: 0;
}

body.ui-quick-panel-bottom_dock .header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-quick-panel__dock-cta,
body.ui-quick-panel-bottom_dock .header-quick-panel--dock-collapsed:not(.header-quick-panel--dock-expanded) .header-drawer-cart__actions,
body.ui-quick-panel-peek_expand .header-quick-panel--peek:not(.header-quick-panel--expanded) .header-quick-panel__dock-cta,
body.ui-quick-panel-peek_expand .header-quick-panel--peek:not(.header-quick-panel--expanded) .header-drawer-cart__actions {
    padding-top: 4px;
}

body.ui-quick-panel-peek_expand .header-quick-panel__expand-btn {
    width: 100%;
}

@media (min-width: 769px) {
    body.ui-quick-panel-bottom_dock .header-quick-panel__panel,
    body.ui-quick-panel-peek_expand .header-quick-panel__panel {
        max-width: min(480px, 100%);
    }
}

/* —— Footer şerit (inline_strip) —— */
body.ui-quick-panel-inline_strip .header-quick-panel {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
}

body.ui-quick-panel-inline_strip .header-quick-panel.open {
    pointer-events: none;
}

body.ui-quick-panel-inline_strip .header-quick-panel__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "strip-head strip-head"
        "strip-body strip-dock";
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: min(210px, 46vh);
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.16);
    animation: headerQuickPanelStripUp 0.28s ease;
    overflow: hidden;
    background: #fff;
    pointer-events: auto;
    z-index: 10201;
}

body.ui-quick-panel-inline_strip .header-quick-panel__panel:not(:has(.header-quick-panel__dock:not([hidden]))) {
    grid-template-columns: 1fr;
    grid-template-areas:
        "strip-head"
        "strip-body";
}

@keyframes headerQuickPanelStripUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.ui-quick-panel-inline_strip .header-quick-panel__head {
    grid-area: strip-head;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
}

body.ui-quick-panel-inline_strip .header-quick-panel__title {
    font-size: 0.75rem;
}

body.ui-quick-panel-inline_strip.header-quick-panel-open {
    overflow: auto;
}

body.ui-quick-panel-inline_strip.header-quick-panel-open .page-wrapper,
body.ui-quick-panel-inline_strip.header-quick-panel-open .site-wrapper,
body.ui-quick-panel-inline_strip.header-quick-panel-open main {
    transition: margin-bottom 0.28s ease;
    margin-top: 0 !important;
}

body.ui-quick-panel-inline_strip.header-quick-panel-inline-open .page-wrapper,
body.ui-quick-panel-inline_strip.header-quick-panel-inline-open .site-wrapper,
body.ui-quick-panel-inline_strip.header-quick-panel-inline-open main {
    margin-bottom: var(--header-quick-strip-height, 0px);
}

body.ui-quick-panel-inline_strip .header-quick-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--header-quick-strip-height, 0px);
    background: rgba(15, 23, 42, 0.2);
    pointer-events: auto;
    z-index: 10200;
}

body.ui-quick-panel-inline_strip .header-quick-panel__handle {
    display: none;
}

/* Footer şerit — bağımsız kart sistemi (drawer/modal stillerinden izole) */
body.ui-quick-panel-inline_strip .header-strip-panel {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.ui-quick-panel-inline_strip #cart-modal .header-strip-card__track,
body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card__track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    max-height: none !important;
    min-height: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

body.ui-quick-panel-inline_strip #cart-modal .header-strip-card,
body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    flex: 0 0 248px !important;
    width: 248px !important;
    min-width: 248px !important;
    max-width: 248px !important;
    height: 96px !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    scroll-snap-align: start;
    position: relative;
}

body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card {
    height: 96px !important;
}

body.ui-quick-panel-inline_strip #cart-modal .header-strip-card:hover,
body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
    transform: none !important;
    background: #fff !important;
}

body.ui-quick-panel-inline_strip .header-strip-card__media {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    margin: 0;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fafafa;
    overflow: hidden;
    box-sizing: border-box;
    align-self: center;
}

body.ui-quick-panel-inline_strip .header-strip-card__thumb {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    text-decoration: none;
}

body.ui-quick-panel-inline_strip .header-strip-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

body.ui-quick-panel-inline_strip .header-strip-card__remove {
    position: static;
    top: auto;
    right: auto;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #9ca3af;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    z-index: 1;
    transform: none !important;
    animation: none !important;
}

body.ui-quick-panel-inline_strip .header-strip-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
}

body.ui-quick-panel-inline_strip .header-strip-card__head .header-strip-card__title {
    flex: 1 1 auto;
    min-width: 0;
    max-height: 2.6em;
}

body.ui-quick-panel-inline_strip .header-strip-card__remove:hover {
    color: #111827;
    background: transparent !important;
    border-color: transparent !important;
    transform: none !important;
}

body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card__remove.remove-from-favorite,
body.ui-quick-panel-inline_strip #cart-modal .header-strip-card__remove.remove-from-cart {
    background: transparent !important;
    color: #9ca3af !important;
    border: 0 !important;
    min-height: 18px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 18px !important;
    height: 18px !important;
}

body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card__remove.remove-from-favorite:hover,
body.ui-quick-panel-inline_strip #cart-modal .header-strip-card__remove.remove-from-cart:hover {
    background: transparent !important;
    color: #111827 !important;
    border-color: transparent !important;
    transform: none !important;
    animation: none !important;
}

body.ui-quick-panel-inline_strip .header-strip-card__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: 3px;
    overflow: hidden;
    padding: 1px 0;
}

body.ui-quick-panel-inline_strip .header-strip-card__title {
    margin: 0;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
    flex: 0 1 auto;
    min-height: 0;
    max-height: 2.6em;
    overflow: hidden;
}

body.ui-quick-panel-inline_strip .header-strip-card__title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

body.ui-quick-panel-inline_strip .header-strip-card__title a:hover {
    text-decoration: underline;
}

body.ui-quick-panel-inline_strip .header-strip-card__qty {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    width: 100%;
}

body.ui-quick-panel-inline_strip .header-strip-card__qty-btn {
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

body.ui-quick-panel-inline_strip .header-strip-card__qty-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

body.ui-quick-panel-inline_strip .header-strip-card__qty-value {
    min-width: 16px;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #111827;
}

body.ui-quick-panel-inline_strip .header-strip-card__price {
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
    text-align: left;
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
}

body.ui-quick-panel-inline_strip .header-strip-card__price s {
    display: block;
    font-size: 0.5625rem;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1.2;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ui-quick-panel-inline_strip .header-strip-card__price strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card__action.add-to-cart-from-favorite {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    text-align: left;
    align-self: flex-start;
    min-height: 0 !important;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none !important;
    animation: none !important;
}

body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card__action.add-to-cart-from-favorite:hover {
    opacity: 0.7;
    background: transparent !important;
    color: #111827 !important;
    border-color: transparent !important;
    transform: none !important;
    animation: none !important;
}

body.ui-quick-panel-inline_strip .header-drawer-cart__empty,
body.ui-quick-panel-inline_strip .header-drawer-fav__empty {
    min-height: 120px;
    width: 100%;
}

body.ui-quick-panel-inline_strip .header-quick-panel__body {
    grid-area: strip-body;
    min-width: 0;
    align-self: stretch;
    justify-content: center;
}

body.ui-quick-panel-inline_strip .header-quick-panel__dock {
    grid-area: strip-dock;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 176px;
    min-width: 160px;
    max-width: 192px;
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid #e5e7eb;
    background: #f9fafb;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar--fav {
    justify-content: center;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-sizing: border-box;
    transition: background 0.2s ease, opacity 0.2s ease;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__primary:hover {
    background: #000;
    color: #fff;
    opacity: 0.95;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.2;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__amount {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    opacity: 1;
}

body.ui-quick-panel-inline_strip .header-strip-sidebar__secondary i {
    font-size: 0.625rem;
    opacity: 0.7;
}

body.ui-quick-panel-inline_strip #cart-modal .header-strip-card__track,
body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card__track {
    padding-right: 10px !important;
}

@media (min-width: 640px) {
    body.ui-quick-panel-inline_strip .header-quick-panel__dock {
        width: 192px;
        min-width: 176px;
    }

    body.ui-quick-panel-inline_strip .header-strip-sidebar {
        padding: 14px;
        gap: 12px;
    }

    body.ui-quick-panel-inline_strip .header-strip-sidebar__primary {
        min-height: 42px;
        font-size: 0.6875rem;
    }

    body.ui-quick-panel-inline_strip .header-strip-sidebar__amount {
        font-size: 1.0625rem;
    }

    body.ui-quick-panel-inline_strip .header-strip-sidebar__secondary {
        font-size: 0.6875rem;
    }

    body.ui-quick-panel-inline_strip #cart-modal .header-strip-card,
    body.ui-quick-panel-inline_strip #favorites-modal .header-strip-card {
        flex: 0 0 268px !important;
        width: 268px !important;
        min-width: 268px !important;
        max-width: 268px !important;
        height: 100px !important;
    }

    body.ui-quick-panel-inline_strip .header-strip-card__media {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }
}

/* Admin önizleme — yeni modlar */
.quick-panel-preview--bottom-dock .quick-panel-preview__dock-bar {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 8%;
    height: 14%;
    background: #111827;
    border-radius: 6px 6px 0 0;
}

.quick-panel-preview--bottom-dock .quick-panel-preview__panel--dock {
    left: 12%;
    right: 12%;
    width: auto;
    height: 38%;
    border-radius: 8px 8px 0 0;
    opacity: 0.85;
}

.quick-panel-preview--peek .quick-panel-preview__panel--peek {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0;
    height: 36%;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
}

.quick-panel-preview--inline .quick-panel-preview__strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: #fff;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.1);
}

.quick-panel-preview--inline .quick-panel-preview__strip::before {
    content: '';
    position: absolute;
    top: 28%;
    left: 8%;
    width: 18%;
    height: 52%;
    background: #f1f5f9;
    border-radius: 4px;
    box-shadow: 8px 0 0 #f1f5f9, 16px 0 0 #f1f5f9, 24px 0 0 #f1f5f9;
}

.quick-panel-preview--inline .quick-panel-preview__backdrop {
    background: rgba(15, 23, 42, 0.12);
}
