:root {
    --primary: #1d4ed8;
    --primary-2: #2563eb;
    --accent: #f59e0b;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --border: rgba(2,6,23,.08);
    --shadow: 0 10px 30px rgba(2,6,23,.08);

    --page-bg: var(--bg, #f6f7fb);
    --header-h: 70px;
    --cat-bar-h: 56px;
    --content-max: 1100px;
}

/* ========== GENEL ========== */
body {
    font-family: sans-serif;
    background: var(--page-bg);
    min-height: 100vh;
}

/* ========== ÜST BAR ========== */
.v1-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 86;
    background: color-mix(in srgb, var(--page-bg) 86%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.v1-sticky-shell.is-scrolled {
    box-shadow: 0 16px 34px rgba(2,6,23,.16);
    border-bottom: 1px solid rgba(15,23,42,.08);
    background: color-mix(in srgb, var(--page-bg) 92%, transparent);
}
#v1StickySpacer{display:none;height:0;pointer-events:none;}
.v1-sticky-shell.is-fixed{position:fixed;top:0;left:0;right:0;width:100%;z-index:96;}
.v1-sticky-shell.is-fixed + #v1StickySpacer{display:block;}
.topbar {
    height: var(--header-h);
    position: relative;
    top: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
    position: relative;
    max-width: var(--content-max);
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* logo + başlık ortalı */
    gap: 12px;
    padding: 0 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-box img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    border-radius: 12px;
}

.topbar-texts {
    line-height: 1.05;
    text-align: left;
}

.topbar-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
}

.topbar-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: capitalize;
    margin-top: .05rem;
}

/* sağdaki bilgi butonu */
.topbar-info--soft,
.topbar-info {
    position: absolute;
    right: 1rem;
    border-radius: 12px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background .12s ease, transform .12s ease;
}
.topbar-info--soft:hover,
.topbar-info:hover {
    transform: translateY(1px);
}

/* ========== KATEGORİ BAR ========== */
.cat-bar {
    position: relative;
    top: auto;
    z-index: 1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.cat-bar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: .6rem 1rem .7rem;
    scrollbar-width: thin;  /* Firefox */
}

/* Kategori butonları */
.cat-pill {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    border-radius: 9999px;
    padding: .5rem 1.6rem;
    font-size: .78rem;
    text-transform: none;
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: transparent;
    color: rgba(15, 23, 42, 0.7);
    transition: .12s ease;
    backdrop-filter: blur(2px);
}
.cat-pill:hover {
    border-color: rgba(15, 23, 42, 0.22);
    color: rgba(15, 23, 42, 1);
}
.cat-pill.active {
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.22);
}

/* ========== SAYFA / İÇERİK ========== */
.menu-search-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 16px 12px;
}
.page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1rem 1rem 4rem;
}
.category-block {
    margin-bottom: 1.5rem;
}
.cat-title {
    max-width: 980px;
    margin: 1rem auto .5rem;
    font-family: "Cormorant Garamond","Georgia","Times New Roman",serif;
    font-size: 1.05rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: center;
}
.product-list {
    max-width: 980px;
    margin: 0 auto;
}

/* ========== ÜRÜN KARTI ========== */
.product-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-radius: 18px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.02);
    box-shadow: 0 5px 20px rgba(0,0,0,.015);
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
}
.product-line:hover {
    transform: translateY(-2px);
}

