*,*::before,*::after{box-sizing:border-box}
html{font-family:"Manrope",system-ui,-apple-system,sans-serif;background:#0f172a;color:#111827;line-height:1.45}
body{margin:0;background:linear-gradient(180deg,#0b1220 0,#111827 38%,#f3f4f6 38%) fixed;color:#111827}
img{max-width:100%;height:auto;display:block}
a{color:#ea580c;text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1180px;margin:0 auto;padding:0 18px}
.topbar{background:#0b1220;color:#cbd5e1;font-size:13px;border-bottom:1px solid #1f2937}
.topbar__inner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:8px 0}
.topbar__contacts a{color:#fdba74}
.header{background:#111827;color:#f9fafb;border-bottom:3px solid #f97316;position:sticky;top:0;z-index:40}
.header__inner{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;gap:16px;flex-wrap:wrap}
.logo{display:flex;flex-direction:column;line-height:1.05;text-decoration:none;color:#fff}
.logo:hover{text-decoration:none}
.logo__mark{font-weight:800;font-size:22px;letter-spacing:.04em}
.logo__plus{color:#f97316;font-weight:800;margin-left:2px}
.logo__sub{font-size:12px;color:#9ca3af;font-weight:600}
.nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-weight:600}
.nav a{color:#e5e7eb;text-decoration:none;padding:6px 10px;border-radius:8px}
.nav a:hover{background:#1f2937;text-decoration:none;color:#fff}
.nav__user{color:#fdba74;font-size:14px}
.main{padding-bottom:48px}
.hero{padding:26px 0 12px;color:#f9fafb}
.hero__inner{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.badge{display:inline-block;background:#f97316;color:#111827;font-weight:800;font-size:11px;padding:6px 10px;border-radius:999px;text-transform:uppercase;letter-spacing:.06em}
.hero__title{margin:10px 0 8px;font-size:clamp(24px,4vw,36px);font-weight:800;line-height:1.15}
.hero__lead{margin:0;color:#cbd5e1;max-width:820px}
.layout--catalog{display:grid;grid-template-columns:240px 1fr;gap:22px;padding-top:22px}
.sidebar{background:#fff;border-radius:14px;padding:16px 14px;border:1px solid #e5e7eb;box-shadow:0 14px 34px rgba(15,23,42,.08);align-self:start}
.sidebar__title{font-weight:800;margin-bottom:12px;font-size:14px;color:#111827;text-transform:uppercase;letter-spacing:.05em}
.catlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.catlist a{display:block;padding:8px 10px;border-radius:10px;color:#111827;font-weight:600;font-size:14px;text-decoration:none;border:1px solid transparent}
.catlist a:hover{background:#fff7ed;text-decoration:none;border-color:#fed7aa}
.catlist a.is-active{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.catalog__bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px;flex-wrap:wrap}
.catalog__count{font-weight:700;color:#374151;font-size:14px}
.pager{display:flex;gap:6px;flex-wrap:wrap}
.pager__link{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:34px;padding:0 10px;border-radius:10px;background:#fff;border:1px solid #e5e7eb;color:#111827;font-weight:700;text-decoration:none;font-size:13px}
.pager__link:hover{text-decoration:none;background:#fff7ed;border-color:#fdba74}
.pager__link.is-active{background:#f97316;border-color:#ea580c;color:#fff}
.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.card{background:#fff;border-radius:14px;border:1px solid #e5e7eb;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 14px 34px rgba(15,23,42,.07)}
.card__image{background:#f9fafb;border-bottom:1px solid #e5e7eb;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.card__body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.pill{display:inline-flex;align-self:flex-start;font-size:11px;font-weight:800;padding:4px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}
.pill--ok{background:#dcfce7;color:#166534}
.pill--bad{background:#fee2e2;color:#991b1b}
.card__sku{font-size:12px;color:#6b7280;font-weight:700}
.card__title{font-size:15px;margin:0;line-height:1.25;font-weight:700}
.card__title a{color:#111827;text-decoration:none}
.card__title a:hover{color:#ea580c;text-decoration:none}
.card__meta{font-size:12px;color:#9ca3af;font-weight:600}
.card__price{font-size:20px;font-weight:800;color:#111827;margin-top:auto}
.card__buy{margin-top:6px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:12px;border:1px solid #d1d5db;background:#fff;color:#111827;font-weight:800;font-size:14px;cursor:pointer;text-decoration:none;font-family:inherit}
.btn:hover{text-decoration:none;background:#f9fafb;border-color:#cbd5e1}
.btn--accent{background:#f97316;border-color:#ea580c;color:#fff}
.btn--accent:hover{background:#ea580c;border-color:#c2410c;color:#fff}
.btn--accent:disabled{opacity:.45;cursor:not-allowed}
.btn--ghost{background:transparent;border-color:#e5e7eb}
.btn--block{width:100%}
.btn--sm{padding:6px 10px;font-size:12px;border-radius:10px}
.btn--lg{padding:12px 18px;font-size:15px;border-radius:14px}
.empty{padding:28px;background:#fff;border-radius:14px;border:1px dashed #d1d5db;color:#6b7280;font-weight:600}
.section{padding:28px 0}
.page-title{margin:0 0 18px;font-size:26px;font-weight:800;color:#111827}
.narrow{max-width:560px}
.breadcrumbs{padding:18px 18px 0;color:#e5e7eb;font-size:13px;font-weight:600}
.breadcrumbs a{color:#fdba74}
.breadcrumbs__sep{margin:0 8px;opacity:.7}
.product-page{padding:18px 0 36px}
.product-page__grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:22px;align-items:start}
.product-page__gallery{background:#fff;border-radius:16px;border:1px solid #e5e7eb;padding:14px;box-shadow:0 18px 44px rgba(15,23,42,.08)}
.product-page__img{width:100%;height:auto;border-radius:12px}
.product-page__info{background:#fff;border-radius:16px;border:1px solid #e5e7eb;padding:18px;box-shadow:0 18px 44px rgba(15,23,42,.08)}
.product-page__title{margin:10px 0 8px;font-size:22px;line-height:1.2;font-weight:800}
.product-page__sku{font-size:15px;color:#4b5563;margin-bottom:10px}
.product-page__price{font-size:30px;font-weight:900;margin:12px 0 16px}
.product-page__buy{margin-top:8px}
.hint{margin:10px 0 0;color:#b45309;font-weight:600;font-size:14px}
.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border-radius:14px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.table th,.table td{padding:12px 14px;text-align:left;font-size:14px;border-bottom:1px solid #f3f4f6}
.table th{background:#f9fafb;font-weight:800;color:#374151;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.table tr:last-child td{border-bottom:0}
.input{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #d1d5db;font-size:14px;font-family:inherit;background:#fff}
.input:focus{outline:2px solid #fdba74;outline-offset:0;border-color:#f97316}
.input--qty{max-width:88px}
.cart-actions{margin-top:12px}
.cart-summary{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin-top:18px;padding:16px;background:#fff;border-radius:14px;border:1px solid #e5e7eb}
.cart-summary__total{font-size:18px;font-weight:800}
.cart-remove-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.cart-remove-form{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px}
.cart-remove-label{font-weight:700;color:#6b7280;font-size:13px}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:18px;z-index:60}
.modal.is-open{display:flex}
.modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58)}
.modal__dialog{position:relative;background:#fff;border-radius:16px;padding:18px 18px 20px;max-width:520px;width:100%;border:1px solid #e5e7eb;box-shadow:0 28px 70px rgba(15,23,42,.28)}
.modal__close{position:absolute;top:10px;right:12px;border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer;color:#6b7280}
.modal__dialog h2{margin:0 0 14px;font-size:20px;font-weight:900}
.checkout-form{display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field__label{font-size:12px;font-weight:800;color:#374151;text-transform:uppercase;letter-spacing:.04em}
.radio{display:flex;align-items:center;gap:8px;font-weight:600;color:#111827}
.inline-actions{display:inline;margin:0}
.auth-form{display:flex;flex-direction:column;gap:12px}
.auth-alt{margin-top:12px;color:#4b5563;font-weight:600}
.alert{padding:12px 14px;border-radius:12px;font-weight:700}
.alert--err{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.lead{font-size:16px;font-weight:700}
.muted{color:#6b7280;font-weight:600}
.footer{background:#0b1220;color:#cbd5e1;margin-top:28px;border-top:3px solid #f97316}
.footer__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;padding:26px 18px}
.footer__brand{font-weight:900;color:#fff;font-size:18px}
.footer__title{font-weight:800;color:#fff;margin-bottom:8px}
.footer__text{margin:0;color:#9ca3af;font-size:14px;line-height:1.5}
.footer__bottom{padding:12px 18px 22px;border-top:1px solid #1f2937;color:#9ca3af;font-size:12px}
.admin-body{background:#f3f4f6}
.admin-top{background:#111827;color:#f9fafb;border-bottom:3px solid #f97316;position:sticky;top:0;z-index:50}
.admin-top__inner{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:12px;flex-wrap:wrap}
.admin-nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-weight:700}
.admin-nav a{color:#e5e7eb;text-decoration:none;padding:6px 10px;border-radius:10px}
.admin-nav a:hover{background:#1f2937;text-decoration:none;color:#fff}
.admin-main{padding:22px 18px 40px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}
.stat-card{background:#fff;border-radius:14px;padding:16px;border:1px solid #e5e7eb;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.stat-card__num{font-size:30px;font-weight:900;color:#111827}
.stat-card__label{font-weight:800;color:#6b7280;margin-top:6px;text-transform:uppercase;font-size:12px;letter-spacing:.05em}
.admin-links{list-style:none;padding:0;margin:18px 0;display:flex;flex-direction:column;gap:10px;max-width:420px}
.admin-form{display:flex;flex-direction:column;gap:12px;max-width:640px;margin-bottom:22px}
.admin-form--inline{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px}
.toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:14px 0 18px;flex-wrap:wrap}
.toolbar__form{margin:0}
.thumb-preview{margin:8px 0}
.check{display:flex;align-items:center;gap:10px;font-weight:700;color:#111827}
@media (max-width:960px){
  .layout--catalog{grid-template-columns:1fr}
  .product-page__grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important}
}
