:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --text: #17191f;
    --muted: #69707d;
    --line: #e3e6eb;
    --primary: #4d3fd3;
    --primary-dark: #392daf;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success: #067647;
    --success-soft: #ecfdf3;
    --warning: #9a3412;
    --warning-soft: #fff7ed;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(18, 24, 40, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
[hidden] { display: none !important; }

/* Müşteri mağazası */
.public-page { --store-primary: #6558e8; --store-dark: #141526; background: #fff; color: #222334; }
.store-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.store-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid #ececf3; backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.store-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--store-dark); font-size: 18px; font-weight: 900; line-height: 1.05; text-decoration: none; }
.store-brand small { display: block; margin-top: 4px; color: #9294a3; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7469ed, #5244d3); border-radius: 11px; box-shadow: 0 8px 18px rgba(101,88,232,.25); }
.store-nav { display: flex; gap: 34px; }
.store-nav a { color: #5d5f70; font-size: 14px; font-weight: 700; text-decoration: none; }
.store-nav a:hover { color: var(--store-primary); }
.header-cta, .primary-store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: var(--store-primary); border-radius: 11px; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 25px rgba(101,88,232,.22); }
.header-cta { min-height: 43px; padding: 0 18px; }
.store-hero { overflow: hidden; background: radial-gradient(circle at 77% 25%, rgba(126,112,255,.16), transparent 24%), linear-gradient(135deg, #f7f6ff 0%, #fff 62%, #f3f2ff 100%); border-bottom: 1px solid #efedf9; }
.hero-layout { min-height: 530px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.hero-badge, .section-kicker { color: var(--store-primary); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #eceaff; border-radius: 99px; }
.hero-copy h1 { max-width: 680px; margin: 20px 0 18px; color: var(--store-dark); font-size: clamp(42px, 5.1vw, 67px); line-height: 1.04; letter-spacing: -.052em; }
.hero-copy h1 em { color: var(--store-primary); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 0; color: #686a7b; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.primary-store-button { min-height: 52px; padding: 0 23px; }
.primary-store-button:hover, .header-cta:hover { background: #5144cc; transform: translateY(-1px); }
.hero-stat { display: flex; align-items: center; gap: 8px; color: #777989; font-size: 13px; }
.hero-stat strong { color: var(--store-dark); font-size: 20px; }
.hero-visual { position: relative; min-height: 330px; display: grid; place-items: center; }
.hero-visual::before { content: ''; position: absolute; width: 340px; height: 340px; background: #e7e4ff; border-radius: 50%; filter: blur(1px); }
.license-card { position: absolute; width: 350px; height: 220px; padding: 28px; border-radius: 24px; box-shadow: 0 30px 70px rgba(43,39,100,.22); }
.card-back { transform: translate(42px,-36px) rotate(8deg); color: rgba(255,255,255,.35); background: linear-gradient(135deg, #25263a, #131422); font-size: 50px; font-weight: 900; text-align: right; }
.card-front { z-index: 2; transform: translate(-15px,22px) rotate(-4deg); color: #fff; background: linear-gradient(135deg, #7569ef, #5143cc); }
.license-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 29px; color: var(--store-primary); background: #fff; border-radius: 12px; font-weight: 900; }
.license-card small { display: block; margin-bottom: 7px; color: #dcd8ff; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.license-card strong { font-size: 18px; }
.license-line { height: 1px; margin: 22px 0 15px; background: rgba(255,255,255,.22); }
.license-meta { display: flex; justify-content: space-between; color: #e7e4ff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.benefit-strip { background: #fff; border-bottom: 1px solid #ececf2; }
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.benefit-grid > div { min-height: 105px; display: flex; align-items: center; gap: 13px; padding: 20px 24px; border-right: 1px solid #ececf2; }
.benefit-grid > div:last-child { border-right: 0; }
.benefit-grid > div > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; color: var(--store-primary); background: #f0eeff; border-radius: 11px; }
.benefit-grid p { margin: 0; }
.benefit-grid strong, .benefit-grid small { display: block; }
.benefit-grid strong { margin-bottom: 5px; color: #262738; font-size: 13px; }
.benefit-grid small { color: #9293a0; font-size: 10px; line-height: 1.35; }
.bestsellers-section { padding: 76px 0 80px; background: #fff; }
.bestsellers-section .section-heading { align-items: center; }
.section-note { max-width: 330px; margin: 0; color: #858694; font-size: 13px; line-height: 1.6; }
.bestseller-grid { margin-top: 32px; }
.bestseller-badge { color: #9a4f00; background: #fff1d8; }
.products-section { padding: 82px 0 100px; background: #f8f8fb; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 9px 0 0; color: var(--store-dark); font-size: clamp(29px, 4vw, 40px); letter-spacing: -.04em; }
.product-search { width: min(340px,100%); height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 15px; color: #9a9baa; background: #fff; border: 1px solid #e3e3ec; border-radius: 12px; box-shadow: 0 4px 14px rgba(30,32,60,.03); }
.product-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: #353647; background: transparent; }
.category-tabs { display: flex; gap: 9px; margin: 34px 0 28px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: thin; }
.category-tab { flex: 0 0 auto; padding: 10px 16px; color: #6c6e7e; background: #fff; border: 1px solid #e2e2eb; border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.category-tab:hover { color: #fff; background: var(--store-primary); border-color: var(--store-primary); }
.category-section { padding: 35px 0 46px; scroll-margin-top: 90px; border-top: 1px solid #e7e7ef; }
.category-section:first-child { border-top: 0; }
.category-section.featured-category { margin: 0 -22px 30px; padding: 31px 22px 38px; background: linear-gradient(135deg,#f0eeff,#faf9ff); border: 1px solid #ddd8ff; border-radius: 22px; }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.category-heading h3 { margin: 0; color: var(--store-dark); font-size: 25px; letter-spacing: -.035em; }
.category-heading > span { padding: 7px 10px; color: #777989; background: #eeeef3; border-radius: 8px; font-size: 10px; font-weight: 800; }
.ai-priority-label { display: inline-block; margin-bottom: 8px; color: var(--store-primary); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid #e9e9f0; border-radius: 18px; box-shadow: 0 8px 24px rgba(30,32,60,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #d8d4fb; box-shadow: 0 18px 38px rgba(44,40,90,.1); }
.product-logo-wrap { display: flex; align-items: start; justify-content: space-between; margin-bottom: 18px; }
.product-logo-wrap img { width: 64px; height: 64px; padding: 9px; object-fit: contain; background: #fafafe; border: 1px solid #ececf2; border-radius: 15px; }
.stock-badge { padding: 6px 9px; color: #16835c; background: #eaf9f2; border-radius: 99px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.stock-badge.out { color: #b23a35; background: #fff0ef; }
.product-category { color: var(--store-primary); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.product-card h3 { min-height: 48px; margin: 8px 0 10px; color: #222334; font-size: 17px; line-height: 1.38; letter-spacing: -.015em; }
.product-description { display: -webkit-box; min-height: 58px; margin: 0 0 21px; overflow: hidden; color: #858694; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.stock-question { margin: -9px 0 17px; padding: 9px 10px; color: #a33a35; background: #fff2f1; border-radius: 8px; font-size: 10px; font-weight: 800; line-height: 1.4; }
.product-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid #eeeef3; }
.product-price small, .product-price strong { display: block; }
.product-price small { margin-bottom: 5px; color: #9b9ca9; font-size: 9px; text-transform: uppercase; }
.product-price strong { color: var(--store-dark); font-size: 21px; }
.product-detail-button { flex: 0 0 auto; padding: 9px 12px; color: var(--store-primary); background: #f0eeff; border: 0; border-radius: 9px; font-size: 11px; font-weight: 900; cursor: pointer; }
.product-detail-button:hover { color: #fff; background: var(--store-primary); }
.store-empty { padding: 50px 24px; color: #858694; background: #fff; border: 1px solid #e5e5ec; border-radius: 16px; text-align: center; }
.store-footer { padding: 38px 0; color: #a5a6b1; background: #171825; }
.store-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { color: #fff; }
.store-footer p { margin: 0; font-size: 11px; }
.product-dialog { width: min(620px,calc(100% - 30px)); padding: 32px; color: #343546; background: #fff; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(18,18,38,.32); }
.product-dialog::backdrop { background: rgba(15,16,28,.62); backdrop-filter: blur(4px); }
.product-dialog h2 { margin: 9px 35px 20px 0; color: var(--store-dark); font-size: 26px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; color: #777988; background: #f1f1f5; border: 0; border-radius: 50%; font-size: 22px; cursor: pointer; }
.dialog-description { max-height: 280px; overflow: auto; color: #666879; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.dialog-price { display: flex; align-items: center; justify-content: space-between; margin-top: 25px; padding: 18px; background: #f5f3ff; border-radius: 12px; }
.dialog-price span { color: #777989; font-size: 12px; }
.dialog-price strong { color: var(--store-primary); font-size: 23px; }
.simple-empty { padding: 42px 24px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; }

/* Genel admin */
.eyebrow {
    display: inline-block;
    color: #7c6ff0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 10%, rgba(96, 77, 220, .28), transparent 34%), #111827;
}
.login-shell { width: min(440px, calc(100% - 32px)); }
.login-card {
    padding: 34px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .3);
}
.login-card h1 { margin: 8px 0 20px; font-size: 34px; }
.text-link { display: inline-block; margin-top: 20px; color: var(--primary); font-weight: 800; text-decoration: none; }

input[type="search"],
input[type="password"],
input[type="number"],
input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cfd4dc;
    border-radius: 11px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
input:focus { border-color: #8377ea; box-shadow: 0 0 0 4px rgba(77, 63, 211, .12); }
label > span, .admin-search > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.stack-form { display: grid; gap: 13px; }
.compact-form { margin-top: 18px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 16px;
    border: 0;
    border-radius: 11px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, opacity .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { color: #fff; background: #20242d; }
.btn.light { color: #313642; background: #eef0f4; }
.btn.ghost { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.btn.danger-outline { color: #fecaca; background: transparent; border: 1px solid rgba(254,202,202,.35); }

.alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 750; }
.alert.success { color: var(--success); background: var(--success-soft); border: 1px solid #a6f4c5; }
.alert.error { color: var(--danger); background: var(--danger-soft); border: 1px solid #fecdca; }
.alert.warning { color: var(--warning); background: var(--warning-soft); border: 1px solid #fed7aa; }
.admin-header { padding: 31px 0; color: #fff; background: linear-gradient(135deg, #111827, #2b216e); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-header h1 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 41px); }
.admin-nav, .action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-main { padding: 28px 0 70px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-card strong { display: block; margin-top: 8px; font-size: 28px; }
.metric-card.private-card { color: #fff; background: #20242d; border-color: #20242d; }
.metric-card.private-card span { color: #aeb4c0; }
.metric-card.warning-card { color: #991b1b; background: #fff1f2; border-color: #fecdd3; }
.panel {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(16, 24, 40, .04);
}
.panel h2 { margin: 6px 0 0; font-size: clamp(23px, 3vw, 31px); letter-spacing: -.03em; }
.panel p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.sync-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.two-column { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-bottom: 20px; }
.settings-stack { display: grid; gap: 20px; }
.inline-form { display: flex; align-items: end; gap: 12px; margin-top: 18px; }
.inline-form label { flex: 1; }
.manual-product-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 20px; }
.manual-product-form .wide { grid-column: 1 / -1; }

.product-admin-panel { padding: 0; overflow: hidden; }
.panel-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 23px; border-bottom: 1px solid var(--line); }
.admin-search { width: min(330px, 100%); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.admin-table th {
    padding: 12px 14px;
    color: #525866;
    background: #f7f8fa;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.admin-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.admin-table td > strong { display: block; }
.admin-table small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.35; }
.admin-table code { display: inline-block; padding: 4px 7px; color: #343a46; background: #f0f2f5; border-radius: 7px; }
.source-badge { display: inline-block; margin-right: 6px; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.source-badge.api { color: #3730a3; background: #eef2ff; }
.source-badge.manual { color: #166534; background: #ecfdf3; }
.logo-admin-cell { min-width: 120px; }
.logo-admin-cell > img { width: 42px; height: 42px; display: block; margin-bottom: 7px; padding: 4px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.logo-file-button { display: inline-block; cursor: pointer; }
.logo-file-button span { display: inline-block; padding: 5px 8px; color: #4d3fd3; background: #eeecff; border-radius: 7px; font-size: 10px; font-weight: 900; }
.logo-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.price-input { min-width: 135px; font-weight: 800; }
.row-actions { width: 70px; }
.delete-button { padding: 6px 9px; color: var(--danger); background: transparent; border: 1px solid #fca5a5; border-radius: 8px; font-weight: 800; cursor: pointer; }
.dealer-price-changed { background: #fff5f5; }
.dealer-price-changed td { border-bottom-color: #fecaca; }
.dealer-price-cell { min-width: 165px; }
.change-label, .old-price { color: #b42318 !important; }
.new-price { color: #991b1b; }
.sticky-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 23px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.sticky-save span { color: var(--muted); font-size: 13px; }
.admin-empty { border-radius: 0; border: 0; }

/* Admin sürükle-bırak sıralama */
.display-order-panel { padding: 0; margin-bottom: 20px; overflow: hidden; }
.order-heading { align-items: center; }
.order-heading p { max-width: 650px; }
.order-section { padding: 24px; }
.order-section + .order-section { border-top: 1px solid var(--line); }
.order-section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.order-section-title > div { display: flex; align-items: center; gap: 13px; }
.order-section-title h3, .sort-column-head h4 { margin: 0; }
.order-section-title p { margin: 4px 0 0; font-size: 13px; }
.order-section-title > strong { padding: 7px 11px; color: #4338ca; background: #eeecff; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.order-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #6254df; border-radius: 12px; font-size: 18px; }
.bestseller-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sort-column { min-width: 0; padding: 14px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 14px; }
.selected-column { background: #f6f4ff; border-color: #dcd7ff; }
.sort-column-head { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.sort-column-head h4 { font-size: 14px; }
.sort-column-head small { color: var(--muted); font-size: 10px; }
.sort-search { width: 165px; padding: 8px 10px; font-size: 11px; }
.sortable-list { min-height: 82px; display: grid; align-content: start; gap: 8px; padding: 4px; border: 1px dashed transparent; border-radius: 11px; transition: background .15s ease, border-color .15s ease; }
.sortable-list.drag-over { background: #eae7ff; border-color: #7569ed; }
.product-pool { max-height: 440px; overflow-y: auto; }
.sort-item { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; background: #fff; border: 1px solid #e1e4e9; border-radius: 10px; box-shadow: 0 3px 9px rgba(20,24,40,.035); cursor: grab; user-select: none; }
.sort-item:active { cursor: grabbing; }
.sort-item.dragging { opacity: .38; border-color: #7569ed; }
.sort-item img { width: 34px; height: 34px; flex: 0 0 auto; padding: 3px; object-fit: contain; background: #fff; border: 1px solid #eceef1; border-radius: 8px; }
.drag-handle { flex: 0 0 auto; color: #a1a6b0; font-weight: 900; letter-spacing: -4px; transform: rotate(90deg); }
.sort-item-copy { min-width: 0; flex: 1; }
.sort-item-copy strong, .sort-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-item-copy strong { font-size: 12px; }
.sort-item-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.sort-transfer { width: 27px; height: 27px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 7px; font-size: 18px; font-weight: 800; cursor: pointer; }
.sort-transfer.add { color: #166534; background: #dcfce7; }
.sort-transfer.remove { color: #b42318; background: #fee2e2; }
.sort-placeholder { display: none; padding: 22px 12px; color: #868b96; border: 1px dashed #cfd3da; border-radius: 9px; font-size: 11px; text-align: center; }
.sortable-list:not(:has(.sort-item)) .sort-placeholder { display: block; }
.catalog-sort-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: start; gap: 18px; }
.category-sort-column { position: sticky; top: 92px; }
.category-sort-item { padding-block: 12px; }
.category-order-dot { width: 9px; height: 9px; flex: 0 0 auto; background: #7569ed; border-radius: 50%; }
.product-sort-groups { display: grid; gap: 10px; }
.product-sort-group { overflow: hidden; background: #f8f9fb; border: 1px solid var(--line); border-radius: 12px; }
.product-sort-group summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: #fff; cursor: pointer; list-style: none; }
.product-sort-group summary::-webkit-details-marker { display: none; }
.product-sort-group summary span { font-size: 13px; font-weight: 900; }
.product-sort-group summary small { color: var(--muted); font-size: 10px; }
.product-order-list { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 11px; }
.compact-sort-item { padding: 8px; }
.order-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 24px; background: #f8f8fa; border-top: 1px solid var(--line); }
.order-save-bar span { color: var(--muted); font-size: 12px; }

@media (max-width: 920px) {
    .store-nav { display: none; }
    .hero-layout { min-height: auto; grid-template-columns: 1fr; gap: 18px; padding-top: 70px; padding-bottom: 45px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { min-height: 300px; transform: scale(.88); }
    .benefit-grid { grid-template-columns: repeat(2,1fr); }
    .benefit-grid > div:nth-child(2) { border-right: 0; }
    .benefit-grid > div:nth-child(-n+2) { border-bottom: 1px solid #ececf2; }
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-column { grid-template-columns: 1fr; }
    .sync-panel, .panel-heading-row { align-items: stretch; flex-direction: column; }
    .bestseller-builder, .catalog-sort-grid { grid-template-columns: 1fr; }
    .category-sort-column { position: static; }
    .admin-search { width: 100%; }
}

@media (max-width: 620px) {
    .wrap { width: min(100% - 20px, 1180px); }
    .store-container { width: min(100% - 24px,1180px); }
    .header-inner { min-height: 67px; }
    .store-brand { font-size: 15px; }
    .brand-mark { width: 34px; height: 34px; }
    .header-cta { display: none; }
    .hero-layout { padding-top: 50px; }
    .hero-copy h1 { font-size: 39px; }
    .hero-copy > p { font-size: 15px; }
    .hero-actions { flex-direction: column; gap: 16px; }
    .hero-visual { min-height: 240px; transform: scale(.68); margin: -30px -60px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-grid > div { min-height: 88px; border-right: 0; border-bottom: 1px solid #ececf2; }
    .bestsellers-section { padding: 58px 0 62px; }
    .products-section { padding: 60px 0 70px; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .section-note { max-width: none; }
    .product-search { width: 100%; }
    .category-tabs { margin-top: 25px; }
    .product-grid { grid-template-columns: 1fr; }
    .category-section.featured-category { margin-inline: -7px; padding-inline: 14px; }
    .product-card { padding: 21px; }
    .store-footer > div { align-items: flex-start; flex-direction: column; }
    .product-dialog { padding: 25px; }
    .admin-header-inner, .admin-nav, .action-row, .inline-form, .sticky-save { align-items: stretch; flex-direction: column; }
    .order-section { padding: 18px; }
    .order-section-title, .sort-column-head, .order-save-bar { align-items: stretch; flex-direction: column; }
    .sort-search { width: 100%; }
    .product-order-list { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .manual-product-form { grid-template-columns: 1fr; }
    .manual-product-form .wide { grid-column: auto; }
    .login-card { padding: 26px 22px; }
    .panel { padding: 19px; }
    .product-admin-panel { padding: 0; }
}
