:root{--bg:#f5f6f8;--card:#fff;--ink:#17191d;--muted:#6b7280;--line:#e5e7eb;--accent:#f7c948;--accent2:#1f2937;--ok:#14804a;--bad:#b42318;--warn:#a15c00;--shadow:0 10px 30px rgba(17,24,39,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}a{color:inherit}.shell{max-width:1280px;margin:0 auto;padding:20px}.top{display:flex;justify-content:space-between;align-items:center;margin:6px 0 24px}.brand{display:flex;gap:12px;align-items:center}.brand-logo{width:40px;height:40px;border-radius:12px;background:transparent;display:grid;place-items:center;padding:0;overflow:hidden;flex:0 0 40px}.brand-logo img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}.brand b{font-size:20px;display:block;line-height:1.1}.brand small{color:var(--muted)}main{min-height:70vh}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow);margin-bottom:18px}.hero{padding:32px}.hero h1{margin:0 0 8px;font-size:clamp(27px,5vw,44px);letter-spacing:-.03em}.hero p{color:var(--muted);max-width:680px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.field{margin:12px 0}.field label{display:block;font-size:13px;font-weight:700;margin:0 0 6px}.field input,.field select,.field textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px 13px;font:inherit;background:white}.field textarea{min-height:90px;resize:vertical}.btn{appearance:none;border:0;border-radius:12px;padding:12px 16px;background:var(--accent2);color:white;font-weight:750;cursor:pointer;text-decoration:none;display:inline-block}.btn.yellow{background:var(--accent);color:#17191d}.btn.light{background:#eef0f3;color:#17191d}.btn.bad{background:#fee4e2;color:var(--bad)}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice{border-radius:14px;padding:12px 14px;background:#fff8d8;border:1px solid #f5dc72;margin:12px 0}.error{background:#ffebe9;border-color:#f6b4ad;color:#7a271a}.status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:13px;font-weight:800;background:#eef2ff}.status.ok{background:#dcfae6;color:#05603a}.status.done{background:#e8eaed;color:#343a40}.status.bad{background:#fee4e2;color:#912018}.status.warn{background:#fff2cc;color:#7a4b00}.status.progress{background:#e8f1ff;color:#174a8b}.order-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.order-no{font-size:14px;color:var(--muted);margin-bottom:5px}.order-title{font-size:28px;font-weight:850}.meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}.meta>div{padding:14px;border-radius:14px;background:#f8f9fb}.meta small{display:block;color:var(--muted);margin-bottom:5px}.timeline{list-style:none;padding:0;margin:4px 0}.timeline li{position:relative;padding:0 0 22px 30px}.timeline li:before{content:"";position:absolute;left:7px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--accent2)}.timeline li:after{content:"";position:absolute;left:11px;top:18px;bottom:1px;width:2px;background:var(--line)}.timeline li:last-child:after{display:none}.timeline small{color:var(--muted)}.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:820px}.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}.table th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.muted{color:var(--muted)}.small{font-size:13px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.right{text-align:right}.login{max-width:460px;margin:60px auto}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.toolbar h1{margin:0}.search{max-width:340px}footer{text-align:center;color:var(--muted);font-size:12px;padding:25px}
@media(max-width:720px){.shell{padding:12px}.card{padding:18px;border-radius:16px}.grid,.grid3,.meta{grid-template-columns:1fr}.order-head,.toolbar{flex-direction:column;align-items:stretch}.hero{padding:24px}.order-title{font-size:23px}}
@media print{body{background:white}.top,footer,.no-print{display:none}.card{box-shadow:none;border:0;padding:0}.shell{max-width:none}}
.btn.vk{background:#0077ff;color:#fff}.btn[disabled]{opacity:.5;cursor:not-allowed}.vk-ok{color:#08783e;font-weight:700}.vk-bad{color:#b42318;font-weight:700}

.payment{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap}.payment.paid{background:#dcfae6;color:#05603a}.payment.unpaid{background:#fee4e2;color:#912018}

.hint{font-size:13px;color:var(--muted);margin-top:8px}.stack{display:flex;flex-direction:column;gap:12px}.split-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.pre{white-space:pre-wrap}.contact-box{padding:12px 14px;border:1px dashed #d1d5db;border-radius:12px;background:#fafafa}.section-subtitle{margin:-4px 0 14px;color:var(--muted);font-size:14px}

/* T-Банк / СБП */
.btn.sbp{background:#111827;color:#fff}.btn.sbp:before{content:"⚡";margin-right:7px}.btn.sbp[disabled]{opacity:.45;cursor:not-allowed}.bigpay{padding:14px 20px;font-size:16px}.pay-amount{font-size:34px;font-weight:900;letter-spacing:-.03em;margin:8px 0}.paid-banner{padding:16px;border-radius:14px;background:#dcfae6;color:#05603a;font-size:20px;font-weight:850;text-align:center}.successbox{background:#ecfdf3;border-color:#a6f4c5;color:#05603a}.checkrow{display:flex;gap:10px;align-items:flex-start;padding:12px 0;cursor:pointer}.checkrow input{margin-top:3px;width:18px;height:18px}.checkrow span{display:flex;flex-direction:column;gap:3px}.checkrow small{color:var(--muted);font-weight:400}.pay-client{text-align:left}

/* Фильтры журнала и отметки */
.order-table{width:100%;min-width:0;table-layout:fixed;font-size:13px}.order-table th,.order-table td{padding:10px 7px;overflow-wrap:anywhere;word-break:normal}.order-table th:nth-child(1),.order-table td:nth-child(1){width:9%}.order-table th:nth-child(2),.order-table td:nth-child(2){width:20%}.order-table th:nth-child(3),.order-table td:nth-child(3){width:17%}.order-table th:nth-child(4),.order-table td:nth-child(4){width:13%}.order-table th:nth-child(5),.order-table td:nth-child(5){width:14%}.order-table th:nth-child(6),.order-table td:nth-child(6){width:13%}.order-table th:nth-child(7),.order-table td:nth-child(7){width:7%}.order-table th:nth-child(8),.order-table td:nth-child(8){width:7%}.order-table .small{font-size:12px}.order-table .btn.light{padding:8px 9px;font-size:12px;white-space:nowrap}.order-table .payment,.order-table .status,.order-table .receipt{padding:5px 8px;font-size:11px}.filter-row th{padding:7px 5px 10px;background:#fafafa}.filter-row input,.filter-row select{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #d1d5db;border-radius:9px;padding:7px 7px;font:inherit;font-size:11px;background:#fff;text-transform:none;letter-spacing:0;color:var(--ink)}.filter-btn{width:100%;padding:8px 5px;font-size:11px;white-space:normal}.receipt{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap}.receipt.printed{background:#dcfae6;color:#05603a}.receipt.unprinted{background:#fff2cc;color:#7a4b00}.checkrow.compact{padding:8px 0;margin:0}.checkrow.compact input{flex:0 0 18px}.filters-form{margin:0}.tablewrap{overflow-x:hidden}
@media(max-width:760px){.tablewrap{overflow-x:auto}.order-table{min-width:920px;table-layout:auto}.filter-row input,.filter-row select{font-size:11px;padding:7px}.brand-logo{width:38px;height:38px;flex-basis:38px}}

/* V13 — клиентская база */
.client-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.client-stats>div{padding:14px 16px;background:#f8f9fb;border:1px solid var(--line);border-radius:14px}.client-stats small{display:block;color:var(--muted);margin-bottom:5px;font-size:12px}.client-stats b{font-size:20px}.client-summary .client-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.client-search{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:10px}.client-search input{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px 13px;font:inherit}.crm-table{min-width:920px}.crm-table th,.crm-table td{padding:11px 9px}.client-note{max-width:280px;margin-top:5px}.client-orders-table{min-width:820px}
@media(max-width:760px){.client-stats,.client-summary .client-stats{grid-template-columns:1fr 1fr}.client-search{grid-template-columns:1fr}.crm-table{min-width:900px}}

/* V14 — автоуведомления статуса и ручные напоминания */
.notify-alert{margin-top:7px;color:#b42318;font-weight:850;font-size:11px;line-height:1.2}.notify-ok{margin-top:6px;color:#08783e;font-weight:750;font-size:11px}.notify-inline-form{margin:5px 0 0}.notify-inline-btn{border:0;background:#fff2cc;color:#7a4b00;border-radius:8px;padding:5px 7px;font-size:10px;font-weight:800;cursor:pointer}.notify-inline-btn:hover{background:#f8df9a}.notify-reminder{background:#fff4e5;border-color:#f5b97b;color:#7a3e00}.notify-done{background:#14804a;color:#fff;padding:9px 13px;font-size:13px}.order-table td:nth-child(5){overflow:visible}


/* V15 — магазин / VK Mini App */
.shop-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff 0%,#fff8d9 100%);padding:30px}.shop-hero h1{font-size:clamp(32px,7vw,58px);letter-spacing:-.045em;margin:6px 0 10px;line-height:.98}.shop-hero p{max-width:720px;margin:0;color:var(--muted);font-size:16px;line-height:1.55}.shop-kicker{font-size:12px;letter-spacing:.13em;font-weight:900;color:#60646c}.cart-pill{border:0;background:#17191d;color:#fff;border-radius:999px;padding:12px 16px;font-weight:850;font-size:16px;cursor:pointer;white-space:nowrap}.shop-categories{display:flex;gap:8px;overflow:auto;padding:2px 0 14px;scrollbar-width:none}.shop-categories::-webkit-scrollbar{display:none}.cat{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 14px;font-weight:750;white-space:nowrap;cursor:pointer}.cat.active{background:#17191d;color:#fff;border-color:#17191d}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 10px 30px rgba(29,41,57,.05);display:flex;gap:14px;min-height:210px}.product-emoji{width:52px;height:52px;flex:0 0 52px;border-radius:16px;background:#fff5bd;display:grid;place-items:center;font-size:26px}.product-body{display:flex;min-width:0;flex:1;flex-direction:column}.product-category{font-size:11px;font-weight:850;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.product-card h3{margin:6px 0 8px;font-size:19px}.product-card p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.45}.product-bottom{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.product-price{font-weight:850;font-size:13px;max-width:150px}.add-btn{padding:9px 12px;font-size:12px}.cart-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.38);z-index:100;display:none;justify-content:flex-end}.cart-backdrop.open{display:flex}.cart-panel{width:min(520px,100%);height:100%;overflow:auto;background:#fff;padding:22px;box-shadow:-18px 0 55px rgba(17,24,39,.18)}.cart-close{width:40px;height:40px;border:0;border-radius:12px;background:#eef0f3;font-size:27px;cursor:pointer}.cart-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.qty{display:flex;align-items:center;gap:10px}.qty button{width:30px;height:30px;border:0;border-radius:10px;background:#eef0f3;font-size:18px;cursor:pointer}.cart-empty{padding:25px 0;color:var(--muted);text-align:center}.cart-total{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 0;font-size:17px}.cart-total b{font-size:19px;text-align:right}.checkout-btn{width:100%;padding:15px}.shop-success{text-align:center;max-width:660px;margin:20px auto}.success-mark{width:68px;height:68px;border-radius:50%;margin:0 auto 15px;background:#dcfae6;color:#08783e;display:grid;place-items:center;font-size:38px;font-weight:900}.shop-success h1{font-size:42px;margin:4px 0}.shop-success p{color:var(--muted)}.success-code{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border-radius:15px;background:#f8f9fb;margin:20px 0;text-align:left}.success-code span{color:var(--muted)}.success-code b{font:900 28px ui-monospace,SFMono-Regular,Menlo,monospace}.success-list{text-align:left;margin:10px 0 20px}.success-list>div{padding:10px 0;border-bottom:1px solid var(--line)}.success-actions{justify-content:center;margin-top:18px}.shop-source{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:7px;background:#e8f1ff;color:#174a8b;font-size:10px;font-weight:850;white-space:nowrap}.shop-order-lines{margin:12px 0 18px}.shop-order-lines>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.attachment-list{display:grid;gap:8px}.attachment{display:flex;justify-content:space-between;gap:10px;text-decoration:none;border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:#fafafa}.attachment small{color:var(--muted)}.catalog-admin{display:grid;gap:12px;margin-bottom:16px}.catalog-edit{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fafafa}.catalog-edit-grid{display:grid;grid-template-columns:100px 1fr 1fr 1fr;gap:10px}.catalog-edit-grid .field{margin:4px 0}.catalog-edit-grid .span2{grid-column:span 2}
@media(max-width:980px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-edit-grid{grid-template-columns:90px 1fr 1fr}.catalog-edit-grid .span2{grid-column:span 2}}
@media(max-width:620px){.shop-hero{padding:22px}.shop-hero h1{font-size:38px}.shop-hero p{font-size:14px}.product-grid{grid-template-columns:1fr}.product-card{min-height:0}.cart-panel{padding:16px}.catalog-edit-grid{grid-template-columns:1fr 1fr}.catalog-edit-grid .span2{grid-column:span 2}.success-code{flex-direction:column;align-items:flex-start}.success-actions{flex-direction:column}.success-actions .btn{width:100%;text-align:center}}


/* V16 — улучшенный дизайн магазина */
body{background:linear-gradient(180deg,#f6f7fb 0%,#eef2f8 100%)}
.shell{max-width:1320px;padding:24px}
.top{margin:4px 0 20px}
.shop-page{display:grid;gap:18px}
.shop-card{background:rgba(255,255,255,.88);backdrop-filter:blur(10px);border:1px solid rgba(209,213,219,.9);border-radius:28px;box-shadow:0 18px 45px rgba(15,23,42,.08)}
.shop-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.85fr);gap:24px;padding:32px;position:relative;overflow:hidden;background:
    radial-gradient(circle at top right, rgba(247,201,72,.24), transparent 32%),
    radial-gradient(circle at left bottom, rgba(61,145,255,.12), transparent 28%),
    linear-gradient(135deg,#ffffff 0%,#fff8dd 100%)}
.shop-hero::after{content:'';position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.45);filter:blur(10px)}
.shop-hero-text,.hero-side{position:relative;z-index:1}
.shop-hero h1{font-size:clamp(34px,4.5vw,58px);letter-spacing:-.05em;line-height:1.02;margin:10px 0 12px;max-width:760px}
.shop-hero p{max-width:740px;margin:0;color:#5d6470;font-size:16px;line-height:1.7}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.hero-btn{padding:14px 18px;border-radius:16px}
.hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.hero-stats>div{padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.95)}
.hero-stats b{display:block;font-size:26px;line-height:1;margin-bottom:8px}
.hero-stats span{color:#667085;font-size:13px;line-height:1.4}
.hero-side{display:grid;gap:14px;align-content:start}
.hero-badge-card{padding:18px;border-radius:24px;background:#17191d;color:#fff;box-shadow:0 18px 42px rgba(23,25,29,.22)}
.hero-badge-title{font-size:12px;letter-spacing:.14em;font-weight:900;color:#f8db74;margin-bottom:12px}
.hero-steps{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.hero-steps li{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start}
.hero-steps li span{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#f7c948;color:#17191d;font-weight:900}
.hero-steps li b{display:block;margin-bottom:4px}
.hero-steps li small{display:block;color:rgba(255,255,255,.76);line-height:1.45}
.cart-pill-floating{justify-self:end;box-shadow:0 16px 40px rgba(23,25,29,.16)}
.shop-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.highlight-card{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #e8ecf2;border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.highlight-icon{width:50px;height:50px;border-radius:16px;background:linear-gradient(135deg,#fff2bf 0%,#ffe39c 100%);display:grid;place-items:center;font-size:24px;flex:0 0 50px}
.highlight-card b{display:block;margin-bottom:6px;font-size:16px}
.highlight-card p{margin:0;color:#667085;line-height:1.55;font-size:14px}
.shop-toolbar{padding:24px}
.shop-toolbar-top{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:16px}
.shop-toolbar-top h2{margin:6px 0 8px;font-size:30px;letter-spacing:-.03em}
.shop-toolbar-top p{margin:0;color:#667085}
.shop-search{min-width:min(100%,420px)}
.shop-search input{width:100%;border:1px solid #d6dae3;border-radius:18px;padding:15px 16px;font:inherit;background:#fbfcfe;box-shadow:inset 0 1px 2px rgba(16,24,40,.03)}
.shop-categories{display:flex;gap:10px;overflow:auto;padding:2px 0 4px;scrollbar-width:none}
.shop-categories::-webkit-scrollbar{display:none}
.cat{border:1px solid #e0e4eb;background:#fff;border-radius:999px;padding:11px 16px;font-weight:800;white-space:nowrap;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.18s ease}
.cat span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#f4f6f9;color:#535862;font-size:12px;padding:0 7px}
.cat.active,.cat:hover{background:#17191d;color:#fff;border-color:#17191d;transform:translateY(-1px)}
.cat.active span,.cat:hover span{background:rgba(255,255,255,.18);color:#fff}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-card{background:linear-gradient(180deg,#fff 0%,#fcfcfd 100%);border:1px solid #e9edf3;border-radius:26px;padding:18px;box-shadow:0 14px 30px rgba(15,23,42,.06);display:flex;flex-direction:column;gap:14px;min-height:286px;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:0 24px 46px rgba(15,23,42,.10);border-color:#d4dae4}
.product-top{display:flex;gap:12px;align-items:flex-start}
.product-emoji{width:58px;height:58px;flex:0 0 58px;border-radius:18px;background:linear-gradient(135deg,#fff4c7 0%,#ffe8a3 100%);display:grid;place-items:center;font-size:28px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.product-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.product-category,.product-tag{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:11px;letter-spacing:.04em;font-weight:850;text-transform:uppercase}
.product-category{background:#f4f6f8;color:#404651}
.product-tag{background:#eef8ef;color:#097443}
.muted-tag{background:#fff3ea;color:#9a4b13}
.product-body{display:flex;flex-direction:column;min-height:0;flex:1}
.product-card h3{margin:0 0 10px;font-size:20px;line-height:1.22;letter-spacing:-.02em}
.product-card p{margin:0;color:#667085;font-size:14px;line-height:1.58;flex:1}
.product-bottom{margin-top:18px;display:flex;gap:14px;justify-content:space-between;align-items:end}
.product-price-wrap{display:grid;gap:3px}
.product-price{font-size:17px;font-weight:900;line-height:1.3}
.product-unit{font-size:12px;color:#667085}
.add-btn{padding:11px 14px;border-radius:14px;font-size:13px;white-space:nowrap}
.shop-empty{padding:20px;color:#667085}
.cart-backdrop{background:rgba(15,23,42,.45);backdrop-filter:blur(3px)}
.cart-panel{width:min(540px,100%);background:#fff;padding:24px;border-radius:28px 0 0 28px;box-shadow:-18px 0 55px rgba(17,24,39,.22)}
.cart-row{padding:14px 0}
.qty button{width:34px;height:34px;border-radius:12px}
.checkout-btn{width:100%;padding:16px;border-radius:16px}
#cartItems .small{font-size:12px}
@media(max-width:1120px){.shop-hero{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr auto;align-items:end}.shop-highlights{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.shell{padding:16px}.shop-hero{padding:22px;border-radius:24px}.shop-hero h1{font-size:36px}.hero-actions,.hero-stats{grid-template-columns:1fr 1fr}.hero-side{grid-template-columns:1fr}.cart-pill-floating{justify-self:stretch}.shop-toolbar{padding:20px}.shop-toolbar-top{flex-direction:column;align-items:stretch}.shop-toolbar-top h2{font-size:26px}.shop-search{min-width:0}.product-grid{grid-template-columns:1fr}.product-card{min-height:0}.product-bottom{flex-direction:column;align-items:stretch}.add-btn{width:100%}.cart-panel{padding:16px;border-radius:22px 0 0 22px}}
@media(max-width:520px){.hero-stats{grid-template-columns:1fr}.highlight-card{padding:16px}.cat{padding:10px 14px}.success-code b{font-size:22px}}

/* V16 — параметры товара в выпадающих списках */
.product-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;padding:14px;border-radius:18px;background:#f7f8fa;border:1px solid #eaedf2}
.product-option-field,.product-qty-field{display:grid;gap:6px}
.product-option-field>span,.product-qty-field>span{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;color:#667085}
.product-option-field select,.product-qty-field input{width:100%;border:1px solid #d7dce4;border-radius:13px;background:#fff;padding:11px 12px;font:inherit;color:#17191d;outline:none}
.product-option-field select:focus,.product-qty-field input:focus{border-color:#e4b82d;box-shadow:0 0 0 3px rgba(247,201,72,.18)}
.product-purchase{display:grid;grid-template-columns:108px minmax(0,1fr);gap:12px;align-items:end;margin-top:14px}
.product-purchase .product-price-wrap{text-align:right}
.product-card .add-btn{width:100%;margin-top:14px;padding:13px 15px}
.cart-row-main{min-width:0;flex:1}.cart-options{font-size:12px;font-weight:750;color:#344054;margin:4px 0;line-height:1.45}.cart-remove{border:0;background:transparent;padding:4px 0;color:#b42318;font-size:11px;cursor:pointer}.shop-item-options{display:block;margin-top:4px;font-weight:600;color:#667085;line-height:1.45}.catalog-options-note{padding:12px;border-radius:12px;background:#f4f6f8;color:#475467;font-size:12px;line-height:1.65}
@media(max-width:520px){.product-options{grid-template-columns:1fr}.product-purchase{grid-template-columns:96px 1fr}}

/* V17 — редактор выпадающих меню, матрица цен и мобильная адаптация */
.catalog-page-head p{margin:7px 0 0}.catalog-help{line-height:1.6}.catalog-help p{margin:8px 0 0}
.catalog-admin-v17{display:grid;gap:18px}.catalog-product-editor{background:#fff;border:1px solid #e4e8ef;border-radius:24px;padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.catalog-product-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:10px;border-bottom:1px solid #eef0f4}.catalog-product-id{font-size:11px;color:#98a2b3;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.catalog-edit-grid-v17{display:grid;grid-template-columns:90px minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr);gap:10px 12px}.catalog-edit-grid-v17 .field{margin:4px 0}.catalog-edit-grid-v17 .span2{grid-column:span 2}.compact-field input{text-align:center}
.option-editor-box,.price-matrix-box{margin-top:16px;border:1px solid #e8ebf0;border-radius:20px;padding:16px;background:#fafbfc}.option-editor-title,.price-matrix-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.option-editor-title small,.price-matrix-title small{display:block;margin-top:4px;color:#667085;font-weight:400;line-height:1.45}.small-btn{padding:9px 12px;font-size:12px;white-space:nowrap}
.option-groups{display:grid;gap:12px}.option-group{border:1px solid #e2e6ec;border-radius:16px;padding:14px;background:#fff}.option-group-head{display:flex;align-items:end;gap:10px}.group-label-field{flex:1;margin:0}.icon-danger{border:0;border-radius:11px;padding:10px 12px;background:#fff0ef;color:#b42318;font-weight:800;cursor:pointer;white-space:nowrap;margin-bottom:0}
.choice-list{display:grid;gap:8px;margin-top:10px}.choice-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px;align-items:center}.choice-row input{width:100%;border:1px solid #d7dce4;border-radius:12px;padding:11px 12px;font:inherit;background:#fff}.choice-remove{width:38px;height:38px;border:0;border-radius:11px;background:#f2f4f7;color:#b42318;font-size:20px;cursor:pointer}.choice-add{margin-top:9px;border:0;background:transparent;color:#344054;font-weight:800;padding:7px 2px;cursor:pointer}
.price-matrix-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.price-matrix-table{width:100%;min-width:420px;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.price-matrix-table th,.price-matrix-table td{padding:10px 12px;border-bottom:1px solid #edf0f3;text-align:left}.price-matrix-table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#667085;background:#f7f8fa}.price-matrix-table th:last-child,.price-matrix-table td:last-child{width:150px}.price-matrix-table input.matrix-price{width:100%;min-width:90px;border:1px solid #d7dce4;border-radius:10px;padding:9px 10px;font:inherit}.matrix-empty{padding:16px;color:#667085;text-align:center;background:#fff;border-radius:14px}.matrix-label{font-weight:750;color:#344054}
.catalog-sticky-save{position:sticky;bottom:10px;z-index:20;display:flex;justify-content:flex-end;margin:18px 0}.save-catalog-btn{box-shadow:0 12px 28px rgba(15,23,42,.16);padding:14px 22px}.catalog-bottom-actions{margin:14px 0 6px}

/* Mobile: магазин */
@media(max-width:760px){
  body{overflow-x:hidden}.shell{width:100%;max-width:100%;padding:12px}.top{margin:2px 0 14px}.brand b{font-size:18px}
  .shop-page{gap:12px}.shop-card{border-radius:20px}.shop-hero{padding:18px;gap:16px}.shop-hero h1{font-size:31px;line-height:1.05}.shop-hero p{font-size:14px;line-height:1.55}.hero-actions{display:grid;grid-template-columns:1fr;gap:8px}.hero-actions .btn{width:100%;text-align:center}.hero-stats{grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.hero-stats>div{padding:12px}.hero-stats b{font-size:22px}.hero-badge-card{border-radius:18px;padding:15px}.cart-pill-floating{width:100%;text-align:center}
  .shop-toolbar{padding:16px}.shop-toolbar-top{gap:12px}.shop-toolbar-top h2{font-size:24px}.shop-search input{font-size:16px;padding:13px 14px}.shop-categories{margin-left:-2px;margin-right:-2px;padding-bottom:4px}.cat{padding:10px 13px;font-size:13px}
  .product-grid{gap:12px}.product-card{padding:16px;border-radius:20px}.product-top{gap:10px}.product-emoji{width:50px;height:50px;flex-basis:50px;border-radius:15px;font-size:24px}.product-card h3{font-size:19px}.product-card p{font-size:13px}.product-options{grid-template-columns:1fr;padding:12px;margin-top:13px}.product-option-field select,.product-qty-field input{font-size:16px;min-height:46px}.product-purchase{grid-template-columns:100px minmax(0,1fr);gap:10px}.product-price{font-size:16px}.product-card .add-btn{min-height:48px;font-size:14px}
  .cart-panel{width:100%;border-radius:0;padding:16px 14px}.cart-row{align-items:flex-start;gap:10px}.qty{gap:6px}.qty button{width:36px;height:36px}.field input,.field select,.field textarea{font-size:16px}.checkout-btn{min-height:50px;font-size:15px}
}
@media(max-width:430px){.hero-stats{grid-template-columns:1fr}.product-purchase{grid-template-columns:1fr}.product-purchase .product-price-wrap{text-align:left}.product-badges{gap:5px}.product-category,.product-tag{font-size:9px;padding:6px 8px}.cart-row{flex-direction:column}.cart-row .qty{align-self:flex-end}}

/* Mobile: редактор витрины */
@media(max-width:900px){.catalog-edit-grid-v17{grid-template-columns:80px 1fr 1fr}.catalog-edit-grid-v17 .span2{grid-column:span 2}}
@media(max-width:680px){
  .catalog-page-head{gap:12px}.catalog-page-head .actions{display:grid;grid-template-columns:1fr;width:100%}.catalog-page-head .actions .btn{text-align:center}.catalog-help{padding:16px}
  .catalog-product-editor{padding:14px;border-radius:18px}.catalog-product-head{align-items:flex-start;flex-direction:column}.catalog-product-id{overflow-wrap:anywhere}.catalog-edit-grid-v17{grid-template-columns:1fr 1fr;gap:7px 9px}.catalog-edit-grid-v17 .span2{grid-column:1/-1}.catalog-edit-grid-v17 .field:nth-child(2),.catalog-edit-grid-v17 .field:nth-child(3),.catalog-edit-grid-v17 .field:nth-child(6),.catalog-edit-grid-v17 .field:nth-child(7){grid-column:1/-1}.catalog-edit-grid-v17 input,.catalog-edit-grid-v17 textarea{font-size:16px}
  .option-editor-box,.price-matrix-box{padding:12px;border-radius:16px}.option-editor-title{flex-direction:column}.option-editor-title .btn{width:100%}.option-group{padding:11px}.option-group-head{align-items:stretch;flex-direction:column}.group-label-field input,.choice-row input,.price-matrix-table input.matrix-price{font-size:16px}.icon-danger{width:100%}.choice-row{grid-template-columns:minmax(0,1fr) 42px}.choice-remove{width:42px;height:42px}.price-matrix-table{min-width:360px}.price-matrix-table th,.price-matrix-table td{padding:9px}.price-matrix-table th:last-child,.price-matrix-table td:last-child{width:120px}
  .catalog-sticky-save{bottom:8px;margin:12px 0}.save-catalog-btn{width:100%;min-height:50px}.catalog-bottom-actions{display:grid;grid-template-columns:1fr}.catalog-bottom-actions form,.catalog-bottom-actions button{width:100%}
}

/* V18 — доступность сочетаний и зависимые списки */
.availability-matrix-table{min-width:590px}
.availability-matrix-table th:nth-child(2),.availability-matrix-table td:nth-child(2){width:130px;text-align:center}
.availability-matrix-table th:last-child,.availability-matrix-table td:last-child{width:160px}
.availability-toggle{display:inline-flex;align-items:center;gap:7px;justify-content:center;font-weight:800;cursor:pointer;user-select:none}
.availability-toggle input{width:18px;height:18px;accent-color:#14804a}
.matrix-disabled{background:#fafafa;opacity:.62}
.matrix-disabled .matrix-label{text-decoration:line-through;color:#98a2b3}
.matrix-disabled .matrix-price{background:#f2f4f7;color:#98a2b3}
.product-unavailable{opacity:.72}
.product-unavailable .add-btn{cursor:not-allowed;filter:grayscale(.35)}
.product-option:disabled{background:#f2f4f7;color:#98a2b3}
@media(max-width:680px){
  .availability-matrix-table{min-width:520px}
  .availability-matrix-table th:nth-child(2),.availability-matrix-table td:nth-child(2){width:110px}
  .availability-matrix-table th:last-child,.availability-matrix-table td:last-child{width:120px}
  .availability-toggle{font-size:13px}
}


/* V18: client photo crop editor */
.photo-crop-section{margin-top:14px;border:1px solid #e4e8ef;background:#f8fafc;border-radius:18px;padding:14px}.photo-crop-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.photo-crop-intro b{display:block;font-size:14px}.photo-crop-intro small{display:block;color:#667085;margin-top:3px;line-height:1.4}.photo-crop-badge{background:#fff1b8;color:#624b00;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:850;text-transform:uppercase;white-space:nowrap}.photo-crop-list{display:grid;gap:12px}.photo-crop-card{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:14px;padding:12px;border:1px solid #e4e7ec;border-radius:16px;background:#fff}.photo-crop-file{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;align-items:center}.photo-crop-file b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.photo-crop-file small{color:#98a2b3;white-space:nowrap}.photo-crop-canvas-wrap{display:grid;place-items:center;min-height:190px;background:repeating-conic-gradient(#eef1f5 0 25%,#fff 0 50%) 50%/18px 18px;border-radius:13px;padding:10px;overflow:hidden}.photo-crop-canvas{display:block;max-width:100%;max-height:300px;width:auto;height:auto;box-shadow:0 7px 20px rgba(15,23,42,.16);touch-action:none;cursor:grab;background:#fff}.photo-crop-canvas.dragging{cursor:grabbing}.photo-crop-controls{display:flex;flex-direction:column;gap:11px}.photo-crop-format,.photo-crop-zoom{display:grid;gap:5px}.photo-crop-format>span,.photo-crop-zoom>span{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;color:#667085}.photo-crop-format select{width:100%;border:1px solid #d6dae3;border-radius:11px;padding:9px 10px;background:#fff;font:inherit}.photo-fields-check{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e4e7ec;border-radius:12px;background:#fafafa;cursor:pointer}.photo-fields-check input{width:18px;height:18px;flex:0 0 18px;margin:1px 0 0}.photo-fields-check span{display:grid;gap:2px}.photo-fields-check b{font-size:13px}.photo-fields-check small{font-size:11px;color:#667085;line-height:1.35}.photo-crop-zoom input{width:100%;accent-color:#e9b823}.photo-crop-mode{margin-top:auto;border-radius:10px;padding:8px 10px;background:#f2f4f7;color:#475467;font-size:11px;line-height:1.4}.crop-admin-badge{display:inline-flex;margin-left:7px;padding:3px 6px;border-radius:999px;background:#e8f1ff;color:#174a8b;font-size:10px;font-style:normal;font-weight:800;vertical-align:middle}.crop-admin-badge.fields{background:#fff2cc;color:#7a4b00}
@media(max-width:560px){.photo-crop-section{padding:10px}.photo-crop-intro{flex-direction:column}.photo-crop-card{grid-template-columns:1fr}.photo-crop-canvas-wrap{min-height:160px}.photo-crop-canvas{max-height:270px}.photo-crop-file{align-items:flex-start}.photo-crop-file b{white-space:normal;overflow-wrap:anywhere}}


/* V19 — large desktop crop editor + polished mobile storefront */
@media(min-width:1100px){
  .cart-panel{width:min(760px,62vw);padding:26px 30px}
  .photo-crop-section{padding:20px;border-radius:22px}
  .photo-crop-intro{margin-bottom:18px}
  .photo-crop-intro b{font-size:17px}.photo-crop-intro small{font-size:13px}
  .photo-crop-list{gap:18px}
  .photo-crop-card{grid-template-columns:minmax(0,1fr) 240px;gap:20px;padding:16px;border-radius:20px}
  .photo-crop-canvas-wrap{min-height:360px;padding:18px;border-radius:16px}
  .photo-crop-canvas{max-height:620px;max-width:100%;box-shadow:0 14px 34px rgba(15,23,42,.20)}
  .photo-crop-controls{gap:14px;padding:4px 0}
  .photo-crop-format>span,.photo-crop-zoom>span{font-size:11px}
  .photo-crop-format select{min-height:46px;font-size:15px}
  .photo-fields-check{padding:13px}.photo-fields-check b{font-size:14px}.photo-fields-check small{font-size:12px}
  .photo-crop-mode{padding:11px 12px;font-size:12px}
}

/* Tablet storefront */
@media(min-width:761px) and (max-width:1099px){
  .shell{padding:18px}
  .shop-hero{grid-template-columns:1fr;padding:26px}.hero-side{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .shop-highlights{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.highlight-card{padding:14px;gap:10px}.highlight-icon{width:42px;height:42px;flex-basis:42px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cart-panel{width:min(680px,88vw)}
  .photo-crop-card{grid-template-columns:minmax(0,1fr) 220px}.photo-crop-canvas-wrap{min-height:300px}.photo-crop-canvas{max-height:540px}
}

/* Mobile storefront — full touch-first layout */
@media(max-width:760px){
  html{scroll-padding-top:12px}body{overflow-x:hidden;-webkit-text-size-adjust:100%}
  .shell{width:100%;max-width:none;padding:10px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .top{margin:2px 2px 12px}.brand{gap:9px}.brand-logo{width:34px;height:34px;flex-basis:34px}.brand b{font-size:17px}.brand small{font-size:11px}
  .shop-page{gap:10px}.shop-card{border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.07);backdrop-filter:none}
  .shop-hero{display:block;padding:16px;background:linear-gradient(145deg,#fff 0%,#fff8dc 100%)}.shop-hero::after{display:none}.shop-hero h1{font-size:clamp(27px,9vw,34px);margin:7px 0 9px;letter-spacing:-.04em}.shop-hero p{font-size:14px;line-height:1.5}.shop-kicker{font-size:10px;letter-spacing:.10em}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}.hero-actions .btn{min-height:48px;display:grid;place-items:center;width:100%;font-size:14px}
  .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:14px}.hero-stats>div{padding:10px;border-radius:14px}.hero-stats b{font-size:20px;margin-bottom:5px}.hero-stats span{font-size:11px}
  .hero-side{margin-top:12px;display:grid;grid-template-columns:1fr;gap:9px}.hero-badge-card{padding:14px;border-radius:17px}.hero-badge-title{font-size:10px;margin-bottom:10px}.hero-steps{gap:9px}.hero-steps li{grid-template-columns:30px 1fr;gap:9px}.hero-steps li span{width:30px;height:30px;border-radius:10px}.hero-steps li b{font-size:13px}.hero-steps li small{font-size:11px}.cart-pill-floating{width:100%;min-height:48px;font-size:14px}
  .shop-highlights{grid-template-columns:1fr;gap:8px}.highlight-card{padding:13px;border-radius:17px;gap:11px}.highlight-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px;font-size:21px}.highlight-card b{font-size:14px;margin-bottom:3px}.highlight-card p{font-size:12px;line-height:1.4}
  .shop-toolbar{padding:14px}.shop-toolbar-top{display:block;margin-bottom:12px}.shop-toolbar-top h2{font-size:23px;margin:4px 0 5px}.shop-toolbar-top p{font-size:12px;line-height:1.4}.shop-search{min-width:0;margin-top:11px}.shop-search input{min-height:48px;font-size:16px;padding:12px 14px;border-radius:14px}
  .shop-categories{gap:7px;margin:0 -4px;padding:2px 4px 5px;scroll-snap-type:x proximity}.cat{scroll-snap-align:start;min-height:42px;padding:9px 12px;font-size:12px}.cat:hover{transform:none}
  .product-grid{grid-template-columns:1fr;gap:10px}.product-card{min-height:0;padding:14px;border-radius:18px;gap:11px}.product-card:hover{transform:none;box-shadow:0 12px 28px rgba(15,23,42,.06)}.product-top{gap:10px}.product-emoji{width:48px;height:48px;flex-basis:48px;border-radius:14px;font-size:23px}.product-card h3{font-size:18px;margin:4px 0 6px}.product-card p{font-size:12px;line-height:1.45;margin-bottom:10px}.product-options{grid-template-columns:1fr!important;gap:9px;padding:10px;border-radius:14px;margin-top:8px}.product-option-field select,.product-qty-field input{width:100%;min-height:48px;font-size:16px;border-radius:12px}.product-purchase{grid-template-columns:1fr!important;gap:9px;align-items:stretch}.product-price-wrap{text-align:left!important}.product-price{max-width:none;font-size:16px}.product-card .add-btn{width:100%;min-height:50px;font-size:14px;border-radius:13px}
  .cart-backdrop{align-items:stretch;justify-content:stretch;background:rgba(17,24,39,.48)}.cart-panel{width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;padding:14px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));box-shadow:none;overscroll-behavior:contain}.cart-panel>.toolbar{position:sticky;top:calc(-1 * max(14px,env(safe-area-inset-top)));z-index:5;background:#fff;margin:0 -14px 8px;padding:14px;padding-top:max(14px,env(safe-area-inset-top));border-bottom:1px solid #edf0f3}.cart-panel>.toolbar h2{font-size:23px}.cart-close{width:44px;height:44px;flex:0 0 44px}.cart-row{padding:12px 0;align-items:flex-start}.cart-row-main b{font-size:14px}.cart-options{font-size:11px}.qty button{width:38px;height:38px}.cart-total{position:relative;font-size:15px}.cart-total b{font-size:18px}.checkout-btn{min-height:54px;font-size:16px;position:sticky;bottom:max(0px,env(safe-area-inset-bottom));z-index:4;box-shadow:0 -8px 22px rgba(255,255,255,.92),0 10px 24px rgba(15,23,42,.14)}
  #checkoutForm>.field{margin:11px 0}#checkoutForm .field label{font-size:13px}#checkoutForm .field input,#checkoutForm .field select,#checkoutForm .field textarea{min-height:48px;font-size:16px;border-radius:12px}#checkoutForm .field textarea{min-height:96px}#orderFiles{padding:10px!important;max-width:100%}.checkrow.compact{padding:9px 0}.hint{font-size:11px;line-height:1.4}
  .shop-success{margin:8px auto}.shop-success.card{padding:18px}.shop-success h1{font-size:30px}.success-mark{width:58px;height:58px;font-size:32px}.success-code{gap:8px;padding:13px;flex-direction:column;align-items:flex-start}.success-code b{font-size:23px;overflow-wrap:anywhere}.success-actions{display:grid;grid-template-columns:1fr;gap:8px}.success-actions .btn{width:100%;min-height:48px;text-align:center}.shop-order-lines>div{font-size:13px}.attachment{align-items:flex-start;flex-direction:column}

  /* Mobile crop editor */
  .photo-crop-section{margin-top:10px;padding:9px;border-radius:15px}.photo-crop-intro{flex-direction:column;gap:7px;margin-bottom:9px}.photo-crop-intro b{font-size:14px}.photo-crop-intro small{font-size:11px}.photo-crop-badge{padding:5px 8px;font-size:9px}
  .photo-crop-list{gap:10px}.photo-crop-card{grid-template-columns:1fr;gap:10px;padding:9px;border-radius:14px}.photo-crop-file{align-items:flex-start;gap:5px}.photo-crop-file b{white-space:normal;overflow-wrap:anywhere;font-size:11px}.photo-crop-file small{font-size:10px}
  .photo-crop-canvas-wrap{min-height:220px;width:100%;padding:8px;border-radius:12px}.photo-crop-canvas{width:auto;max-width:100%;height:auto;max-height:min(58dvh,420px);box-shadow:0 8px 22px rgba(15,23,42,.17)}
  .photo-crop-controls{gap:9px}.photo-crop-format select{min-height:48px;font-size:16px}.photo-fields-check{min-height:54px;padding:10px}.photo-fields-check input{width:21px;height:21px;flex-basis:21px}.photo-fields-check b{font-size:13px}.photo-fields-check small{font-size:11px}.photo-crop-zoom input{height:32px}.photo-crop-mode{padding:8px 9px;font-size:10px}
}

@media(max-width:390px){
  .shell{padding-left:8px;padding-right:8px}.shop-hero,.shop-toolbar{padding:13px}.shop-hero h1{font-size:27px}.hero-stats{grid-template-columns:1fr}.cart-panel{padding-left:11px;padding-right:11px}.cart-panel>.toolbar{margin-left:-11px;margin-right:-11px;padding-left:11px;padding-right:11px}.photo-crop-canvas-wrap{min-height:190px}.photo-crop-canvas{max-height:360px}
}

@media(hover:none) and (pointer:coarse){.product-card:hover,.cat:hover{transform:none}}

/* V20 — strict mobile width fix: no page-level horizontal overflow */
@media(max-width:760px){
  html,body{width:100%;max-width:100%;margin:0;overflow-x:hidden}
  .shell{width:100%;max-width:100%;min-width:0;margin:0;padding:10px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));overflow-x:hidden}
  .shop-page{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr);overflow:visible}
  .shop-card,.shop-hero,.shop-toolbar,.shop-hero-text,.hero-side,.hero-badge-card,.shop-highlights,.highlight-card,.shop-toolbar-top,.shop-search,.product-grid,.product-card,.product-top,.product-body,.product-options,.product-purchase,.product-price-wrap{min-width:0;max-width:100%}
  .shop-hero,.shop-toolbar,.product-grid{width:100%}
  .product-grid{grid-template-columns:minmax(0,1fr)!important}
  .hero-stats,.shop-highlights{grid-template-columns:minmax(0,1fr)!important}
  .product-options,.product-purchase{grid-template-columns:minmax(0,1fr)!important}
  .product-option-field,.product-qty-field{min-width:0;max-width:100%;width:100%}
  .product-option-field select,.product-qty-field input,.shop-search input,#checkoutForm input,#checkoutForm select,#checkoutForm textarea,#orderFiles{display:block;width:100%;max-width:100%;min-width:0}
  .shop-hero h1,.shop-hero p,.shop-toolbar h2,.shop-toolbar p,.product-card h3,.product-card p,.highlight-card p{max-width:100%;overflow-wrap:anywhere;word-break:normal}
  .shop-categories{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .cat{flex:0 0 auto}
  .cart-pill,.hero-actions .btn,.cart-pill-floating,.product-card .add-btn{max-width:100%;white-space:normal}
  .cart-backdrop{width:100vw;max-width:100vw;overflow:hidden}
  .cart-panel{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
  .cart-row,.cart-row-main,.qty,.cart-total,#checkoutForm,.photo-crop-section,.photo-crop-list,.photo-crop-card,.photo-crop-canvas-wrap,.photo-crop-controls{min-width:0;max-width:100%}
  .photo-crop-card{grid-template-columns:minmax(0,1fr)!important;width:100%}
  .photo-crop-canvas-wrap{width:100%;overflow:hidden}
  .photo-crop-canvas{max-width:100%!important}
}
@media(max-width:390px){
  .shell{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
  .shop-hero,.shop-toolbar{padding-left:13px;padding-right:13px}
  .shop-hero h1{font-size:26px;line-height:1.08}
}

/* V21 — многостраничный магазин и навигация по основным направлениям */
.shop-home-head,.shop-section-head{padding:26px 28px;display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(145deg,#fff 0%,#fff9e7 100%)}
.shop-home-copy,.shop-section-copy{min-width:0;flex:1}.shop-home-head h1,.shop-section-head h1{margin:7px 0 8px;font-size:clamp(30px,4vw,46px);letter-spacing:-.045em;line-height:1.05}.shop-home-head p,.shop-section-head p{margin:0;color:#667085;line-height:1.55;max-width:760px}.shop-home-cart,.shop-section-cart{flex:0 0 auto}
.shop-direction-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.shop-direction-card{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:18px;align-items:center;text-decoration:none;background:#fff;border:1px solid #e5e9f0;border-radius:10px;padding:18px 20px;color:#17191d;box-shadow:0 12px 28px rgba(15,23,42,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.shop-direction-card:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(15,23,42,.09);border-color:#d3d8e1}.shop-direction-icon,.shop-section-icon{display:grid;place-items:center;background:linear-gradient(135deg,#fff2b9 0%,#ffe18c 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8);overflow:hidden}.shop-direction-icon{width:66px;height:66px;border-radius:12px;font-size:31px}.shop-direction-icon img,.shop-section-icon img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}.shop-direction-icon img{object-position:center}.shop-section-icon img{object-position:center}.shop-direction-icon.is-image-large img{transform:scale(1.14)}.shop-section-icon.is-image-large img{transform:scale(1.12)}.shop-direction-main{display:grid;gap:4px;min-width:0}.shop-direction-main b{font-size:21px;line-height:1.2;letter-spacing:-.02em}.shop-direction-main strong{font-size:12px;color:#475467;font-weight:750}.shop-direction-main small{font-size:13px;color:#667085;line-height:1.45}.shop-direction-meta{display:flex;align-items:center;gap:15px;color:#667085;font-size:12px;white-space:nowrap}.shop-direction-meta i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#17191d;color:#fff;font-style:normal;font-size:21px;transition:transform .18s ease}.shop-direction-card:hover .shop-direction-meta i{transform:translateX(3px)}
.shop-back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;text-decoration:none;color:#475467;font-weight:800;font-size:13px}.shop-back-link:hover{color:#17191d}.shop-section-title-row{display:flex;align-items:center;gap:14px}.shop-section-icon{width:58px;height:58px;flex:0 0 58px;border-radius:12px;font-size:28px}.shop-section-title-row h1{margin:4px 0 0}.shop-section-head p{margin-top:12px}.shop-section-page .shop-toolbar{padding:18px 22px}.shop-section-page .shop-toolbar-top{margin-bottom:0}.shop-section-page .product-grid{margin-top:0}

@media(max-width:760px){
  .shop-home-head,.shop-section-head{padding:16px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;border-radius:18px}.shop-home-head h1,.shop-section-head h1{font-size:28px;margin:5px 0 7px}.shop-home-head p,.shop-section-head p{font-size:13px;line-height:1.48}.shop-home-cart,.shop-section-cart{width:100%;min-height:48px}
  .shop-direction-list{gap:9px}.shop-direction-card{grid-template-columns:52px minmax(0,1fr) 36px;gap:11px;padding:13px;border-radius:9px}.shop-direction-icon{width:52px;height:52px;border-radius:10px;font-size:25px}.shop-direction-main{gap:3px}.shop-direction-main b{font-size:17px}.shop-direction-main strong{font-size:10px}.shop-direction-main small{font-size:11px;line-height:1.35}.shop-direction-meta>span{display:none}.shop-direction-meta{gap:0}.shop-direction-meta i{width:36px;height:36px;border-radius:12px;font-size:18px}.shop-direction-card:hover{transform:none}
  .shop-back-link{font-size:12px;margin-bottom:12px}.shop-section-title-row{gap:10px}.shop-section-icon{width:50px;height:50px;flex-basis:50px;border-radius:10px;font-size:24px}.shop-section-page .shop-toolbar{padding:14px}.shop-section-page .shop-toolbar-top{display:block}.shop-section-page .shop-search{margin-top:11px}
}
@media(max-width:390px){
  .shop-home-head,.shop-section-head{padding:13px}.shop-direction-card{grid-template-columns:46px minmax(0,1fr) 32px;gap:9px;padding:11px;border-radius:8px}.shop-direction-icon{width:46px;height:46px;border-radius:9px;font-size:22px}.shop-direction-main b{font-size:16px}.shop-direction-main small{font-size:10.5px}.shop-direction-meta i{width:32px;height:32px;border-radius:10px}.shop-section-icon{width:46px;height:46px;flex-basis:46px;border-radius:9px}
}

/* V22 — компактная шапка магазина без широкого hero-блока */
.shop-topbar{
  margin:4px 0 18px;
  padding:16px 20px;
  min-height:72px;
  border:1px solid #e5e9f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.055);
  gap:18px;
}
.shop-brand{min-width:0;gap:12px}
.shop-brand-title{display:inline-grid;grid-template-columns:1fr;gap:2px;margin:0;min-width:13.4ch;line-height:1;font-weight:900;color:#17191d}.shop-brand-line{display:block;width:100%;white-space:nowrap}.shop-brand-line1{font-size:18px;letter-spacing:.14em}.shop-brand-line2{font-size:18px;letter-spacing:.032em}
.shop-topbar-cart{margin-left:auto;flex:0 0 auto}
.shop-home-page{padding-top:0}
.shop-home-page .shop-direction-list{margin-top:0}
.shop-section-head{background:#fff}
.shop-section-head .shop-section-copy{max-width:none}

@media(max-width:760px){
  .shop-topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    padding:12px 13px;
    border-radius:18px;
    gap:10px;
    margin-bottom:12px;
  }
  .shop-topbar .brand-logo{width:34px;height:34px;flex-basis:34px}
  .shop-brand{gap:8px}
  .shop-brand-title{min-width:10.8ch;gap:1px}.shop-brand-line1{font-size:13px;letter-spacing:.11em}.shop-brand-line2{font-size:13px;letter-spacing:.012em}
  .shop-topbar-cart{min-height:42px;padding:10px 12px;font-size:13px}
  .shop-section-head{padding:14px 15px}
}
@media(max-width:430px){
  .shop-topbar{grid-template-columns:1fr;padding:11px 12px}
  .shop-topbar .shop-brand{width:100%}
  .shop-brand-title{min-width:10.2ch}.shop-brand-line1{font-size:12px;letter-spacing:.09em}.shop-brand-line2{font-size:12px;letter-spacing:.008em}
  .shop-topbar-cart{width:100%;min-height:44px;margin:0}
}


/* V23 — 12 направлений, поиск по меню и компактная круглая корзина */
.shop-menu-search-wrap{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 40px;
  align-items:center;
  width:100%;
  margin:0 0 14px;
  background:#fff;
  border:1px solid #dde2ea;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
  overflow:hidden;
}
.shop-menu-search-icon{display:grid;place-items:center;font-size:24px;color:#667085;line-height:1}
.shop-menu-search-wrap input{
  width:100%;min-width:0;height:54px;border:0;outline:0;background:transparent;
  padding:0 8px 0 0;font:inherit;font-size:15px;color:#17191d;
}
.shop-menu-search-wrap input::placeholder{color:#98a2b3}
.shop-menu-search-clear{width:32px;height:32px;border:0;border-radius:50%;background:#eef1f5;color:#475467;font-size:20px;line-height:1;cursor:pointer;place-self:center}
.shop-menu-search-clear[hidden]{display:none}
.shop-menu-empty{padding:16px 18px;margin:0 0 12px;border:1px dashed #d6dae3;border-radius:16px;background:#fff;color:#667085;font-size:13px;text-align:center}
.shop-menu-empty[hidden]{display:none}
.shop-direction-card[hidden]{display:none!important}

.shop-cart-icon{
  position:relative;flex:0 0 46px;width:46px;height:46px;padding:0;border:0;border-radius:50%;
  display:grid;place-items:center;background:#17191d;color:#fff;cursor:pointer;
  box-shadow:0 8px 18px rgba(17,25,39,.16);transition:transform .16s ease,box-shadow .16s ease;
}
.shop-cart-icon:hover{transform:translateY(-1px);box-shadow:0 11px 23px rgba(17,25,39,.22)}
.shop-cart-glyph{font-size:19px;line-height:1;transform:translateX(-1px)}
.shop-cart-count{
  position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;
  display:grid;place-items:center;background:#f7c948;color:#17191d;border:2px solid #fff;
  font-size:10px;font-weight:900;line-height:1;
}
.shop-topbar-cart{margin-left:auto}

/* V23: компактный список направлений — хорошо читается даже при 12 пунктах */
.shop-direction-list{gap:9px}
.shop-direction-card{grid-template-columns:56px minmax(0,1fr) auto;padding:14px 17px;border-radius:10px;gap:14px}
.shop-direction-icon{width:56px;height:56px;border-radius:10px;font-size:26px}
.shop-direction-main b{font-size:19px}.shop-direction-main small{font-size:12px}
.shop-direction-meta i{width:38px;height:38px;border-radius:12px;font-size:19px}

@media(max-width:760px){
  .shop-topbar{grid-template-columns:minmax(0,1fr) 42px!important;padding:11px 12px!important;gap:9px!important}
  .shop-cart-icon{width:42px;height:42px;flex-basis:42px;margin-left:auto}
  .shop-cart-glyph{font-size:17px}.shop-cart-count{right:-3px;top:-4px}
  .shop-menu-search-wrap{grid-template-columns:38px minmax(0,1fr) 38px;margin-bottom:10px;border-radius:15px}
  .shop-menu-search-wrap input{height:48px;font-size:16px}
  .shop-menu-search-icon{font-size:21px}
  .shop-direction-list{gap:8px}
  .shop-direction-card{grid-template-columns:48px minmax(0,1fr) 34px;padding:11px 12px;gap:10px;border-radius:9px}
  .shop-direction-icon{width:48px;height:48px;border-radius:9px;font-size:22px}
  .shop-direction-main b{font-size:16px}.shop-direction-main small{font-size:10.5px;line-height:1.32}
  .shop-direction-meta i{width:34px;height:34px;border-radius:11px;font-size:17px}
}
@media(max-width:430px){
  .shop-topbar{grid-template-columns:minmax(0,1fr) 40px!important}
  .shop-topbar .shop-brand{min-width:0;width:auto!important}
  .shop-cart-icon{width:40px;height:40px;min-height:40px;margin:0 0 0 auto!important}
  .shop-direction-main small{display:none}
  .shop-direction-card{min-height:67px;border-radius:8px}
}

.shop-direction-icon.is-image-large{width:64px;height:64px;border-radius:12px}.shop-section-icon.is-image-large{width:64px;height:64px;flex-basis:64px;border-radius:12px}
@media(max-width:760px){.shop-direction-icon.is-image-large{width:54px;height:54px;border-radius:10px}.shop-section-icon.is-image-large{width:54px;height:54px;flex-basis:54px;border-radius:10px}}


/* V28 — квадратное меню с картинкой сверху и подписью снизу */
.shop-direction-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
  align-items:stretch;
}
.shop-direction-card{
  grid-template-columns:1fr !important;
  grid-template-rows:auto 1fr auto;
  justify-items:center;
  align-content:start;
  text-align:center;
  gap:12px;
  min-height:220px;
  aspect-ratio:1 / 1;
  padding:18px 14px;
  border-radius:12px;
}
.shop-direction-icon{
  width:92px;
  height:92px;
  border-radius:12px;
  margin-top:2px;
}
.shop-direction-icon.is-image-large{
  width:104px;
  height:104px;
  border-radius:12px;
}
.shop-direction-icon img,.shop-section-icon img{
  object-fit:contain;
}
.shop-direction-main{
  width:100%;
  display:grid;
  justify-items:center;
  align-content:start;
  gap:6px;
  text-align:center;
}
.shop-direction-main b{
  font-size:20px;
  line-height:1.18;
}
.shop-direction-main strong{
  display:none;
}
.shop-direction-main small{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  font-size:12px;
  line-height:1.38;
  max-width:100%;
}
.shop-direction-meta{
  width:100%;
  justify-content:center;
  gap:8px;
}
.shop-direction-meta > span{
  display:none !important;
}
.shop-direction-meta i{
  width:36px;
  height:36px;
  border-radius:10px;
}

@media(max-width:900px){
  .shop-direction-list{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:760px){
  .shop-direction-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .shop-direction-card{
    min-height:180px;
    padding:14px 10px;
    gap:9px;
    border-radius:10px;
  }
  .shop-direction-icon{
    width:72px;
    height:72px;
    border-radius:10px;
  }
  .shop-direction-icon.is-image-large{
    width:80px;
    height:80px;
    border-radius:10px;
  }
  .shop-direction-main b{font-size:16px;}
  .shop-direction-main small{
    -webkit-line-clamp:2;
    font-size:10.5px;
    line-height:1.28;
  }
  .shop-direction-meta i{
    width:32px;
    height:32px;
    border-radius:9px;
    font-size:16px;
  }
}
@media(max-width:390px){
  .shop-direction-card{
    min-height:168px;
    padding:12px 8px;
  }
  .shop-direction-icon{
    width:64px;
    height:64px;
    border-radius:9px;
  }
  .shop-direction-icon.is-image-large{
    width:72px;
    height:72px;
    border-radius:9px;
  }
  .shop-direction-main b{font-size:14px;}
}


/* V31 — убрать жёлтый фон у значков и сделать их крупнее */
.shop-direction-card{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
.shop-direction-card:hover{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  transform:none !important;
}
.shop-direction-icon{
  background:transparent !important;
  box-shadow:none !important;
  width:108px;
  height:108px;
  border-radius:0 !important;
  margin-top:0;
}
.shop-direction-icon.is-image-large{
  width:122px;
  height:122px;
  border-radius:0 !important;
}
.shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(max-width:760px){
  .shop-direction-icon{
    width:84px;
    height:84px;
    border-radius:0 !important;
  }
  .shop-direction-icon.is-image-large{
    width:96px;
    height:96px;
    border-radius:0 !important;
  }
}
@media(max-width:390px){
  .shop-direction-icon{
    width:76px;
    height:76px;
  }
  .shop-direction-icon.is-image-large{
    width:86px;
    height:86px;
  }
}


/* V32 — объёмные плитки без стрелок */
.shop-direction-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:18px;
  align-items:stretch;
}
.shop-direction-card{
  background:#fff !important;
  border:1px solid #e7ebf1 !important;
  border-radius:18px !important;
  box-shadow:0 10px 30px rgba(17,24,39,.08), 0 2px 8px rgba(17,24,39,.04) !important;
  grid-template-columns:1fr !important;
  grid-template-rows:auto auto 1fr !important;
  justify-items:center;
  align-content:start;
  text-align:center;
  aspect-ratio:1 / 1;
  min-height:220px;
  padding:22px 16px 18px;
  gap:12px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shop-direction-card:hover{
  transform:translateY(-3px) scale(1.025) !important;
  box-shadow:0 18px 42px rgba(17,24,39,.12), 0 4px 14px rgba(17,24,39,.06) !important;
  border-color:#dde3ea !important;
}
.shop-direction-icon{
  background:transparent !important;
  box-shadow:none !important;
  width:94px;
  height:94px;
  border-radius:0 !important;
  margin-top:0;
}
.shop-direction-icon.is-image-large{
  width:110px;
  height:110px;
  border-radius:0 !important;
}
.shop-direction-icon img{width:100%;height:100%;object-fit:contain;}
.shop-direction-main{
  display:grid;
  justify-items:center;
  align-content:start;
  gap:7px;
  width:100%;
}
.shop-direction-main b{
  font-size:18px;
  line-height:1.18;
  letter-spacing:-.02em;
}
.shop-direction-main strong{display:none !important;}
.shop-direction-main small{
  display:-webkit-box !important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  font-size:12px;
  line-height:1.35;
  color:#667085;
  max-width:100%;
}
.shop-direction-meta,
.shop-direction-meta i,
.shop-direction-meta > span{
  display:none !important;
}
@media(max-width:900px){
  .shop-direction-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
}
@media(max-width:760px){
  .shop-direction-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .shop-direction-card{
    min-height:185px;
    padding:16px 10px 14px;
    gap:9px;
    border-radius:14px !important;
  }
  .shop-direction-card:hover{
    transform:none !important;
    box-shadow:0 10px 28px rgba(17,24,39,.1), 0 3px 10px rgba(17,24,39,.05) !important;
  }
  .shop-direction-icon{width:78px;height:78px;}
  .shop-direction-icon.is-image-large{width:90px;height:90px;}
  .shop-direction-main b{font-size:15px;}
  .shop-direction-main small{-webkit-line-clamp:2;font-size:10.5px;line-height:1.28;}
}
@media(max-width:390px){
  .shop-direction-card{padding:14px 8px 12px;min-height:172px;}
  .shop-direction-icon{width:70px;height:70px;}
  .shop-direction-icon.is-image-large{width:80px;height:80px;}
  .shop-direction-main b{font-size:14px;}
}


/* V33 — иконки-плитки, без белого фона у карточек */
.shop-direction-card{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.shop-direction-card:hover{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  transform:translateY(-2px) scale(1.02) !important;
}
.shop-direction-icon{
  background:linear-gradient(180deg,#fff2b9 0%,#ffe18c 100%) !important;
  box-shadow:0 8px 18px rgba(17,24,39,.08), inset 0 1px 0 rgba(255,255,255,.75) !important;
  width:98px;
  height:98px;
  border-radius:18px !important;
  padding:10px;
}
.shop-direction-icon.is-image-large{
  width:112px;
  height:112px;
  border-radius:20px !important;
  padding:10px;
}
.shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.shop-direction-main b{
  font-size:18px;
}
.shop-direction-main small{
  color:#667085;
}
@media(max-width:760px){
  .shop-direction-card:hover{transform:none !important;}
  .shop-direction-icon{
    width:82px;
    height:82px;
    border-radius:16px !important;
    padding:8px;
  }
  .shop-direction-icon.is-image-large{
    width:94px;
    height:94px;
    border-radius:18px !important;
    padding:8px;
  }
}
@media(max-width:390px){
  .shop-direction-icon{
    width:74px;
    height:74px;
    border-radius:14px !important;
  }
  .shop-direction-icon.is-image-large{
    width:84px;
    height:84px;
    border-radius:16px !important;
  }
}


/* V34 — крупнее иконки-плитки без белой и жёлтой обводки */
.shop-direction-icon{
  width:112px !important;
  height:112px !important;
  padding:6px !important;
  background:#f6de86 !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:16px !important;
}
.shop-direction-icon.is-image-large{
  width:126px !important;
  height:126px !important;
  padding:6px !important;
  background:#f6de86 !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:18px !important;
}
.shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:none;
}
@media(max-width:760px){
  .shop-direction-icon{
    width:92px !important;
    height:92px !important;
    padding:5px !important;
    border-radius:14px !important;
  }
  .shop-direction-icon.is-image-large{
    width:104px !important;
    height:104px !important;
    padding:5px !important;
    border-radius:16px !important;
  }
}
@media(max-width:390px){
  .shop-direction-icon{
    width:82px !important;
    height:82px !important;
    padding:4px !important;
    border-radius:12px !important;
  }
  .shop-direction-icon.is-image-large{
    width:92px !important;
    height:92px !important;
    padding:4px !important;
    border-radius:14px !important;
  }
}


/* V36 — увеличить картинку фотопечати и сделать её кнопкой */
/* Кнопка-картинка для раздела «Фотопечать» */
.shop-direction-card[data-section="photoprint"],
.shop-direction-card[href*="section=photoprint"]{
  gap:10px;
}
.shop-direction-card[data-section="photoprint"] .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon{
  width:146px !important;
  height:146px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  border-radius:28px !important;
  box-shadow:0 12px 30px rgba(17,24,39,.14), 0 3px 10px rgba(17,24,39,.08) !important;
  overflow:hidden;
}
.shop-direction-card[data-section="photoprint"] .shop-direction-icon img,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  transform:scale(1.05);
}
.shop-direction-card[data-section="photoprint"] .shop-direction-main b,
.shop-direction-card[href*="section=photoprint"] .shop-direction-main b{
  font-size:19px;
}
.shop-direction-card[data-section="photoprint"]:hover .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"]:hover .shop-direction-icon{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 18px 42px rgba(17,24,39,.18), 0 5px 14px rgba(17,24,39,.10) !important;
}
/* Та же картинка в шапке раздела */
.shop-section-icon.is-image-large{
  width:82px !important;
  height:82px !important;
  flex-basis:82px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  border-radius:22px !important;
  box-shadow:0 10px 24px rgba(17,24,39,.12), 0 3px 10px rgba(17,24,39,.07) !important;
  overflow:hidden;
}
.shop-section-icon.is-image-large img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
@media(max-width:760px){
  .shop-direction-card[data-section="photoprint"] .shop-direction-icon,
  .shop-direction-card[href*="section=photoprint"] .shop-direction-icon{
    width:118px !important;
    height:118px !important;
    border-radius:22px !important;
  }
  .shop-section-icon.is-image-large{
    width:66px !important;
    height:66px !important;
    flex-basis:66px !important;
    border-radius:18px !important;
  }
}
@media(max-width:390px){
  .shop-direction-card[data-section="photoprint"] .shop-direction-icon,
  .shop-direction-card[href*="section=photoprint"] .shop-direction-icon{
    width:104px !important;
    height:104px !important;
    border-radius:20px !important;
  }
}


/* V37 — фотопечать без фона кнопки */
.shop-direction-card[data-section="photoprint"] .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon{
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  padding:0 !important;
}
.shop-direction-card[data-section="photoprint"]:hover .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"]:hover .shop-direction-icon{
  box-shadow:none !important;
}
.shop-section-icon.is-image-large{
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  padding:0 !important;
}


/* V42 — иконки для фотокниг, подарочных боксов и холста как у кнопки 1 */
.shop-direction-card[data-section="photobooks"],
.shop-direction-card[data-section="giftboxes"],
.shop-direction-card[data-section="canvas"],
.shop-direction-card[href*="section=photobooks"],
.shop-direction-card[href*="section=giftboxes"],
.shop-direction-card[href*="section=canvas"]{
  gap:10px;
}
.shop-direction-card[data-section="photobooks"] .shop-direction-icon,
.shop-direction-card[data-section="giftboxes"] .shop-direction-icon,
.shop-direction-card[data-section="canvas"] .shop-direction-icon,
.shop-direction-card[href*="section=photobooks"] .shop-direction-icon,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-icon,
.shop-direction-card[href*="section=canvas"] .shop-direction-icon{
  width:146px !important;
  height:146px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:28px !important;
  overflow:hidden;
}
.shop-direction-card[data-section="photobooks"] .shop-direction-icon img,
.shop-direction-card[data-section="giftboxes"] .shop-direction-icon img,
.shop-direction-card[data-section="canvas"] .shop-direction-icon img,
.shop-direction-card[href*="section=photobooks"] .shop-direction-icon img,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-icon img,
.shop-direction-card[href*="section=canvas"] .shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  transform:scale(1.05);
}
.shop-direction-card[data-section="photobooks"] .shop-direction-main b,
.shop-direction-card[data-section="giftboxes"] .shop-direction-main b,
.shop-direction-card[data-section="canvas"] .shop-direction-main b,
.shop-direction-card[href*="section=photobooks"] .shop-direction-main b,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-main b,
.shop-direction-card[href*="section=canvas"] .shop-direction-main b{
  font-size:19px;
}
.shop-section-icon.is-image-large{
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden;
}
@media(max-width:760px){
  .shop-direction-card[data-section="photobooks"] .shop-direction-icon,
  .shop-direction-card[data-section="giftboxes"] .shop-direction-icon,
  .shop-direction-card[data-section="canvas"] .shop-direction-icon,
  .shop-direction-card[href*="section=photobooks"] .shop-direction-icon,
  .shop-direction-card[href*="section=giftboxes"] .shop-direction-icon,
  .shop-direction-card[href*="section=canvas"] .shop-direction-icon{
    width:118px !important;
    height:118px !important;
    border-radius:22px !important;
  }
}
@media(max-width:390px){
  .shop-direction-card[data-section="photobooks"] .shop-direction-icon,
  .shop-direction-card[data-section="giftboxes"] .shop-direction-icon,
  .shop-direction-card[data-section="canvas"] .shop-direction-icon,
  .shop-direction-card[href*="section=photobooks"] .shop-direction-icon,
  .shop-direction-card[href*="section=giftboxes"] .shop-direction-icon,
  .shop-direction-card[href*="section=canvas"] .shop-direction-icon{
    width:104px !important;
    height:104px !important;
    border-radius:20px !important;
  }
}


/* V43 — иконки для блокнотов и визиток как у кнопки 1 */
.shop-direction-card[data-section="notebooks"],
.shop-direction-card[data-section="businesscards"],
.shop-direction-card[href*="section=notebooks"],
.shop-direction-card[href*="section=businesscards"]{
  gap:10px;
}
.shop-direction-card[data-section="notebooks"] .shop-direction-icon,
.shop-direction-card[data-section="businesscards"] .shop-direction-icon,
.shop-direction-card[href*="section=notebooks"] .shop-direction-icon,
.shop-direction-card[href*="section=businesscards"] .shop-direction-icon{
  width:146px !important;
  height:146px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:28px !important;
  overflow:hidden;
}
.shop-direction-card[data-section="notebooks"] .shop-direction-icon img,
.shop-direction-card[data-section="businesscards"] .shop-direction-icon img,
.shop-direction-card[href*="section=notebooks"] .shop-direction-icon img,
.shop-direction-card[href*="section=businesscards"] .shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  transform:scale(1.05);
}
.shop-direction-card[data-section="notebooks"] .shop-direction-main b,
.shop-direction-card[data-section="businesscards"] .shop-direction-main b,
.shop-direction-card[href*="section=notebooks"] .shop-direction-main b,
.shop-direction-card[href*="section=businesscards"] .shop-direction-main b{
  font-size:19px;
}
.shop-section-icon.is-image-large{
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden;
}
@media(max-width:760px){
  .shop-direction-card[data-section="notebooks"] .shop-direction-icon,
  .shop-direction-card[data-section="businesscards"] .shop-direction-icon,
  .shop-direction-card[href*="section=notebooks"] .shop-direction-icon,
  .shop-direction-card[href*="section=businesscards"] .shop-direction-icon{
    width:118px !important;
    height:118px !important;
    border-radius:22px !important;
  }
}
@media(max-width:390px){
  .shop-direction-card[data-section="notebooks"] .shop-direction-icon,
  .shop-direction-card[data-section="businesscards"] .shop-direction-icon,
  .shop-direction-card[href*="section=notebooks"] .shop-direction-icon,
  .shop-direction-card[href*="section=businesscards"] .shop-direction-icon{
    width:104px !important;
    height:104px !important;
    border-radius:20px !important;
  }
}


/* V44 — все 12 кнопок с новыми крупными иконками */
.shop-direction-card[data-section="photoprint"] .shop-direction-icon,
.shop-direction-card[data-section="art"] .shop-direction-icon,
.shop-direction-card[data-section="souvenirs"] .shop-direction-icon,
.shop-direction-card[data-section="copycenter"] .shop-direction-icon,
.shop-direction-card[data-section="documents"] .shop-direction-icon,
.shop-direction-card[data-section="posters"] .shop-direction-icon,
.shop-direction-card[data-section="photobooks"] .shop-direction-icon,
.shop-direction-card[data-section="giftboxes"] .shop-direction-icon,
.shop-direction-card[data-section="service"] .shop-direction-icon,
.shop-direction-card[data-section="businesscards"] .shop-direction-icon,
.shop-direction-card[data-section="notebooks"] .shop-direction-icon,
.shop-direction-card[data-section="canvas"] .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon,
.shop-direction-card[href*="section=art"] .shop-direction-icon,
.shop-direction-card[href*="section=souvenirs"] .shop-direction-icon,
.shop-direction-card[href*="section=copycenter"] .shop-direction-icon,
.shop-direction-card[href*="section=documents"] .shop-direction-icon,
.shop-direction-card[href*="section=posters"] .shop-direction-icon,
.shop-direction-card[href*="section=photobooks"] .shop-direction-icon,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-icon,
.shop-direction-card[href*="section=service"] .shop-direction-icon,
.shop-direction-card[href*="section=businesscards"] .shop-direction-icon,
.shop-direction-card[href*="section=notebooks"] .shop-direction-icon,
.shop-direction-card[href*="section=canvas"] .shop-direction-icon{
  width:146px !important;
  height:146px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:28px !important;
  overflow:hidden;
}
.shop-direction-card[data-section="photoprint"] .shop-direction-icon img,
.shop-direction-card[data-section="art"] .shop-direction-icon img,
.shop-direction-card[data-section="souvenirs"] .shop-direction-icon img,
.shop-direction-card[data-section="copycenter"] .shop-direction-icon img,
.shop-direction-card[data-section="documents"] .shop-direction-icon img,
.shop-direction-card[data-section="posters"] .shop-direction-icon img,
.shop-direction-card[data-section="photobooks"] .shop-direction-icon img,
.shop-direction-card[data-section="giftboxes"] .shop-direction-icon img,
.shop-direction-card[data-section="service"] .shop-direction-icon img,
.shop-direction-card[data-section="businesscards"] .shop-direction-icon img,
.shop-direction-card[data-section="notebooks"] .shop-direction-icon img,
.shop-direction-card[data-section="canvas"] .shop-direction-icon img,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon img,
.shop-direction-card[href*="section=art"] .shop-direction-icon img,
.shop-direction-card[href*="section=souvenirs"] .shop-direction-icon img,
.shop-direction-card[href*="section=copycenter"] .shop-direction-icon img,
.shop-direction-card[href*="section=documents"] .shop-direction-icon img,
.shop-direction-card[href*="section=posters"] .shop-direction-icon img,
.shop-direction-card[href*="section=photobooks"] .shop-direction-icon img,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-icon img,
.shop-direction-card[href*="section=service"] .shop-direction-icon img,
.shop-direction-card[href*="section=businesscards"] .shop-direction-icon img,
.shop-direction-card[href*="section=notebooks"] .shop-direction-icon img,
.shop-direction-card[href*="section=canvas"] .shop-direction-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  transform:scale(1.02);
}
.shop-section-icon.is-image-large{
  width:146px !important;
  height:146px !important;
  flex:0 0 146px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:28px !important;
  overflow:hidden;
}
.shop-section-icon.is-image-large img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  transform:scale(1.02);
}
@media(max-width:760px){
  .shop-direction-card[data-section="photoprint"] .shop-direction-icon,
.shop-direction-card[data-section="art"] .shop-direction-icon,
.shop-direction-card[data-section="souvenirs"] .shop-direction-icon,
.shop-direction-card[data-section="copycenter"] .shop-direction-icon,
.shop-direction-card[data-section="documents"] .shop-direction-icon,
.shop-direction-card[data-section="posters"] .shop-direction-icon,
.shop-direction-card[data-section="photobooks"] .shop-direction-icon,
.shop-direction-card[data-section="giftboxes"] .shop-direction-icon,
.shop-direction-card[data-section="service"] .shop-direction-icon,
.shop-direction-card[data-section="businesscards"] .shop-direction-icon,
.shop-direction-card[data-section="notebooks"] .shop-direction-icon,
.shop-direction-card[data-section="canvas"] .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon,
.shop-direction-card[href*="section=art"] .shop-direction-icon,
.shop-direction-card[href*="section=souvenirs"] .shop-direction-icon,
.shop-direction-card[href*="section=copycenter"] .shop-direction-icon,
.shop-direction-card[href*="section=documents"] .shop-direction-icon,
.shop-direction-card[href*="section=posters"] .shop-direction-icon,
.shop-direction-card[href*="section=photobooks"] .shop-direction-icon,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-icon,
.shop-direction-card[href*="section=service"] .shop-direction-icon,
.shop-direction-card[href*="section=businesscards"] .shop-direction-icon,
.shop-direction-card[href*="section=notebooks"] .shop-direction-icon,
.shop-direction-card[href*="section=canvas"] .shop-direction-icon{
    width:118px !important;
    height:118px !important;
    border-radius:22px !important;
  }
  .shop-section-icon.is-image-large{
    width:118px !important;
    height:118px !important;
    flex-basis:118px !important;
    border-radius:22px !important;
  }
}
@media(max-width:390px){
  .shop-direction-card[data-section="photoprint"] .shop-direction-icon,
.shop-direction-card[data-section="art"] .shop-direction-icon,
.shop-direction-card[data-section="souvenirs"] .shop-direction-icon,
.shop-direction-card[data-section="copycenter"] .shop-direction-icon,
.shop-direction-card[data-section="documents"] .shop-direction-icon,
.shop-direction-card[data-section="posters"] .shop-direction-icon,
.shop-direction-card[data-section="photobooks"] .shop-direction-icon,
.shop-direction-card[data-section="giftboxes"] .shop-direction-icon,
.shop-direction-card[data-section="service"] .shop-direction-icon,
.shop-direction-card[data-section="businesscards"] .shop-direction-icon,
.shop-direction-card[data-section="notebooks"] .shop-direction-icon,
.shop-direction-card[data-section="canvas"] .shop-direction-icon,
.shop-direction-card[href*="section=photoprint"] .shop-direction-icon,
.shop-direction-card[href*="section=art"] .shop-direction-icon,
.shop-direction-card[href*="section=souvenirs"] .shop-direction-icon,
.shop-direction-card[href*="section=copycenter"] .shop-direction-icon,
.shop-direction-card[href*="section=documents"] .shop-direction-icon,
.shop-direction-card[href*="section=posters"] .shop-direction-icon,
.shop-direction-card[href*="section=photobooks"] .shop-direction-icon,
.shop-direction-card[href*="section=giftboxes"] .shop-direction-icon,
.shop-direction-card[href*="section=service"] .shop-direction-icon,
.shop-direction-card[href*="section=businesscards"] .shop-direction-icon,
.shop-direction-card[href*="section=notebooks"] .shop-direction-icon,
.shop-direction-card[href*="section=canvas"] .shop-direction-icon{
    width:104px !important;
    height:104px !important;
    border-radius:20px !important;
  }
  .shop-section-icon.is-image-large{
    width:104px !important;
    height:104px !important;
    flex-basis:104px !important;
    border-radius:20px !important;
  }
}


/* V45 — выравнивание всех кнопок и только названия */
#shopDirectionList.shop-direction-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
  gap:18px !important;
}
#shopDirectionList .shop-direction-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  min-height:210px !important;
  padding:18px 14px 16px !important;
  gap:12px !important;
  border-radius:20px !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  grid-template-columns:none !important;
}
#shopDirectionList .shop-direction-card:hover{
  transform:translateY(-3px) !important;
  box-shadow:none !important;
  border-color:transparent !important;
}
#shopDirectionList .shop-direction-main{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0 !important;
  gap:0 !important;
}
#shopDirectionList .shop-direction-main strong,
#shopDirectionList .shop-direction-main small,
#shopDirectionList .shop-direction-meta{
  display:none !important;
}
#shopDirectionList .shop-direction-main b{
  display:block !important;
  font-size:20px !important;
  line-height:1.15 !important;
  letter-spacing:-0.02em !important;
  font-weight:800 !important;
  max-width:100% !important;
}
#shopDirectionList .shop-direction-icon,
#shopDirectionList .shop-direction-icon.is-image-large{
  width:146px !important;
  height:146px !important;
  flex:0 0 146px !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:28px !important;
  overflow:hidden !important;
}
#shopDirectionList .shop-direction-icon img,
#shopDirectionList .shop-direction-icon.is-image-large img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:inherit !important;
  transform:scale(1.02) !important;
}
@media (max-width:760px){
  #shopDirectionList.shop-direction-list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }
  #shopDirectionList .shop-direction-card{
    min-height:170px !important;
    padding:14px 10px 12px !important;
    border-radius:16px !important;
    gap:10px !important;
  }
  #shopDirectionList .shop-direction-icon,
  #shopDirectionList .shop-direction-icon.is-image-large{
    width:112px !important;
    height:112px !important;
    flex-basis:112px !important;
    border-radius:22px !important;
  }
  #shopDirectionList .shop-direction-main b{
    font-size:18px !important;
  }
}
@media (max-width:390px){
  #shopDirectionList .shop-direction-card{
    min-height:158px !important;
    padding:12px 8px 10px !important;
    gap:8px !important;
  }
  #shopDirectionList .shop-direction-icon,
  #shopDirectionList .shop-direction-icon.is-image-large{
    width:96px !important;
    height:96px !important;
    flex-basis:96px !important;
    border-radius:20px !important;
  }
  #shopDirectionList .shop-direction-main b{
    font-size:16px !important;
  }
}


/* V46 — одинаковый размер всех иконок меню */
#shopDirectionList .shop-direction-card{
  align-items:center !important;
}
#shopDirectionList .shop-direction-icon,
#shopDirectionList .shop-direction-icon.is-image-large{
  width:132px !important;
  height:132px !important;
  min-width:132px !important;
  min-height:132px !important;
  flex:0 0 132px !important;
  border-radius:26px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  padding:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#shopDirectionList .shop-direction-icon img,
#shopDirectionList .shop-direction-icon.is-image-large img{
  width:132px !important;
  height:132px !important;
  max-width:132px !important;
  max-height:132px !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:26px !important;
  transform:none !important;
  display:block !important;
}
@media (max-width:760px){
  #shopDirectionList .shop-direction-icon,
  #shopDirectionList .shop-direction-icon.is-image-large{
    width:104px !important;
    height:104px !important;
    min-width:104px !important;
    min-height:104px !important;
    flex-basis:104px !important;
    border-radius:22px !important;
  }
  #shopDirectionList .shop-direction-icon img,
  #shopDirectionList .shop-direction-icon.is-image-large img{
    width:104px !important;
    height:104px !important;
    max-width:104px !important;
    max-height:104px !important;
    border-radius:22px !important;
  }
}
@media (max-width:390px){
  #shopDirectionList .shop-direction-icon,
  #shopDirectionList .shop-direction-icon.is-image-large{
    width:92px !important;
    height:92px !important;
    min-width:92px !important;
    min-height:92px !important;
    flex-basis:92px !important;
    border-radius:18px !important;
  }
  #shopDirectionList .shop-direction-icon img,
  #shopDirectionList .shop-direction-icon.is-image-large img{
    width:92px !important;
    height:92px !important;
    max-width:92px !important;
    max-height:92px !important;
    border-radius:18px !important;
  }
}


/* V48 — визуальное выравнивание первой иконки */
#shopDirectionList .shop-direction-card[data-section="photoprint"] .shop-direction-icon img,
#shopDirectionList .shop-direction-card[href*="section=photoprint"] .shop-direction-icon img{
  transform:scale(1.085) !important;
  transform-origin:center center !important;
}

/* V22 — карточки услуг без emoji, получение заказа, редактирование корзины */
.product-icon-image{width:62px;height:62px;flex:0 0 62px;border-radius:18px;overflow:hidden;background:#f7efe5;box-shadow:inset 0 0 0 1px rgba(15,23,42,.05)}
.product-icon-image img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.04)}
.product-card.cart-editing{border-color:#e8b91e;box-shadow:0 0 0 3px rgba(232,185,30,.14),0 18px 38px rgba(15,23,42,.08)}
.product-card.cart-editing-pulse{transform:translateY(-3px) scale(1.005)}
.cart-row-actions{display:flex;align-items:center;gap:10px;margin-top:4px}
.cart-edit,.cart-remove{border:0;background:transparent;padding:4px 0;font-size:11px;font-weight:800;cursor:pointer}
.cart-edit{color:#344054}.cart-edit:hover{color:#111827}.cart-remove{color:#b42318}
.delivery-choice{border:0;padding:0;margin:16px 0}.delivery-choice legend{font-size:13px;font-weight:800;margin-bottom:8px}
.delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.delivery-options label{cursor:pointer;position:relative}.delivery-options input{position:absolute;opacity:0;pointer-events:none}
.delivery-options span{display:grid;gap:2px;border:1px solid #d9dee7;border-radius:13px;padding:12px 13px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.delivery-options b{font-size:13px}.delivery-options small{font-size:11px;color:#667085}
.delivery-options input:checked+span{border-color:#d7aa16;background:#fff9df;box-shadow:0 0 0 2px rgba(215,170,22,.12)}
.delivery-address-field[hidden]{display:none!important}
.photo-copies-section{margin-top:12px;border:1px solid #e4e8ef;background:#fafbfc;border-radius:16px;padding:12px}
.photo-copies-head{display:grid;gap:3px;margin-bottom:10px}.photo-copies-head b{font-size:13px}.photo-copies-head small{font-size:11px;color:#667085;line-height:1.4}
.photo-copies-list{display:grid;gap:8px}.photo-copy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5e9ef;border-radius:12px;padding:9px 10px;background:#fff}
.photo-copy-name{display:grid;gap:2px;min-width:0}.photo-copy-name b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-copy-name small{font-size:10px;color:#98a2b3}
.photo-copy-qty{display:flex;align-items:center;gap:7px;flex:0 0 auto}.photo-copy-qty small{font-size:10px;color:#667085;font-weight:800}.photo-copy-qty input{width:72px!important;min-height:40px!important;padding:7px 8px!important;text-align:center}
.photo-copies-warning{margin-top:10px;padding:9px 10px;border-radius:11px;font-size:11px;font-weight:750;line-height:1.4}.photo-copies-warning.warn{background:#fff2e8;color:#9a3412}.photo-copies-warning.ok{background:#ecfdf3;color:#067647}
@media(max-width:760px){.product-icon-image{width:52px;height:52px;flex-basis:52px;border-radius:15px}.delivery-options{grid-template-columns:1fr}.photo-copy-row{align-items:flex-start}.photo-copy-name b{white-space:normal;overflow-wrap:anywhere}.photo-copy-qty input{width:68px!important}}
.cart-row-wrap{border-bottom:1px solid var(--line)}.cart-row-wrap>.cart-row{border-bottom:0}
.cart-inline-editor{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 0 14px}
.cart-edit-field{display:grid;gap:5px;min-width:0}.cart-edit-field>span{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:#667085}.cart-edit-field select,.cart-edit-field input{width:100%;min-width:0;border:1px solid #d6dae3;border-radius:11px;padding:9px 10px;background:#fff;font:inherit}
.cart-edit-qty-field{grid-column:1/-1}.cart-edit-actions{grid-column:1/-1;display:flex;gap:8px}.cart-edit-actions .btn{padding:9px 12px;font-size:12px}
@media(max-width:520px){.cart-inline-editor{grid-template-columns:1fr}.cart-edit-qty-field,.cart-edit-actions{grid-column:auto}.cart-edit-actions{display:grid;grid-template-columns:1fr 1fr}.cart-edit-actions .btn{width:100%}}


/* VK Mini Apps: корректная работа внутри iOS/Android WebView и desktop iframe */
html.vk-miniapp,
html.vk-miniapp body {
  min-height: 100%;
  overscroll-behavior-y: none;
}
html.vk-miniapp .shell {
  min-height: 100vh;
  min-height: 100dvh;
}
html.vk-miniapp .shop-topbar {
  padding-top: max(12px, env(safe-area-inset-top));
}
html.vk-miniapp footer {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
html.vk-miniapp .cart-panel {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
@media (max-width: 680px) {
  html.vk-miniapp .shop-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
  }
}


/* V49 — адаптация магазина под фактическое окно VK Mini Apps / iframe */
html.vk-miniapp,
html.vk-miniapp body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
html.vk-miniapp body{
  background:#f5f6f8;
}
html.vk-miniapp .shell{
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding:12px 14px 18px;
  overflow-x:hidden;
}
html.vk-miniapp main,
html.vk-miniapp .shop-page,
html.vk-miniapp .shop-card,
html.vk-miniapp .shop-section-copy,
html.vk-miniapp .shop-toolbar,
html.vk-miniapp .shop-toolbar-top,
html.vk-miniapp .product-grid,
html.vk-miniapp .product-card,
html.vk-miniapp .product-body,
html.vk-miniapp .product-options,
html.vk-miniapp .product-purchase{
  min-width:0;
  max-width:100%;
}
html.vk-miniapp .shop-page{gap:12px}
html.vk-miniapp .shop-topbar{
  margin:0 0 12px;
  padding:10px 12px;
  min-height:58px;
  border-radius:16px;
  background:rgba(255,255,255,.94);
  border:1px solid #e7eaf0;
  box-shadow:0 7px 18px rgba(15,23,42,.05);
}
html.vk-miniapp .shop-section-head{padding:18px 20px;border-radius:18px}
html.vk-miniapp .shop-section-head h1{font-size:clamp(24px,3.5vw,34px);line-height:1.08}
html.vk-miniapp .shop-section-head p{margin-bottom:0}
html.vk-miniapp .shop-toolbar{padding:17px 18px;border-radius:18px}
html.vk-miniapp .shop-toolbar-top h2{font-size:25px}
html.vk-miniapp .shop-menu-search-wrap{margin-bottom:12px}

/* Cart must stay inside the VK viewport, not outside the iframe. */
html.vk-miniapp .cart-backdrop{
  width:100%;
  max-width:100%;
  height:100dvh;
  max-height:100dvh;
  overflow:hidden;
}
html.vk-miniapp .cart-panel{
  width:min(500px,100%);
  max-width:100%;
  min-width:0;
  height:100dvh;
  max-height:100dvh;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:18px;
  border-radius:22px 0 0 22px;
}
html.vk-miniapp .cart-row,
html.vk-miniapp .cart-row-main,
html.vk-miniapp #checkoutForm,
html.vk-miniapp .photo-copies-section,
html.vk-miniapp .photo-crop-section,
html.vk-miniapp .photo-crop-card{
  min-width:0;
  max-width:100%;
}
html.vk-miniapp #checkoutForm input,
html.vk-miniapp #checkoutForm select,
html.vk-miniapp #checkoutForm textarea,
html.vk-miniapp #orderFiles{
  width:100%;
  max-width:100%;
  min-width:0;
}
html.vk-miniapp .photo-crop-card{grid-template-columns:minmax(0,1fr)!important}
html.vk-miniapp .photo-crop-canvas-wrap{width:100%;min-width:0;overflow:hidden}
html.vk-miniapp .photo-crop-canvas{max-width:100%!important}

/* Typical VK desktop iframe is much narrower than a normal website. */
@media (min-width:761px) and (max-width:1100px){
  html.vk-miniapp .shell{padding:10px 12px 16px}
  html.vk-miniapp .shop-topbar{position:sticky;top:0;z-index:30}
  html.vk-miniapp #shopDirectionList.shop-direction-list{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-card{
    min-height:150px!important;
    padding:11px 8px 10px!important;
    gap:8px!important;
    border-radius:16px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-icon,
  html.vk-miniapp #shopDirectionList .shop-direction-icon.is-image-large{
    width:96px!important;
    height:96px!important;
    min-width:96px!important;
    min-height:96px!important;
    flex-basis:96px!important;
    border-radius:19px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-icon img,
  html.vk-miniapp #shopDirectionList .shop-direction-icon.is-image-large img{
    width:96px!important;
    height:96px!important;
    max-width:96px!important;
    max-height:96px!important;
    border-radius:19px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-main b{
    font-size:16px!important;
    line-height:1.15!important;
    overflow-wrap:anywhere;
  }
  html.vk-miniapp .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:11px;
  }
  html.vk-miniapp .product-card{
    min-height:0;
    padding:14px;
    gap:10px;
    border-radius:17px;
  }
  html.vk-miniapp .product-card h3{font-size:18px;margin:5px 0 7px}
  html.vk-miniapp .product-card p{font-size:12px;line-height:1.42;margin-bottom:8px}
  html.vk-miniapp .product-options{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px;
    padding:10px;
    margin-top:8px;
    border-radius:13px;
  }
  html.vk-miniapp .product-purchase{
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:9px;
    margin-top:10px;
  }
  html.vk-miniapp .product-option-field select,
  html.vk-miniapp .product-qty-field input{width:100%;max-width:100%;min-width:0}
  html.vk-miniapp .product-price{max-width:none;font-size:15px}
  html.vk-miniapp .product-card .add-btn{margin-top:10px}
  html.vk-miniapp .shop-toolbar-top{align-items:stretch}
  html.vk-miniapp .shop-search{min-width:220px;max-width:310px}
  html.vk-miniapp .photo-crop-card{grid-template-columns:minmax(0,1fr)!important}
  html.vk-miniapp .photo-crop-canvas-wrap{min-height:220px}
}

/* Narrow VK window / tablet. */
@media (max-width:760px){
  html.vk-miniapp .shell{
    padding:8px;
    padding-left:max(8px,env(safe-area-inset-left));
    padding-right:max(8px,env(safe-area-inset-right));
  }
  html.vk-miniapp .shop-topbar{
    margin:0 0 8px;
    padding:8px 9px!important;
    border-radius:14px;
  }
  html.vk-miniapp #shopDirectionList.shop-direction-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-card{
    min-height:136px!important;
    padding:9px 6px 8px!important;
    gap:6px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-icon,
  html.vk-miniapp #shopDirectionList .shop-direction-icon.is-image-large{
    width:82px!important;
    height:82px!important;
    min-width:82px!important;
    min-height:82px!important;
    flex-basis:82px!important;
    border-radius:17px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-icon img,
  html.vk-miniapp #shopDirectionList .shop-direction-icon.is-image-large img{
    width:82px!important;
    height:82px!important;
    max-width:82px!important;
    max-height:82px!important;
    border-radius:17px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-main b{font-size:15px!important}
  html.vk-miniapp .shop-section-head{padding:13px;border-radius:16px}
  html.vk-miniapp .shop-toolbar{padding:12px;border-radius:16px}
  html.vk-miniapp .product-grid{grid-template-columns:minmax(0,1fr)!important}
  html.vk-miniapp .product-options,
  html.vk-miniapp .product-purchase{grid-template-columns:minmax(0,1fr)!important}
  html.vk-miniapp .cart-panel{
    width:100%;
    max-width:100%;
    padding:12px;
    border-radius:0;
  }
  html.vk-miniapp .delivery-options{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:380px){
  html.vk-miniapp #shopDirectionList .shop-direction-card{min-height:124px!important}
  html.vk-miniapp #shopDirectionList .shop-direction-icon,
  html.vk-miniapp #shopDirectionList .shop-direction-icon.is-image-large{
    width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;flex-basis:72px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-icon img,
  html.vk-miniapp #shopDirectionList .shop-direction-icon.is-image-large img{
    width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;
  }
  html.vk-miniapp #shopDirectionList .shop-direction-main b{font-size:14px!important}
}

/* V51 — reliable search hiding. Some menu cards use display:flex!important,
   therefore the hidden attribute / inline display alone is not enough. */
#shopDirectionList .shop-direction-card.fk-search-hidden,
#productGrid .product-card.fk-search-hidden{
  display:none !important;
}

/* ===== Admin order files: originals + print-ready versions ===== */
.order-files-card{overflow:hidden}.order-files-toolbar{align-items:center}.file-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:7px 10px;border-radius:999px;background:#f3f4f6;color:#50545b;font-size:12px;font-weight:850;white-space:nowrap}.admin-file-upload{margin:16px 0 20px;padding:16px;border:1px dashed #d9dde4;border-radius:16px;background:#fafbfc}.admin-file-upload .field{margin:0 0 10px}.admin-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-photo-card{min-width:0;border:1px solid var(--line);border-radius:18px;padding:13px;background:#fff;box-shadow:0 6px 18px rgba(29,41,57,.045)}.admin-photo-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.admin-file-name{min-width:0;font-weight:850;font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-source-badge{flex:0 0 auto;display:inline-flex;padding:4px 7px;border-radius:999px;background:#edf4ff;color:#27548b;font-size:10px;font-weight:850}.file-source-badge.admin{background:#fff2bd;color:#735500}.admin-photo-variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-photo-variants:has(.admin-photo-variant:only-child){grid-template-columns:1fr}.admin-photo-variant{min-width:0;border-radius:13px;background:#f7f8fa;padding:8px}.admin-photo-variant.print-ready{background:#fff9df}.admin-photo-label{height:24px;display:flex;align-items:center;font-size:10px;font-weight:900;letter-spacing:.02em;color:#666d77;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-photo-preview{display:block;width:100%;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#eceff3}.admin-photo-preview img{display:block;width:100%;height:100%;object-fit:cover}.admin-photo-preview:hover img{transform:scale(1.02)}.admin-photo-preview img{transition:transform .16s ease}.admin-file-placeholder{display:flex;aspect-ratio:4/3;border-radius:10px;background:#eef1f5;text-decoration:none;color:#5b626c;align-items:center;justify-content:center;flex-direction:column;gap:5px}.admin-file-placeholder b{font-size:18px}.admin-file-placeholder span{font-size:11px}.admin-file-download{display:flex;align-items:center;justify-content:center;margin-top:7px;min-height:32px;padding:6px 8px;border-radius:9px;background:#fff;border:1px solid #e0e4ea;color:#34383e;text-decoration:none;font-size:11px;font-weight:850;text-align:center}.admin-file-download.primary{background:#202226;color:#fff;border-color:#202226}.admin-photo-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.admin-photo-meta span{display:inline-flex;padding:4px 7px;border-radius:8px;background:#f4f5f7;color:#656b73;font-size:10px}.legacy-file-note{margin-top:8px;font-size:10px;line-height:1.4;color:#8a6421;background:#fff7df;padding:7px 8px;border-radius:8px}.empty-files-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:130px;border:1px dashed #dfe2e7;border-radius:15px;background:#fafafa;text-align:center;color:#5e646d}.empty-files-state b{color:#292c31;margin-bottom:4px}.empty-files-state span{font-size:12px}
@media(max-width:760px){.admin-photo-grid{grid-template-columns:1fr}.admin-photo-variants{grid-template-columns:repeat(2,minmax(0,1fr))}.order-files-toolbar{align-items:flex-start}.file-count-badge{margin-top:2px}}
@media(max-width:460px){.admin-photo-variants{grid-template-columns:1fr}.admin-photo-preview,.admin-file-placeholder{aspect-ratio:16/10}.admin-file-upload{padding:12px}.admin-photo-card{padding:10px}.admin-photo-card-head{flex-direction:column}.file-source-badge{align-self:flex-start}}

/* --- Визуальное разделение завершённых и отменённых заказов в журнале --- */
.order-table tbody tr.order-row-completed > td {
  background:#fff8cf;
}
.order-table tbody tr.order-row-completed:hover > td {
  background:#fff2ad;
}
.order-table tbody tr.order-row-completed > td:first-child {
  box-shadow:inset 4px 0 0 #f2cc43;
}

/* V53 — клиентский трекер заказа: полноценная мобильная адаптация */
.client-track-page{
  width:min(820px,100%);
  min-width:0;
  margin:0 auto;
}
.client-track-page *{min-width:0}
.client-track-page .card{overflow:hidden}
.client-track-kicker{
  margin-bottom:7px;
  color:#737983;
  font-size:11px;
  font-weight:900;
  letter-spacing:.11em;
}
.client-track-lookup{
  padding:34px;
  background:linear-gradient(145deg,#fff 0%,#fffdf5 100%);
}
.client-track-lookup h1{
  margin:0 0 9px;
  font-size:clamp(31px,5vw,44px);
  line-height:1.03;
  letter-spacing:-.04em;
}
.client-track-lead{
  max-width:620px;
  margin:0 0 22px;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}
.client-track-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
}
.client-track-form .field{margin:0}
.client-track-form input{
  min-height:48px;
  font-size:16px;
}
.client-track-submit{
  min-height:48px;
  white-space:nowrap;
}
.client-track-help{
  margin-top:13px;
  color:#858b95;
  font-size:12px;
  line-height:1.45;
}
.client-track-notice{margin:0 0 18px}

.client-order-card{padding:28px}
.client-order-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.client-order-main{min-width:0;flex:1}
.client-order-status-wrap{flex:0 0 auto}
.client-order-status-wrap .status{
  max-width:100%;
  text-align:center;
  justify-content:center;
}
.client-track-page .order-no{margin-bottom:4px}
.client-track-page .order-title{
  max-width:100%;
  font-size:clamp(25px,4vw,34px);
  line-height:1.13;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
.client-order-name{
  margin-top:7px;
  color:var(--muted);
  font-size:14px;
  overflow-wrap:anywhere;
}
.client-order-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:22px;
}
.client-meta-item{
  min-height:82px;
  padding:13px 14px;
  border:1px solid #eceef2;
  border-radius:14px;
  background:#f8f9fb;
}
.client-meta-item small{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
}
.client-meta-item b{
  display:block;
  font-size:13px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.client-order-comment,.client-ready-notice{
  margin:16px 0 0;
  line-height:1.45;
}
.client-order-comment b,.client-ready-notice b{display:block;margin-bottom:4px}
.client-refresh-btn{
  margin-top:16px;
  padding:10px 13px;
  font-size:13px;
}
.client-pay-card h2,.client-history-card h2{margin:0 0 10px}
.client-pay-card .muted{line-height:1.5}
.client-pay-btn{text-align:center}
.client-paid-card{padding:16px}
.client-history-card{padding:26px 28px}
.client-timeline{margin-top:14px}
.client-timeline li{padding-bottom:24px}
.client-timeline li b{display:block;line-height:1.3}
.client-history-comment{margin-top:4px;line-height:1.45;overflow-wrap:anywhere}

@media(max-width:760px){
  body{overflow-x:hidden}
  .client-track-page{width:100%;max-width:100%;margin:0}
  .client-track-page .card{margin-bottom:10px;border-radius:17px;box-shadow:0 7px 22px rgba(17,24,39,.065)}
  .client-track-page + *{max-width:100%}
  .client-track-lookup{padding:22px 18px}
  .client-track-lookup h1{font-size:31px}
  .client-track-lead{margin-bottom:18px;font-size:14px;line-height:1.48}
  .client-track-form{grid-template-columns:minmax(0,1fr);gap:11px}
  .client-track-form .field{margin:0}
  .client-track-form input{min-height:52px;padding:13px 14px;border-radius:13px}
  .client-track-submit{width:100%;min-height:52px;font-size:16px;text-align:center}
  .client-track-help{font-size:11px}

  .client-order-card{padding:20px 17px}
  .client-order-top{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
  .client-order-status-wrap{width:100%}
  .client-order-status-wrap .status{width:100%;min-height:39px;padding:9px 12px;font-size:13px}
  .client-track-page .order-title{font-size:25px;line-height:1.12}
  .client-order-name{font-size:13px}
  .client-order-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:17px}
  .client-meta-item{min-height:78px;padding:11px 12px;border-radius:12px}
  .client-meta-item small{font-size:10px}
  .client-meta-item b{font-size:12px}
  .client-meta-item .payment{font-size:11px;padding:5px 8px}
  .client-order-comment,.client-ready-notice{padding:12px;margin-top:12px;font-size:13px}
  .client-refresh-btn{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center;margin-top:12px;text-align:center}

  .client-pay-card,.client-history-card{padding:20px 17px}
  .client-pay-card h2,.client-history-card h2{font-size:21px}
  .client-pay-card .pay-amount{font-size:31px;margin:6px 0}
  .client-pay-card .muted{font-size:13px}
  .client-pay-btn{display:flex;width:100%;min-height:52px;align-items:center;justify-content:center;font-size:15px}
  .client-pay-card .hint{font-size:11px;line-height:1.45}
  .client-paid-card{padding:10px}
  .client-paid-card .paid-banner{padding:14px;font-size:17px}
  .client-timeline{margin-top:12px}
  .client-timeline li{padding:0 0 21px 28px}
  .client-timeline li:before{left:6px}
  .client-timeline li:after{left:10px}
  .client-timeline li b{font-size:14px}
  .client-timeline li div{font-size:13px}
  .client-timeline li small{font-size:11px}

  /* Только клиентский трекер: компактная шапка на телефоне. */
  body:has(.client-track-page) .shell{padding:10px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  body:has(.client-track-page) .top{margin:2px 0 11px}
  body:has(.client-track-page) .brand-logo{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  body:has(.client-track-page) .brand{gap:9px}
  body:has(.client-track-page) .brand b{font-size:17px}
  body:has(.client-track-page) .brand small{font-size:11px}
  body:has(.client-track-page) footer{padding:16px 8px 20px}
}

@media(max-width:390px){
  .client-track-page .card{border-radius:15px}
  .client-track-lookup,.client-order-card,.client-pay-card,.client-history-card{padding-left:14px;padding-right:14px}
  .client-track-lookup h1{font-size:28px}
  .client-track-page .order-title{font-size:23px}
  .client-order-meta{grid-template-columns:minmax(0,1fr)}
  .client-meta-item{min-height:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px}
  .client-meta-item small{margin:0;flex:0 0 42%}
  .client-meta-item b{text-align:right;flex:1}
  .client-meta-item .payment{display:inline-flex}
}

/* V56 — филиалы, маршрутизация и межточечное производство */
.profile-badge{display:inline-flex;align-items:center;gap:6px;margin:7px 0 4px;padding:6px 10px;border-radius:999px;background:#17191d;color:#fff;font-size:12px;font-weight:800}
.branch-scope-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:-2px 0 18px}.branch-scope-tabs a{padding:9px 12px;border-radius:11px;background:#eef0f3;text-decoration:none;font-size:13px;font-weight:750}.branch-scope-tabs a.active{background:#17191d;color:#fff}
.branch-inline-filter select{border:1px solid #d1d5db;border-radius:12px;padding:10px 12px;background:#fff;font:inherit;font-weight:700}
.route-static{border:1px solid var(--line);background:#f8f9fb;border-radius:14px;padding:13px 14px;display:flex;flex-direction:column;gap:2px;min-height:72px;justify-content:center}.route-static span,.route-static small{font-size:12px;color:var(--muted)}.route-static b{font-size:15px}
.route-chain{font-size:12px;line-height:1.45;font-weight:750;white-space:normal;min-width:150px}.route-chain.big{padding:8px 11px;border-radius:12px;background:#f6f7f9;max-width:420px}
.production-line{display:flex;flex-direction:column;gap:5px;margin-bottom:7px;min-width:170px}.production-line:last-child{margin-bottom:0}.status.mini{font-size:11px;padding:5px 8px;width:max-content;max-width:190px}
.routing-card{border-color:#e7d15d}.production-jobs{display:grid;gap:12px;margin:14px 0}.production-job{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fbfbfc}.production-job-title{display:flex;flex-direction:column;gap:3px;margin-bottom:4px}.production-job-title span{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.05em}.production-job-title b{font-size:16px}.transfer-hint{margin-top:4px;padding:9px 11px;border-radius:10px;background:#fff5d6;color:#684d00;font-size:12px}.transfer-hint.local{background:#eaf8ee;color:#14532d}.routing-note{margin:14px 0}.order-table{min-width:1320px}
@media(max-width:760px){.routing-card .toolbar{align-items:flex-start;flex-direction:column}.route-chain.big{max-width:100%}.production-job .grid{grid-template-columns:1fr}.branch-inline-filter{width:100%}.branch-inline-filter select{width:100%}}

/* ===== V57: production workflow actions ===== */
.branch-scope-tabs a{display:inline-flex;align-items:center;gap:7px}
.branch-scope-tabs a em{font-style:normal;min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f4cf2f;color:#17191d;font-size:11px;font-weight:900}
.branch-scope-tabs a.active em{background:#f4cf2f;color:#17191d}
.routing-head{gap:18px}
.production-workflow{margin-top:18px}
.workflow-job{padding:18px}
.workflow-job-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.workflow-job-head .production-job-title{margin:0}
.job-route-strip{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:center;gap:8px;margin:15px 0 12px;padding:12px 14px;background:#f5f6f7;border-radius:13px}
.job-route-strip>div:not(.job-route-arrow){display:flex;flex-direction:column;gap:3px}
.job-route-strip span{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.job-route-strip b{font-size:14px}
.job-route-arrow{text-align:center;font-size:20px;font-weight:900;color:#7b8088}
.production-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:16px 0}
.production-progress.local{grid-template-columns:repeat(3,minmax(0,1fr))}
.production-progress-step{position:relative;display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #dfe2e6;border-radius:11px;background:#fff;color:#777;font-size:12px;font-weight:750;min-width:0}
.production-progress-step i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:#eceef1;color:#6b7280;font-size:11px;font-weight:900}
.production-progress-step span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.production-progress-step.done{background:#f1f8f3;border-color:#cfe8d5;color:#24613a}
.production-progress-step.done i{background:#d9efdf;color:#24613a}
.production-progress-step.current{background:#fff7ce;border-color:#ead05a;color:#4e4200;box-shadow:inset 0 0 0 1px rgba(244,207,47,.16)}
.production-progress-step.current i{background:#f4cf2f;color:#17191d}
.workflow-action-row{display:flex;align-items:center;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.production-step-form{margin:0;flex:0 0 auto}
.btn.production-action{min-width:205px;min-height:48px;padding:12px 18px;border-radius:13px;font-size:14px;font-weight:900;border:0;box-shadow:none}
.btn.production-action.primary{background:#17191d;color:#fff}
.btn.production-action.success{background:#f4cf2f;color:#17191d}
.btn.production-action.transfer{background:#2c3138;color:#fff}
.btn.production-action.receive{background:#f4cf2f;color:#17191d}
.workflow-action-help{font-size:12px;color:var(--muted);line-height:1.45;max-width:560px}
.workflow-waiting,.workflow-complete{width:100%;padding:11px 13px;border-radius:11px;font-size:13px}
.workflow-waiting{background:#f2f3f5;color:#5f6670}
.workflow-complete{background:#edf8ef;color:#24613a;font-weight:800}
.routing-advanced,.production-history{margin-top:15px;border-top:1px solid var(--line);padding-top:13px}
.routing-advanced>summary,.production-history>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.routing-advanced>summary::-webkit-details-marker,.production-history>summary::-webkit-details-marker{display:none}
.routing-advanced>summary:after,.production-history>summary:after{content:'▾';margin-left:auto;color:#7d828a}
.routing-advanced[open]>summary:after,.production-history[open]>summary:after{transform:rotate(180deg)}
.routing-advanced>summary span{font-size:12px;color:var(--muted);font-weight:500}
.routing-advanced-form{margin-top:16px;padding:15px;border-radius:14px;background:#f7f7f8}
.advanced-job-list{display:grid;gap:9px;margin:12px 0}
.advanced-job-row{display:grid;grid-template-columns:minmax(210px,1.3fr) minmax(180px,.8fr) minmax(190px,.9fr);gap:12px;align-items:end;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px}
.advanced-job-row>div:first-child{display:flex;flex-direction:column;gap:3px;align-self:center}
.advanced-job-row .field{margin:0}
.advanced-status-readonly{display:flex;flex-direction:column;gap:4px;align-self:center}
.advanced-status-readonly span{font-size:11px;color:var(--muted);font-weight:750}
.advanced-status-readonly b{font-size:13px}
.advanced-warning{margin:8px 0 12px}

@media(max-width:900px){
  .production-progress,.production-progress.local{grid-template-columns:1fr}
  .production-progress-step span{white-space:normal}
  .advanced-job-row{grid-template-columns:1fr 1fr}
  .advanced-job-row>div:first-child{grid-column:1/-1}
}
@media(max-width:650px){
  .workflow-job-head{flex-direction:column}
  .job-route-strip{grid-template-columns:1fr}
  .job-route-arrow{transform:rotate(90deg);line-height:1}
  .workflow-action-row{align-items:stretch;flex-direction:column}
  .production-step-form,.btn.production-action{width:100%}
  .advanced-job-row{grid-template-columns:1fr}
  .advanced-job-row>div:first-child{grid-column:auto}
}

/* ===== V58: modern photo-print storefront ===== */
.photo-shop-page{width:100%;max-width:820px;min-width:0;margin:0 auto;padding:4px 0 120px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.photo-shop-backrow{padding:0 2px}.photo-shop-backrow a{color:#555b63;text-decoration:none;font-weight:750;font-size:13px}
.photo-shop-vk-note{background:#edf9f2;border:1px solid #c9ead7;color:#17623f;border-radius:14px;padding:10px 13px;font-size:12px;font-weight:700}
.photo-shop-hero{padding:26px 24px;border-radius:26px;background:linear-gradient(135deg,#fff9d4 0%,#fff 70%);border:1px solid #eee6b8;box-shadow:0 16px 44px rgba(17,24,39,.06)}
.photo-shop-kicker{font-size:11px;letter-spacing:.13em;font-weight:900;color:#6c6200;margin-bottom:8px}
.photo-shop-hero h1{margin:0 0 10px;font-size:36px;line-height:1.03;letter-spacing:-1.3px;color:#101114}
.photo-shop-hero p{margin:0;max-width:640px;color:#696d74;font-size:15px;line-height:1.55}
.photo-shop-form{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:14px}
.photo-shop-card{min-width:0;background:#fff;border:1px solid #e8e8e4;border-radius:24px;padding:20px;box-shadow:0 12px 34px rgba(17,24,39,.055)}
.photo-shop-stephead{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.photo-shop-stephead>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ffd21c;color:#111;font-weight:950;flex:0 0 auto}
.photo-shop-stephead b{display:block;font-size:18px;line-height:1.15}.photo-shop-stephead small{display:block;color:#7a7d82;font-size:12px;line-height:1.35;margin-top:3px}
.photo-shop-fieldblock{margin-top:17px}.photo-shop-fieldblock>label{display:block;font-size:13px;font-weight:850;margin-bottom:9px}
.photo-shop-chips{display:flex;flex-wrap:wrap;gap:8px}.photo-shop-chips button{border:1px solid #e3e4e3;background:#f5f5f2;color:#171819;border-radius:13px;padding:11px 14px;font-weight:800;min-width:82px;transition:.16s ease}
.photo-shop-chips button:hover{border-color:#c8c9c6}.photo-shop-chips button.active{background:#ffd21c;border-color:#ffd21c;box-shadow:0 4px 12px rgba(255,210,28,.25)}.photo-shop-chips button:disabled{opacity:.34;cursor:not-allowed;text-decoration:line-through}
.photo-shop-pricebox{margin-top:18px;background:#f6f6f3;border-radius:16px;padding:14px 15px}.photo-shop-pricebox>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.photo-shop-pricebox span{font-size:12px;color:#6e7278}.photo-shop-pricebox b{font-size:21px}.photo-shop-pricebox small{display:block;color:#7b7e83;font-size:11px;margin-top:6px;line-height:1.45}
.photo-shop-upload{min-height:168px;border:1.5px dashed #b9bcc1;border-radius:18px;background:#fafaf8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;cursor:pointer;transition:.16s ease}.photo-shop-upload:hover{background:#fffdf2;border-color:#c8a900}.photo-shop-upload-plus{font-size:34px;font-weight:300;line-height:1}.photo-shop-upload b{font-size:15px;margin-top:5px}.photo-shop-upload small{color:#808389;font-size:11px;line-height:1.4;margin-top:5px}
.photo-shop-files-summary{margin:14px 0 0;background:#f3f3ef;border-radius:13px;padding:11px 13px;font-size:12px;font-weight:800}.photo-shop-filehint{margin-top:9px;color:#7a7d82;font-size:11px}
.photo-shop-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.photo-shop-thumb{border:1px solid #e6e7e4;border-radius:16px;background:#fff;padding:8px;min-width:0}.photo-shop-thumb-preview{position:relative;aspect-ratio:1;border-radius:11px;overflow:hidden;background:#f1f1ee;display:grid;place-items:center}.photo-shop-thumb-preview img{width:100%;height:100%;object-fit:cover}.photo-shop-filetype{font-size:13px;font-weight:900;color:#777}.photo-shop-remove{position:absolute;top:5px;right:5px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(16,17,20,.82);color:#fff;font-size:18px;line-height:1}.photo-shop-thumb-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:750;margin:8px 1px 6px}.photo-shop-copyctl{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;background:#f5f5f2;border-radius:11px;overflow:hidden}.photo-shop-copyctl button{border:0;background:transparent;height:32px;font-size:18px}.photo-shop-copyctl b{text-align:center;font-size:12px}.photo-shop-editfile{width:100%;margin-top:6px;border:0;background:#101114;color:#fff;border-radius:10px;padding:8px 6px;font-size:11px;font-weight:800}
.photo-shop-editor-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:11px}.photo-shop-editor-head>div:first-child{flex:1;min-width:0}.photo-shop-editor-head b{display:block;font-size:13px;max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-shop-editor-head small{display:block;color:#7b7e83;font-size:11px;margin-top:2px}.photo-shop-editor-nav{display:flex;flex:0 0 auto;gap:6px}.photo-shop-editor-nav button{width:36px;height:36px;border:1px solid #e1e2df;background:#f7f7f4;border-radius:11px;font-size:17px}.photo-shop-editor-nav button:disabled{opacity:.3}
.photo-shop-canvas-wrap{background:#111;border-radius:18px;padding:10px}.photo-shop-canvas-wrap canvas{width:auto;max-width:100%;min-width:0;height:auto;display:block;border-radius:11px;background:#fff;touch-action:none;max-height:560px;object-fit:contain}.photo-shop-canvas-note{text-align:center;color:#c8c9cc;font-size:11px;padding:9px 6px 2px;line-height:1.4}.photo-shop-zoom{display:flex;align-items:center;gap:12px;padding:13px 3px 5px}.photo-shop-zoom span{font-size:12px;font-weight:800}.photo-shop-zoom input{flex:1;min-width:0;max-width:100%;accent-color:#111}
.photo-shop-orientation{margin:0 0 12px;min-width:0}.photo-shop-orientation>b{display:block;font-size:12px;margin-bottom:7px}.photo-shop-orientation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-shop-orientation-options button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:10px 7px;border:1px solid #e3e4e3;border-radius:12px;background:#f5f5f2;color:#171819;font-size:12px;font-weight:800;white-space:normal;overflow-wrap:anywhere}.photo-shop-orientation-options button.active{background:#ffd21c;border-color:#ffd21c}.photo-shop-orientation-options button:focus-visible{outline:2px solid #111;outline-offset:2px}.photo-shop-orientation-options i{display:block;flex:0 0 auto;border:2px solid currentColor;border-radius:2px}.photo-shop-frame-portrait{width:13px;height:18px}.photo-shop-frame-landscape{width:18px;height:13px}
.photo-shop-mode-list{display:grid;gap:8px;margin-top:10px}.photo-shop-mode{display:flex;align-items:flex-start;gap:11px;border:1px solid #e4e5e2;border-radius:16px;padding:14px;background:#fff;cursor:pointer}.photo-shop-mode.active{background:#fffdf2;border-color:#d8b500}.photo-shop-mode.disabled{opacity:.45;cursor:not-allowed}.photo-shop-mode input{display:none}.photo-shop-mode>i{width:20px;height:20px;border:2px solid #b7babf;border-radius:50%;flex:0 0 20px;margin-top:1px}.photo-shop-mode.active>i{border:6px solid #111;background:#ffd21c}.photo-shop-mode b{display:block;font-size:14px}.photo-shop-mode small{display:block;color:#74787e;font-size:11px;line-height:1.45;margin-top:4px}.photo-shop-secondary{width:100%;margin-top:10px;border:0;background:#ecece8;border-radius:13px;padding:12px;font-weight:850}.photo-shop-heic-note{margin-top:10px;padding:11px 13px;border-radius:13px;background:#fff6df;color:#745100;font-size:11px;line-height:1.45}
.photo-shop-delivery-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.photo-shop-delivery-switch label{border:1px solid #e3e4e1;border-radius:15px;padding:13px;background:#f7f7f4;cursor:pointer}.photo-shop-delivery-switch label.active{background:#fffdf2;border-color:#d5b300}.photo-shop-delivery-switch input{display:none}.photo-shop-delivery-switch b{display:block;font-size:13px}.photo-shop-delivery-switch small{display:block;color:#7c7f84;font-size:10px;margin-top:3px}
.photo-shop-branch-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.photo-shop-branch{display:flex;align-items:center;gap:10px;border:1px solid #e4e5e2;border-radius:16px;padding:14px;background:#fff;cursor:pointer}.photo-shop-branch.active{background:#fffdf2;border-color:#d5b300}.photo-shop-branch input{display:none}.photo-shop-branch>span{flex:1}.photo-shop-branch b{display:block;font-size:14px}.photo-shop-branch small{display:block;color:#74787e;font-size:11px;margin-top:3px}.photo-shop-branch>i{display:none;width:25px;height:25px;border-radius:50%;background:#ffd21c;place-items:center;font-style:normal;font-weight:950}.photo-shop-branch.active>i{display:grid}.photo-shop-info{margin-top:10px;background:#f4f4f0;border-radius:13px;padding:11px 13px;color:#73767b;font-size:11px;line-height:1.45}
.photo-shop-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-shop-input{display:block;margin-top:10px}.photo-shop-input>span{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:850;margin-bottom:6px}.photo-shop-input em{font-style:normal;color:#85888d;font-weight:500}.photo-shop-input input,.photo-shop-input textarea{width:100%;border:1px solid #dedfdd;background:#fafaf8;border-radius:13px;padding:12px 13px;outline:none;color:#111}.photo-shop-input input:focus,.photo-shop-input textarea:focus{border-color:#111;background:#fff}.photo-shop-payment-note{margin-top:15px;border-top:1px solid #ecece8;padding-top:14px;display:flex;gap:10px;align-items:flex-start}.photo-shop-payment-note b{font-size:13px;min-width:110px}.photo-shop-payment-note span{font-size:11px;color:#74787e;line-height:1.45}
.photo-shop-totalbar{position:sticky;bottom:10px;z-index:25;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border:1px solid #dfdfdb;border-radius:20px;padding:12px 13px;box-shadow:0 16px 42px rgba(17,24,39,.16);display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}.photo-shop-totalbar>div{min-width:0}.photo-shop-totalbar span{display:block;color:#74787e;font-size:11px}.photo-shop-totalbar b{display:block;font-size:21px;line-height:1.15;margin-top:1px}.photo-shop-totalbar small{display:block;color:#6e6200;font-size:10px;font-weight:800;margin-top:2px}.photo-shop-submit{border:0;background:#ffd21c;color:#111;border-radius:14px;padding:14px 19px;font-weight:950;min-width:170px}.photo-shop-submit:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:700px){
  .photo-shop-page{padding-bottom:105px}.photo-shop-hero{padding:21px 18px;border-radius:22px}.photo-shop-hero h1{font-size:31px}.photo-shop-card{padding:16px;border-radius:20px}.photo-shop-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-shop-branch-list,.photo-shop-input-grid{grid-template-columns:1fr}.photo-shop-totalbar{bottom:6px}.photo-shop-submit{min-width:142px;padding:13px 15px}.photo-shop-stephead b{font-size:17px}
}
@media(max-width:440px){
  .photo-shop-hero h1{font-size:28px}.photo-shop-chips button{min-width:0;flex:1 1 calc(50% - 8px)}.photo-shop-totalbar{grid-template-columns:1fr 1fr}.photo-shop-submit{width:100%;min-width:0}.photo-shop-payment-note{display:block}.photo-shop-payment-note b{display:block;margin-bottom:4px}
}
.photo-shop-success-check{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#20b875;color:#fff;font-size:40px;font-weight:950;box-shadow:0 12px 28px rgba(32,184,117,.2)}

/* ===== V59: mobile-first photo printing + prepayment notices ===== */
.photo-shop-expiry-note,.photo-shop-ready-note{margin-top:10px;border-radius:14px;padding:12px 13px;display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.photo-shop-expiry-note{background:#fff7dd;border:1px solid #f0d77d;color:#5e4a00}
.photo-shop-ready-note{background:#f3f5f7;border:1px solid #e1e5e9;color:#3d434a}
.photo-shop-expiry-note b,.photo-shop-ready-note b{font-size:12px;min-width:112px;color:#171819}
.photo-shop-expiry-note span,.photo-shop-ready-note span{font-size:11px}
.photo-shop-prepay-notice{background:#fff8dc;border-color:#efd575}.photo-shop-prepay-notice small{display:block;margin-top:7px;font-weight:800}
.photo-shop-success-check.cancelled{background:#777;box-shadow:none}
.photo-shop-canvas-wrap{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;justify-items:center}.photo-shop-canvas-note{width:100%}

@media(max-width:700px){
  .photo-shop-page{padding:0 7px 118px;gap:10px}
  .photo-shop-backrow{padding:0 4px}
  .photo-shop-vk-note{border-radius:12px;padding:9px 11px}
  .photo-shop-hero{padding:17px 15px;border-radius:18px;box-shadow:0 8px 24px rgba(17,24,39,.045)}
  .photo-shop-hero h1{font-size:28px;letter-spacing:-.8px;margin-bottom:7px}
  .photo-shop-hero p{font-size:13px;line-height:1.45}
  .photo-shop-card{padding:13px;border-radius:17px;box-shadow:0 7px 22px rgba(17,24,39,.045)}
  .photo-shop-stephead{gap:9px;margin-bottom:13px}
  .photo-shop-stephead>span{width:30px;height:30px;font-size:13px}
  .photo-shop-stephead b{font-size:15px}.photo-shop-stephead small{font-size:10.5px}
  .photo-shop-fieldblock{margin-top:13px}.photo-shop-chips{gap:6px}
  .photo-shop-chips button{min-height:44px;padding:9px 9px;border-radius:11px;font-size:12px;flex:1 1 calc(33.333% - 6px);min-width:92px}
  .photo-shop-pricebox{margin-top:13px;padding:11px 12px;border-radius:13px}.photo-shop-pricebox b{font-size:18px}
  .photo-shop-upload{min-height:126px;padding:16px 12px;border-radius:15px}.photo-shop-upload-plus{font-size:29px}.photo-shop-upload b{font-size:14px}
  .photo-shop-thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}
  .photo-shop-thumb{padding:5px;border-radius:12px}.photo-shop-thumb-preview{border-radius:9px}.photo-shop-thumb-name{font-size:9.5px;margin:5px 1px 4px}
  .photo-shop-copyctl{grid-template-columns:30px 1fr 30px}.photo-shop-copyctl button{height:34px}.photo-shop-editfile{padding:7px 3px;font-size:9.5px}
  .photo-shop-editor-head{margin-bottom:8px}.photo-shop-editor-nav button{width:42px;height:42px}
  .photo-shop-canvas-wrap{border-radius:15px;padding:7px}.photo-shop-canvas-wrap canvas{max-height:44svh;border-radius:9px}
  .photo-shop-canvas-note{font-size:10px;padding:7px 4px 1px}
  .photo-shop-zoom{min-height:48px;padding:8px 2px 3px}.photo-shop-zoom input{height:32px}
  .photo-shop-mode-list{gap:6px;margin-top:7px}.photo-shop-mode{gap:9px;padding:11px;border-radius:13px}.photo-shop-mode>i{width:19px;height:19px;flex-basis:19px}.photo-shop-mode b{font-size:12.5px}.photo-shop-mode small{font-size:10px;line-height:1.35;margin-top:3px}
  .photo-shop-secondary{min-height:44px;padding:10px;font-size:12px}
  .photo-shop-delivery-switch label,.photo-shop-branch{min-height:56px;padding:11px;border-radius:13px}
  .photo-shop-input-grid{grid-template-columns:1fr}.photo-shop-input input,.photo-shop-input textarea{font-size:16px;min-height:46px}
  .photo-shop-payment-note,.photo-shop-expiry-note,.photo-shop-ready-note{display:block;padding:11px 12px}.photo-shop-payment-note b,.photo-shop-expiry-note b,.photo-shop-ready-note b{display:block;min-width:0;margin-bottom:4px}
  .photo-shop-totalbar{bottom:max(5px,env(safe-area-inset-bottom));border-radius:16px;padding:10px 11px;box-shadow:0 10px 30px rgba(17,24,39,.18)}
  .photo-shop-totalbar b{font-size:18px}.photo-shop-submit{min-height:48px;min-width:138px;padding:12px 13px}
  .shop-success{margin:0 4px}.shop-success .bigpay{width:100%;text-align:center}
}
@media(max-width:390px){
  .photo-shop-page{padding-left:3px;padding-right:3px}
  .photo-shop-hero h1{font-size:25px}
  .photo-shop-chips button{flex:1 1 calc(50% - 6px);min-width:0}
  .photo-shop-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .photo-shop-mode{padding:10px 9px}.photo-shop-mode b{font-size:12px}.photo-shop-mode small{font-size:9.5px}
  .photo-shop-totalbar{grid-template-columns:minmax(0,1fr) minmax(130px,1fr);gap:8px}.photo-shop-submit{min-width:0;width:100%}
}


/* ===== V60: VK Mini Apps / Android vertical scroll hotfix =====
   Android VK uses a native WebView. Make the document itself scrollable;
   do not rely on iOS' scrolling behavior or on the outer VK container. */
html.vk-miniapp.vk-android{
  height:auto !important;
  min-height:100% !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:auto !important;
}
html.vk-miniapp.vk-android body{
  position:relative;
  height:auto !important;
  min-height:100vh !important;
  min-height:100dvh !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
html.vk-miniapp.vk-android .shell,
html.vk-miniapp.vk-android main,
html.vk-miniapp.vk-android .photo-shop-page,
html.vk-miniapp.vk-android .photo-shop-form{
  height:auto !important;
  max-height:none !important;
  overflow-y:visible;
}
html.vk-miniapp.vk-android .photo-shop-page{
  min-height:calc(100dvh - 70px);
}
/* Keep vertical page swipes native everywhere except the crop canvas,
   where touch-action:none is intentionally needed for photo dragging. */
html.vk-miniapp.vk-android .photo-shop-card,
html.vk-miniapp.vk-android .photo-shop-hero,
html.vk-miniapp.vk-android .photo-shop-upload,
html.vk-miniapp.vk-android .photo-shop-mode-list,
html.vk-miniapp.vk-android .photo-shop-branch-list{
  touch-action:pan-y pinch-zoom;
}


/* ===== V64: compact admin orders journal ===== */
@media (min-width: 900px){
  .orders-journal-card{
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
    padding:18px 20px;
  }
  .orders-journal-card .toolbar{margin-bottom:10px}
  .orders-journal-card .tablewrap{overflow-x:auto}
  .orders-journal-card .order-table{
    width:100%;
    min-width:1080px !important;
    table-layout:fixed;
    font-size:12px;
  }
  .orders-journal-card .order-table th,
  .orders-journal-card .order-table td{
    padding:7px 6px;
    line-height:1.35;
  }
  .orders-journal-card .filter-row th{padding:5px 4px 7px}
  .orders-journal-card .filter-row input,
  .orders-journal-card .filter-row select{
    padding:6px 7px;
    min-height:34px;
  }
  .orders-journal-card .filter-btn{padding:7px 5px;min-height:34px}

  /* All 10 columns together fit the journal instead of forcing it wider. */
  .orders-journal-card .order-table th:nth-child(1),
  .orders-journal-card .order-table td:nth-child(1){width:8%}
  .orders-journal-card .order-table th:nth-child(2),
  .orders-journal-card .order-table td:nth-child(2){width:15%}
  .orders-journal-card .order-table th:nth-child(3),
  .orders-journal-card .order-table td:nth-child(3){width:15%}
  .orders-journal-card .order-table th:nth-child(4),
  .orders-journal-card .order-table td:nth-child(4){width:12%}
  .orders-journal-card .order-table th:nth-child(5),
  .orders-journal-card .order-table td:nth-child(5){width:13%}
  .orders-journal-card .order-table th:nth-child(6),
  .orders-journal-card .order-table td:nth-child(6){width:10%}
  .orders-journal-card .order-table th:nth-child(7),
  .orders-journal-card .order-table td:nth-child(7){width:8%}
  .orders-journal-card .order-table th:nth-child(8),
  .orders-journal-card .order-table td:nth-child(8){width:7%}
  .orders-journal-card .order-table th:nth-child(9),
  .orders-journal-card .order-table td:nth-child(9){width:6%}
  .orders-journal-card .order-table th:nth-child(10),
  .orders-journal-card .order-table td:nth-child(10){width:6%}

  .orders-journal-card .route-chain,
  .orders-journal-card .production-line{min-width:0}
  .orders-journal-card .production-line{gap:3px;margin-bottom:5px}
  .orders-journal-card .order-table .btn.light{padding:6px 8px;font-size:11px}
  .orders-journal-card .order-table .small{font-size:11px}
}

@media (max-width: 899px){
  .orders-journal-card{max-width:none}
}

/* ===== V65: VK Web / desktop wheel + touchpad scrolling =====
   Keep the iframe document itself as the vertical scroll root. JS in
   shop-photo.js translates wheel/touchpad deltas when VK Web does not. */
html.vk-miniapp.vk-desktop{
  height:auto !important;
  min-height:100% !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:auto !important;
  scroll-behavior:auto !important;
}
html.vk-miniapp.vk-desktop body{
  position:relative;
  height:auto !important;
  min-height:100vh !important;
  overflow-x:hidden !important;
  overflow-y:visible !important;
  overscroll-behavior-y:auto !important;
}
html.vk-miniapp.vk-desktop .shell,
html.vk-miniapp.vk-desktop main,
html.vk-miniapp.vk-desktop .photo-shop-page,
html.vk-miniapp.vk-desktop .photo-shop-form{
  height:auto !important;
  max-height:none !important;
}

/* Shared responsive checkout uses host insets and measured header height. */
:root{--fk-safe-top:max(env(safe-area-inset-top,0px),var(--fk-vk-top,0px));--fk-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--fk-vk-bottom,0px));--fk-safe-left:max(env(safe-area-inset-left,0px),var(--fk-vk-left,0px));--fk-safe-right:max(env(safe-area-inset-right,0px),var(--fk-vk-right,0px))}
html{scroll-padding-top:calc(var(--fk-header-height,80px) + 12px)}
html.vk-miniapp .shop-topbar{padding-top:max(12px,var(--fk-safe-top))!important;padding-left:max(12px,var(--fk-safe-left))!important;padding-right:max(12px,var(--fk-safe-right))!important}
.fk-track-link{display:flex;min-height:44px;justify-content:center;margin:12px 0;width:100%;font-weight:800}
.photo-shop-page,.photo-shop-form,.photo-shop-editor-head>div,.success-list>div>span{min-width:0}
.photo-shop-totalbar,.vk-miniapp .photo-shop-totalbar{bottom:max(8px,var(--fk-safe-bottom))!important}
html.fk-keyboard .photo-shop-totalbar{position:static}
.photo-shop-input input,.photo-shop-input textarea{font-size:16px}
.photo-shop-chips button,.photo-shop-editor-nav button,.photo-shop-copyctl button,.photo-shop-editfile{min-height:44px;min-width:44px}
.photo-shop-remove{min-width:44px;min-height:44px}
.photo-shop-editor-head b,.success-list{overflow-wrap:anywhere}
.client-track-lookup a,.fk-order-list a{white-space:normal;overflow-wrap:anywhere}
.payment-status-box.show{display:block!important}.fk-order-list{display:grid;gap:12px}.fk-order-list a{display:grid;gap:6px;text-align:left}
@media(max-width:380px){.photo-shop-totalbar{grid-template-columns:minmax(0,1fr)}.photo-shop-submit-wrap,.photo-shop-submit{width:100%;max-width:none}.photo-shop-submit-hint{max-width:none!important}.photo-shop-branch-list,.photo-shop-input-grid{grid-template-columns:1fr}.photo-shop-editor-head{flex-wrap:wrap}.photo-shop-editor-head b{max-width:100%}}
[hidden]{display:none!important}.photo-shop-chips{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))!important}.photo-shop-chips button{white-space:normal;overflow-wrap:anywhere}


/* --- Batch download of order attachments --- */
.batch-download-form{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0 16px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fafbfc}
.batch-download-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.batch-download-form .small{flex:1 1 260px;line-height:1.45}
.admin-file-actions{display:flex;align-items:center;gap:6px;margin-top:7px}
.batch-file-choice{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:32px;padding:5px 7px;border:1px solid #e0e4ea;border-radius:9px;background:#fff;color:#555b64;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer}
.batch-file-choice input{width:14px;height:14px;margin:0;accent-color:#d5a900}
.admin-file-actions .admin-file-download{flex:1;min-width:0;margin-top:0}
@media(max-width:460px){.batch-download-form{align-items:flex-start;padding:10px}.batch-download-actions{width:100%}.batch-download-actions .btn{flex:1}.admin-file-actions{gap:5px}.batch-file-choice{padding:4px 6px}}

/* Feedback for separate (non-archive) downloads */
.batch-download-status{flex:1 1 100%;font-size:12px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;color:#24543c;padding-top:6px}
.batch-download-status.error{color:#b42318}
.batch-download-status[hidden]{display:none}

/* VK Mini Apps: move the cart below VK's native top controls on narrow screens.
   Keep it in normal flow so it never covers photo controls, cropping or checkout. */
.fk-mobile-cart-row{display:none}
@media(max-width:760px){
 html.vk-miniapp .shop-topbar .shop-cart-icon{display:none!important}
 html.vk-miniapp .shop-topbar{grid-template-columns:minmax(0,1fr)!important}
 html.vk-miniapp .fk-mobile-cart-row{display:flex;justify-content:flex-end;
   position:relative;z-index:5;margin:0 0 10px;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))}
 html.vk-miniapp .fk-mobile-cart-button{display:flex;align-items:center;justify-content:space-between;gap:12px;
   padding:10px 13px;min-width:132px;min-height:43px;border:1px solid #34363a;
   border-radius:13px;background:#17191d;color:#fff;font:inherit;font-size:13px;font-weight:800;
   box-shadow:0 5px 12px #17191d19;cursor:pointer}
 html.vk-miniapp .fk-mobile-cart-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 4px;
   border-radius:999px;background:#ffda43;color:#161616;font-size:11px}
}