.product-left {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.product-left.no-thumb {
    padding-left: 10px;
}

.product-left.no-thumb .product-name,
.product-left.no-thumb .product-desc-inline {
    line-height: 1.2;
}

.product-thumb-inline {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f3f3f3;
    object-fit: cover;
    flex: 0 0 60px;
}

.product-name {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc-inline {
    font-size: .7rem;
    margin-top: .25rem;
}

.product-price {
    font-weight: 600;
    white-space: nowrap;
    font-size: .9rem;
    align-self: center;
    padding-right: .25rem;
}

.empty-line {
    border-radius: 12px;
    padding: .5rem .75rem;
    font-size: .7rem;
}

/* ========== PAYLAŞ FAB ========== */
.share-fab {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1200;
    transition: transform .15s ease, box-shadow .15s ease;
}
.share-fab:hover {
    transform: translateY(-2px);
}
.share-fab:active {
    transform: scale(.94);
}

.share-panel {
    position: fixed;
    bottom: 1.25rem;
    right: 4.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    padding: .5rem;
    display: none;
    flex-direction: column;
    gap: .35rem;
    z-index: 1199;
    min-width: 160px;
}
.share-panel.open {
    display: flex;
}
.share-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .5rem;
    font-size: .75rem;
    border-radius: .5rem;
    transition: background .12s ease, transform .12s ease;
}
.share-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

/* ========== BİLGİ PANELİ (DRAWER) ========== */
.info-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    box-shadow: -8px 0 30px rgba(0,0,0,.08);
    z-index: 100;
    transition: right .22s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.info-drawer.open {
    right: 0;
}

.info-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.04);
    font-weight: 600;
}
.info-drawer__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}
.info-drawer__body {
    padding: 1rem;
    overflow-y: auto;
}
.info-drawer__actions {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}
.info-btn {
    border-radius: .75rem;
    padding: .4rem .7rem;
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}
.info-card {
    border-radius: .75rem;
    padding: .6rem .6rem .1rem;
}
.info-card__title {
    font-weight: 600;
    font-size: .78rem;
    margin-bottom: .5rem;
}
.info-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .45rem;
}
.info-label {
    font-size: .7rem;
    font-weight: 500;
}
.info-value {
    font-size: .7rem;
    border-radius: .4rem;
    padding: .1rem .4rem;
}
.copy-btn {
    font-size: .65rem;
    border-radius: .4rem;
    padding: .2rem .5rem;
    margin-left: auto;
    cursor: pointer;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.modal-overlay.is-open{
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    border-radius: 20px;
    max-width: 520px;
    width: min(520px, 100%);
    padding: 0;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 28px 90px rgba(0,0,0,.35);
    color: var(--text);
    transform: translateY(10px) scale(.985);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 760px);
    overflow: hidden;
}
.modal-overlay.is-open .modal-box{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-head {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 12px 12px 0;
    position: relative;
    z-index: 4;
}
.modal-close {
    position: relative;
    top: auto;
    right: auto;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}
.modal-close:focus{outline:2px solid rgba(52,211,153,.45); outline-offset:2px;}
.modal-img-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--surface2);
    border: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px 14px;
    min-height: 0;
    border-radius: 0;
}
.modal-img-wrap img {
    width: 100%;
    display: block;
    max-height: 42vh;
    object-fit: contain;
    aspect-ratio: auto;
    border-radius: 14px;
    background: transparent;
    border: 0 !important;
    padding: 0 !important;
}

.modal-title{
    font-family: var(--qrfont-heading, inherit);
    color: var(--heading);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .02em;
}
.modal-desc{
    color: var(--muted);
    white-space: pre-line;
    line-height: 1.45;
}
.modal-price{
    font-family: var(--qrfont-heading, inherit);
    color: var(--primary);
    font-weight: 900;
}
.modal-badges{
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}
.modal-stack{align-items:stretch;gap:0;padding-top:0;}
.modal-center,.modal-copy,.modal-divider{width:100%;text-align:left;}
.modal-center{padding:14px 16px 0;}
.modal-copy{padding:10px 16px 0;}
.modal-desc{max-width:none;margin:0;text-align:left;}
.modal-divider{padding:8px 16px 0;}
.modal-price{display:inline-flex;justify-content:flex-start;width:100%;font-size:1.15rem;}
.modal-stack > .qr-pm-wrap{padding:10px 16px 18px;margin-top:0;}

@media (prefers-reduced-motion: reduce) {
    .modal-overlay{transition:none;}
    .modal-box{transition:none;}
}

