/* Родные Травы · Шапка: верхняя строка, логотип, меню и выпадающий каталог, корзина-шторка, поиск, уведомления.
   Перенесено из style.css исходного сайта без изменений значений. */

.topbar { background: var(--forest); color: var(--paper); font-size: 15px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 24px; min-height: 40px; align-items: center; }
.topbar span b { color: var(--ochre); font-weight: 600; }
.topbar a { text-decoration: none; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--paper); }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 8px 30px -18px rgba(30, 40, 20, .35); }
.header .wrap { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 16px 28px; min-height: 92px; width: min(1600px, 100% - 48px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; min-width: max-content; position: relative; z-index: 2; }
.brand img { width: 62px; height: 62px; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .01em; color: var(--forest); line-height: 1; display: block; white-space: nowrap; }
.brand small { display: block; white-space: nowrap; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { display: flex; gap: 2px; justify-content: flex-start; align-items: center; min-width: 0; }
.nav a { text-decoration: none; padding: 9px 11px; border-radius: 999px; font-weight: 500; font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--paper-3); color: var(--forest); }
.hactions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.phone { text-decoration: none; white-space: nowrap; font-weight: 700; font-size: 19px; letter-spacing: .01em; color: var(--forest); padding: 8px 12px; }
.phone small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }
.cart { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); color: var(--forest); font-weight: 600; }
.cart svg { width: 22px; height: 22px; }
.cart .count { position: absolute; top: -8px; right: -6px; min-width: 24px; height: 24px; border-radius: 999px; background: var(--ochre); color: var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.cart .count.on { transform: scale(1); }
.burger { display: none; width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); }
.burger span { display: block; width: 22px; height: 2px; background: var(--forest); margin: 5px auto; border-radius: 2px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--forest); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-weight: 600; z-index: 100; pointer-events: none; transition: .35s; box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1500px) {
  .header .wrap { gap: 16px 24px; }
  .nav a { padding: 8px 9px; font-size: 15px; }
  .brand small { display: none; }
  .phone small { display: none; }
  .cart { padding: 0 14px 0 12px; }
  .nav > a:nth-child(n+6) { display: none; }
}
@media (max-width: 1300px) {
  .nav a { font-size: 14px; padding: 8px 8px; }
  .phone { font-size: 17px; padding: 8px 6px; }
  .header .wrap { gap: 12px 20px; }
  .nav > a:nth-child(n+4) { display: none; }
}
@media (max-width: 1100px) {
  .brand small, .phone small { display: block; }
  .nav a { font-size: 16px; }
  .phone { font-size: 19px; }
  .header { z-index: 90; }
  .nav { display: none; }
  .burger { display: block; }
  .header .wrap { grid-template-columns: max-content minmax(0, 1fr) max-content; position: static; }
  .nav.open { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 48px; gap: 2px; max-height: calc(100dvh - 76px); overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 30px 40px -30px rgba(0,0,0,.35); z-index: 80; }
  .nav.open .nav__item { min-width: 0; max-width: 100%; }
  .nav.open .mega { display: none !important; }
  .nav.open .nav__item--mega > a svg { display: none; }
  .nav.open > a, .nav.open .nav__item > a { display: block !important; }
  .nav.open a { white-space: normal; font-size: 20px; padding: 14px 14px; }
  .cartbar { display: none !important; }
}
@media (max-width: 720px) {
  .topbar .wrap { justify-content: center; text-align: center; font-size: 14px; }
  .topbar .hide-m { display: none; }
  .header .wrap { min-height: 76px; gap: 12px; }
  .brand img { width: 48px; height: 48px; }
  .brand b { font-size: 19px; white-space: normal; line-height: 1.05; }
  .brand small { display: none; }
  .phone { display: none; }
  .cart span.txt { display: none; }
  .cart { padding: 0 12px; min-height: 44px; }
  .burger { width: 44px; height: 44px; }
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: var(--paper); padding: 8px 14px; border-radius: 4px; z-index: 200; }
.skip:focus { left: 8px; }
.ibtn .count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ochre); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.ibtn .count.on { transform: scale(1); }
.count.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
.nav a.on { background: var(--paper-3); color: var(--forest); }
.nav a svg { width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; transition: transform .3s; }
.nav__item { position: relative; }
.nav__item--mega:hover > a svg, .nav__item--mega:focus-within > a svg { transform: rotate(180deg); }
.mega { position: absolute; left: -40px; top: calc(100% + 14px); width: 780px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr .9fr; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .28s, transform .28s cubic-bezier(.2,.7,.2,1), visibility 0s .28s; z-index: 60; overflow: hidden; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; padding: 0 12px; }
.mega__cats { padding: 22px 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
.mega__cats .mega__title { grid-column: 1 / -1; }
.mega__cats a { display: grid; padding: 9px 12px; border-radius: 6px; text-decoration: none; transition: background .2s; }
.mega__cats a:hover { background: var(--paper-2); color: inherit; }
.mega__cats b { font-size: 16px; color: var(--forest); font-weight: 600; }
.mega__cats span { font-size: 13px; color: var(--ink-3); }
.mega__tasks { padding: 22px 18px 18px; background: var(--paper-2); display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.mega__tasks .mega__title { width: 100%; padding: 0; }
.mega__tasks a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.mega__tasks a:hover { border-color: var(--olive); color: var(--forest); }
.mega__all { width: 100%; margin-top: 10px; font-weight: 600; color: var(--forest); background: none !important; border: 0 !important; padding: 8px 0 0 !important; }
.drawer-wrap { position: fixed; inset: 0; z-index: 120; }
.drawer-bg { position: absolute; inset: 0; background: rgba(30,42,28,.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; }
.drawer-wrap.on .drawer-bg { opacity: 1; }
.drawer-wrap.on .drawer { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 26px; }
.drawer__head small { font-size: 14px; color: var(--ink-3); margin-left: 8px; font-family: var(--font-text); }
.freebar { padding: 14px 24px; background: var(--paper-2); font-size: 14.5px; color: var(--ink-2); }
.freebar i { display: block; height: 6px; border-radius: 3px; background: var(--paper-3); margin-top: 8px; overflow: hidden; }
.freebar i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--olive), var(--moss)); border-radius: 3px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.freebar.done { color: var(--olive); font-weight: 600; }
.drawer__list { overflow-x: hidden; overflow-y: auto; padding: 8px 24px; min-height: 0; min-width: 0; }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: dropin .35s; }
.citem.out { animation: itemout .35s forwards; }
.citem img, .citem .ph { width: 72px; height: 72px; border-radius: 50%; }
.citem .ph { padding: 10px; }
.citem .ph span, .citem .ph small, .citem .ph::before { display: none; }
.citem .ph svg { width: 60%; }
.citem__name { font-family: var(--font-display); font-size: 17px; color: var(--forest); line-height: 1.25; }
.citem__name a { text-decoration: none; }
.citem__var { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.citem__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.citem__price { text-align: right; font-family: var(--font-display); font-size: 19px; color: var(--forest); white-space: nowrap; }
.citem__price small { display: block; font-family: var(--font-text); font-size: 12.5px; color: var(--ink-3); }
.citem__del { border: 0; background: none; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0; margin-top: 8px; }
.citem__del:hover { color: #b3452a; }
.drawer__foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 12px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.promo-row button { font: inherit; font-size: 14px; font-weight: 600; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--forest); background: transparent; color: var(--forest); }
.promo-ok { font-size: 13.5px; color: var(--olive); font-weight: 600; }
.promo-err { font-size: 13.5px; color: #b3452a; }
.sumrow { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.sumrow.total { font-family: var(--font-display); font-size: 24px; color: var(--forest); padding-top: 8px; border-top: 1px dashed var(--line-2); }
.sumrow .disc { color: var(--olive); }
.drawer__empty { display: grid; place-content: center; text-align: center; gap: 12px; padding: 60px 24px; color: var(--ink-2); }
.drawer__empty svg { width: 64px; height: 64px; stroke: var(--paper-3); fill: none; stroke-width: 1.5; margin: 0 auto; }
.drawer__empty b { font-family: var(--font-display); font-size: 24px; color: var(--forest); font-weight: 400; }
.drawer__hits { padding: 14px 24px; border-top: 1px solid var(--line); }
.drawer__hits .t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.drawer__hits .row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.minicard { flex: none; width: 150px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: 13px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.minicard img, .minicard .ph { width: 56px; height: 56px; border-radius: 50%; }
.minicard .ph { padding: 8px; }
.minicard .ph span, .minicard .ph small, .minicard .ph::before { display: none; }
.minicard b { font-weight: 600; color: var(--forest); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.minicard button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--forest); background: transparent; color: var(--forest); }
.minicard button:hover { background: var(--forest); color: var(--paper); }
.fly { position: fixed; z-index: 200; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); will-change: transform, opacity; }
.cart.shake { animation: shake .5s; }
.search-wrap { position: fixed; inset: 0; z-index: 130; }
.search-bg { position: absolute; inset: 0; background: rgba(30,42,28,.5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.search { position: absolute; left: 50%; top: 8vh; width: min(760px, 100% - 32px); transform: translate(-50%, -20px); opacity: 0; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; overflow: hidden; }
.search-wrap.on .search-bg { opacity: 1; }
.search-wrap.on .search { transform: translate(-50%, 0); opacity: 1; }
.search__row { display: grid; grid-template-columns: 28px 1fr 52px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search__row > svg { width: 26px; height: 26px; color: var(--ink-3); }
.search__row input { font: inherit; font-size: 22px; font-family: var(--font-display); border: 0; background: transparent; color: var(--forest); outline: none; min-width: 0; }
.search__row input::placeholder { color: var(--ink-3); font-size: 18px; font-family: var(--font-text); }
.search__hint { padding: 12px 18px 0; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search__hint button { font: inherit; font-size: 13.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2); }
.search__res { max-height: 60vh; overflow-y: auto; padding: 12px 8px 14px; }
.sres { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background .2s; }
.sres:hover { background: var(--paper-2); color: inherit; }
.sres img, .sres .ph { width: 56px; height: 56px; border-radius: 50%; }
.sres .ph { padding: 8px; }
.sres .ph span, .sres .ph small, .sres .ph::before { display: none; }
.sres b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--forest); }
.sres b mark { background: transparent; color: var(--olive); font-weight: 600; }
.sres span { font-size: 13.5px; color: var(--ink-3); }
.sres .p { font-weight: 700; color: var(--forest); white-space: nowrap; }
.search__none { padding: 30px; text-align: center; color: var(--ink-3); }
.totop { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; background: var(--forest); color: var(--paper); display: grid; place-items: center; z-index: 30; opacity: 0; transform: translateY(20px); transition: .35s; box-shadow: var(--shadow); }
.totop.on { opacity: 1; transform: none; }
.totop svg { width: 22px; height: 22px; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast a { color: var(--ochre); font-weight: 700; }
@media (max-width: 1500px) {
  .mega { left: 0; }
}
@media (max-width: 1600px) {
  .nav > a, .nav > .nav__item > a { font-size: 15px; padding: 9px 10px; }
  .phone { display: none; }
}
@media (max-width: 1300px) {
  .nav a svg { display: none; }
}
@media (max-width: 1100px) {
  .nav.open .mega { display: none !important; }
}
@media (max-width: 720px) {
  .hactions { gap: 6px; }
  #searchBtn, #favBtn { width: 44px; height: 44px; }
  .drawer { width: 100%; }
  .citem { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .citem__price { grid-column: auto; text-align: right; }
  .search { top: 12px; }
  .search__row input { font-size: 18px; }
}
@media (max-width: 480px) {
  .header .brand > span { display: none; }
  .header .wrap { gap: 8px; }
  #searchBtn, #favBtn, .burger { width: 42px; height: 42px; }
}
.citem__later { border: 0; background: none; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
.citem__later:hover { color: var(--forest); }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--forest); color: var(--paper); transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -12px 40px -16px rgba(0,0,0,.4); }
.cartbar:not([hidden]) { transform: none; }
.cartbar__in { width: min(1240px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 0; }
.cartbar b { font-family: var(--font-display); font-size: 22px; }
.cartbar small { display: block; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.cartbar .btn { background: var(--ochre); color: var(--ink); }
@media (max-width: 1100px) {
  .cartbar { display: none !important; }
}
