/* ================================================================
   FSS Food Service Supply — Main Stylesheet
   Generated from prototype HTML files
   ================================================================ */

:root {
    --green:    #16A34A;
    --green-d:  #15803D;
    --green-dd: #14532D;
    --green-l:  #F0FDF4;
    --green-xl: #DCFCE7;
    --green-b:  #BBF7D0;

    --ink:      #0F172A;
    --ink-2:    #334155;
    --ink-3:    #64748B;
    --white:    #FFFFFF;
    --bg:       #FFFFFF;
    --bg-2:     #F1F5F9;
    --bg-3:     #E8EEF4;
    --border:   #CBD5E1;
    --border-2: #94A3B8;

    --sh-sm: 0 1px 4px rgba(0,0,0,.08);
    --sh-md: 0 4px 20px rgba(0,0,0,.10);
    --sh-green: 0 4px 24px rgba(22,163,74,.22);

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 14px;
    --t: 160ms ease-out;
    --header-h: 94px;
    --header-top: 52px;
    --header-nav: 42px;
}

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }

img, svg { display: block; max-width: 100%; }

button, input { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

::selection { background: var(--green); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

@media (min-width:768px)  { .wrap { padding: 0 40px; } }

@media (min-width:1440px) { .wrap { padding: 0 60px; } }

/* ══════════════════
   HEADER
══════════════════ */
.header {
    position: static;
    background: var(--ink);
}

.header > .wrap { padding: 0; }

.header__inner { display: none; }

/* Top row */
.header__top {
    display: flex; align-items: center;
    height: var(--header-top);
    padding: 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.header__top-logo { flex-shrink: 0; line-height: 1; }

.header__top-tagline {
    flex: 1; text-align: center;
    font-size: .75rem; font-weight: 500;
    color: rgba(255,255,255,.35);
    letter-spacing: .04em;
    pointer-events: none;
}

.header__top-right {
    display: flex; align-items: center; gap: 14px;
    flex-shrink: 0;
}

/* Bottom nav row */
.header__nav-row {
    display:flex;
    align-items:flex-start;

    min-height:var(--header-nav);
    height:auto;

    padding:0 40px 10px 40px;
}

.logo { flex-shrink: 0; line-height: 1; }

.logo__fss {
    font-size: 1.625rem; font-weight: 800;
    letter-spacing: -0.04em; color: var(--green);
}

.logo__sub {
    font-size: 0.375rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,.3); margin-top: 2px;
}

.header__sep { display: none; }

.header__nav {
    flex:1;

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));

    gap:10px;
}

.header__nav-link {
    font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.6);
    /*white-space: nowrap;*/
    position: relative;
    text-decoration: none !important;
    transition: color var(--t);

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:42px;

    text-align:center;
    white-space:normal;
    line-height:1.3;

    padding:5px 5px;
}

.header__nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: 12px; right: 12px;
    height: 2px; background: var(--green); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 210ms ease-out;
}

.header__nav-link:hover { color: #fff; }

.header__nav-link:hover::after,
.header__nav-link.is-active::after { transform: scaleX(1); }

.header__right {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto; flex-shrink: 0;
}

.header__login {
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    border: 1.5px solid var(--green);
    border-radius: var(--r-sm);
    font-size: 0.8125rem; font-weight: 600;
    color: var(--green); white-space: nowrap;
    transition: background var(--t), color var(--t);
}

.header__login:hover { background: var(--green); color: var(--white); }

.lang {
    display: flex; align-items: center;
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: var(--r-sm); overflow: hidden;
}

.lang__btn {
    padding: 5px 9px;
    font-size: 0.6875rem; font-weight: 700;
    border: none; background: none; cursor: pointer;
    color: rgba(255,255,255,.45);
    transition: background var(--t), color var(--t);
}

.lang__btn.is-active { background: var(--green); color: #fff; }

.lang__sep { width: 1px; background: rgba(255,255,255,.15); height: 16px; }

.header__cart {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border: none; background: none; cursor: pointer;
    border-radius: var(--r-sm); color: rgba(255,255,255,.6);
    transition: color var(--t), background var(--t);
}

.header__cart:hover { color: #fff; background: rgba(255,255,255,.08); }

.header__cart-badge {
    position: absolute; top: 5px; right: 5px;
    min-width: 16px; height: 16px;
    background: var(--green); color: #fff;
    font-size: 0.5625rem; font-weight: 800;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}

.header__burger {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: none; background: none; cursor: pointer;
    border-radius: var(--r-sm); color: rgba(255,255,255,.7);
}

/* ══════════════════
   MOBILE MENU
══════════════════ */
.mob-menu {
    display: none; position: fixed; inset: 0; z-index: 400;
    background: var(--ink);
    flex-direction: column; padding: 20px; overflow-y: auto;
}

.mob-menu.is-open { display: flex; }

.mob-menu__close {
    align-self: flex-end; background: none; border: none;
    cursor: pointer; padding: 8px; margin-bottom: 24px; color: rgba(255,255,255,.6);
}

.mob-menu__nav { display: flex; flex-direction: column; }

.mob-menu__link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.75);
}

.mob-menu__link--accent { color: var(--green); font-weight: 700; }

/* ══════════════════
   HERO — SEARCH
══════════════════ */
.hero {
    padding: 72px 0 64px;
    text-align: center;
    background: var(--green);
}

.hero__label {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 24px;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,.75);
}

.hero__label-line {
    width: 28px; height: 2px; background: rgba(255,255,255,.4); border-radius: 2px;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800; letter-spacing: -0.035em;
    color: #fff; line-height: 1.1;
    margin-bottom: 12px;
}

.hero__title span {
    color: #fff;
    border-bottom: 3px solid rgba(255,255,255,.4);
    padding-bottom: 2px;
}

.hero__sub {
    font-size: 1rem; color: rgba(255,255,255,.78);
    margin-bottom: 40px;
}