/* ========== MENÜ SECTIONS ========== */
.menu-section {
    display: none;
}
.menu-section.is-active {
    display: block;
    animation: catFade .15s ease;
}
@keyframes catFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BLUR / BACKDROP ========== */
.body-blur {
    filter: blur(2px);
    pointer-events: none;
}
.main-shell-blur {
    filter: blur(2.5px);
    transition: filter .15s ease;
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 99;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .topbar-inner,
    .cat-bar-inner,
    .page {
        max-width: 100%;
    }
    .product-list,
    .cat-title {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .share-panel {
        right: 1.25rem;
        bottom: 4.7rem;
    }
    .info-drawer {
        width: 90%;
        right: -100%;
    }
    .info-drawer.open {
        right: 0;
        box-shadow: -12px 0 40px rgba(0,0,0,0.9);
    }
}

@media (max-width: 480px) {
    .topbar-info--soft {
        right: 4px !important;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .topbar-inner {
        padding-right: 50px;
    }
}

/* ========== DİNAMİK TEMA RENKLERİ ========== */

body {
    background: var(--pratix-bg-deep);
    color: var(--pratix-text);
}

.topbar {
    background: var(--pratix-bg-deep);
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.logo-box {
    background: var(--pratix-bg-deep);
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.topbar-title {
    color: var(--pratix-gold);
}

.topbar-subtitle {
    color: var(--pratix-text);
    opacity: 0.75;
}

/* bilgi butonu renkleri */
.topbar-info,
.topbar-info--soft {
    color: var(--pratix-gold);
    border-color: var(--pratix-gold);
}
.topbar-info:hover,
.topbar-info--soft:hover {
    background: rgba(0,0,0,0.18);
}

/* kategori bar & scrollbar */
.cat-bar {
    background: var(--pratix-panel);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.35);
}

/* sadece bu scrollbara renk veriyoruz */
.cat-bar-inner::-webkit-scrollbar {
    height: 6px;
}
.cat-bar-inner::-webkit-scrollbar-track {
    background: var(--pratix-panel);          /* kart arka planı ile aynı */
    border-radius: 999px;
}
.cat-bar-inner::-webkit-scrollbar-thumb {
    background: var(--pratix-gold-soft);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

/* kategori buton renkleri */
.cat-pill {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.78);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .7rem;
}
.cat-pill:hover {
    border-color: var(--pratix-gold);
    color: #fff;
}
.cat-pill.active {
    background: var(--pratix-gold);
    border-color: var(--pratix-gold);
    color: var(--pratix-bg-deep);
    box-shadow: 0 8px 26px rgba(0,0,0,0.75);
}

/* kart & yazı renkleri */
.cat-title {
    color: var(--pratix-gold);
}

.product-line {
    background: var(--pratix-panel);
    border: 1px solid transparent;
    box-shadow: 0 12px 36px rgba(0,0,0,0.65);
}
.product-line:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.85);
}

.product-thumb-inline {
    background: #1a252f;
}
.product-name {
    color: var(--pratix-text);
    font-weight: 500;
}
.product-desc-inline {
    color: rgba(255,255,255,0.6);
}
.product-price {
    color: var(--pratix-gold);
    font-weight: 600;
}

.empty-line {
    background: var(--pratix-panel);
    border: 1px solid rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.7);
}

/* bilgi paneli & butonlar */
.info-drawer {
    background: var(--pratix-bg-deep);
    box-shadow: none;
}
.info-drawer__header {
    border-bottom: 1px solid rgba(0,0,0,0.55);
    color: var(--pratix-text);
}
.info-card {
    background: var(--pratix-panel);
    border-radius: 1rem;
}
.info-card__title {
    color: var(--pratix-gold);
}
.info-btn {
    background: #111a23;
    color: var(--pratix-gold);
}
.info-btn:hover {
    background: #182330;
}

/* paylaş butonu ve modal renkleri */
.share-fab {
    background: var(--pratix-gold);
    color: var(--pratix-bg-deep);
}
.share-fab:hover {
    box-shadow: 0 14px 30px rgba(0,0,0,0.9);
}

.modal-box {
    background: var(--pratix-bg-deep);
    border: 1px solid rgba(0,0,0,0.55);
}
.modal-img-wrap {
    background: #111920;
}
#productViewName {
    color: var(--pratix-gold) !important;
}
#productViewPrice {
    color: var(--pratix-gold-soft) !important;
}

/* ürün görseli boşsa gizle */
#productViewImage:empty,
#productViewImage[src=""] {
    display: none;
}
/* Kategori scroll bar track tamamen transparan */
.cat-bar-inner::-webkit-scrollbar-track {
    background: transparent !important;
}

/* ============================
   KATEGORİ BAR SCROLLBAR OVERRIDE
   ============================ */

/* Sadece kategori barı içindeki scrollbara uygula */
.cat-bar .cat-bar-inner {
    scrollbar-width: thin;
}

/* Webkit (Chrome / Edge / Safari) */
.cat-bar .cat-bar-inner::-webkit-scrollbar {
    height: 6px;
}

/* TRACK = kart arka planı */
.cat-bar .cat-bar-inner::-webkit-scrollbar-track {
    background: var(--pratix-panel) !important;
    border-radius: 999px;
}

/* THUMB = primary vurgu rengi */
.cat-bar .cat-bar-inner::-webkit-scrollbar-thumb {
    background: var(--pratix-gold-soft) !important;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.25);
}

/* Firefox için aynı renkler */
.cat-bar .cat-bar-inner {
    scrollbar-color: var(--pratix-gold-soft) var(--pratix-panel);
}

/* Info butonları tamamen dinamik tema ile uyumlu olsun */
.info-btn {
    background: var(--pratix-panel);
    color: var(--pratix-gold);
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: .75rem;
    padding: .4rem .7rem;
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.info-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--pratix-gold);
    color: #fff;
}


