:root{
--bg:#212121;
--surface:#2a2a2a;
--border:#333333;
--footer:#1a1a1a;
--text:#e0e0e0;
--heading:#ffffff;
--muted:#aaaaaa;
--accent:#d4af37;
--button-bg:linear-gradient(135deg,#bf953f 0%,#fcf6ba 25%,#b38728 50%,#fbf5b7 75%,#aa771c 100%);
--button-text:#2a2a2a;
--radius:18px;
--radius-sm:14px;
--shadow:0 8px 24px rgba(0,0,0,.18);
}

*{box-sizing:border-box}
html,body{width:100%;max-width:100%;overflow-x:hidden;margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
a{color:var(--accent);text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
body{padding-bottom:64px}
body.page-cart{
  position:relative;
  width:100%;
  max-width:100vw;
  overflow-x:hidden;
  overscroll-behavior-x:none;
  touch-action:pan-y;
}
.app-shell,.app-main{width:100%;max-width:100%;overflow-x:hidden}
.container{width:100%;max-width:760px;margin:0 auto;padding:0 14px;min-width:0}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.section{padding:10px 0}
.section-head h1,.section-head h2{margin:0 0 8px;color:var(--heading)}
.section-head p{margin:0;color:var(--muted)}
.hero-banner{margin-top:14px;padding:20px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(135deg,#2c2c2c,#1a1a1a);box-shadow:var(--shadow)}
.hero-banner__content h1{margin:0 0 8px;font-size:28px;color:var(--heading)}
.hero-banner__content p{margin:0;color:var(--muted)}
.category-blocks{display:grid;gap:12px}
.category-block{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:12px;border:1px solid var(--border);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.category-block__image img{width:120px;height:120px;object-fit:cover;border-radius:18px;background:#202020}
.category-block__body{display:flex;flex-direction:column;justify-content:center}
.category-block__body h3{margin:0 0 8px;color:var(--heading)}
.category-block__body p{margin:0 0 10px;color:var(--muted);line-height:1.4}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-card{border:1px solid var(--border);border-radius:22px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}
.product-card__image img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#1f1f1f}
.product-card__body{padding:12px}
.product-card__top{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}
.product-card__title{font-weight:700;color:var(--heading);display:block;line-height:1.25}
.fav-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(212,175,55,.28);
  background:linear-gradient(180deg,#2b2b2b 0%,#1d1d1d 100%);
  color:var(--accent);
  font-size:20px;
  cursor:pointer;
  padding:0;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  text-shadow:0 2px 4px rgba(0,0,0,.32);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}
.fav-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 18% 18%, rgba(255,255,255,.16) 0 30%, transparent 31%);
  pointer-events:none;
}
.fav-btn::after{
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid rgba(212,175,55,.18);
  border-radius:inherit;
  pointer-events:none;
}
.fav-btn.is-active{
  border-color:rgba(252,246,186,.52);
  background:linear-gradient(180deg,#352f1b 0%,#1f1b10 100%);
  box-shadow:0 6px 14px rgba(0,0,0,.22), inset 0 0 0 1px rgba(212,175,55,.12);
}
.fav-btn:active{
  transform:scale(.97);
}
.product-card__fav{
  width:42px;
  height:38px;
  margin-left:auto;
  min-width:42px;
  border-radius:10px;
  line-height:1;
}
.product-page__fav{
  width:48px;
  min-width:48px;
  min-height:48px;
  margin:0;
  margin-left:auto;
  border-radius:12px;
}
.product-card__text{margin:8px 0;color:var(--muted);font-size:13px;line-height:1.4;min-height:36px}
.price-box strong{display:block;color:var(--heading);font-size:17px}
.price-tiers{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.price-tiers span{padding:4px 8px;border-radius:999px;background:#202020;border:1px solid var(--border);font-size:12px;color:var(--muted)}
.product-card__actions{display:flex;align-items:center;gap:8px;margin-top:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:none;border-radius:14px;background:var(--button-bg);color:#1f1807;font-weight:800;font-size:15px;letter-spacing:.01em;text-shadow:0 1px 0 rgba(255,255,255,.18);cursor:pointer}
.btn-small{min-height:34px;padding:0 12px;font-size:13px}
.btn-large{min-height:48px;padding:0 18px}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--border)}
.product-page{padding-top:14px}
.product-hero img{width:100%;border-radius:24px;aspect-ratio:1/1;object-fit:cover;background:#1f1f1f}
.product-info-card{margin-top:12px;padding:16px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}
.crumbs{margin-bottom:10px;color:var(--muted);font-size:13px}
.product-short{color:var(--muted);line-height:1.5}
.price-box--product{margin:14px 0}
.product-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.product-description{margin-top:14px;line-height:1.6}
.review-form,.search-form,.admin-form,.order-form{display:grid;gap:10px;min-width:0}
.review-form input,.review-form textarea,.search-form input,.admin-form input,.admin-form textarea,.admin-form select,.order-form input,.order-form textarea{
  width:100%;background:#1f1f1f;border:1px solid var(--border);color:var(--text);border-radius:14px;padding:12px
}
.reviews-list{display:grid;gap:10px}
.review-card,.empty-box,.checkout-card{padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface);min-width:0;overflow:hidden}
.review-card p{margin:8px 0 0;line-height:1.5;color:var(--text)}
.review-product{margin-top:6px;font-size:13px}
.cart-list{display:grid;gap:10px}
.cart-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:10px;border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:var(--shadow);min-width:0}
.cart-item img{width:72px;height:72px;object-fit:cover;border-radius:18px;background:#1f1f1f}
.cart-item__body{min-width:0}
.cart-item__head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.cart-item__title{font-weight:700;color:var(--heading);line-height:1.25;min-width:0;overflow-wrap:anywhere}
.remove-icon-btn{width:34px;height:34px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:#1f1f1f;color:var(--muted);cursor:pointer}
.remove-icon-btn svg{width:18px;height:18px}
.remove-icon-btn:active{color:var(--button-bg);border-color:var(--button-bg)}
.cart-item__text,.cart-item__meta{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35}
.cart-item__controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.qty-btn{height:32px;padding:0 10px;border:1px solid var(--border);background:#1f1f1f;color:var(--text);border-radius:8px;cursor:pointer}
.remove-btn{display:none}
.qty-input{width:58px;background:#1f1f1f;border:1px solid var(--border);color:var(--text);border-radius:8px;padding:6px 8px}
.checkout-card{margin-top:14px}
.order-status{display:grid;gap:6px}
.order-status__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.38);
  background:linear-gradient(135deg,rgba(191,149,63,.2) 0%,rgba(252,246,186,.18) 35%,rgba(170,119,28,.22) 100%);
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  line-height:1.2;
}
.order-status__eta{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.checkout-total{margin-bottom:12px;font-size:18px}
.checkout-choice{display:grid;gap:7px}
.checkout-choice__label{font-size:13px;color:var(--muted);font-weight:700}
.checkout-chips{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.checkout-chip{display:inline-flex;cursor:pointer}
.checkout-chip input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:0}
.checkout-chip span{display:inline-flex;align-items:center;justify-content:center;min-height:38px;max-width:100%;padding:0 12px;border:1px solid var(--border);border-radius:14px;background:#1f1f1f;color:var(--text);font-size:13px;font-weight:700;white-space:normal;text-align:center}
.checkout-chip input:checked + span{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-text)}
.order-form .checkout-chips[data-choice-group]{display:grid;gap:0;width:100%;min-width:0;max-width:100%;padding:3px;border:1px solid var(--border);border-radius:10px;background:#1f1f1f;overflow:hidden}
.order-form .checkout-chips[data-choice-group="delivery_type"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.order-form .checkout-chips[data-choice-group="payment_method"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-form .checkout-chip{display:flex;min-width:0;max-width:100%;overflow:hidden}
.order-form .checkout-chip span{width:100%;min-width:0;max-width:100%;min-height:40px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;line-height:1.15;padding:0 6px;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
.order-form .checkout-chip input:checked + span{background:var(--button-bg);color:var(--button-text)}
.checkout-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.courier-fields{display:grid;gap:10px}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:100;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:rgba(26,26,26,.96);backdrop-filter:blur(14px);border-top:1px solid var(--border)}
.bottom-nav__link{min-height:38px;height:auto;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid transparent;background:var(--surface);color:var(--text);font-size:12px;line-height:1.1;text-align:center;min-width:0;padding:4px 6px;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.bottom-nav__cart{
  position:relative; /* важно */
  font-weight:700;
}

.cart-badge{
  position:absolute;
  top:4px;
  right:8px;

  min-width:18px;
  height:18px;
  padding:0 5px;

  border-radius:999px;
  background:#e53935; /* красный */
  color:#fff;

  font-size:11px;
  font-weight:700;
  line-height:18px;
  text-align:center;

  display:flex;
  align-items:center;
  justify-content:center;
}
.app-footer{padding:18px 0 100px;background:var(--footer);border-top:1px solid var(--border);margin-top:30px}
.footer-inner{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px}
.footer-links{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:5px;width:100%;text-align:center;white-space:nowrap;font-size:12px;line-height:1.25;overflow:hidden}
.footer-links a{color:var(--text);font-weight:700}
.footer-links span{color:var(--muted)}
.footer-brand{width:100%;text-align:center;color:var(--muted);font-size:11px;line-height:1.2}
.footer-legal{width:100%;text-align:center;color:var(--muted);font-size:11px;line-height:1.2}
.search-caption{margin:12px 0;color:var(--muted)}
/* Admin */
.admin-body,.admin-login-body{background:#141414;color:var(--text)}
.admin-wrap{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.admin-sidebar{padding:16px;border-right:1px solid var(--border);background:#171717;display:flex;flex-direction:column;gap:10px}
.admin-sidebar a{display:block;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text)}
.admin-main{padding:20px}
.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-stat{padding:16px;border:1px solid var(--border);background:var(--surface);border-radius:18px}
.admin-stat strong{display:block;font-size:28px;color:var(--heading)}
.admin-stat span{color:var(--muted)}
.admin-table-wrap{overflow:auto;margin-top:18px}
.admin-table{width:100%;border-collapse:collapse}
.admin-table th,.admin-table td{padding:12px;border-bottom:1px solid var(--border);text-align:left}
.admin-login-form{width:min(100%,420px);margin:60px auto;padding:20px;border:1px solid var(--border);border-radius:20px;background:var(--surface);display:grid;gap:12px}
.form-error{padding:12px;border-radius:12px;background:#411f1f;color:#ffd1d1;border:1px solid #6a3434}
@media (max-width: 720px){
  .product-grid{grid-template-columns:1fr 1fr}
  .admin-wrap{grid-template-columns:1fr}
  .admin-stats{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
  .category-block{grid-template-columns:1fr}
  .category-block__image img{width:100%;height:180px}
  .product-grid{grid-template-columns:1fr}

  .footer-inner{
    flex-direction:column;
  }

  .promo-box{
    align-items:flex-start;
    flex-direction:column;
  }

  .promo-form{
    grid-template-columns:1fr;
  }
}

/* === КАТЕГОРИИ В СТРОКУ === */

.category-blocks{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.category-block{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:12px;
  align-items:center;
  padding:10px;
  min-height:124px;
}

.category-block__image img{
  width:100px;
  height:100px;
  max-width:none;
  object-fit:cover;
  border-radius:12px;
}

.category-block__body{
  padding:0;
}

.category-block__body h3{
  font-size:14px;
  margin:0;
}

.category-block__body p{
  font-size:12px;
  margin:4px 0 6px;
}

/* === ТОВАРЫ В СТРОКУ === */

.product-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.product-card{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:10px;
  align-items:center;
  padding:10px;
}

.product-card__image{
  width:72px;
  min-width:72px;
}

.product-card__image img{
  width:72px;
  height:72px;
  max-width:none;
  aspect-ratio:auto;
  object-fit:cover;
}

.product-card__body{
  padding:0;
}

.product-card__text{
  min-height:0;
}

.product-card__actions{
  margin-top:6px;
}

/* ===== CATEGORY PAGE: PRODUCTS IN APP ROW STYLE ===== */

.category-product-grid{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}

.page-category .product-card{
  display:grid !important;
  grid-template-columns:116px 1fr !important;
  gap:12px !important;
  align-items:stretch !important;
  min-height:132px !important;
  padding:10px !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
  background:var(--surface) !important;
  box-shadow:none !important;
  overflow:hidden !important;
  cursor:pointer !important;
}

.page-category .product-card__image{
  width:116px !important;
  min-width:116px !important;
  height:auto !important;
  align-self:stretch !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.page-category .product-card__image img{
  width:calc(100% + 18px) !important;
  height:calc(100% + 18px) !important;
  margin:-9px !important;
  object-fit:cover !important;
  border-radius:12px !important;
  background:transparent !important;
}

.page-category .product-card__body{
  padding:0 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
}

.page-category .product-card__title-row{
  display:block !important;
  margin:0 !important;
  min-height:36px !important;
}

.page-category .product-card__title{
  display:block !important;
  margin:0 !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:var(--heading) !important;
  text-decoration:none !important;
  word-break:break-word !important;
}

.page-category .product-card__text{
  margin:6px 0 0 !important;
  min-height:0 !important;
}

.page-category .product-card__text--price{
  margin:8px 0 0 !important;
  font-size:20px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  color:var(--accent) !important;
  text-shadow:0 2px 4px rgba(0,0,0,.2) !important;
}

.page-category .product-card__actions{
  display:flex !important;
  margin-top:auto !important;
  padding-top:10px !important;
  width:100% !important;
  align-items:center !important;
  gap:8px !important;
}

.page-category .product-card__cart-btn{
  display:flex !important;
  flex:1 1 auto !important;
  width:auto !important;
  min-height:38px !important;
  height:38px !important;
  padding:0 12px !important;
  border-radius:10px !important;
  justify-content:center !important;
  color:#1f1807 !important;
  font-size:16px !important;
  font-weight:800 !important;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 560px){
  .page-category .product-card{
    grid-template-columns:108px 1fr !important;
    gap:10px !important;
    min-height:124px !important;
    padding:10px !important;
  }

  .page-category .product-card__image{
    width:108px !important;
    min-width:108px !important;
    height:auto !important;
  }

  .page-category .product-card__image img{
    width:calc(100% + 14px) !important;
    height:calc(100% + 14px) !important;
    margin:-7px !important;
  }

  .page-category .product-card__title{
    font-size:14px !important;
    line-height:1.2 !important;
  }

  .page-category .product-card__title-row{
    min-height:34px !important;
  }

  .page-category .product-card__text--price{
    font-size:17px !important;
  }

  .page-category .product-card__cart-btn{
    min-height:36px !important;
    height:36px !important;
    font-size:15px !important;
  }
}

.hero-banner--category{
  margin:12px 0 8px;
  padding:16px;

  border-radius:22px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,#2c2c2c,#1a1a1a);
}

.hero-banner--category .hero-banner__content h2{
  font-size:18px;
  margin:0 0 6px;
  color:var(--heading);
}

.hero-banner--category .hero-banner__content p{
  font-size:14px;
  line-height:1.5;
  margin:0;
  color:var(--text);
}

.delivery-page{
  padding-top:12px;
}

.delivery-hero{
  margin-top:0;
  margin-bottom:12px;
  padding:18px;
  border-radius:22px;
}

.delivery-hero .hero-banner__content h1{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.15;
}

.delivery-hero .hero-banner__content p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--text);
}

.delivery-grid{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}

.delivery-card{
  padding:14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.delivery-card__title{
  margin:0 0 8px;
  color:var(--heading);
  font-size:16px;
  line-height:1.2;
}

.delivery-card__text{
  margin:0;
  color:var(--text);
  font-size:14px;
  line-height:1.55;
}

.delivery-card__text p{
  margin:0 0 10px;
}

.delivery-card__text p:last-child{
  margin-bottom:0;
}

.delivery-card__text ul{
  margin:10px 0;
  padding-left:18px;
}

.delivery-card__text li{
  margin:6px 0;
}

.delivery-card__text .spec-table{
  margin-top:12px;
}

.spec-table{
  margin-top:12px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
}

.spec-table table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.spec-table th,
.spec-table td{
  padding:10px 12px;
  text-align:left;
}

.spec-table th{
  background:var(--surface);
  color:var(--heading);
  font-weight:600;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.spec-table td{
  color:var(--text);
  border-top:1px solid var(--border);
}

.delivery-card__text .spec-table table{
  display:table;
  width:100%;
}

/* зебра (очень важно для читабельности) */
.spec-table tr:nth-child(even) td{
  background:rgba(255,255,255,0.02);
}

.np-field {
    position: relative;
}

.np-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #1f1f1f;
    border: 1px solid var(--border);
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    z-index: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.np-dropdown__item {
    display: block;
    width: 100%;
    text-align: left;
    background: #1f1f1f;
    border: 0;
    color: var(--text);
    padding: 10px 12px;
    cursor: pointer;
}

.np-dropdown__item:hover {
    background: #2a2a2a;
}

.cart-hint {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff8e8;
    border: 1px solid #f1d58a;
    color: #6b4e00;
    font-size: 14px;
    line-height: 1.45;
}

.cart-hint strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.cart-discount-info .cart-hint:last-child {
    margin-bottom: 12px;
}

.delivery-summary{
  margin:0 0 14px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#202020;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.delivery-summary__row{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text);min-width:0}
.delivery-summary__row span{min-width:0;overflow-wrap:anywhere}
.delivery-summary__row strong{color:var(--heading)}
.delivery-summary__row--total{margin-top:8px;padding-top:8px;border-top:1px solid var(--border);font-size:16px;font-weight:700}
.delivery-summary__details{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.4}
.delivery-summary__note{margin-top:8px;padding-top:8px;border-top:1px solid var(--border);color:var(--muted);font-size:12px;line-height:1.4}

.product-delivery{margin-top:12px;border:1px solid var(--border);border-radius:14px;background:#202020;overflow:hidden}
.product-delivery__toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:0;background:transparent;color:var(--heading);font-weight:700;cursor:pointer}
.product-delivery__toggle:after{content:"";display:inline-block;width:10px;height:10px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(45deg);flex:0 0 auto;margin-left:2px;opacity:1;transition:transform .18s ease}
.product-delivery.is-open .product-delivery__toggle:after{transform:rotate(225deg);margin-top:5px}
.product-delivery__toggle strong{color:var(--button-bg);white-space:nowrap}
.product-delivery__panel{display:grid;gap:12px;padding:0 12px 12px}
.product-delivery__panel[hidden]{display:none !important}
.delivery-items-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start}
.delivery-calc-lines{display:grid;gap:8px}
.delivery-calc-line{display:grid;grid-template-columns:34px minmax(0,1fr) 112px;gap:8px;align-items:center}
.delivery-calc-type{display:grid;gap:4px}
.delivery-calc-type span{color:var(--muted);font-size:12px;font-weight:700}
.delivery-calc-line select,.delivery-calc-line input{width:100%;height:40px;background:#1f1f1f;border:1px solid var(--border);color:var(--text);border-radius:8px;padding:0 10px}
.delivery-calc-line select{appearance:none;background-color:#1f1f1f;background-image:linear-gradient(45deg, transparent 50%, var(--button-bg) 50%),linear-gradient(135deg, var(--button-bg) 50%, transparent 50%);background-position:calc(100% - 16px) 17px,calc(100% - 11px) 17px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:30px;overflow:hidden;text-overflow:ellipsis}
.delivery-calc-line select:focus,.delivery-calc-line input:focus{outline:none;border-color:var(--button-bg);box-shadow:0 0 0 2px rgba(212,175,55,.14)}
.delivery-qty{display:grid;grid-template-columns:32px 48px 32px;gap:4px;align-items:center}
.delivery-qty button,.delivery-remove,.delivery-add-type{border:1px solid var(--border);background:#1f1f1f;color:var(--text);border-radius:10px;cursor:pointer}
.delivery-qty button,.delivery-remove{height:40px}
.delivery-qty button{border-radius:8px;color:var(--button-bg);font-weight:800}
.delivery-remove{width:34px;border-radius:8px;color:var(--button-bg);font-size:20px;line-height:1}
.delivery-remove:disabled{opacity:.28;cursor:default;color:var(--muted)}
.delivery-add-type{min-height:40px;padding:0 12px;font-weight:700;white-space:nowrap;border-radius:8px;background:#1f1f1f;border-color:var(--border);color:var(--text)}
.delivery-toggle-grid{display:grid;grid-template-columns:1fr;gap:8px}
.delivery-slider{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:100%;padding:3px;border:1px solid var(--border);border-radius:10px;background:#1f1f1f;color:var(--text);font-size:12px;font-weight:700;cursor:pointer;overflow:hidden}
.delivery-slider input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:0}
.delivery-slider i{display:none}
.delivery-slider span,.delivery-slider em{display:flex;align-items:center;justify-content:center;min-width:0;min-height:38px;padding:0 6px;border-radius:8px;font-style:normal;text-align:center;color:var(--muted);overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
.delivery-slider input:not(:checked) + span,.delivery-slider input:checked + span + i + em{background:var(--button-bg);color:var(--button-text)}
.delivery-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;padding:3px;border:1px solid var(--border);border-radius:10px;background:#1f1f1f;overflow:hidden;margin-top:0}
.delivery-methods .checkout-chip{display:flex;min-width:0}
.delivery-methods .checkout-chip span{width:100%;min-width:0;min-height:38px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;line-height:1.15;padding:0 6px;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
.delivery-methods .checkout-chip input:checked + span{background:var(--button-bg);color:var(--button-text)}
.delivery-result{display:grid;gap:6px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#1f1f1f}
.delivery-result__main{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}
.delivery-result__main strong{color:var(--button-bg);font-size:18px}
.delivery-result__cod{color:var(--muted);font-size:13px}
.delivery-result p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}

@media (max-width:420px){
  .delivery-items-row{grid-template-columns:1fr}
  .delivery-calc-line{grid-template-columns:30px minmax(0,1fr) 104px;gap:6px;align-items:center}
  .delivery-calc-type span{display:none}
  .delivery-calc-line select,.delivery-calc-line input{padding:0 7px;font-size:13px}
  .delivery-qty{grid-template-columns:30px 44px 30px}
  .delivery-remove{width:30px}
  .delivery-toggle-grid{grid-template-columns:1fr}
  .delivery-slider{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.promo-panel{
  margin-bottom:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#181818;
  overflow:hidden;
}

.promo-panel__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  color:var(--heading);
  font-weight:800;
  list-style:none;
}

.promo-panel__summary::-webkit-details-marker{
  display:none;
}

.promo-panel__summary::after{
  content:'+';
  color:var(--accent);
  font-size:20px;
  line-height:1;
}

.promo-panel[open] .promo-panel__summary{
  border-bottom:1px solid var(--border);
}

.promo-panel[open] .promo-panel__summary::after{
  content:'−';
}

.promo-panel__body{
  padding:12px;
}

.promo-panel[open] .promo-panel__summary::after{
  content:'-';
}

.promo-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#202020;
}

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

.promo-box__text strong{
  color:var(--heading);
}

.promo-box__text span{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.promo-form{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  margin-bottom:8px;
}

.promo-form input{
  width:100%;
  min-width:0;
  background:#1f1f1f;
  border:1px solid var(--border);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
}

.promo-message{
  min-height:18px;
  margin-bottom:10px;
  color:var(--accent);
  font-size:13px;
}

.payment-modal{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:18px}
.payment-modal__box{width:min(100%,430px);max-width:100%;position:relative;display:grid;gap:12px;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.payment-modal__close{position:absolute;top:8px;right:8px;width:34px;height:34px;border:none;background:transparent;color:var(--muted);font-size:24px;cursor:pointer}
.payment-modal__title{padding-right:34px;color:var(--heading);font-size:20px;font-weight:800}
.payment-modal__text{color:var(--muted);font-size:13px;line-height:1.45}
.payment-modal__text--accent{color:var(--heading);font-size:15px;font-weight:700;padding:10px 12px;border:1px solid rgba(212,175,55,.35);border-radius:12px;background:rgba(212,175,55,.08)}
.payment-copy-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#1f1f1f}
.payment-copy-row img{width:34px;height:34px;object-fit:contain;border-radius:8px}
.payment-copy-row span{color:var(--muted);font-size:13px}
.payment-copy-row strong{color:var(--heading);font-size:16px;word-break:break-word}
.payment-copy-btn{min-height:34px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:12px;font-weight:700;cursor:pointer}
.payment-bank-links{display:grid;gap:8px}
.payment-bank-link{display:flex;align-items:center;gap:10px;min-height:48px;padding:9px 12px;border:1px solid var(--border);border-radius:14px;background:#1f1f1f;color:var(--text);font-weight:800;min-width:0}
.payment-bank-link span{min-width:0;overflow-wrap:anywhere}
.payment-bank-link img{width:34px;height:34px;object-fit:contain;border-radius:8px}

@media (max-width: 420px){
  .payment-copy-row{grid-template-columns:auto 1fr}
  .payment-copy-btn{grid-column:1 / -1}
  .checkout-row{grid-template-columns:1fr}
  .promo-form{grid-template-columns:1fr}
  .promo-box{align-items:flex-start;flex-direction:column}
}

.promo-message.is-error{
  color:#ff9b9b;
}


.price-tiers--grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.price-tier-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#202020;
}

.price-tier-card__label{
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
}

.price-info-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin-top:10px !important;
  align-items:stretch !important;
}

.price-info-block{
  min-width:0 !important;
  padding:10px 12px !important;
  border-radius:14px !important;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)) !important;
  border:1px solid var(--border) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.price-line{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:8px !important;
  font-size:12px !important;
  line-height:1.35 !important;
  color:var(--muted) !important;
}

.price-line + .price-line{
  margin-top:4px !important;
}

.price-line strong{
  font-size:12px !important;
  line-height:1.35 !important;
  font-weight:600 !important;
  color:var(--heading) !important;
  white-space:nowrap !important;
}

.price-info-note{
  margin-top:10px !important;
  padding:10px 12px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,0.04) !important;
  border:1px solid var(--border) !important;
  font-size:12px !important;
  line-height:1.4 !important;
  color:var(--muted) !important;
}

/* === PRODUCT TYPO TUNING === */

.product-info-card h1{
  font-size:22px !important;
  line-height:1.2 !important;
  margin-bottom:6px !important;
}

.price-box--product strong{
  font-size:20px !important;
  line-height:1.2 !important;
}

/* === PRICE BLOCKS COMPACT === */

.price-info-grid{
  gap:8px !important;
  margin-top:8px !important;
}

.price-info-block{
  padding:8px 10px !important;
  border-radius:12px !important;
}

.price-line{
  font-size:11.5px !important;
  line-height:1.25 !important;
}

.price-line strong{
  font-size:11.5px !important;
}

/* уменьшаем расстояние между строками */
.price-line + .price-line{
  margin-top:2px !important;
}

/* нижний текст тоже компактнее */
.price-info-note{
  margin-top:8px !important;
  padding:8px 10px !important;
  font-size:11.5px !important;
  line-height:1.3 !important;
}

.price-box--product strong{
  color:var(--accent);
}

.bottom-nav__link{
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:var(--surface);
    color:var(--text);
    font-size:13px;
}

.bottom-nav__link--cabinet{
    border:1px solid var(--accent);
    color:var(--accent);
    background:transparent;

    /* выравнивание текста */
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    /* перенос текста */
    white-space:normal;
    line-height:1.1;
    padding:6px;

    /* чтобы не ломало высоту */
    min-height:44px;
}

/* активное нажатие */
.bottom-nav__link--cabinet:active{
    background:var(--accent);
    color:var(--button-text);
}

/* hover */
.bottom-nav__link--cabinet:hover{
    background:rgba(212,175,55,0.1);
}

/* Final compact mobile shell overrides */
.bottom-nav{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    padding:6px 10px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav__link{
    min-height:38px;
    height:auto;
    border-radius:10px;
    font-size:12px;
    line-height:1.1;
    padding:4px 6px;
    min-width:0;
    text-align:center;
}

.bottom-nav__link--cabinet{
    min-height:38px;
    padding:4px 6px;
    border:1px solid var(--accent);
    color:var(--accent);
    background:transparent;
    box-shadow:inset 0 0 0 1px rgba(212,175,55,.12);
}

/* Hard layout guard: prevent horizontal drift in Telegram WebView */
html,
body,
.app-shell,
.app-main,
main{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    box-sizing:border-box;
}

.checkout-card,
.cart-list,
.cart-item,
.order-form,
.promo-box,
.promo-form,
.delivery-summary,
.checkout-choice,
.checkout-chips,
.np-field,
.courier-fields,
.checkout-row{
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}

input,
textarea,
select,
button{
    max-width:100%;
    box-sizing:border-box;
}

.page-cart .section{
    padding-top:4px;
}

.page-cart .app-shell,
.page-cart .app-main{
    width:100%;
    max-width:100vw;
    overflow-x:clip;
}

.page-cart .app-header,
.page-cart .container,
.page-cart .checkout-card{
    max-width:100vw;
    overflow-x:clip;
}

.page-cart .section-head h1{
    margin-bottom:6px;
}

.app-footer{
    height:auto;
    min-height:0;
    margin-top:14px;
    padding:8px 0 calc(52px + env(safe-area-inset-bottom));
}

.footer-inner{
    gap:3px;
    font-size:12px;
    line-height:1.25;
    align-items:center;
    justify-content:center;
    text-align:center;
    flex-direction:column;
}

/* Cart-only overflow and compact card hardening */
.page-cart .cart-list,
.page-cart .cart-list *,
.page-cart .checkout-card,
.page-cart .checkout-card *,
.page-cart .order-form,
.page-cart .order-form *{
    box-sizing:border-box !important;
    max-width:100% !important;
}

.page-cart .cart-list{
    width:100% !important;
    overflow-x:hidden !important;
}

.page-cart .cart-item{
    width:100% !important;
    grid-template-columns:64px minmax(0,1fr) !important;
    gap:8px !important;
    padding:8px !important;
    position:relative !important;
    overflow:hidden !important;
}

.page-cart .cart-item > img{
    width:64px !important;
    height:64px !important;
}

.page-cart .cart-item__head{
    padding-right:36px !important;
}

.page-cart .remove-icon-btn{
    position:absolute !important;
    top:6px !important;
    right:6px !important;
    z-index:2 !important;
    width:32px !important;
    height:32px !important;
    padding:6px !important;
    color:var(--button-bg) !important;
    background:#1f1f1f !important;
}

.page-cart .remove-icon-btn svg{
    display:block !important;
    width:18px !important;
    height:18px !important;
}

.page-cart .cart-item__title{
    padding-right:0 !important;
    font-size:13px !important;
}

.page-cart .cart-item__text{
    display:none !important;
}

.page-cart .cart-item__meta{
    font-size:12px !important;
    margin-top:3px !important;
}

.page-cart .cart-item__controls{
    margin-top:6px !important;
    gap:4px !important;
}

.page-cart .qty-btn{
    height:30px !important;
    min-width:30px !important;
    padding:0 8px !important;
}

.page-cart .qty-input{
    width:52px !important;
    min-width:0 !important;
    padding:5px 6px !important;
}

.page-cart .promo-form,
.page-cart .delivery-summary{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

.page-cart .promo-form{
    grid-template-columns:minmax(0,1fr) !important;
}

.page-cart .promo-form .btn{
    width:100% !important;
}

.page-cart .order-form .checkout-chips[data-choice-group]{
    width:100% !important;
    max-width:100% !important;
}

.tg-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  margin: 8px 0;

  border-radius: 12px;
  background: linear-gradient(180deg,rgba(212,175,55,0.09) 0%,rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(212,175,55,0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.tg-line__text {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}

.tg-line__btn {
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 10px;
  padding: 7px 12px;

  font-size: 12px;
  font-weight: 800;

  background: var(--button-bg);
  color: var(--button-text);

  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.tg-line--link {
  padding: 0;
  background: transparent;
  border: none;
}

.tg-line__link {
  width: 100%;
  text-align: left;

  background: transparent;
  border: none;

  color: var(--accent);
  font-size: 13px;
  font-weight: 700;

  padding: 8px 0;
}

.page-cart .tg-line__link {
  color: var(--accent);
}

/* Final sticky header override */
.app-header{
  position:relative;
  z-index:20;
}

.app-header .header-inner{
  padding:0;
}

.app-header .header-actions{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:95;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:52px;
  padding:6px 10px;
  background:rgba(33,33,33,.96);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(12px);
  flex-wrap:nowrap;
  overflow:visible;
}

.app-header .header-actions > *{
  flex:0 0 auto;
}

.app-header .header-logo-link{
  width:36px;
  height:36px;
  min-width:36px;
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  background:linear-gradient(180deg,#2b2b2b 0%,#1d1d1d 100%);
  border:1px solid rgba(212,175,55,.22);
}

.app-header .header-logo-link img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:2px;
  background:#161616;
}

.app-header .header-icon-btn,
.app-header .header-favorites{
  width:36px;
  height:36px;
  min-width:36px;
  min-height:36px;
  padding:0;
  border-radius:12px;
}

.app-header .header-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(212,175,55,.42);
  background:linear-gradient(180deg,#2b2b2b 0%,#1d1d1d 100%);
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  color:var(--accent);
  position:relative;
  overflow:hidden;
}

.app-header .header-icon-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 18% 18%, rgba(255,255,255,.16) 0 30%, transparent 31%);
  pointer-events:none;
}

.app-header .header-icon-btn::after{
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid rgba(212,175,55,.22);
  border-radius:10px;
  pointer-events:none;
}

.app-header .header-icon-btn svg{
  width:20px;
  height:20px;
  display:block;
  position:relative;
  z-index:1;
  filter:drop-shadow(0 2px 1px rgba(0,0,0,.4));
}

.app-header .header-favorites{
  margin-left:auto;
  font-size:20px;
  line-height:1;
  background:linear-gradient(135deg,#bf953f 0%,#fcf6ba 25%,#b38728 50%,#fbf5b7 75%,#aa771c 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.app-header .header-favorites.is-hidden{
  width:0;
  min-width:0;
  opacity:0;
  border-color:transparent;
  margin:0;
  overflow:hidden;
  pointer-events:none;
}

.app-header .header-phone-slot{
  position:relative;
  width:auto;
  min-width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 1 auto;
  overflow:visible;
  z-index:140;
}

.app-header .header-phone-chip{
  position:relative;
  top:auto;
  right:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:0;
  max-width:0;
  height:34px;
  margin-left:0;
  padding:0;
  border:1px solid transparent;
  border-radius:14px;
  background:linear-gradient(180deg,#2f2a17 0%,#1f1b10 100%);
  color:var(--heading);
  font-size:12px;
  font-weight:700;
  line-height:34px;
  white-space:nowrap;
  text-align:center;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  visibility:hidden;
  transform:translateX(-6px);
  transition:max-width .22s ease, margin-left .18s ease, padding .18s ease, opacity .18s ease, transform .18s ease, visibility .18s ease, border-color .18s ease, box-shadow .18s ease;
  z-index:140;
  box-shadow:none;
}

.app-header .header-phone-chip.is-visible{
  margin-left:8px;
  padding:0 14px;
  max-width:min(240px, calc(100vw - 156px));
  border-color:rgba(212,175,55,.4);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(0);
  box-shadow:0 8px 18px rgba(0,0,0,.24);
}

.app-header .header-toast{
  position:absolute;
  top:100%;
  right:10px;
  z-index:120;
  margin-top:6px;
  max-width:min(220px, calc(100vw - 24px));
  padding:8px 12px;
  border:1px solid rgba(212,175,55,.28);
  border-radius:12px;
  background:rgba(20,20,20,.96);
  color:var(--heading);
  font-size:12px;
  font-weight:700;
  text-align:center;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.app-main{
  padding-top:54px;
}

@media (max-width: 560px){
  .app-header .header-actions{
    gap:4px;
    min-height:46px;
    padding:5px 6px;
  }

  .app-header .header-icon-btn,
  .app-header .header-logo-link,
  .app-header .header-favorites{
    width:34px;
    height:34px;
    min-width:34px;
    min-height:34px;
  }

  .app-header .header-phone-slot{
    width:auto;
    min-width:34px;
    height:34px;
  }

  .app-header .header-phone-chip{
    max-width:0;
    height:32px;
    line-height:32px;
    font-size:11px;
  }

  .app-header .header-phone-chip.is-visible{
    max-width:min(220px, calc(100vw - 144px));
    padding:0 12px;
  }

  .app-main{
    padding-top:50px;
  }
}

.bottom-nav .bottom-nav__link{
  white-space:normal;
}

.bottom-nav .bottom-nav__link:hover{
  border-color:rgba(212,175,55,.22);
  background:rgba(212,175,55,.05);
}

.bottom-nav .bottom-nav__link:active{
  transform:scale(.97);
}

.bottom-nav .bottom-nav__link--active{
  isolation:isolate;
  position:relative;
  overflow:hidden;
  border-color:rgba(252,246,186,.52) !important;
  background:linear-gradient(180deg,#2b2b2b 0%,#1d1d1d 100%) !important;
  color:var(--accent) !important;
  box-shadow:0 6px 14px rgba(0,0,0,.22), inset 0 0 0 1px rgba(212,175,55,.12) !important;
  font-weight:700 !important;
  text-shadow:0 2px 4px rgba(0,0,0,.32);
}
.bottom-nav .bottom-nav__link--active::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 18% 18%, rgba(255,255,255,.16) 0 30%, transparent 31%);
  z-index:0;
  pointer-events:none;
}
.bottom-nav .bottom-nav__link--active::after{
  content:"";
  position:absolute;
  inset:6px;
  border:1px solid rgba(212,175,55,.18);
  border-radius:inherit;
  z-index:0;
  pointer-events:none;
}
.bottom-nav .bottom-nav__link--active > *{
  position:relative;
  z-index:1;
}