/* Search */
.search-wrap { position: relative; max-width: 680px; margin: 0 auto; }

.sbar {
    display: flex; align-items: center;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--r-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    overflow: hidden;
    transition: box-shadow var(--t);
}

.sbar:focus-within {
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.sbar__ico {
    flex-shrink: 0; margin-left: 20px;
    color: var(--ink-3); pointer-events: none;
    transition: color var(--t);
}

.sbar:focus-within .sbar__ico { color: var(--green); }

.sbar__inp {
    flex: 1; border: none; background: none;
    padding: 18px 14px;
    font-size: 1.0625rem; color: var(--ink);
    outline: none; min-width: 0;
}

.sbar__inp::placeholder { color: var(--ink-3); }

.sbar__btn {
    flex-shrink: 0; margin: 6px;
    padding: 11px 28px;
    background: var(--green); color: #fff;
    border: none; border-radius: var(--r-md);
    font-size: 0.9375rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: background var(--t), box-shadow var(--t);
}

.sbar__btn:hover { background: var(--green-d); box-shadow: var(--sh-green); }

.search-hint {
    font-size: 0.75rem; color: rgba(255,255,255,.65);
    margin-top: 10px;
}

.search-hint strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* Dropdown */
.s-drop {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    z-index: 200; overflow: hidden;
    text-align: left;
}

.s-drop.is-open { display: block; }

.s-drop__hdr {
    padding: 9px 16px;
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-3); background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.s-drop__item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; cursor: pointer;
    transition: background var(--t);
}

.s-drop__item:hover { background: var(--bg-2); }

.s-drop__item + .s-drop__item { border-top: 1px solid var(--border); }

.s-drop__item--exact { background: var(--green-l); }

.s-drop__item--exact:hover { background: var(--green-xl); }

.s-drop__thumb {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: var(--r-sm); background: var(--bg-2);
    object-fit: contain; border: 1px solid var(--border); padding: 4px;
}

.s-drop__info { flex: 1; min-width: 0; }

.s-drop__name {
    font-size: 0.875rem; font-weight: 500; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.s-drop__code { font-size: 0.75rem; font-weight: 700; color: var(--green); margin-top: 2px; }

.s-drop__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.s-drop__price { font-size: 0.9375rem; font-weight: 700; }

.btn-add {
    padding: 7px 14px;
    background: var(--green); color: #fff;
    border: none; border-radius: var(--r-sm);
    font-size: 0.8125rem; font-weight: 700;
    cursor: pointer; transition: background var(--t);
}

.btn-add:hover { background: var(--green-d); }

.s-drop__footer {
    padding: 11px 16px;
    font-size: 0.8125rem; font-weight: 600;
    color: var(--green); text-align: center;
    border-top: 1px solid var(--border); cursor: pointer;
    transition: background var(--t);
}

.s-drop__footer:hover { background: var(--bg-2); }

/* ══════════════════
   CATEGORIES
══════════════════ */
.categories { padding: 56px 0 60px; }

.sec-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 28px;
}

.sec-title {
    font-size: 1.25rem; font-weight: 800; color: var(--ink);
    letter-spacing: -0.02em;
}

.sec-sub {
    font-size: 0.8125rem; color: var(--ink-3); font-weight: 500;
}

.sec-link {
    font-size: 0.875rem; font-weight: 600; color: var(--green);
    transition: color var(--t);
}

.sec-link:hover { color: var(--green-d); }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.cat-tile {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    text-decoration: none;
}

.cat-tile:hover {
    border-color: var(--green);
    box-shadow: var(--sh-green);
    transform: translateY(-2px);
}

.cat-tile__ico {
    flex-shrink: 0;
    width: 46px; height: 46px;
    background: var(--green);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background var(--t);
}

.cat-tile:hover .cat-tile__ico { background: var(--green-d); }

.cat-tile__body { flex: 1; min-width: 0; }

.cat-tile__name {
    font-size: 0.9rem; font-weight: 600; color: var(--ink);
    line-height: 1.3;
}

.cat-tile__sub {
    font-size: 0.72rem; color: var(--ink-3); margin-top: 3px;
}

.cat-tile__arrow {
    flex-shrink: 0; color: var(--border-2);
    transition: color var(--t), transform var(--t);
}

.cat-tile:hover .cat-tile__arrow { color: var(--green); transform: translateX(3px); }

