/* Brickanutiy — стиль «A · Яскравий» */
:root{
  --navy:#26244F; --navy-2:#3A3870; --orange:#FF7A4D; --orange-d:#E8602F; --cyan:#12D8E0;
  --tint-o:#FFEDE5; --tint-c:#DDFBFC; --tint-n:#EEEEF8; --ink:#26244F; --muted:#5B5A7A; --line:#26244F;
  --ok:#1F7A3A; --err:#C62828; --r:24px;
  --display:"Unbounded",system-ui,sans-serif; --body:"Nunito",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);color:var(--ink);background:#fff;font-size:16px;line-height:1.5}
img{max-width:100%;display:block}
a{color:var(--navy);text-decoration:none}
a:hover{color:var(--orange-d)}
h1,h2,h3{font-family:var(--display);line-height:1.1;margin:0}
.wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:16px;
  border:3px solid var(--navy);background:var(--orange);color:var(--navy);font:800 16px var(--body);cursor:pointer;text-align:center}
.btn:hover{background:var(--orange-d);color:var(--navy)}
.btn-dark{background:var(--navy);color:#fff}.btn-dark:hover{background:var(--navy-2);color:#fff}
.btn-ghost{background:#fff}.btn-ghost:hover{background:var(--tint-n)}
.btn-sm{min-height:40px;padding:0 14px;border-radius:12px;font-size:14px;border-width:2px}
.btn-block{width:100%}
.icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* шапка */
.topbar{background:var(--navy);color:#fff;font-size:14px}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:6px 24px;justify-content:center;padding:8px 20px}
.topbar a{color:#fff;text-decoration:underline}
.header .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;padding:16px 20px}
.logo{display:flex;align-items:center;gap:10px;font:800 22px var(--display);color:var(--navy)}
.logo img{width:46px;height:46px}
.search{flex:1 1 300px;min-width:0;max-width:100%;display:flex;align-items:center;gap:8px;border:3px solid var(--navy);border-radius:16px;padding:0 6px 0 14px;height:52px}
.search input{flex:1;width:0;border:0;outline:0;font:inherit;font-size:16px;min-width:0;background:transparent}
.search button{border:0;background:var(--navy);color:#fff;border-radius:10px;height:38px;padding:0 16px;font:800 15px var(--body);cursor:pointer}
.cart-link{display:flex;align-items:center;gap:8px;height:52px;padding:0 18px;border-radius:16px;background:var(--orange);font-weight:800;color:var(--navy)}
.cart-link:hover{background:var(--orange-d);color:var(--navy)}
.nav-cats{display:flex;gap:10px;overflow-x:auto;padding:0 20px 12px;max-width:1240px;margin:0 auto;scrollbar-width:none}
.nav-cats::-webkit-scrollbar{display:none}
.chip{flex:none;padding:10px 18px;border-radius:999px;background:var(--tint-n);font-weight:700;font-size:15px;white-space:nowrap;color:var(--navy)}
.chip:nth-child(3n+1){background:var(--tint-o)}.chip:nth-child(3n+2){background:var(--tint-c)}
.chip.on,.chip:hover{background:var(--navy);color:#fff}

/* герой */
.hero{background:var(--navy);color:#fff;border-radius:32px;padding:48px;display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center;margin-top:8px}
.hero > div:first-child{flex:1 1 420px}
.hero .tag{display:inline-block;background:var(--orange);color:var(--navy);font-weight:800;padding:6px 14px;border-radius:999px;font-size:14px}
.hero h1{font-size:clamp(34px,5vw,54px);font-weight:800;margin:18px 0 14px}
.hero p{font-size:19px;color:#D9D8F2;max-width:520px;margin:0 0 26px}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px}
.hero .btn-ghost{background:transparent;color:#fff;border-color:#fff}
.hero .btn-ghost:hover{background:var(--navy-2)}
.hero-art{flex:0 1 340px;margin:0 auto}
.hero-art img{width:100%;max-width:320px;margin:0 auto}

/* секції */
.section{margin-top:48px}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px;margin-bottom:20px}
.section-head h2{font-size:clamp(24px,3vw,32px)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}

/* картка товару */
.card{border:3px solid var(--line);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:10px;background:#fff;position:relative;transition:transform .15s}
.card:hover{transform:translateY(-3px)}
.card .ph{aspect-ratio:1/1;border-radius:16px;background:var(--tint-n);overflow:hidden;display:grid;place-items:center}
.card:nth-child(3n+1) .ph{background:var(--tint-o)}.card:nth-child(3n+2) .ph{background:var(--tint-c)}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .ph .noimg{width:45%;opacity:.9}
.badge{position:absolute;top:22px;left:22px;background:var(--navy);color:#fff;font-weight:800;font-size:13px;padding:4px 10px;border-radius:999px;z-index:1}
.badge.sale{background:var(--err)}
.meta{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;font-weight:700}
.meta span{background:var(--tint-n);padding:3px 9px;border-radius:999px}
.card h3{font:800 17px/1.3 var(--body)}
.card h3 a::after{content:"";position:absolute;inset:0;border-radius:var(--r)}
.card .bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;gap:8px}
.price{font:700 22px var(--display);white-space:nowrap}
.old{color:var(--muted);text-decoration:line-through;font-size:14px;font-weight:700}
.stars{color:var(--orange-d);font-weight:800;font-size:14px}

/* переваги */
.perks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.perk{border-radius:var(--r);padding:24px;background:var(--tint-o)}
.perk:nth-child(2){background:var(--tint-c)}.perk:nth-child(3){background:var(--tint-n)}
.perk b{display:block;font-size:18px;margin-bottom:6px}

/* відгуки */
.reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.review{border:3px solid var(--line);border-radius:var(--r);padding:20px;margin:0}
.review blockquote{margin:8px 0;white-space:pre-line}
.review figcaption{color:var(--muted);font-size:14px;font-weight:700}

/* сторінка товару */
.crumbs{font-size:14px;color:var(--muted);margin:8px 0 16px}
.crumbs a{color:var(--muted);text-decoration:underline}
.product{display:flex;flex-wrap:wrap;gap:32px}
.gallery{flex:1 1 460px;min-width:0}
.gallery .main{aspect-ratio:1/1;border:3px solid var(--line);border-radius:28px;overflow:hidden;background:var(--tint-o);display:grid;place-items:center}
.gallery .main img{width:100%;height:100%;object-fit:contain;background:#fff}
.gallery .main .noimg{width:40%}
.thumbs{display:flex;gap:10px;margin-top:12px;overflow-x:auto}
.thumbs button{flex:none;width:76px;height:76px;border-radius:14px;border:3px solid transparent;padding:0;overflow:hidden;cursor:pointer;background:var(--tint-n)}
.thumbs button.on{border-color:var(--orange)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.buy{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:16px}
.buy h1{font-size:clamp(26px,3.4vw,38px)}
.buy .price{font-size:34px}
.buy .lead{font-size:18px;color:var(--muted);margin:0}
.opt-group{border:0;margin:0;padding:0}
.opt-group legend{font-weight:800;margin-bottom:8px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opts label{cursor:pointer}
.opts input{position:absolute;opacity:0}
.opts span{display:inline-block;padding:10px 16px;border-radius:12px;border:2px solid var(--navy);font-weight:700}
.opts input:checked + span{background:var(--navy);color:#fff}
.opts input:focus-visible + span{outline:3px solid var(--orange);outline-offset:2px}
.qty{display:flex;align-items:center;gap:10px}
.qty input{width:80px;height:48px;border:3px solid var(--navy);border-radius:14px;text-align:center;font:800 18px var(--body)}
.buy-actions{display:flex;flex-wrap:wrap;gap:10px}
.buy-actions .btn{flex:1 1 180px}
.note{border-radius:16px;padding:14px 16px;background:var(--tint-c);font-weight:600}
.note.warn{background:var(--tint-o)}
.specs{width:100%;border-collapse:collapse}
.specs td{padding:10px 0;border-bottom:2px dashed var(--tint-n);vertical-align:top}
.specs td:first-child{color:var(--muted);width:45%}
.desc{white-space:pre-line;font-size:17px;max-width:760px}

/* форми */
.form{display:grid;gap:16px}
.field label,.label{display:block;font-weight:800;margin-bottom:6px}
.input,.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{width:100%;min-height:50px;border:3px solid var(--navy);border-radius:14px;padding:10px 14px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--orange);outline-offset:1px}
.field .err{color:var(--err);font-weight:700;font-size:14px;margin-top:4px}
.field.bad input,.field.bad select{border-color:var(--err)}
.row2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.radio-cards{display:grid;gap:10px}
.radio-cards label{display:flex;gap:12px;align-items:flex-start;border:3px solid var(--navy);border-radius:16px;padding:14px 16px;cursor:pointer;font-weight:600}
.radio-cards input{width:22px;height:22px;accent-color:var(--orange);margin-top:2px;flex:none}
.radio-cards label:has(input:checked){background:var(--tint-o)}
.radio-cards label.disabled{opacity:.45;cursor:not-allowed}
.radio-cards b{display:block;font-size:17px}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:600}
.check input{width:22px;height:22px;accent-color:var(--orange);flex:none}
.suggest{position:relative}
.suggest ul{position:absolute;left:0;right:0;top:100%;z-index:20;list-style:none;margin:4px 0 0;padding:6px;background:#fff;border:3px solid var(--navy);border-radius:14px;max-height:280px;overflow:auto}
.suggest li button{display:block;width:100%;text-align:left;border:0;background:none;padding:10px;border-radius:10px;font:inherit;cursor:pointer;color:var(--ink)}
.suggest li button:hover,.suggest li button:focus{background:var(--tint-o)}

/* кошик / оформлення */
.layout{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.layout > .main-col{flex:999 1 520px;min-width:0}
.layout > .side{flex:1 1 300px;border:3px solid var(--navy);border-radius:var(--r);padding:20px;position:sticky;top:16px}
.cart-item{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:2px dashed var(--tint-n);flex-wrap:wrap}
.cart-item .ph{width:84px;height:84px;border-radius:14px;overflow:hidden;background:var(--tint-o);display:grid;place-items:center;flex:none}
.cart-item .ph img{width:100%;height:100%;object-fit:cover}
.cart-item .info{flex:1 1 200px;min-width:0}
.cart-item .info small{display:block;color:var(--muted);font-weight:700}
.cart-item form{display:flex;gap:6px;align-items:center}
.cart-item input[type=number]{width:64px;height:40px;border:2px solid var(--navy);border-radius:10px;text-align:center;font:700 16px var(--body)}
.sum-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0}
.sum-row.total{font:800 20px var(--display);border-top:3px solid var(--navy);margin-top:8px;padding-top:12px}
.alert{border-radius:16px;padding:14px 16px;font-weight:700;background:var(--tint-c);margin-bottom:16px}
.alert.err{background:#FDE7E7;color:#8E1B1B}

.pay-box{border:3px solid var(--navy);border-radius:var(--r);padding:20px;background:var(--tint-o)}
.pay-box dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:12px 0 0}
.pay-box dt{color:var(--muted);font-weight:700}
.pay-box dd{margin:0;font-weight:800;word-break:break-word}
.copy{border:2px solid var(--navy);background:#fff;border-radius:8px;padding:2px 8px;font:700 13px var(--body);cursor:pointer;margin-left:6px;color:var(--navy)}

.page-title{font-size:clamp(26px,4vw,40px);margin:16px 0 20px}
.prose{max-width:760px;font-size:17px}
.prose h2{font-size:22px;margin:28px 0 10px}
.empty{text-align:center;padding:48px 20px}
.empty img{width:120px;margin:0 auto 16px}

/* підвал */
.footer{background:var(--navy);color:#D9D8F2;margin-top:64px;padding:40px 0}
.footer .wrap{display:flex;flex-wrap:wrap;gap:28px;justify-content:space-between}
.footer a{color:#D9D8F2}.footer a:hover{color:#fff}
.footer .logo{color:#fff}
.footer nav{display:flex;flex-direction:column;gap:8px}

@media (max-width:640px){
  .hero{padding:28px;border-radius:24px}
  .hero-art{display:none}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .card{padding:8px;border-width:2px;border-radius:18px}
  .card h3{font-size:15px}
  .price{font-size:17px}
  .badge{top:14px;left:14px;font-size:11px}
  .card .bottom .btn{display:none}
  .cart-link span.txt{display:none}
  .header .logo{flex:1}
  .header .search{order:3;flex-basis:100%}
  .layout > .side{position:static}
}

/* ---------- адмінка ---------- */
.adm{background:#F6F6FB;min-height:100vh}
.adm-top{background:var(--navy);color:#fff}
.adm-top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 20px}
.adm-top .logo{color:#fff;font-size:18px}.adm-top .logo img{width:36px;height:36px}
.adm-top nav{display:flex;flex-wrap:wrap;gap:6px;flex:1}
.adm-top nav a{color:#fff;padding:8px 12px;border-radius:10px;font-weight:700}
.adm-top nav a.on,.adm-top nav a:hover{background:var(--navy-2);color:#fff}
.cnt{display:inline-block;background:var(--orange);color:var(--navy);border-radius:999px;padding:0 7px;font-size:12px;margin-left:4px}
.panel{background:#fff;border-radius:20px;padding:20px;border:2px solid #E3E3EF;margin-bottom:16px}
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:15px}
.tbl th,.tbl td{text-align:left;padding:10px 8px;border-bottom:1px solid #E3E3EF;vertical-align:middle}
.tbl th{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.tbl img{width:52px;height:52px;object-fit:cover;border-radius:10px;background:var(--tint-o)}
.st{display:inline-block;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:800;background:var(--tint-n);white-space:nowrap}
.st-new{background:var(--tint-o)}.st-paid,.st-done{background:#DDF3E4}.st-canceled{background:#FDE7E7}.st-shipped{background:var(--tint-c)}
.filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.imgs figure{margin:0;border:2px solid #E3E3EF;border-radius:14px;padding:8px;font-size:13px}
.imgs img{aspect-ratio:1/1;object-fit:cover;border-radius:10px;width:100%}
.imgs label{display:flex;gap:6px;align-items:center;margin-top:6px}
.hint{color:var(--muted);font-size:14px;margin-top:4px}
.inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.inline .input{width:auto;min-height:42px}
.login{max-width:420px;margin:10vh auto;padding:0 20px}
.card .ph img.noimg,.gallery .main img.noimg,.cart-item .ph img.noimg{width:42%;height:auto;object-fit:contain;background:none}
.section > h2{margin-bottom:14px}
.tg-user{display:none}
form:has(input[name=contact_via][value=telegram]:checked) .tg-user,.tg-user.show{display:block}
.status-form{display:flex;gap:6px;align-items:center;border-radius:12px}
.status-form select{min-height:40px;border:2px solid var(--navy);border-radius:10px;padding:4px 8px;font:700 14px var(--body);background:inherit;color:var(--ink);cursor:pointer}
.status-form.sf-new select{background:var(--tint-o)}.status-form.sf-paid select,.status-form.sf-done select{background:#DDF3E4}
.status-form.sf-canceled select{background:#FDE7E7}.status-form.sf-shipped select{background:var(--tint-c)}
.js .status-form [data-nojs]{display:none}
