html, body, input, textarea, select, button {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

:root{
  --gg-border-thin:1px;
  --gg-border-color:#e9e9ee;
  --gg-opt-row-h:54px;
  --gg-cart-max:660px;
  --gg-cart-thumb-size:70px;
  --gg-page-max:1240px;
  --gg-side-pad:24px;
}


/* Layout helpers */
.container{ width:min(1200px,100% - 32px); margin-inline:auto }

.gg-container{
  max-width:var(--gg-page-max);
  padding-left:var(--gg-side-pad);
  padding-right:var(--gg-side-pad);
  margin:0 auto;
  width:100%;
}

/* Header */
.gg-site-header{
  position:-webkit-sticky;
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(6px);
  background:rgba(255,255,255,.9);
  border-bottom:1px solid #eee;
  margin-top:0 !important;
  padding-top:0 !important;
  min-height:64px;
  overflow:visible;
}

/* Back bar */
.gg-back-bar{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  transform:translateY(calc(50% + 10px));
  pointer-events:none;
  z-index:1;
}
.gg-back-bar .gg-container{
  display:flex;
}
.gg-back-btn{
  pointer-events:all;
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:40px;
  padding:7px 14px 7px 10px;
  background:#fff;
  border:1px solid #e9e9ee;
  border-radius:20px;
  font-size:13px;
  font-weight:600;
  color:#374151;
  text-decoration:none;
  box-shadow:0 2px 8px rgba(0,0,0,.07);
  transition:box-shadow .15s, color .15s, border-color .15s;
}
.gg-back-btn:hover{
  color:var(--gg-primary);
  border-color:var(--gg-primary);
  box-shadow:0 3px 12px rgba(25,118,210,.12);
}
.gg-back-btn svg{ flex-shrink:0; }

@media(max-width:640px){
  .gg-back-btn{ margin-left:25px; }
}

/* Alias .gg-header-inner — в разметке используется .gg-header__inner */
.gg-header__inner,
.gg-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 0 7px;
  margin-top:0;
}

.gg-header{background:#fff;border-bottom:1px solid #f0f0f5}

.gg-header__left{display:flex;align-items:center;gap:10px;min-width:0}

.gg-logo{display:inline-flex;align-items:center;gap:0;text-decoration:none;color:#111;line-height:1}
.gg-logo img{display:block;max-height:54px;height:54px;width:auto}
.gg-logo__title{
  display:inline-flex;
  align-items:baseline;
  gap:0;
  margin-left:-5px;
  white-space:nowrap;
  line-height:1;
}
.gg-logo__name{
  font-family:'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:600;
  font-size:23px;
  color:#1a1d3b;
  letter-spacing:-.3px;
}
.gg-logo__com{
  font-family:'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:600;
  font-size:16px;
  color:var(--gg-primary);
  letter-spacing:-.3px;
}

.gg-header__catalog{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:11px;background:#111214;color:#fff;
  text-decoration:none;font-weight:800;font-size:14.5px;line-height:1;
  box-shadow:0 2px 10px rgba(0,0,0,.08), inset 0 -1px 0 rgba(255,255,255,.06);
  transition:background-color .18s ease, transform .06s ease, box-shadow .18s ease;
}
.gg-header__catalog:hover{background:#0c0d10;box-shadow:0 3px 14px rgba(0,0,0,.12), inset 0 -1px 0 rgba(255,255,255,.06)}
.gg-header__catalog:active{transform:translateY(1px)}
.gg-header__catalog:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--gg-primary-rgb),.3),0 2px 10px rgba(0,0,0,.08)}
.gg-header__catalog-icon{width:17px;height:17px;color:#fff;opacity:.95}

.gg-header__right{
  display:flex;
  align-items:center;
  gap:12px;
}

.gg-top-link{color:#111;text-decoration:none;font-weight:600;font-size:15px;transition:opacity .15s ease}
.gg-top-link:hover{opacity:.75}

.gg-cart{
  position:relative;display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#111;font-weight:700;font-size:15px;transition:opacity .15s ease;
}
.gg-cart:hover{opacity:.8}
.gg-cart svg{ opacity:.95; }
.gg-cart:hover svg{ opacity:1; }

.gg-cart__bubble{
  position:absolute;
  right:-6px;
  top:-6px;
  min-width:18px;
  height:18px;
  border-radius:9px;
  background:var(--gg-primary);
  color:#fff;
  border:none;
  font-size:11px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  line-height:1;
  box-shadow:0 2px 6px rgba(var(--gg-primary-rgb),.25);
}

.gg-header__right a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:10px;
  color:#111;
  text-decoration:none;
  transition:background-color .15s ease, opacity .15s ease, box-shadow .15s ease;
  position:relative;
}
.gg-header__right a:hover{background:#f5f6fa}
.gg-header__right a:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(var(--gg-primary-rgb),.28);
}

.gg-account svg{ opacity:.95; }
.gg-account:hover svg{ opacity:1; }

@keyframes gg-header-dot-pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(.75)}
}
.gg-account__unread-dot{
  position:absolute;
  top:4px;
  right:4px;
  width:8px;
  height:8px;
  background:#e53935;
  border-radius:50%;
  border:2px solid #fff;
  pointer-events:none;
  animation:gg-header-dot-pulse 1.4s ease-in-out infinite;
}