/* ══════════════════
   FEATURED PRODUCTS
══════════════════ */
.featured {
    background: var(--bg-2);
    padding: 56px 0 64px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pcard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px)  { .pcard-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

@media (min-width: 1024px) { .pcard-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.pcard {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.pcard:hover {
    border-color: var(--green);
    box-shadow: var(--sh-green);
    transform: translateY(-2px);
}

.pcard__img-wrap {
    display: block;
    background: var(--white);
    padding: 12px;
    aspect-ratio: 1 / 0.85;
    overflow: hidden;
}

.pcard__img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform var(--t);
}

.pcard:hover .pcard__img { transform: scale(1.04); }

.pcard__body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; flex: 1;
    border-top: 1px solid var(--border);
}

.pcard__code {
    font-size: 0.6875rem; font-weight: 700;
    color: var(--green); letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.pcard__name {
    font-size: 0.8125rem; font-weight: 500; color: var(--ink);
    line-height: 1.4; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pcard__name:hover { color: var(--green); }

.pcard__foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px; gap: 8px;
}

.pcard__price {
    font-size: 1rem; font-weight: 800; color: var(--ink);
    white-space: nowrap;
}

.pcard__btn {
    padding: 7px 12px;
    background: var(--green); color: #fff;
    border: none; border-radius: var(--r-sm);
    font-size: 0.75rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: background var(--t);
}

.pcard__btn:hover { background: var(--green-d); }

/* ══════════════════
   FOOTER
══════════════════ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.45);
    padding: 52px 0 32px;
    border-top: 3px solid var(--green);
}

.footer__grid {
    display: grid; grid-template-columns: 1fr; gap: 32px;
}

@media (min-width:768px) { .footer__grid { grid-template-columns: 1.4fr 2fr 1fr; } }

.footer__logo-fss {
    font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.04em; color: var(--white);
}

.footer__logo-sub {
    font-size: 0.4375rem; letter-spacing: 0.14em; text-transform: uppercase;
    opacity: .3; margin-bottom: 14px; margin-top: 2px;
}

.footer__desc { font-size: 0.8125rem; line-height: 1.65; margin-bottom: 16px; }

.footer__contacts { display: flex; flex-direction: column; gap: 6px; }

.footer__contact { font-size: 0.875rem; color: rgba(255,255,255,.5); transition: color var(--t); }

.footer__contact:hover { color: #fff; }

.footer__contact strong { color: rgba(255,255,255,.85); }

.footer__sec-title {
    font-size: 0.5625rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,.25); margin-bottom: 14px;
}

.footer__links { display: flex; flex-direction: column; gap: 9px; }

.footer__link { font-size: 0.8125rem; color: rgba(255,255,255,.4); transition: color var(--t); }

.footer__link:hover { color: rgba(255,255,255,.85); }

.footer__bottom {
    margin-top: 40px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
    font-size: 0.75rem; color: rgba(255,255,255,.2);
}

/* ══ MOBILE HEADER ══ */
.header__catalog-mob{display:none;align-items:center;justify-content:center;height:36px;padding:0;background:var(--green);border-radius:var(--r-sm);color:#fff;border:none;cursor:pointer;flex-shrink:0;transition:background var(--t)}

.header__catalog-mob:hover{background:var(--green-d)}

.mob-menu{display:none;position:fixed;inset:0;z-index:400;background:var(--ink);flex-direction:column;padding:20px;overflow-y:auto}

.mob-menu.is-open{display:flex}

.mob-menu__close{align-self:flex-end;background:none;border:none;cursor:pointer;padding:8px;margin-bottom:24px;color:rgba(255,255,255,.6)}

.mob-menu__nav{display:flex;flex-direction:column}

.mob-menu__link{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:1rem;font-weight:500;color:rgba(255,255,255,.75)}

.mob-menu__link--accent{color:var(--green);font-weight:700}

@media(max-width:1023px){
    .header__nav-row{display:none}
    .header__top-tagline{display:none}
    .header__catalog-mob{display:flex;margin-right:auto}
    .header__top{padding:0 12px;height:62px;gap:8px}
    .header__top-logo .logo__sub{display:none}
    .header__login{height:36px;padding:0;display:flex;align-items:center;justify-content:center}
    .lang{height:36px;display:flex;align-items:stretch}
    .lang__btn{height:100%;padding:0 8px}
    .header__cart{height:32px;width:32px;border:1.5px solid rgba(255,255,255,.25);border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center}
    .header__cart svg{width:16px;height:16px}
    .header__cart-badge{top:-5px;right:-5px}
    .header__top-right{margin-left:auto;gap:6px;align-items:center;display:flex}
}

@media(max-width:639px){
    .cat-grid{grid-template-columns:1fr;max-width:420px;margin:0 auto}
}

/* ══ SEARCH ICON + DROPDOWN ══ */
.header__search-ico-btn{
    display:none;align-items:center;justify-content:center;
    width:36px;height:36px;
    border:1.5px solid rgba(255,255,255,.25);border-radius:var(--r-sm);
    background:none;cursor:pointer;color:rgba(255,255,255,.7);
    flex-shrink:0;transition:background var(--t),color var(--t),border-color var(--t)
}

.header__search-ico-btn:hover,
.header__search-ico-btn.is-active{background:rgba(255,255,255,.1);color:#fff;border-color:var(--green)}

@media(min-width:1024px){
    .header__search{display:flex}
}

/* Dropdown bar */
.header__search-drop{
    background:var(--ink);
    border-top:1px solid rgba(255,255,255,.07);
    max-height:0;overflow:hidden;
    transition:max-height .25s ease-out,opacity .2s;
    opacity:0;
}

.header__search-drop.is-open{max-height:70px;opacity:1}

.header__search-drop-inner{
    display:flex;align-items:center;gap:8px;
    padding:10px 0;
}

.header__search-drop-inner input{
    flex:1;height:40px;
    background:rgba(255,255,255,.08);
    border:1.5px solid rgba(255,255,255,.15);
    border-radius:var(--r-sm);
    padding:0 14px;font-size:.9375rem;color:#fff;
    outline:none;font-family:inherit;transition:border-color var(--t),background var(--t)
}

.header__search-drop-inner input::placeholder{color:rgba(255,255,255,.35)}

.header__search-drop-inner input:focus{border-color:var(--green);background:rgba(255,255,255,.11)}

.header__search-drop-inner button{
    flex-shrink:0;height:40px;padding:0 20px;
    background:var(--green);border:none;border-radius:var(--r-sm);
    color:#fff;font-size:.875rem;font-weight:700;cursor:pointer;
    font-family:inherit;white-space:nowrap;transition:background var(--t)
}

.header__search-drop-inner button:hover{background:var(--green-d)}

/* On mobile — show search icon in header */
@media(max-width:1023px){
    .header__search-ico-btn{display:flex}
}

/* ══ HEADER SEARCH ══ */
.header__search{flex:1;display:flex;align-items:center;margin:0 24px;background:#fff;border-radius:6px;box-shadow:0 0 0 2px var(--green)}

.header__search:focus-within{box-shadow:0 0 0 2px var(--green-d)}

.header__search-ico{flex-shrink:0;margin:0 12px;color:#9ca3af;pointer-events:none}

.header__search input{flex:1;height:40px;background:none;border:none;padding:0;font-size:.9375rem;color:#111;outline:none}

.header__search input::placeholder{color:#9ca3af}

.header__search-btn{flex-shrink:0;height:40px;padding:0 22px;background:var(--green);border:none;color:#fff;font-size:.9375rem;font-weight:700;cursor:pointer;transition:background var(--t)}

.header__search-btn:hover{background:var(--green-d)}

@media(max-width:1023px){.header__search{display:none}}

/* ══ BREADCRUMB ══ */
.breadcrumb{padding:14px 0;display:flex;align-items:center;gap:6px;font-size:.8125rem;color:var(--ink-3)}

.breadcrumb a{color:var(--ink-3);transition:color var(--t)}

.breadcrumb a:hover{color:var(--green)}

.breadcrumb__sep{color:var(--border-2)}

/* ══ CABINET LAYOUT ══ */
.cabinet-wrap{
    max-width:1200px;margin:0 auto;padding:0 24px 64px;
}

@media(min-width:768px){.cabinet-wrap{padding:0 40px 64px}}

.cabinet-grid{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:32px;
    align-items:start;
    padding-top:32px;
}

@media(max-width:767px){
    .cabinet-grid{grid-template-columns:1fr;gap:20px;padding-top:20px}
}

/* ── Sidebar ── */
.cab-sidebar{
    background:#fff;
    border:1.5px solid var(--border);
    border-radius:var(--r-md);
    overflow:hidden;
}

.cab-sidebar__head{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 16px;
    background:var(--bg-2);
    border-bottom:1px solid var(--border);
}

.cab-sidebar__title{
    font-size:.75rem;font-weight:700;letter-spacing:.06em;
    color:var(--ink-3);text-transform:uppercase;
}

.cab-sidebar__logout{
    font-size:.75rem;font-weight:600;color:var(--ink-3);
    text-decoration:underline;text-underline-offset:3px;
    transition:color var(--t);
}

.cab-sidebar__logout:hover{color:var(--ink)}

.cab-sidebar__nav{padding:8px 0}

.cab-nav__link{
    display:block;padding:11px 16px;
    font-size:.9375rem;color:var(--ink-2);
    transition:background var(--t),color var(--t);
    border-left:3px solid transparent;
}

.cab-nav__link:hover{background:var(--bg-2);color:var(--ink)}

.cab-nav__link.is-active{
    background:var(--green-l);color:var(--green-dd);font-weight:600;
    border-left-color:var(--green);
}

/* ── Main content ── */
.cab-main{display:flex;flex-direction:column;gap:20px}

.cab-notice{
    display:flex;align-items:flex-start;gap:12px;
    padding:14px 18px;
    background:var(--green-l);
    border:1px solid var(--green-b);
    border-radius:var(--r-md);
    font-size:.875rem;line-height:1.55;color:var(--ink-2);
}

.cab-notice svg{flex-shrink:0;margin-top:1px;color:var(--green)}

.cab-card{
    background:#fff;
    border:1.5px solid var(--border);
    border-radius:var(--r-md);
    overflow:hidden;
}

.cab-card__head{
    display:flex;align-items:center;justify-content:space-between;
    padding:18px 24px 16px;
    border-bottom:1px solid var(--bg-3);
}

.cab-card__title{font-size:1.25rem;font-weight:700;color:var(--ink)}

.cab-card__edit{
    display:inline-flex;align-items:center;gap:6px;
    font-size:.875rem;font-weight:600;color:var(--green);
    transition:color var(--t);
}

.cab-card__edit:hover{color:var(--green-d)}

.cab-card__edit svg{flex-shrink:0}

.cab-rows{padding:0 24px}

.cab-row{
    display:flex;align-items:center;
    padding:16px 0;
    border-bottom:1px solid var(--bg-3);
    gap:16px;
}

.cab-row:last-child{border-bottom:none}

.cab-row__label{
    flex:0 0 160px;
    font-size:.9375rem;color:var(--ink-3);
}

.cab-row__value{
    flex:1;font-size:.9375rem;font-weight:600;color:var(--ink);
}

.cab-row__value--empty{
    color:var(--border-2);font-weight:400;font-style:italic;
}

@media(max-width:600px){
    .cab-row{flex-direction:column;align-items:flex-start;gap:4px}
    .cab-row__label{flex:none;font-size:.8125rem}
    .cab-card__head{flex-direction:column;align-items:flex-start;gap:10px}
}

/* ══ FOOTER ══ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.45);
    padding: 52px 0 32px;
    border-top: 3px solid var(--green);
}

/* ══ BREADCRUMB ══ */
.breadcrumb{padding:16px 0 14px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.9375rem;color:var(--ink-3)}

.breadcrumb span.cur{color:var(--ink)}

/* ══ PRODUCT PAGE ══ */
.product-wrap{padding-bottom:64px}

.product-card{display:grid;grid-template-columns:1fr;gap:24px;background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:24px;margin-bottom:28px}

@media(min-width:640px){.product-card{grid-template-columns:220px 1fr;gap:32px;align-items:start}}

@media(min-width:1024px){.product-card{grid-template-columns:260px 1fr}}

/* Photo */
.product-card__img{border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;padding:16px}

.product-card__img img{max-width:100%;max-height:100%;object-fit:contain}

/* Info */
.product-card__info{}

.product-card__art{font-size:.8125rem;font-weight:600;color:var(--ink-3);margin-bottom:10px;letter-spacing:.02em}

.product-card__art strong{font-size:1rem;color:var(--green);font-weight:700}

.product-card__name{font-size:1.375rem;font-weight:700;color:var(--ink);line-height:1.35;letter-spacing:-.02em;margin-bottom:24px}

.product-card__price-row{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}

.product-card__price{font-size:2rem;font-weight:800;color:var(--ink);letter-spacing:-.03em}

.product-card__price-note{font-size:.8125rem;color:var(--ink-3);margin-bottom:20px}

.product-card__actions{display:flex;gap:10px;flex-wrap:wrap}

.product-card__btn-cart{flex:1;min-width:160px;height:46px;background:var(--green);color:#fff;border:none;border-radius:var(--r-sm);font-size:.9375rem;font-weight:700;cursor:pointer;transition:background var(--t);display:flex;align-items:center;justify-content:center;gap:8px}

.product-card__btn-cart:hover{background:var(--green-d)}

/* Description */

/* Qty stepper */
.product-card__qty{display:flex;align-items:center;border:1.5px solid var(--border-2);border-radius:var(--r-sm);overflow:hidden;height:46px;flex-shrink:0}

.qty-btn{width:40px;height:100%;background:none;border:none;font-size:1.25rem;font-weight:500;color:var(--ink-2);cursor:pointer;transition:background var(--t),color var(--t);display:flex;align-items:center;justify-content:center}

.qty-btn:hover{background:var(--green-l);color:var(--green)}

.qty-input{width:48px;height:100%;border:none;border-left:1.5px solid var(--border-2);border-right:1.5px solid var(--border-2);text-align:center;font-size:1rem;font-weight:600;color:var(--ink);outline:none;-moz-appearance:textfield}

.qty-input::-webkit-inner-spin-button,.qty-input::-webkit-outer-spin-button{-webkit-appearance:none}

.product-desc{border:1px solid var(--border);border-radius:var(--r-lg);padding:24px 28px}

.product-desc__title{font-size:1rem;font-weight:700;color:var(--ink);margin-bottom:12px}

.product-desc__text{font-size:.9375rem;color:var(--ink-2);line-height:1.7}

/* ══ EDIT FORM ══ */
.edit-form{padding:8px 24px 28px}

.edit-row{
    display:grid;grid-template-columns:160px 1fr;
    align-items:start;gap:12px 20px;
    padding:16px 0;border-bottom:1px solid var(--bg-3);
}

.edit-row:last-of-type{border-bottom:none}

.edit-label{
    padding-top:13px;
    font-size:.9375rem;color:var(--ink-3);
}

.edit-input{
    width:100%;height:46px;
    border:1.5px solid var(--border);border-radius:var(--r-sm);
    padding:0 14px;font-size:.9375rem;color:var(--ink);
    background:#fff;
    transition:border-color var(--t),box-shadow var(--t);
}

.edit-input:focus{
    outline:none;border-color:var(--green);
    box-shadow:0 0 0 3px rgba(22,163,74,.1);
}

.edit-textarea{
    height:90px;padding:12px 14px;resize:vertical;
}

.edit-input-wrap{display:flex;flex-direction:column;gap:6px}

.edit-hint{font-size:.8125rem;color:var(--ink-3)}

.edit-actions{padding:20px 0 4px}

.edit-btn{
    height:44px;padding:0 28px;
    background:var(--green);color:#fff;
    font-size:.9375rem;font-weight:700;
    border:none;border-radius:var(--r-sm);
    cursor:pointer;transition:background var(--t);
}

.edit-btn:hover{background:var(--green-d)}

@media(max-width:600px){
    .edit-row{grid-template-columns:1fr;gap:6px}
    .edit-label{padding-top:0;font-size:.8125rem}
    .edit-form{padding:8px 16px 24px}
}

/* ══ CART PAGE ══ */
.cart-page{padding:48px 0 64px;background:var(--bg)}

.cart-title{
    font-size:2rem;font-weight:800;color:var(--ink);
    text-align:center;margin-bottom:40px;
    letter-spacing:-.03em;
}

.cart-products{
    border-top:2px solid #d4a017;
    border-bottom:2px solid #d4a017;
    margin-bottom:24px;
}

.cart-item{
    display:grid;
    grid-template-columns:100px 1fr auto 28px;
    gap:20px;align-items:center;
    padding:20px 0;
    border-bottom:1px solid var(--bg-3);
}

.cart-item:last-child{border-bottom:none}

.cart-item__img{
    width:100px;height:100px;object-fit:contain;
    border:1px solid var(--border);border-radius:var(--r-sm);
    background:#fff;padding:6px;flex-shrink:0;
}

.cart-item__info{display:flex;flex-direction:column;gap:4px;min-width:0}

.cart-item__name{
    font-size:.9375rem;font-weight:600;color:var(--green);
    line-height:1.4;transition:color var(--t);
}

.cart-item__name:hover{color:var(--green-d)}

.cart-item__code{font-size:.875rem;color:var(--ink-2)}

.cart-item__code strong{color:#d97706;font-weight:600}

.cart-item__price{font-size:.875rem;color:var(--ink-2)}

.cart-item__price strong{color:var(--green);font-weight:700}

.cart-item__right{display:flex;align-items:center;gap:20px;flex-shrink:0}

.cart-qty{display:flex;align-items:center;gap:8px}

.cart-qty__btn{
    width:30px;height:30px;border-radius:50%;
    background:var(--bg-3);border:none;cursor:pointer;
    font-size:1.125rem;color:var(--ink-2);
    display:flex;align-items:center;justify-content:center;
    transition:background var(--t);
}

.cart-qty__btn:hover{background:var(--border)}

.cart-qty__val{
    width:48px;height:32px;text-align:center;
    border:1.5px solid var(--border);border-radius:var(--r-sm);
    font-size:.9375rem;font-weight:600;color:var(--ink);
    -moz-appearance:textfield;
}

.cart-qty__val::-webkit-inner-spin-button{-webkit-appearance:none}

.cart-item__total{
    font-size:1rem;font-weight:800;color:var(--green);
    white-space:nowrap;min-width:90px;text-align:right;
}

.cart-item__remove{
    width:28px;height:28px;border-radius:50%;
    background:#7f1d1d;border:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    color:#fff;flex-shrink:0;align-self:flex-start;margin-top:4px;
    transition:background var(--t);
}

.cart-item__remove:hover{background:#991b1b}

.cart-total{
    display:flex;align-items:center;justify-content:flex-end;gap:16px;
    margin-bottom:32px;
}

.cart-total__label{font-size:1rem;color:var(--ink-2)}

.cart-total__val{
    background:var(--green);color:#fff;
    font-size:1.125rem;font-weight:800;
    padding:9px 22px;border-radius:var(--r-sm);white-space:nowrap;
}

.cart-checkout{
    background:var(--green-l);
    border:1px solid var(--green-b);
    border-radius:var(--r-md);
    padding:20px 24px 28px;
    text-align:center;
}

.cart-checkout__title{
    font-size:1.125rem;font-weight:700;color:var(--green-dd);
    margin-bottom:20px;
}

.cart-checkout__btn{
    height:50px;padding:0 40px;
    background:var(--green);color:#fff;
    font-size:1rem;font-weight:700;
    border:none;border-radius:var(--r-sm);
    cursor:pointer;transition:background var(--t);
}

.cart-checkout__btn:hover{background:var(--green-d)}

@media(max-width:640px){
    .cart-item{grid-template-columns:72px 1fr 24px;gap:12px}
    .cart-item__right{grid-column:2;flex-wrap:wrap;gap:12px}
    .cart-item__img{width:72px;height:72px}
    .cart-title{font-size:1.5rem;margin-bottom:28px}
}

/* ══ BREADCRUMB ══ */
.breadcrumb{padding:16px 0 12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.9375rem;color:var(--ink-3)}

.breadcrumb span.cur{color:var(--ink);font-weight:600}

/* ══ CATALOG LAYOUT ══ */
.catalog-layout{display:grid;grid-template-columns:1fr;gap:0;align-items:start;padding-bottom:64px}

@media(min-width:1024px){.catalog-layout{grid-template-columns:220px 1fr;gap:28px}}

/* ══ SIDEBAR ══ */
.sidebar{position:sticky;top:16px;border:1.5px solid var(--border-2);border-radius:var(--r-md);padding:20px;background:var(--bg-2);box-shadow:var(--sh-sm)}

@media(max-width:1023px){
    .sidebar{display:none;position:fixed;inset:0;z-index:500;overflow-y:auto;border-radius:0;border:none;padding:20px;background:#fff}
    .sidebar.is-open{display:block}
}

.sidebar__mob-close{display:none;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}

.sidebar__mob-close span{font-size:.9375rem;font-weight:700;color:var(--ink)}

.sidebar__mob-close button{background:none;border:none;cursor:pointer;padding:4px;color:var(--ink-3);display:flex;border-radius:var(--r-sm)}

@media(max-width:1023px){.sidebar__mob-close{display:flex}}

.sidebar__group{margin-bottom:0}

.sidebar__group-hdr{display:flex;align-items:center;padding:10px 0 7px;cursor:default;user-select:none;border-bottom:1.5px solid var(--border-2);margin-bottom:2px}

.sidebar__group-title{font-size:.6875rem;font-weight:700;flex:1;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}

.sidebar__group-body{display:block;padding:4px 0 12px}

.sidebar__item{display:flex;align-items:flex-start;gap:9px;padding:5px 0;cursor:pointer}

.sidebar__item:hover .sidebar__item-label{color:var(--green)}

.sidebar__item input[type=checkbox]{width:16px;height:16px;margin-top:2px;accent-color:var(--green);flex-shrink:0;cursor:pointer}

.filter-option-link input[type=checkbox]{pointer-events:none}

.sidebar__item-label{flex:1;font-size:.9375rem;color:var(--ink-2);transition:color var(--t);line-height:1.4}

.sidebar__item input:checked ~ .sidebar__item-label{color:var(--green);font-weight:600}

/* ══ TOPBAR ══ */
.catalog-topbar{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}

.catalog-title{font-size:1.5rem;font-weight:700;color:var(--ink);letter-spacing:-.02em;width:100%;text-align:center}

.mob-filter-btn{display:none;align-items:center;gap:7px;padding:8px 16px;border:1.5px solid var(--border-2);border-radius:var(--r-sm);font-size:.9375rem;font-weight:600;color:var(--ink-2);background:none;cursor:pointer}

@media(max-width:1023px){.mob-filter-btn{display:flex}}

/* ══ ACTIVE FILTERS ══ */
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:16px}

.active-filters:empty{display:none}

.filter-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;background:none;border:1px solid var(--border-2);border-radius:100px;font-size:.875rem;color:var(--ink-2);cursor:pointer;transition:border-color var(--t),color var(--t)}

.filter-chip:hover{border-color:var(--green);color:var(--green)}

.filter-clear{font-size:.875rem;font-weight:600;color:var(--ink-3);cursor:pointer;margin-left:4px}

.filter-clear:hover{color:var(--ink)}

/* ══ PRODUCT CARDS ══ */
.pcard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}

@media(min-width:560px){.pcard-grid{grid-template-columns:repeat(3,1fr);gap:12px}}

@media(min-width:1280px){.pcard-grid{grid-template-columns:repeat(4,1fr);gap:14px}}

.pcard{background:#fff;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden;display:flex;flex-direction:column;transition:border-color var(--t),box-shadow var(--t)}

.pcard:hover{border-color:var(--green);box-shadow:0 2px 12px rgba(22,163,74,.12)}

.pcard__img-wrap{display:block;background:#fff;padding:10px;aspect-ratio:1/.85;overflow:hidden}

.pcard__img{width:100%;height:100%;object-fit:contain;transition:transform var(--t)}

.pcard:hover .pcard__img{transform:scale(1.04)}

.pcard__body{padding:10px 12px 12px;display:flex;flex-direction:column;flex:1;border-top:1px solid var(--border)}

.pcard__code{font-size:.75rem;font-weight:600;color:var(--green);letter-spacing:.02em;margin-bottom:4px}

.pcard__name{font-size:.875rem;font-weight:400;color:var(--ink);line-height:1.4;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}

.pcard__name:hover{color:var(--green)}

.pcard__foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:6px;flex-wrap:nowrap}

.pcard__price{font-size:1rem;font-weight:800;color:var(--ink);white-space:nowrap}

.pcard__btn{padding:7px 10px;background:var(--green);color:#fff;border:none;border-radius:var(--r-sm);font-size:.8125rem;font-weight:600;cursor:pointer;white-space:nowrap;transition:background var(--t)}

.pcard__btn:hover{background:var(--green-d)}

/* ══ PAGINATION ══ */
.pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:40px;flex-wrap:wrap}

.pg-btn{min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:var(--r-sm);font-size:.9375rem;font-weight:500;color:var(--ink-3);background:none;cursor:pointer;padding:0 10px;transition:border-color var(--t),color var(--t),background var(--t)}

.pg-btn:hover{border-color:var(--green);color:var(--green)}

.pg-btn.is-active{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}

.pg-btn:disabled{opacity:.35;cursor:default;pointer-events:none}

.pg-dots{color:var(--ink-3);padding:0 4px}

/* ══ CONTACT FORM ══ */
.edit-form{padding:8px 24px 28px}

.edit-row{display:grid;grid-template-columns:160px 1fr;align-items:start;gap:12px 20px;padding:16px 0;border-bottom:1px solid var(--bg-3)}

.edit-label{padding-top:13px;font-size:.9375rem;color:var(--ink-3)}

.edit-input{width:100%;height:46px;border:1.5px solid var(--border);border-radius:var(--r-sm);padding:0 14px;font-size:.9375rem;color:var(--ink);background:#fff;transition:border-color var(--t),box-shadow var(--t)}

.edit-input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.1)}

.edit-textarea{height:100px;padding:12px 14px;resize:vertical}

.edit-btn{height:44px;padding:0 28px;background:var(--green);color:#fff;font-size:.9375rem;font-weight:700;border:none;border-radius:var(--r-sm);cursor:pointer;transition:background var(--t)}

/* ══ MOB CATALOG BTN ══ */
.header__catalog-mob {
    display: none; align-items: center; gap: 7px;
    height: 36px; padding: 0 14px;
    background: var(--green); border-radius: var(--r-sm);
    font-size: .875rem; font-weight: 700; color: #fff;
    border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background var(--t);
}

.header__catalog-mob:hover { background: var(--green-d); }

/* ══ MOBILE ≤1023px ══ */
@media (max-width: 1023px) {
    .header__nav-row     { display: none; }
    .header__top-tagline { display: none; }
    .header__burger      { display: none; }
    .header__catalog-mob { display: flex; }

    .header__top {
        padding: 0 14px; height: 62px;
        align-items: center;
        gap: 8px;
    }
    /* Logo + Каталог grouped left, rest pushed right */
    .header__catalog-mob { margin-right: auto; }
    .header__top-logo .logo__sub { display: none; }

    /* ALL right-side controls: same 36px height */
    .header__top-right {
        display: flex; align-items: center; gap: 8px;
    }
    .header__login {
        height: 36px; padding: 0 13px;
        font-size: .875rem; display: flex; align-items: center;
    }

    .header__login .login-text { display: inline; }

    .lang {
        height: 36px; display: flex; align-items: stretch;
    }
    .lang__btn { height: 100%; padding: 0 10px; font-size: .6875rem; }

    .header__cart {
        height: 36px; width: 36px;
        border: 1.5px solid rgba(255,255,255,.25);
        border-radius: var(--r-sm);
        display: flex; align-items: center; justify-content: center;
    }
    .header__cart svg { width: 18px; height: 18px; }
    .header__cart-badge { top: -5px; right: -5px; }
}

/* ══ MOBILE CATEGORIES ══ */
@media (max-width: 639px) {
    .cat-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ══ SEARCH ICON (mobile only) ══ */
.header__search-ico-btn {
    display: none; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1.5px solid rgba(255,255,255,.25); border-radius: var(--r-sm);
    background: none; cursor: pointer; color: rgba(255,255,255,.7);
    flex-shrink: 0; transition: background var(--t), color var(--t), border-color var(--t);
}

.header__search-ico-btn:hover,
.header__search-ico-btn.is-active { background: rgba(255,255,255,.1); color: #fff; border-color: var(--green); }

@media (max-width: 1023px) {
    .header__search-ico-btn { display: flex; }
}

/* ══ SEARCH DROPDOWN ══ */
.header__search-drop {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.07);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease-out, opacity .2s;
    opacity: 0;
}

.header__search-drop.is-open { max-height: 70px; opacity: 1; }

.header__search-drop-inner {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 0;
}

.header__search-drop-inner input {
    flex: 1; height: 40px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--r-sm);
    padding: 0 12px; color: #fff; font-size: .9375rem;
}

.header__search-drop-inner input::placeholder { color: rgba(255,255,255,.35); }

.header__search-drop-inner input:focus { outline: none; border-color: var(--green); }

.header__search-drop-inner button {
    height: 40px; padding: 0 18px;
    background: var(--green); color: #fff; font-weight: 600; font-size: .875rem;
    border: none; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap;
    transition: background var(--t);
}

.header__search-drop-inner button:hover { background: var(--green-d); }

/* ══ LOGIN PAGE ══ */
.login-page {
    min-height: calc(100vh - var(--header-h) - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
    background: var(--bg-2);
}

.login-card {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: 48px 40px;
    width: 100%; max-width: 420px;
}

.login-card__title {
    font-size: 1.5rem; font-weight: 700;
    color: var(--ink); text-align: center;
    margin-bottom: 32px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: .875rem; font-weight: 600;
    color: var(--ink-2); margin-bottom: 6px;
}

.login-field input {
    width: 100%; height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0 14px; font-size: 1rem;
    background: var(--bg-2);
    transition: border-color var(--t), box-shadow var(--t);
}

.login-field input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
    background: #fff;
}

.login-btn {
    width: 100%; height: 50px; margin-top: 28px;
    background: var(--green); color: #fff;
    font-size: 1rem; font-weight: 700;
    border: none; border-radius: var(--r-sm);
    cursor: pointer; transition: background var(--t);
}

.login-btn:hover { background: var(--green-d); }

@media (max-width: 480px) {
    .login-card { padding: 32px 20px; }
}

/* ══ ORDER DETAIL ══ */
.ord-meta{display:flex;gap:20px;flex-wrap:wrap;font-size:.9375rem;color:var(--ink-2)}

.ord-meta strong{font-weight:700;color:var(--ink)}

.ord-status--active{color:var(--green)}

.ord-body{padding:20px 24px 28px;display:flex;flex-direction:column;gap:20px}

.ord-add__label{display:block;font-size:.875rem;font-weight:600;color:var(--ink-2);margin-bottom:8px}

.ord-add__input{
    width:100%;height:46px;
    border:1.5px solid var(--border);border-radius:var(--r-sm);
    padding:0 14px;font-size:.9375rem;color:var(--ink);
    transition:border-color var(--t),box-shadow var(--t);
}

.ord-add__input:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(22,163,74,.1)}

.ord-products{
    border-top:2px solid #d4a017;
    border-bottom:2px solid #d4a017;
}

.ord-item{
    display:grid;
    grid-template-columns:80px 1fr auto 28px;
    gap:16px;align-items:center;
    padding:16px 0;
    border-bottom:1px solid var(--bg-3);
}

.ord-item:last-child{border-bottom:none}

.ord-item__img{
    width:80px;height:80px;object-fit:contain;
    border:1px solid var(--border);border-radius:var(--r-sm);
    background:#fff;padding:4px;flex-shrink:0;
}

.ord-item__info{display:flex;flex-direction:column;gap:3px;min-width:0}

.ord-item__name{
    font-size:.9375rem;font-weight:600;color:var(--green);
    line-height:1.4;transition:color var(--t);
}

.ord-item__name:hover{color:var(--green-d)}

.ord-item__code{font-size:.8125rem;color:var(--ink-3)}

.ord-item__code strong{color:var(--green);font-weight:700}

.ord-item__price{font-size:.8125rem;color:var(--ink-3)}

.ord-item__price strong{color:var(--green);font-weight:700}

.ord-item__changed{font-size:.8125rem;color:#d97706;margin-top:2px}

.ord-item__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}

.ord-qty{display:flex;align-items:center;gap:6px}

.ord-qty__btn{
    width:28px;height:28px;border-radius:50%;
    background:var(--bg-3);border:none;cursor:pointer;
    font-size:1rem;color:var(--ink-2);
    display:flex;align-items:center;justify-content:center;
    transition:background var(--t),color var(--t);
}

.ord-qty__btn:hover{background:var(--border);color:var(--ink)}

.ord-qty__val{
    width:52px;height:32px;text-align:center;
    border:1.5px solid var(--border);border-radius:var(--r-sm);
    font-size:.9375rem;font-weight:600;color:var(--ink);
    -moz-appearance:textfield;
}

.ord-qty__val::-webkit-inner-spin-button{-webkit-appearance:none}

.ord-item__total{font-size:1rem;font-weight:800;color:var(--green);white-space:nowrap}

.ord-item__remove{
    width:28px;height:28px;border-radius:50%;
    background:#7f1d1d;border:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    color:#fff;flex-shrink:0;
    transition:background var(--t);
}

.ord-item__remove:hover{background:#991b1b}

.ord-total{
    display:flex;align-items:center;justify-content:flex-end;gap:16px;
    padding-top:4px;
}

.ord-total__label{font-size:1rem;color:var(--ink-2)}

.ord-total__val{
    background:var(--green);color:#fff;
    font-size:1.125rem;font-weight:800;
    padding:8px 20px;border-radius:var(--r-sm);
    white-space:nowrap;
}

@media(max-width:640px){
    .ord-item{grid-template-columns:60px 1fr 28px;grid-template-rows:auto auto}
    .ord-item__right{grid-column:2;grid-row:2;flex-direction:row;align-items:center;justify-content:flex-start}
    .ord-item__img{width:60px;height:60px}
}

/* ══ ORDERS ══ */
.orders-list{display:flex;flex-direction:column;gap:0}

.order-card{
    display:block;
    padding:20px 24px;
    border-bottom:1px solid var(--bg-3);
    text-decoration:none;
    transition:background var(--t);
}

.order-card:last-child{border-bottom:none}

.order-card:hover{background:var(--green-l)}

.order-card__top{
    display:flex;align-items:center;gap:8px;
    margin-bottom:10px;
}

.order-card__num{
    font-size:1.0625rem;font-weight:700;color:var(--green);
}

.order-card__ico{color:var(--green);flex-shrink:0}

.order-card__meta{
    display:flex;flex-wrap:wrap;gap:16px;
    margin-bottom:8px;
}

.order-card__date{font-size:.9375rem;color:var(--ink-3)}

.order-card__date strong{color:var(--ink-2);font-weight:600}

.order-card__status{font-size:.9375rem;font-weight:500}

.order-card__status--active{color:var(--green)}

.order-card__status--done{color:var(--ink-3)}

.order-card__status--cancel{color:#ef4444}

.order-card__sum{
    font-size:.9375rem;color:var(--ink-3);
}

.order-card__sum strong{
    font-size:1.0625rem;font-weight:700;color:var(--green);
}

.search-form .search-q-input {
    width: 100% !important;
}