/* Drawer kapalıyken görünmez */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 90; /* Drawer’dan bir tık altta */
}

/* Drawer açıldığında aktif olsun */
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}


/* --- FIXES: image height + no horizontal scroll --- */
html, body { overflow-x: hidden; }
.v2-container { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.v2-catcard { height: 132px; } /* ensure the image has a box to render into */
.v2-catimg { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px){
  .v2-container{ padding-left: 12px; padding-right: 12px; }
  .v2-catcard{ height: 110px; }
}


/* --- Fix category thumb rendering (0px issue) --- */
.v2-catcard { height: 92px; }
@media (max-width: 640px){ .v2-catcard{ height: 86px; } }
.v2-catcard img{ width:100%; height:100%; object-fit:cover; display:block; }
.v2-catcard-inner{ height:100%; }

/* --- Palette mapping --- */
.v2-shell{ background: var(--page-bg); color: var(--text); }
.v2-top h1{ color: var(--text); }
.v2-top p{ color: var(--muted); }
.v2-info-btn{ background: var(--card); border:1px solid var(--border); }
.v2-pill{ background: var(--primary); color:#fff; }
.v2-price{ color: var(--primary); }
.v2-product{ background: var(--card); box-shadow: var(--shadow); border:1px solid var(--border); }
.v2-catname{ color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.35); }

/* Product model meta */
.qr-pm-wrap{margin-top:14px;text-align:left;display:none}
.qr-pm-topline{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px 0}
.qr-pm-flag,.qr-pm-state{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#f8fafc;border:1px solid rgba(15,23,42,.08);color:#334155}
.qr-pm-flag{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.qr-pm-note{font-size:13px;line-height:1.45;color:#64748b;margin:0 0 10px 0}
.qr-pm-block{margin-top:12px}
.qr-pm-title{font-size:12px;font-weight:800;letter-spacing:.02em;color:#0f172a;margin-bottom:6px;text-transform:uppercase}
.qr-pm-title small{text-transform:none;font-size:11px;color:#64748b}
.qr-pm-chiprow{display:flex;flex-wrap:wrap;gap:6px}
.qr-pm-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);font-size:12px;color:#334155}
.qr-pm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.qr-pm-list li{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#334155;background:#f8fafc;border-radius:12px;padding:8px 10px}
.qr-pm-list strong{font-weight:800;color:#0f172a}
.qr-inline-note{margin-top:6px;font-size:11px;line-height:1.4;color:#64748b}
.qr-inline-flags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.qr-inline-flag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:11px;font-weight:700}


/* Semantic token cleanup + modal polish */
.product-thumb-inline,
.modal-img-wrap,
.v2-pimg,
.v3-imgwrap,
.pm-banner,
.v3-modal-image-wrap{
  background: var(--qrimage-stage) !important;
  border-color: var(--qrimage-border) !important;
}

.product-thumb-inline img,
.modal-img-wrap img,
.v2-pimg img,
.v3-product-img,
.pm-img,
.v3-modal-image-wrap img{
  background: var(--qrimage-panel) !important;
  border: 1px solid var(--qrimage-border);
  box-sizing: border-box;
}

.qr-pm-flag,
.qr-pm-state,
.qr-inline-flag,
.qr-pm-chip,
.qr-pm-list li{
  border: 1px solid var(--qrchip-border);
}

.qr-pm-flag,
.qr-pm-flag--promo,
.qr-inline-flag--promo{
  background: var(--qrpromo-bg) !important;
  color: var(--qrpromo-text) !important;
  border-color: var(--qrpromo-border) !important;
}

.qr-pm-state,
.qr-pm-state--state,
.qr-inline-flag--soldout{
  background: var(--qrstate-bg) !important;
  color: var(--qrstate-text) !important;
  border-color: var(--qrstate-border) !important;
}

.qr-pm-chip,
.qr-pm-list li{
  background: var(--qrchip-bg) !important;
  color: var(--qrchip-text) !important;
  border-color: var(--qrchip-border) !important;
}

.qr-inline-flag{
  font-weight: 800;
}

.modal-box,
.pm-card,
.v3-modal,
.theme-v4 .v4-modal{
  box-shadow: var(--qr-modal-shadow, 0 28px 60px rgba(2,6,23,.18));
}

@media (max-width: 640px){
  .topbar{ position: sticky; top: 0; z-index: 90; }
  .cat-bar{ position: sticky; top: var(--header-h); z-index: 85; }
  .modal-box{ width:min(92vw, 520px); }
  .modal-img-wrap{ min-height: 0; padding: 10px 12px 12px; }
}