.gg-cart.flash{
  background:rgba(34,197,94,.12);
  box-shadow:0 0 0 3px rgba(34,197,94,.28), 0 8px 22px rgba(34,197,94,.20);
  transition:background-color .25s ease, box-shadow .25s ease;
}
.gg-cart.flash svg{ color:#16a34a; }

@media (max-width:640px){
  :root{ --gg-side-pad:16px; }
  .gg-site-header{height:auto !important;min-height:0 !important;overflow:visible !important}
  .gg-header__inner,
  .gg-header-inner{padding:4px 0 2px !important;margin-top:0 !important}
  .gg-logo img{height:44px;max-height:44px}
  .gg-logo__title{margin-left:-3px}
  .gg-header__left{gap:8px}
  .gg-logo__name{font-size:21px}
  .gg-logo__com{font-size:15px}
  .gg-header__catalog{padding:8px 12px;border-radius:10px;font-size:14px;gap:7px}
  .gg-header__catalog-icon{width:16px;height:16px}
  .gg-header__right{gap:10px}
  .gg-top-link,.gg-cart{font-size:14px}
  .gg-header__right a{
    width:34px;
    height:34px;
    border-radius:9px;
  }
  .gg-cart__bubble{
    right:-5px;top:-5px;
    min-width:17px;height:17px;font-size:10.5px;
  }
}

@media (min-width:641px){
  .gg-site-header{
    min-height:0;
  }
  .gg-header__inner,
  .gg-header-inner{
    padding:2px 0;
    margin-top:0;
  }
  .gg-header__left{
    gap:10px;
  }
  .gg-logo img{
    height:46px;
    max-height:46px;
  }
  .gg-logo__title{
    margin-left:-4px;
  }
  .gg-logo__name{
    font-size:22px;
  }
  .gg-logo__com{
    font-size:15px;
  }
  .gg-header__right{
    gap:10px;
  }
  .gg-top-link,
  .gg-cart{
    font-size:15px;
  }
  .gg-header__right a{
    width:34px;
    height:34px;
    border-radius:9px;
  }
  .gg-cart__bubble{
    right:-5px;
    top:-5px;
    min-width:17px;
    height:17px;
    font-size:10.5px;
  }
}

/* Brand / nav / main */
.gg-brand{ text-decoration:none; color:#111 }
.gg-brand-mark{ font-weight:700; letter-spacing:.2px }
.gg-brand.small{ font-weight:700; font-size:14px }
.gg-nav{ margin-left:auto; display:flex; align-items:center; gap:14px }
.gg-nav a{ color:#111; text-decoration:none; padding:6px 8px; border-radius:8px; transition:background-color .2s, box-shadow .2s }
.gg-nav a:hover{ background:#f6f7fb; box-shadow:inset 0 0 0 9999px rgba(0,0,0,.03) }
.gg-main{ padding-top:12px }

/* Footer */
.gg-site-footer{ border-top:1px solid #eee; margin-top:40px; padding:18px 0; background:#fff }
.gg-footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.gg-site-footer .gg-footer-inner{ gap:14px }

.gg-footer-left{ display:flex; align-items:center; gap:10px; color:#111 }
.gg-footer-left .muted{ color:#666; font-size:12px }
.gg-footer-right{ display:flex; gap:12px; align-items:center }
.gg-footer-right a{ color:#333; text-decoration:none; padding:4px 6px; border-radius:8px; transition:background-color .2s, box-shadow .2s }
.gg-footer-right a:hover{ background:#f6f7fb; box-shadow:inset 0 0 0 9999px rgba(0,0,0,.03) }
.gg-mini-cart{ display:inline-flex; align-items:center; gap:6px }
.gg-mini-cart .count{
  display:inline-block; min-width:18px; padding:0 6px; text-align:center; background:var(--gg-primary); color:#fff; border-radius:999px; font-size:12px; line-height:18px;
}

.gg-site-footer .gg-footer-left,
.gg-site-footer .gg-footer-right{
  display:flex;
  align-items:center;
}
.gg-site-footer .gg-footer-right{ gap:10px }

/* Footer icons */
.gg-footer-right .gg-f-icon{
  width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center;
  border:0 !important; border-radius:10px; background:#f9f9fc; color:#111; text-decoration:none;
  box-shadow:0 1px 2px rgba(0,0,0,.02); transition:transform .12s, box-shadow .18s, background-color .18s, color .18s;
}
.gg-site-footer .gg-footer-right .gg-f-icon{
  width:38px; height:38px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px;
}
.gg-footer-right .gg-f-icon svg{ width:18px; height:18px; fill:currentColor }
.gg-footer-right .gg-f-icon.is-telegram{ color:#229ED9; background:#eaf6fd }
.gg-footer-right .gg-f-icon.is-support{ color:var(--gg-primary); background:var(--gg-primary-xlight) }
.gg-footer-right .gg-f-icon.is-reviews{ color:#F4B400; background:#FFF7DA }
.gg-footer-right .gg-f-icon:hover{ transform:translateY(-1px); box-shadow:0 3px 10px rgba(17,16,30,.08); filter:saturate(1.05) }

@media (max-width:720px){
  .gg-nav{ gap:10px }
  .gg-site-footer{ padding:14px 0 }
  .gg-footer-inner{ flex-direction:column; align-items:flex-start; gap:8px }
}

@media (max-width:768px){
  .gg-site-footer .gg-footer-inner{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .gg-site-footer .gg-footer-right{
    order:1;
    justify-content:center;
    width:100%;
  }
  .gg-site-footer .gg-footer-left{
    order:2;
    justify-content:center;
    width:100%;
  }
  .gg-site-footer .gg-footer-left .muted{
    display:block;
    margin-top:6px;
  }
}

@media (min-width:769px){
  .gg-site-footer .gg-footer-inner{
    flex-direction:row;
    align-items:flex-start;
    justify-content:space-between;
  }
  .gg-site-footer .gg-footer-left{ order:1; text-align:left }
  .gg-site-footer .gg-footer-right{ order:2; justify-content:flex-end }
}

/* Buttons (neutral) + Accent CTA shared */
.woocommerce a.button,.button,button[type=submit],
.gg-mini-btn.button,.gg-p-buy .single_add_to_cart_button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:#f2f2f7 !important; color:#111 !important;
  border:1px solid var(--gg-border-color) !important; border-radius:12px;
  padding:10px 22px; font-size:16px; font-weight:700;
}
.woocommerce a.button:hover,.button:hover,button[type=submit]:hover,
.gg-mini-btn.button:hover,.gg-p-buy .single_add_to_cart_button:hover{ background:#ededf3 !important }

.cart-totals-compact .wc-proceed-to-checkout .checkout-button,
.checkout-right #place_order{
  display:block; width:100%; background:var(--gg-primary); color:#fff; border:0; border-radius:10px;
  padding:11px 16px; font-size:14px; font-weight:700; text-align:center; text-decoration:none;
  box-shadow:0 6px 16px rgba(var(--gg-primary-rgb),.18); transition:background-color .18s ease;
}

/* Tabs (shared) */
.gg-tabs{
  display:inline-grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:0;
  border:1px solid #e9e9ee; border-radius:999px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.02);
  overflow:hidden; margin:8px 0 12px; justify-self:center;
}
.gg-tab{
  appearance:none; border:0; background:transparent; color:#111;
  padding:10px 18px; font-weight:700; font-size:14px; line-height:1; cursor:pointer;
  transition:background-color .18s ease,color .18s ease;
}
.gg-tab + .gg-tab{ position:relative }
.gg-tab + .gg-tab::before{ content:""; position:absolute; left:0; top:8px; bottom:8px; width:1px; background:#e9e9ee }
.gg-tab:hover,.gg-tab.is-active{ background:#f2f2f7; box-shadow:inset 0 0 0 9999px rgba(0,0,0,.035); color:#111 }
.gg-tab:focus-visible{ outline:none; box-shadow:inset 0 0 0 2px rgba(var(--gg-primary-rgb),.35), inset 0 0 0 9999px rgba(0,0,0,.035); border-radius:inherit }

/* Category listing — порядок @media сохраняет прежний каскад */
.gg-cat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin:16px 0 32px;
  align-items:start;
  justify-content:center;
  justify-items:stretch;
}
.container .gg-cat-grid{
  margin-left:auto;
  margin-right:auto;
  width:100%;
}

@media (max-width:1200px){
  .gg-cat-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.gg-cat-card.is-collapsed .gg-cat-list{ height:0; overflow:hidden; padding:0 }
.gg-cat-card.is-expanded  .gg-cat-list{ height:auto; overflow:visible }
.gg-cat-media{ cursor:pointer }
.gg-cat-media:active{ filter:saturate(1.02) brightness(0.98) }

@media (max-width:720px){
  .gg-cat-grid{
    justify-content:center;
    grid-template-columns:minmax(0, 560px);
    gap:12px;
  }
}

@media (min-width:721px){
  .gg-cat-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
  }
}
@media (max-width:1200px) and (min-width:721px){
  .gg-cat-grid{ grid-template-columns:repeat(2, minmax(280px, 1fr)); }
}

/* Category filters */
.gg-cat-filters{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin:16px 0 12px;
  flex-wrap:wrap;
}
.gg-cat-search{
  display:flex;
  align-items:center;
  flex:1 1 100%;
  min-width:0;
  position:relative;
}
.gg-cat-search__label{
  display:flex;
  align-items:center;
  width:100%;
}
.gg-cat-search__input{
  width:100%;
  height:40px;
  padding:0 14px;
  border:1px solid #e1e1ee;
  border-radius:20px;
  background:#fff;
  font-size:14px;
  color:#333;
}
.gg-cat-search__input:focus{
  outline:none;
  border-color:var(--gg-primary);
  box-shadow:0 0 0 2px rgba(60,120,255,.10);
}
.gg-cat-search-results{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:20;
  background:#fff;
  border:1px solid #e1e1ee;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.10);
  overflow:hidden;
  max-height:360px;
  overflow-y:auto;
}
.gg-cat-search-results__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  text-decoration:none;
  color:#1f1f1f;
  border-bottom:1px solid #f1f1f6;
}
.gg-cat-search-results__item:last-child{
  border-bottom:0;
}
.gg-cat-search-results__item:hover{
  background:#f7f9ff;
}
.gg-cat-search-results__empty{
  padding:14px 12px;
  color:#6c6f7b;
  font-size:13px;
  text-align:center;
}
.gg-cat-search-results__thumb{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:10px;
  overflow:hidden;
  background:#f4f5f7;
}
.gg-cat-search-results__thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.gg-cat-search-results__text{
  min-width:0;
  flex:1 1 auto;
  display:grid;
  gap:3px;
}
.gg-cat-search-results__name{
  font-size:13px;
  font-weight:600;
  line-height:1.25;
  color:#111;
}
.gg-cat-search-results__region{
  color:#6c6f7b;
  font-weight:500;
}
.gg-cat-search-results__price{
  font-size:12px;
  font-weight:700;
  color:var(--gg-primary);
}
.gg-cat-filter{
  appearance:none; border:1px solid #e1e1ee; border-radius:20px; background:#fff;
  padding:7px 18px; font-size:14px; font-weight:600; color:#555; cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
  flex:1 1 calc((100% - 16px) / 3);
  min-width:0;
  text-align:center;
}
.gg-cat-filter:hover{ border-color:var(--gg-primary); color:var(--gg-primary) }
.gg-cat-filter.is-active{ background:var(--gg-primary); border-color:var(--gg-primary); color:#fff }
.gg-cat-card[hidden]{ display:none !important }
.gg-cat-subfilters{ display:none; gap:6px; margin:-4px 0 12px; flex-wrap:wrap }
.gg-cat-subfilters.is-visible{ display:flex }
.gg-cat-subfilter{
  appearance:none; border:1px solid #e1e1ee; border-radius:16px; background:#f7f7fb;
  padding:5px 14px; font-size:13px; font-weight:500; color:#666; cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.gg-cat-subfilter:hover{ border-color:var(--gg-primary); color:var(--gg-primary) }
.gg-cat-subfilter.is-active{ background:var(--gg-primary-light); border-color:var(--gg-primary); color:var(--gg-primary) }

@media (min-width: 641px){
  .gg-cat-filters{
    flex-wrap:nowrap;
  }
  .gg-cat-search{
    flex:0 0 220px;
    min-width:220px;
  }
  .gg-cat-search-results{
    min-width:280px;
  }
  .gg-cat-filter{
    flex:0 0 auto;
  }
}

.gg-cat-card{ border:1px solid #e9e9ee; border-radius:14px; overflow:hidden; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.02) }
.gg-cat-media{ position:relative; display:block; aspect-ratio:3/1; overflow:hidden }
.gg-cat-media img{ width:100%; height:100%; object-fit:cover; display:block }
.gg-cat-media::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%); z-index:1 }
.gg-cat-overlay{ position:absolute; left:18px; bottom:14px; z-index:2; color:#fff; font-weight:700; font-size:18px; letter-spacing:.2px; line-height:1.1; text-align:left; pointer-events:none }

.gg-cat-list{ display:grid; padding:12px; align-content:start; align-items:start }
.gg-subcat{ border-bottom:1px solid #f0f0f4 }
.gg-subcat:last-child{ border-bottom:0 }
.gg-subcat-toggle{
  display:flex; align-items:center; justify-content:space-between; width:100%; text-align:left;
  padding:10px 8px; background:transparent; border:0; border-bottom:1px solid #eee; border-radius:0;
  cursor:default; color:#111; font-weight:600; font-size:14px; line-height:1.3;
}
.gg-subcat-toggle::after{ content:'\2192'; color:#aaa; font-weight:600 }
.gg-subcat-panel{ padding:4px 0 10px }
.gg-loading{ padding:10px; color:#7a7a86 }
.gg-cat-empty{ padding:10px 8px; font-size:13px; color:#9ca3af; font-style:italic; }
.gg-cat-item{
  display:flex; justify-content:space-between; gap:12px; padding:10px 8px; border-bottom:1px solid #f2f2f5; text-decoration:none; color:#111; position:relative; border-radius:10px; transition:background-color .2s, box-shadow .2s;
}
.gg-cat-item:last-child{ border-bottom:0 }
.gg-cat-item:hover{ background:#f6f7fb; text-decoration:none }
.gg-subcat-content .gg-cat-item:hover,.gg-cat-list > .gg-cat-item:hover{ box-shadow:inset 0 0 0 9999px rgba(0,0,0,.035) }
.gg-cat-item-name{ color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:70%; font-size:14px }
.gg-cat-item-price{ color:#111; font-weight:700; white-space:nowrap; font-feature-settings:"tnum" 1 }


/* Toasts & Modal */
.gg-modal{ position:fixed; inset:0; display:none; z-index:9999 }
.gg-modal.is-open{ display:block }
.gg-modal__backdrop{ position:absolute; inset:0; background:rgba(17,16,30,.45); backdrop-filter:blur(2px) }
.gg-modal__dialog{
  position:relative; z-index:1; width:min(440px, calc(100% - 32px));
  margin:10vh auto 0; padding:16px; border-radius:14px; background:#fff;
  box-shadow:0 16px 40px rgba(17,16,102,.22);
}
.gg-modal__dialog h3{ margin:0 0 8px; font-size:18px; font-weight:800; color:#111 }
.gg-modal__text{ margin:0 0 14px; color:#555; font-size:14px; line-height:1.5 }
.gg-modal__actions{ display:flex; justify-content:flex-end; gap:10px }
.gg-modal__actions .button{ background:#f2f2f7; color:#111; border:1px solid #e9e9ee; border-radius:10px; padding:9px 14px; font-weight:700 }
.gg-modal__actions .gg-modal__confirm{ background:#e74c3c; border-color:#e74c3c; color:#fff }
.gg-modal__actions .gg-modal__confirm:hover{ background:#cf3f31 }

.gg-toast{
  position:fixed; left:50%; top:100px; transform:translateX(-50%) translateY(-8px);
  z-index:2147483647; background:rgba(17,16,30,.78); color:#fff; border-radius:10px; padding:10px 14px; min-width:280px; max-width:min(820px,94vw);
  box-shadow:0 10px 28px rgba(17,16,102,.22); opacity:0; pointer-events:none; transition:opacity .18s, transform .18s; white-space:normal; overflow-wrap:anywhere;
}
.gg-toast.is-open{ opacity:1; transform:translateX(-50%) translateY(0) }
.gg-toast__inner{ display:block }
.gg-toast__title{ margin:0; font-weight:700; font-size:13px; line-height:1.45 }
#gg-add-to-cart-toast{
  position:fixed; left:50%; top:75px; transform:translateX(-50%) translateY(-8px);
  z-index:2147483647; background:rgba(34,197,94,.95); color:#fff; border-radius:10px; padding:12px 20px; min-width:280px; max-width:min(420px,94vw);
  box-shadow:0 10px 28px rgba(34,197,94,.35); opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; white-space:normal; overflow-wrap:anywhere;
}
#gg-add-to-cart-toast.is-open{ opacity:1; transform:translateX(-50%) translateY(0) }
#gg-add-to-cart-toast .gg-toast__inner{ display:flex; align-items:center; justify-content:center }
#gg-add-to-cart-toast .gg-toast__title{ margin:0; font-weight:700; font-size:14px; line-height:1.45 }

html.gg-toast-open > .blockUI,html.gg-toast-open > .blockMsg,
body.gg-toast-open > .blockUI,body.gg-toast-open > .blockMsg{ display:none !important; opacity:0 !important; pointer-events:none !important }
body.gg-toast-open > .gg-modal__backdrop,body.gg-toast-open > .gg-overlay,body.gg-toast-open > .gg-backdrop{ display:none !important }
#gg-add-toast::before,#gg-add-toast::after{ content:none !important }

.gg-toast.gg-toast--warning {
  background:#ffe08a;
  border:2px solid #f4c542;
  color:#4a3210;
}

#gg-add-to-cart-toast.gg-toast--warning {
  background:#ffe08a;
  color:#4a3210;
  box-shadow:0 10px 28px rgba(244,197,66,.35);
  border:2px solid #f4c542;
}
#gg-add-to-cart-toast.gg-toast--warning .gg-toast__title,
#gg-add-to-cart-toast.gg-toast--warning .gg-toast__icon {
  color:#4a3210;
}

/* Telegram login */
.gg-login-tg{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
}
.gg-login-tg .button,
.gg-login-tg a{
  border-radius:999px !important;
  font-weight:800 !important;
  padding:12px 20px !important;
}

#tgma-chat-login.button,
#tgma-chat-login{
  appearance:none !important;
  border:0 !important;
  outline:0 !important;
  text-decoration:none !important;
  cursor:pointer !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  background:#229ED9 !important;
  color:#fff !important;
  border-radius:999px !important;
  padding:12px 20px !important;
  font-weight:800 !important;
  font-size:15px !important;
  line-height:1 !important;
  box-shadow:none !important;
  transition:background-color .12s !important;
}
#tgma-chat-login:hover{
  background:#1f90c6 !important;
  transform:none !important;
  box-shadow:none !important;
}
#tgma-chat-login:active{
  transform:none !important;
  box-shadow:none !important;
}
#tgma-chat-login.is-busy { opacity:.7; pointer-events:none; }

@media (max-width:768px){
  html{
    overflow-x:clip;
    scrollbar-gutter:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
    display:none;
  }
  .site{ scrollbar-gutter:auto }
  .gg-capsule{
    padding:0 !important;
    margin:16px auto !important;
  }
  .gg-capsule-inner{
    padding:20px !important;
  }
  .gg-login-tg > *{
    display:flex;
    justify-content:center;
  }
}

/* === 404 === */
@keyframes gg-404-scale{
  from{ opacity:0; transform:scale(.15); }
  to  { opacity:1; transform:scale(1);   }
}
@keyframes gg-404-spin{
  from{ transform:rotate(0deg);    }
  to  { transform:rotate(360deg); }
}

.gg-404-wrap{
  max-width:660px;
  width:100%;
  margin:24px auto;
  background:#fff;
  border:1px solid #e9e9ee;
  border-radius:18px;
  overflow:hidden;
}

.woocommerce-account .gg-404-wrap{
  border:none;
  border-radius:0;
  background:transparent;
  margin:0 auto;
}
.gg-404{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:60px 24px;
  text-align:center;
}
.gg-404__icon{
  width:156px;
  height:156px;
  margin-bottom:24px;
  animation:gg-404-scale 4.5s cubic-bezier(.34,1.56,.64,1) both;
}
.gg-404__icon-spin{
  width:100%;
  height:100%;
  animation:gg-404-spin 4.5s ease-out both;
}
.gg-404__icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.gg-404__title{
  font-size:22px;
  font-weight:700;
  color:#111;
  margin:0 0 10px;
}
.gg-404__subtitle{
  font-size:14px;
  color:#888;
  margin:0 0 28px;
  max-width:320px;
  line-height:1.5;
}
.gg-404__btn{
  display:inline-flex;
  align-items:center;
  padding:12px 28px;
  background:#111;
  color:#fff;
  font-size:14px;
  font-weight:600;
  border-radius:999px;
  text-decoration:none;
  transition:background .15s;
}
.gg-404__btn:hover{
  background:#333;
  color:#fff;
}

/* ===== Похожие товары (single product) ===== */
.gg-related-wrap{
  max-width:var(--gg-capsule-max, 660px);
  margin:14px auto 0;
  padding:0 0 18px;
}
.gg-related-title{
  font-size:14px;
  font-weight:700;
  color:#111;
  margin:0 0 8px;
  padding:0;
}
.gg-related-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.gg-related-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  border:1px solid #eeeef4;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  transition:box-shadow .15s ease, border-color .15s ease;
}
.gg-related-card:hover{
  border-color:#d0d0e4;
  box-shadow:0 4px 14px rgba(0,0,0,.07);
}
.gg-related-card__thumb{
  width:100%;
  aspect-ratio:1/.7;
  overflow:hidden;
  background:#f7f7fb;
}
.gg-related-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gg-related-card__body{
  padding:6px 8px 8px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.gg-related-card__name{
  font-size:12px;
  font-weight:600;
  color:#111;
  line-height:1.22;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.gg-related-card__price{
  font-size:12px;
  font-weight:700;
  color:#333;
}
.gg-related-card__price .woocommerce-Price-amount{ font-size:inherit }
@media(max-width:480px){
  .gg-related-grid{ grid-template-columns:repeat(2,1fr); gap:8px }
}
