/* —— Mağaza agresif mobil fix (v2) —— */

body.shop-mega-open { overflow: hidden; }

body.shop-mobile-nav-open .shop-announce-bar,
body.shop-mobile-nav-open .shop-contact-strip {
    z-index: 100;
}

body.shop-mobile-nav-open .shop-header {
    z-index: 1500;
}

/* Drawer masaüstünde yok */
.shop-mobile-drawer {
    display: none;
}

.shop-account-avatar {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--shop-primary, #163a5f);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    html, body.app-shop {
        overflow-x: hidden !important;
        max-width: 100%;
    }
    body.app-shop .shop-wrap,
    body.app-shop .shop-main {
        max-width: 100%;
        overflow-x: hidden;
    }
    body.app-shop .shop-header {
        max-width: 100%;
        overflow: visible !important;
    }
    body.app-shop .shop-container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: clamp(1rem, 4vw, 1.5rem) !important;
        padding-right: clamp(1rem, 4vw, 1.5rem) !important;
        box-sizing: border-box;
    }

    .shop-header {
        height: auto !important;
        overflow: visible !important;
        padding-top: env(safe-area-inset-top);
    }
    .shop-header-inner {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "mega logo actions"
            "search search search" !important;
        align-items: center !important;
        justify-items: stretch !important;
        gap: 0.4rem 0.45rem !important;
        padding: 0.5rem 0.7rem !important;
        min-height: 0 !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        justify-content: unset !important;
    }
    .shop-header-left {
        display: contents !important;
    }
    .shop-logo,
    .brand-logo--shop {
        grid-area: logo !important;
        justify-self: center !important;
        align-self: center !important;
        text-align: center !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        order: unset !important;
    }
    .brand-logo--shop .brand-logo-text {
        display: none !important;
    }
    .brand-logo--shop .brand-logo-img {
        height: 42px !important;
        max-height: 42px !important;
        max-width: min(168px, 42vw) !important;
        width: auto !important;
        background: transparent !important;
    }
    .shop-logo-icon,
    .brand-logo-mark,
    .brand-wordmark {
        display: none !important;
    }

    .shop-mega {
        grid-area: mega !important;
        position: relative;
        flex-shrink: 0;
        justify-self: start !important;
        align-self: center !important;
        order: unset !important;
    }
    .shop-mega-btn-label,
    .shop-mega-btn-chevron { display: none !important; }
    .shop-mega-btn-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }
    .shop-mega-btn-icon svg {
        display: block;
        width: 18px;
        height: 18px;
    }
    .shop-mega-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 11px !important;
        overflow: hidden;
        box-sizing: border-box !important;
        line-height: 0 !important;
        background: #0f172a !important;
        box-shadow: none !important;
    }
    .shop-mega-btn[aria-expanded="true"] {
        background: var(--shop-primary) !important;
    }

    .shop-search {
        grid-area: search !important;
        order: unset !important;
        max-width: none !important;
        width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 0.4rem 0 0.85rem !important;
        box-sizing: border-box !important;
        justify-self: stretch !important;
    }
    .shop-search input {
        font-size: 0.88rem !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .shop-search button {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
    }
    .shop-search button svg {
        width: 16px;
        height: 16px;
        display: block;
    }

    .shop-actions {
        grid-area: actions !important;
        order: unset !important;
        justify-self: end !important;
        align-self: center !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        max-width: 100%;
        gap: 0.3rem !important;
        min-width: 0 !important;
        overflow: visible;
    }

    /* Siparişler hesabın içinde — mobilde yer aç; misafir giriş kalsın */
    .shop-action.shop-action--orders {
        display: none !important;
    }
    .shop-action.shop-action--login,
    .shop-action.shop-action--register {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 10px !important;
        gap: 0 !important;
    }
    .shop-action.shop-action--login .shop-action-label,
    .shop-action.shop-action--register .shop-action-label {
        display: none !important;
    }
    .shop-action:not(.shop-action--login):not(.shop-action--register):not(.shop-action--orders) {
        display: none !important;
    }

    .shop-credit-pill {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 0.45rem !important;
        max-width: 5.5rem !important;
        min-width: 0 !important;
        border-radius: 9px !important;
        gap: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
        transform: none !important;
    }
    .shop-credit-pill-text {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .shop-credit-pill-label {
        display: none !important;
    }
    .shop-credit-pill-value {
        display: block !important;
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .shop-account {
        position: relative;
        flex-shrink: 0 !important;
    }
    .shop-account-name,
    .shop-account-btn .shop-chevron { display: none !important; }
    .shop-account-avatar {
        display: inline-flex !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
    }
    .shop-account-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        max-width: 36px !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        line-height: 0 !important;
        flex-shrink: 0 !important;
    }

    .shop-cart {
        position: relative !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        gap: 0 !important;
        line-height: 0 !important;
        min-height: 0 !important;
    }
    .shop-cart-label { display: none !important; }
    .shop-cart-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }
    .shop-cart-icon svg,
    .shop-cart .icon-svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }
    .shop-cart-count {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        min-width: 1.05rem !important;
        height: 1.05rem !important;
        font-size: 0.62rem !important;
        padding: 0 0.15rem !important;
        z-index: 2;
    }
    .shop-fav-link {
        position: relative !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        gap: 0 !important;
        line-height: 0 !important;
    }
    .shop-fav-link-label { display: none !important; }
    .shop-fav-link-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }
    .shop-fav-link-icon svg,
    .shop-fav-link .icon-svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }
    .shop-fav-count {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        min-width: 1.05rem !important;
        height: 1.05rem !important;
        font-size: 0.62rem !important;
        padding: 0 0.15rem !important;
        z-index: 2;
    }
    .shop-mobile-toggle { display: none !important; }

    .shop-mega-panel {
        display: none !important;
    }
    .shop-mega-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        top: 0;
        z-index: 1350;
        background: rgba(15, 23, 42, 0.48);
        border: 0;
        margin: 0;
        padding: 0;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .shop-mega-backdrop[hidden] {
        display: none !important;
    }

    /* Header chrome drawer üstünde kalsın (hamburger/sepet tıklanabilsin) */
    body.shop-mobile-nav-open .shop-header,
    body.shop-mega-open .shop-header {
        z-index: 1500;
    }
    body.shop-mobile-nav-open .shop-header-inner,
    body.shop-mega-open .shop-header-inner {
        position: relative;
        z-index: 1510;
    }

    /* —— Sol menü drawer —— */
    .shop-mega-backdrop {
        opacity: 0;
        transition: opacity 0.28s ease;
        background: rgba(15, 23, 42, 0.52);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    body.shop-mobile-nav-open .shop-mega-backdrop:not([hidden]),
    body.shop-mega-open .shop-mega-backdrop:not([hidden]) {
        opacity: 1;
    }

    .shop-mobile-drawer {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1520;
        width: min(322px, 88vw);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding-left: env(safe-area-inset-left);
        background: #fff;
        border-radius: 0 22px 22px 0;
        box-shadow: 20px 0 56px rgba(15, 23, 42, 0.32);
        transform: translateX(-108%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        flex-direction: column;
        visibility: hidden;
        pointer-events: none;
        overflow: hidden;
    }
    .shop-mobile-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .shop-mobile-drawer[hidden]:not(.is-open) {
        display: flex !important;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-108%);
    }
    .shop-mobile-drawer-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        flex: 1 1 auto;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 28%);
        overflow: hidden;
    }
    .shop-mobile-drawer-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: calc(1.05rem + env(safe-area-inset-top)) 1rem 1.15rem;
        background:
            linear-gradient(90deg, #f97316 0%, #fb923c 38%, transparent 38%),
            linear-gradient(145deg, #0b1220 0%, #152238 48%, #1e3a5f 100%);
        background-size: 100% 3px, auto;
        background-position: bottom left, center;
        background-repeat: no-repeat;
        flex-shrink: 0;
    }
    .shop-mobile-drawer-brand {
        min-width: 0;
        padding-top: 0.2rem;
    }
    .shop-mobile-drawer-brand-name {
        display: block;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.02em;
        line-height: 1.15;
    }
    .shop-mobile-drawer-brand-sub {
        display: block;
        margin-top: 0.35rem;
        font-size: 0.76rem;
        color: rgba(255, 255, 255, 0.72);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 14.5rem;
        font-weight: 500;
    }
    .shop-mobile-drawer-mark,
    .shop-mobile-drawer-mark-img,
    .brand-wordmark {
        display: none !important;
    }
    .shop-mobile-drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        padding: 0;
        line-height: 0;
        transition: background 0.15s ease;
    }
    .shop-mobile-drawer-close:active {
        background: rgba(255, 255, 255, 0.2);
    }

    .shop-mobile-drawer-balance {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin: 0.9rem 0.9rem 0;
        padding: 0.9rem 1rem;
        border-radius: 16px;
        text-decoration: none;
        background: #fff;
        border: 1px solid #e8eef5;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
        flex-shrink: 0;
    }
    .shop-mobile-drawer-balance-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #94a3b8;
    }
    .shop-mobile-drawer-balance-value {
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.02em;
    }
    .shop-mobile-drawer-balance.is-positive .shop-mobile-drawer-balance-value { color: #059669; }
    .shop-mobile-drawer-balance.is-negative .shop-mobile-drawer-balance-value { color: #dc2626; }

    .shop-mobile-drawer-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.85rem 0.9rem 1.35rem;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
    .shop-mobile-drawer-label {
        margin: 1.05rem 0.2rem 0.5rem;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #94a3b8;
    }
    .shop-mobile-drawer-label:first-child {
        margin-top: 0.2rem;
    }
    .shop-mobile-drawer-links {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.35rem;
        border-radius: 18px;
        background: #fff;
        border: 1px solid #e8eef5;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }
    .shop-mobile-drawer-link {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.72rem 0.7rem;
        border-radius: 14px;
        text-decoration: none;
        color: #0f172a;
        font-size: 0.94rem;
        font-weight: 600;
        line-height: 1.2;
        background: transparent;
        border: 1px solid transparent;
        transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
    }
    .shop-mobile-drawer-link:active {
        background: #f1f5f9;
        border-color: #e2e8f0;
        color: #0f172a;
        transform: scale(0.985);
    }
    .shop-mobile-drawer-link--muted {
        color: #64748b;
        cursor: default;
        pointer-events: none;
    }
    .shop-mobile-drawer-link--muted:active {
        background: transparent;
        border-color: transparent;
        color: #64748b;
        transform: none;
    }
    .shop-mobile-drawer-rep {
        margin-top: 0.75rem;
        padding: 0 0.15rem;
    }
    .shop-mobile-drawer-rep-card {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.85rem 1rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }
    .shop-mobile-drawer-rep-card strong {
        font-size: 0.92rem;
        letter-spacing: 0.02em;
        color: #0f172a;
    }
    .shop-mobile-drawer-rep-card a {
        font-size: 0.84rem;
        color: #334155 !important;
        text-decoration: none;
    }
    .shop-mobile-drawer-ico {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
        color: #1d4ed8;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        line-height: 0;
        box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
    }
    .shop-mobile-drawer-ico svg {
        display: block;
    }
    .shop-mobile-drawer-link-text {
        flex: 1 1 auto;
        min-width: 0;
    }
    .shop-mobile-drawer-chevron {
        color: #cbd5e1;
        font-size: 1.2rem;
        font-weight: 400;
        line-height: 1;
        flex-shrink: 0;
    }
    .shop-mobile-drawer-link em {
        font-style: normal;
        font-size: 0.72rem;
        font-weight: 800;
        min-width: 1.35rem;
        height: 1.35rem;
        padding: 0 0.35rem;
        border-radius: 999px;
        background: #f97316;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
    }

    .shop-mobile-drawer-cats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .shop-mobile-drawer-cat {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.85rem 0.75rem;
        border-radius: 14px;
        text-decoration: none;
        color: #0f172a;
        background: #fff;
        border: 1px solid #e8eef5;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
        min-width: 0;
        position: relative;
        overflow: hidden;
    }
    .shop-mobile-drawer-cat::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, #f97316, #2563eb);
        opacity: 0.85;
    }
    .shop-mobile-drawer-cat span {
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.25;
        word-break: break-word;
        padding-left: 0.2rem;
    }
    .shop-mobile-drawer-cat small {
        font-size: 0.68rem;
        color: #64748b;
        font-weight: 500;
        padding-left: 0.2rem;
    }
    .shop-mobile-drawer-cat:active {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .shop-mobile-drawer-foot {
        flex-shrink: 0;
        padding: 0.85rem 0.9rem calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid #e8eef5;
        background: rgba(255, 255, 255, 0.96);
    }
    .shop-mobile-drawer-logout {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        width: 100%;
        min-height: 48px;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.92rem;
        color: #b91c1c;
        background: #fef2f2;
        border: 1px solid #fecaca;
        transition: background 0.12s ease, transform 0.12s ease;
    }
    .shop-mobile-drawer-logout:active {
        background: #fee2e2;
        transform: scale(0.985);
    }

    /* Katalog filtre — sol panel */
    .catalog-filters {
        border-radius: 0 22px 22px 0 !important;
        padding: calc(1rem + env(safe-area-inset-top)) 1rem 0 !important;
        background: linear-gradient(180deg, #f8fafc 0%, #fff 24%) !important;
        box-shadow: 20px 0 56px rgba(15, 23, 42, 0.3) !important;
        width: min(322px, 88vw) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    .catalog-filters-head {
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.85rem !important;
        border-bottom: 1px solid #e8eef5;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }
    .catalog-filters-head h2 {
        font-size: 1.1rem !important;
        letter-spacing: -0.02em;
        margin: 0 !important;
    }
    .catalog-filters-head-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-shrink: 0;
    }
    .catalog-filters-close {
        display: inline-flex;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 10px;
        background: #f1f5f9;
        color: #0f172a;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        line-height: 0;
        padding: 0;
        flex-shrink: 0;
    }
    .catalog-filters-close svg {
        display: block;
    }
    .catalog-filters-form {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }
    .catalog-filters-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding-right: 0.15rem;
        padding-bottom: 0.5rem;
    }
    .catalog-filters-foot {
        flex-shrink: 0;
        padding: 0.75rem 0 calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid #e8eef5;
        background: #fff;
    }
    .catalog-filters-foot .catalog-filter-submit {
        margin: 0 !important;
    }
    .catalog-filter-block {
        margin-bottom: 0.85rem !important;
        padding: 0.8rem !important;
        background: #fff;
        border-radius: 14px;
        border: 1px solid #e8eef5;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    }
    .catalog-filter-link {
        border-radius: 10px !important;
        padding: 0.55rem 0.65rem !important;
    }
    .catalog-filter-submit {
        width: 100% !important;
        min-height: 48px !important;
        border-radius: 14px !important;
        font-weight: 700 !important;
    }

    body.shop-mobile-nav-open {
        overflow: hidden !important;
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
    }
    .shop-grid.shop-grid--catalog {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-template-columns: none !important;
        gap: 0.55rem !important;
    }
    .shop-grid.shop-grid--catalog > .shop-product {
        flex: 0 0 calc((100% - 0.55rem) / 2) !important;
        width: calc((100% - 0.55rem) / 2) !important;
        min-width: 0 !important;
        max-width: calc((100% - 0.55rem) / 2) !important;
    }
    .shop-product {
        min-width: 0;
        overflow: hidden;
    }
    .shop-product-actions {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem !important;
    }
    .shop-product .btn-add-cart--card,
    .shop-product .shop-qty {
        width: 100% !important;
        flex: none !important;
    }
    .shop-product .btn-add-cart--card {
        min-height: 40px !important;
        white-space: nowrap !important;
        font-size: 0.8rem !important;
    }
    .shop-qty { justify-content: space-between; }
    .shop-product-pricing { min-width: 0; }
    .shop-product-price-current { font-size: 1rem !important; }
    .shop-product-price-old { font-size: 1.12rem !important; font-weight: 700; color: #c2410c !important; }
    .shop-product-price-label { font-size: 0.58rem; }
    .shop-product-deal {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.12rem !important;
        width: 100%;
        box-sizing: border-box;
    }
    .shop-product-deal strong,
    .shop-product-price-current,
    .shop-product-price-old,
    .shop-pdp-price .shop-product-price-current {
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }
    .shop-product-deal strong {
        font-size: 0.92rem !important;
        line-height: 1.2 !important;
    }

    body.app-shop .shop-order-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        width: 100%;
        border: 0 !important;
        margin-bottom: 1rem !important;
    }
    body.app-shop .shop-order-filter {
        flex: 0 0 auto;
        padding: 0.42rem 0.8rem !important;
        min-height: 2rem;
    }

    body.app-shop .tabs,
    body.app-shop .shop-grade-bar,
    body.app-shop .shop-filter-pills {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 0.35rem !important;
        width: 100%;
    }
    body.app-shop .tab {
        border-radius: 999px !important;
        border: 1px solid var(--shop-border);
        padding: 0.4rem 0.7rem !important;
        white-space: nowrap;
    }

    .order-detail-hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .order-detail-page,
    .order-detail-hero,
    .order-detail-grid {
        max-width: 100%;
        overflow: hidden;
    }
    .order-line-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.55rem !important;
    }
    .cart-page-layout,
    .checkout-layout {
        grid-template-columns: 1fr !important;
    }
    .cart-page-aside { order: 0 !important; }

    /* Sepet satırı: görsel solda, metin sağda — üst üste binmesin */
    .cart-line {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) !important;
        gap: 0.75rem !important;
        align-items: start !important;
        padding: 0.9rem 0.85rem !important;
        flex-direction: unset !important;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .cart-line-media {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        aspect-ratio: 1 !important;
        flex-shrink: 0 !important;
        position: relative;
        z-index: 0;
        align-self: start;
        overflow: hidden;
    }
    .cart-line-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    .cart-line-body {
        min-width: 0 !important;
        max-width: 100%;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
    .cart-line-top {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        margin-bottom: 0.65rem !important;
    }
    .cart-line-top > div {
        min-width: 0 !important;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .cart-line-name {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden !important;
        text-overflow: ellipsis;
        word-break: break-word;
        overflow-wrap: anywhere;
        position: static !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        max-width: 100%;
    }
    .cart-line-sku {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    .cart-line-remove {
        flex-shrink: 0 !important;
    }
    .cart-line-bottom {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.55rem !important;
    }
    .cart-line-prices {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .cart-qty {
        width: 100%;
        justify-content: space-between;
        max-width: 160px;
    }
    .cart-mobile-bar {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    }

    .mobile-card-list { gap: 0.65rem; }
    .mobile-card { min-width: 0; overflow: hidden; }
    .mobile-card-meta,
    .mobile-card-meta--inline {
        grid-template-columns: 1fr !important;
    }
    .mobile-card-actions {
        flex-direction: column !important;
    }
    .mobile-card-actions .btn,
    .mobile-card-actions .admin-btn {
        width: 100% !important;
        justify-content: center;
    }

    .shop-account-menu {
        position: fixed !important;
        right: 0.65rem !important;
        left: auto !important;
        top: calc(var(--shop-header-offset, var(--shop-header-h, 110px)) + 0.25rem) !important;
        width: min(280px, calc(100vw - 1.3rem)) !important;
        max-width: calc(100vw - 1.3rem) !important;
        z-index: 1300 !important;
    }

    .shop-brand-marquee-track {
        animation: none !important;
        transform: none !important;
    }
    .shop-brand-marquee-viewport {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .shop-footer-inner {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .shop-footer-grid,
    .shop-footer-trust {
        grid-template-columns: 1fr !important;
    }

    :root { --shop-header-h: 110px; }
}

@media (max-width: 640px) {
    .order-detail-hero-stats {
        grid-template-columns: 1fr !important;
    }
    .shop-pdp,
    .shop-pdp-info,
    .shop-pdp-gallery {
        width: 100%;
        max-width: 100%;
    }
    .shop-pdp-buy {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .shop-pdp-buy .shop-qty,
    .shop-pdp-buy .btn-add-cart--lg {
        width: 100% !important;
    }
    .shop-breadcrumb { overflow-wrap: anywhere; }
    .ledger-summary {
        grid-template-columns: 1fr !important;
    }
    body.app-shop .table-wrap,
    body.app-shop .admin-table-wrap {
        overflow-x: visible !important;
    }
}

@media (max-width: 380px) {
    .shop-credit-pill { display: none !important; }
    .shop-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem !important;
    }
}
