/* RESONANCE GIFT SHOP CSS v4.7 — PERFORMANCE CLEANUP */

:root{
  --rgs-bg:#9c9187;
  --rgs-panel:#382a22;
  --rgs-panel-2:#b0a398;
  --rgs-card:rgba(238,228,216,.10);
  --rgs-media:rgba(232,219,204,.07);
  --rgs-ink:#211711;
  --rgs-muted:#6a5d53;
  --rgs-dark:#1a0d06;
  --rgs-dark-2:#28170f;
  --rgs-accent:#a45f36;
  --rgs-accent-soft:#c07c50;
  --rgs-line:rgba(35,25,19,.18);
  --rgs-serif:Georgia,"Times New Roman",serif;
  --rgs-sans:Arial,Helvetica,sans-serif;
  --rgs-ui-texture:url("https://forumstatic.ru/files/001c/c6/3d/32209.jpg");
}

#resonance-gift-shop,
#resonance-gift-shop *{
  box-sizing:border-box;
}

#resonance-gift-shop{
  position:relative!important;
  left:50%!important;
  width:calc(100% + 120px)!important;
  max-width:none!important;
  margin:12px 0 38px!important;
  transform:translateX(-50%)!important;
  z-index:20!important;
  color:var(--rgs-ink);
  font:12px/1.45 var(--rgs-sans);
}

#resonance-gift-shop h1,
#resonance-gift-shop h2,
#resonance-gift-shop h3,
#resonance-gift-shop h4,
#resonance-gift-shop p{
  margin:0;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  box-shadow:none;
  text-shadow:none;
}

#resonance-gift-shop button,
#resonance-gift-shop input,
#resonance-gift-shop select,
#resonance-gift-shop textarea{
  box-sizing:border-box;
  border-radius:0;
  box-shadow:none;
  text-shadow:none;
  font-family:var(--rgs-sans);
}

/* Корпус */
.rgs-shop{
  position:relative;
  isolation:isolate;
  overflow:visible!important;
  border:0;
  border-radius:20px;
  background:var(--rgs-bg);
  box-shadow:
    0 38px 72px rgba(0,0,0,.30),
    0 18px 34px rgba(0,0,0,.22),
    0 5px 14px rgba(0,0,0,.15);
}

.rgs-shop:before{display:none!important}

/* Шапка */
.rgs-storefront{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:20px 20px 0 0;
  background:#20211f;
}

.rgs-storefront-img{
  width:100%;
  height:auto;
  display:block;
  margin:0;
  border:0;
  outline:0;
  border-radius:20px 20px 0 0;
  box-shadow:none;
}

.rgs-storefront:after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  border-radius:20px 20px 0 0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(7,7,6,.06),transparent 22%),
    linear-gradient(0deg,rgba(7,7,6,.08),transparent 18%);
}

/* Вывеска */
.rgs-sign-copy{
  position:absolute;
  z-index:4;
  top:6.4%;
  left:8.5%;
  width:83%;
  height:17%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}

.rgs-sign-title{
  color:#f0d3b6!important;
  font:400 39px/.95 var(--rgs-serif);
  letter-spacing:.10em;
  text-transform:uppercase;
  text-shadow:
    0 0 2px rgba(255,246,235,.96),
    0 0 8px rgba(247,206,166,.76),
    0 0 18px rgba(218,134,77,.42),
    0 0 32px rgba(151,73,34,.20),
    0 2px 8px rgba(0,0,0,.82)!important;
  animation:rgsSignPulse 6s ease-in-out infinite;
}

.rgs-sign-subtitle{
  margin-top:4px;
  color:#c8b7a6!important;
  font-size:6px;
  letter-spacing:.17em;
  text-transform:uppercase;
  text-shadow:0 0 5px rgba(239,198,158,.18)!important;
}

@keyframes rgsSignPulse{
  0%,100%{opacity:.92;filter:brightness(.96)}
  28%{opacity:1;filter:brightness(1.10)}
  48%{opacity:.90;filter:brightness(.94)}
  72%{opacity:1;filter:brightness(1.16)}
  88%{opacity:.95;filter:brightness(1.01)}
}

/* Только два боковых фонаря */
.rgs-lamp-glow{
  position:absolute;
  z-index:3;
  pointer-events:none;
  border-radius:50%;
  mix-blend-mode:screen;
}

.rgs-lamp-glow-top-1,
.rgs-lamp-glow-top-2,
.rgs-lamp-glow-top-3{
  display:none!important;
}

.rgs-lamp-glow-left,
.rgs-lamp-glow-right{
  display:block!important;
  top:36%;
  width:12%;
  aspect-ratio:1;
  opacity:.30;
  filter:blur(9px) brightness(1);
  background:
    radial-gradient(
      circle,
      rgba(255,236,201,.98) 0%,
      rgba(255,203,135,.74) 20%,
      rgba(235,151,81,.44) 40%,
      rgba(195,95,39,.17) 58%,
      rgba(160,70,25,0) 80%
    );
  animation:rgsLampPulse 4.9s ease-in-out infinite;
  will-change:opacity,transform;
}

.rgs-lamp-glow-left{
  left:1.8%;
  animation-delay:-.7s;
}

.rgs-lamp-glow-right{
  right:1.8%;
  animation-delay:-3.1s;
}

@keyframes rgsLampPulse{
  0%,100%{opacity:.24;transform:scale(.94)}
  24%{opacity:.50;transform:scale(1.02)}
  48%{opacity:.31;transform:scale(.98)}
  70%{opacity:.72;transform:scale(1.08)}
  86%{opacity:.42;transform:scale(1.01)}
}

/* Основная часть */
.rgs-shop-main-v2{
  min-height:680px;
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  align-items:stretch;
  overflow:hidden;
  border-radius:0 0 20px 20px;
  background:var(--rgs-bg);
}

/* Категории */
.rgs-category-sidebar-v2{
  min-height:680px;
  padding:18px 14px 24px;
  border-right:1px solid var(--rgs-line);
  border-radius:0 0 0 20px;
  background:var(--rgs-panel);
}

.rgs-side-head{
  padding:4px 5px 14px;
  border-bottom:1px solid var(--rgs-line);
}

.rgs-side-head span{
  display:block;
  margin-bottom:4px;
  color:#7a7b75;
  font-size:6px;
  letter-spacing:.18em;
}

.rgs-side-head b{
  color:var(--rgs-ink);
  font:400 18px var(--rgs-serif);
}

.rgs-category-sidebar-v2 .rgs-cats{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 0;
}

.rgs-category-sidebar-v2 .rgs-cat{
  width:100%;
  min-height:43px;
  padding:0 10px;
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:8px!important;
  background:transparent;
  color:#676863;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}

.rgs-category-sidebar-v2 .rgs-cat:before,
.rgs-category-sidebar-v2 .rgs-cat:after{
  display:none!important;
}

.rgs-category-sidebar-v2 .rgs-cat:hover{
  border-color:rgba(35,36,33,.09);
  background:rgba(255,255,255,.20);
  color:#292a27;
}

.rgs-category-sidebar-v2 .rgs-cat.active{
  border-color:var(--rgs-dark);
  background:var(--rgs-dark);
  color:#e5e3dc;
  box-shadow:0 5px 14px rgba(0,0,0,.11);
}

.rgs-cat-icon{
  width:20px;
  text-align:center;
  color:var(--rgs-accent);
  font:13px var(--rgs-serif);
}

.rgs-category-sidebar-v2 .rgs-cat.active .rgs-cat-icon{
  color:#d3946f;
}

.rgs-cat-name{
  min-width:0;
  color:inherit;
  font-size:8px;
  line-height:1.25;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.rgs-category-sidebar-v2 .rgs-cat em{
  position:static;
  color:#8a8b85;
  font-size:7px;
  font-style:normal;
}

.rgs-category-sidebar-v2 .rgs-cat.active em{
  color:#c7c5be;
}

.rgs-side-note{
  margin-top:18px;
  padding:14px 10px 0;
  border-top:1px solid var(--rgs-line);
}

.rgs-side-note span{
  color:#8a654f;
  font-size:6px;
  letter-spacing:.15em;
}

.rgs-side-note p{
  margin-top:7px!important;
  color:#777872!important;
  font:9px/1.55 var(--rgs-serif)!important;
}

/* Каталог */
.rgs-catalog-v2{
  min-width:0;
  min-height:680px;
  padding:16px 16px 30px;
  border-radius:0 0 20px 0;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.11),transparent 27%),
    var(--rgs-bg);
}

.rgs-catalog-toolbar{
  min-height:54px;
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--rgs-line);
}

.rgs-catalog-search{
  min-width:0;
  flex:1 1 auto;
  height:40px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border:1px solid rgba(35,36,33,.18);
  border-radius:8px;
  background:rgba(255,255,255,.17);
}

.rgs-catalog-search svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  fill:none;
  stroke:#696a65;
  stroke-width:1.5;
  stroke-linecap:round;
}

.rgs-catalog-search .rgs-search{
  width:100%;
  height:100%;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#292a27;
  font-size:9px;
}

.rgs-catalog-search .rgs-search::placeholder{
  color:#7a7b75;
}

.rgs-catalog-sort{
  height:40px;
  display:flex;
  align-items:center;
  gap:8px;
}

.rgs-catalog-sort > span{
  color:#73746f;
  font-size:7px;
  letter-spacing:.06em;
}

.rgs-catalog-sort .rgs-sort{
  width:130px;
  height:40px;
  padding:0 9px;
  border:1px solid rgba(35,36,33,.18);
  border-radius:8px!important;
  outline:0;
  background:rgba(255,255,255,.17);
  color:#292a27;
  font-size:8px;
}

.rgs-catalog-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.rgs-utility-btn{
  height:40px;
  padding:0 10px!important;
  border:1px solid rgba(35,36,33,.16)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.12)!important;
  color:#4f504c!important;
  font-size:6px!important;
  letter-spacing:.08em;
  cursor:pointer;
}

.rgs-utility-btn:hover{
  background:rgba(255,255,255,.27)!important;
  color:#232421!important;
}

/* Значок корзины */
.rgs-cart-icon{
  position:relative;
  width:40px!important;
  height:40px!important;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--rgs-dark)!important;
  border-radius:9px!important;
  background:var(--rgs-dark)!important;
  color:#e7e5de!important;
  cursor:pointer;
}

.rgs-cart-icon:hover{
  border-color:var(--rgs-accent)!important;
  background:var(--rgs-accent)!important;
}

.rgs-cart-icon svg,
.rgs-product-add svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rgs-cart-icon .rgs-count{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--rgs-bg);
  border-radius:50%;
  background:var(--rgs-accent);
  color:#fff;
  font-size:6px;
}

.rgs-catalog-meta{
  min-height:31px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  color:#777872;
  font-size:7px;
  letter-spacing:.08em;
}

/* Карточки */
.rgs-catalog-v2 .rgs-grid{
  min-height:575px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-flow:row;
  gap:12px;
  align-content:start;
}

.rgs-product-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(35,36,33,.16);
  border-radius:11px;
  background:rgba(207,206,200,.62);
  transition:.18s ease;
}

.rgs-product-card:hover{
  transform:translateY(-2px);
  border-color:rgba(91,60,43,.28);
  box-shadow:0 10px 22px rgba(33,31,28,.12);
}

.rgs-product-media{
  height:172px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 40%,rgba(255,255,255,.23),transparent 44%),
    var(--rgs-media);
}

.rgs-product-media:after{
  content:"";
  position:absolute;
  left:17%;
  right:17%;
  bottom:13px;
  height:13px;
  border-radius:50%;
  background:rgba(27,24,21,.12);
  filter:blur(8px);
}

.rgs-product-media img{
  position:relative;
  z-index:2;
  max-width:86%;
  max-height:149px;
  object-fit:contain;
  filter:drop-shadow(0 11px 9px rgba(28,24,21,.20));
  transition:transform .20s ease;
}

.rgs-product-card:hover .rgs-product-media img{
  transform:scale(1.025);
}

.rgs-ph{
  z-index:2;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border:1px solid rgba(35,36,33,.18);
  color:rgba(35,36,33,.28);
  font-size:20px;
}

.rgs-badge{
  position:absolute;
  z-index:4;
  left:10px;
  top:10px;
  padding:4px 6px;
  border-radius:5px;
  background:rgba(36,37,34,.82);
  color:#e6cfbd;
  font-size:6px;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.rgs-product-info{
  min-height:102px;
  padding:11px 11px 12px;
}

.rgs-product-category{
  display:block;
  margin-bottom:5px;
  color:#777872;
  font-size:6px;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.rgs-product-title-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  gap:8px;
  align-items:start;
}

.rgs-product-title-row h4{
  padding-top:2px!important;
  color:#272825!important;
  font:400 13px/1.25 var(--rgs-serif)!important;
}

.rgs-product-add{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(62,47,39,.28);
  border-radius:7px!important;
  background:transparent;
  color:#74492f;
  cursor:pointer;
  transition:.18s ease;
}

.rgs-product-add:hover{
  border-color:var(--rgs-dark);
  background:var(--rgs-dark);
  color:#ebe9e2;
}

.rgs-product-info p{
  margin-top:5px!important;
  color:#73746f!important;
  font-size:8px!important;
  line-height:1.35!important;
}

.rgs-product-price{
  margin-top:7px;
  color:#815033;
  font:15px/1 var(--rgs-serif);
}

/* Пустой каталог */
.rgs-empty{
  grid-column:1/-1;
  min-height:545px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:var(--rgs-muted);
  text-align:center;
}

.rgs-empty b{
  color:var(--rgs-ink);
  font:400 18px var(--rgs-serif);
}

.rgs-empty-edit{
  margin-top:8px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--rgs-accent);
  font-size:7px;
  cursor:pointer;
}

/* Корзина — отдельная карточка справа */
.rgs-cart-backdrop{
  display:none!important;
}

.rgs-cart-drawer{
  position:absolute!important;
  z-index:60;
  top:18px!important;
  right:-336px!important;
  width:318px!important;
  min-height:430px;
  max-height:calc(100% - 36px);
  padding:27px 23px;
  overflow:auto;
  border:1px solid rgba(255,255,255,.15);
  border-radius:18px!important;
  background:var(--rgs-panel-2);
  box-shadow:
    0 30px 62px rgba(0,0,0,.30),
    0 12px 25px rgba(0,0,0,.18),
    0 3px 9px rgba(0,0,0,.12);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-30px) scale(.985);
  transform-origin:left center;
  transition:
    transform .32s cubic-bezier(.2,.78,.2,1),
    opacity .22s ease,
    visibility .22s ease;
}

.rgs-cart-drawer.open{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateX(0) scale(1)!important;
}

.rgs-cart-close{
  position:absolute;
  right:14px;
  top:13px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(35,36,33,.13);
  border-radius:50%!important;
  background:rgba(255,255,255,.14);
  color:var(--rgs-ink);
  font:20px/1 var(--rgs-serif);
  cursor:pointer;
}

.rgs-cart-close:hover{
  background:rgba(255,255,255,.32);
}

.rgs-cart-drawer-head{
  padding-bottom:14px;
  border-bottom:1px solid var(--rgs-line);
}

.rgs-cart-drawer-head > span{
  color:var(--rgs-muted);
  font-size:6px;
  letter-spacing:.18em;
}

.rgs-cart-drawer-head h3{
  margin-top:4px!important;
  font:400 24px var(--rgs-serif)!important;
}

.rgs-cart-drawer-head i{
  margin-left:4px;
  vertical-align:4px;
  font-style:normal;
}

.rgs-count{
  min-width:17px;
  height:17px;
  padding:0 4px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--rgs-dark);
  color:#e6e4de;
  font-size:6px;
}

.rgs-cart-empty{
  padding:36px 4px;
  color:var(--rgs-muted);
  text-align:center;
  font-size:9px;
}

.rgs-cart-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:9px;
  padding:11px 0;
  border-bottom:1px solid var(--rgs-line);
}

.rgs-cart-thumb{
  width:52px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:7px;
  background:#b3b2ac;
}

.rgs-cart-thumb img{
  max-width:88%;
  max-height:88%;
  object-fit:contain;
}

.rgs-cart-name{
  font:400 11px var(--rgs-serif);
}

.rgs-cart-price{
  margin-top:3px;
  font-size:8px;
}

.rgs-qty{
  display:inline-flex;
  margin-top:6px;
  border:1px solid var(--rgs-line);
  border-radius:5px;
  overflow:hidden;
}

.rgs-qty button{
  width:22px;
  height:22px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

.rgs-qty span{
  min-width:22px;
  line-height:22px;
  text-align:center;
  font-size:8px;
}

.rgs-remove{
  align-self:start;
  padding:0;
  border:0;
  background:transparent;
  font-size:15px;
  opacity:.45;
  cursor:pointer;
}

.rgs-summary{
  padding:13px 0 4px;
}

.rgs-sumrow{
  display:flex;
  justify-content:space-between;
  padding:3px 0;
  font-size:8px;
}

.rgs-sumrow.total{
  margin-top:7px;
  padding-top:10px;
  border-top:1px solid var(--rgs-line);
  font:17px var(--rgs-serif);
}

.rgs-primary,
.rgs-secondary{
  width:100%;
  min-height:38px;
  margin-top:9px;
  border-radius:7px!important;
  font-size:7px;
  letter-spacing:.10em;
  text-transform:uppercase;
  cursor:pointer;
}

.rgs-primary{
  border:0;
  background:var(--rgs-dark);
  color:#e6e4de;
}

.rgs-primary:hover{
  background:var(--rgs-accent);
}

.rgs-secondary{
  border:1px solid var(--rgs-line);
  background:transparent;
  color:inherit;
}

.rgs-checkout{
  display:none;
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid var(--rgs-line);
}

.rgs-checkout.open{
  display:block;
}

.rgs-field{
  margin-top:9px;
}

.rgs-field label{
  display:block;
  margin-bottom:4px;
  color:var(--rgs-muted);
  font-size:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.rgs-input,
.rgs-select,
.rgs-textarea{
  width:100%;
  border:1px solid var(--rgs-line);
  border-radius:6px!important;
  outline:0;
  background:#deddd7;
  color:var(--rgs-ink);
  font-size:9px;
}

.rgs-input,
.rgs-select{
  height:34px;
  padding:0 9px;
}

.rgs-textarea{
  min-height:76px;
  padding:8px 9px;
  resize:vertical;
}

.rgs-check{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:9px;
  font-size:8px;
}

.rgs-status{
  display:none;
  margin-top:9px;
  padding:8px;
  border:1px solid var(--rgs-line);
  border-radius:6px;
  font-size:8px;
}

.rgs-status.show{display:block}
.rgs-status.err{color:#7b2c22}
.rgs-status.ok{color:#45513b}

.rgs-cart-footnote{
  margin-top:20px;
  padding-top:11px;
  border-top:1px solid var(--rgs-line);
  color:var(--rgs-muted);
  font-size:5px;
  letter-spacing:.17em;
  text-align:center;
}

/* Manager */
.rgs-layer{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,14,13,.67);
  backdrop-filter:blur(4px);
}

.rgs-layer.open{
  display:flex;
}

.rgs-modal{
  width:min(1040px,96vw);
  max-height:90vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:14px;
  background:#d2d1cb;
  box-shadow:0 28px 90px rgba(0,0,0,.35);
}

.rgs-modal-head{
  min-height:56px;
  padding:0 18px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--rgs-line);
}

.rgs-modal-head b{
  font:18px var(--rgs-serif);
  text-transform:uppercase;
}

.rgs-close{
  margin-left:auto;
  border:0;
  background:transparent;
  font-size:22px;
  cursor:pointer;
}

.rgs-modal-body{
  padding:18px;
  overflow:auto;
}

.rgs-tabs{
  display:flex;
  gap:7px;
  margin-bottom:14px;
}

.rgs-tabs button{
  min-height:33px;
  padding:0 12px;
  border:1px solid var(--rgs-line);
  border-radius:6px!important;
  background:transparent;
  cursor:pointer;
}

.rgs-tabs button.active{
  background:var(--rgs-dark);
  color:#fff;
}

.rgs-panel{display:none}
.rgs-panel.active{display:block}

.rgs-manager-grid{
  display:grid;
  grid-template-columns:minmax(270px,.85fr) minmax(0,1.6fr);
  gap:16px;
}

.rgs-box{
  padding:13px;
  border:1px solid var(--rgs-line);
  border-radius:9px;
  background:rgba(255,255,255,.12);
}

.rgs-box h3{
  margin:0 0 10px!important;
  font:16px var(--rgs-serif)!important;
  font-weight:400!important;
}

.rgs-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.rgs-form .full{
  grid-column:1/-1;
}

.rgs-form label{
  display:block;
  margin-bottom:4px;
  font-size:9px;
  color:var(--rgs-muted);
}

.rgs-admin-list{
  display:grid;
  gap:7px;
}

.rgs-admin-row{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  padding:8px;
  border:1px solid var(--rgs-line);
  border-radius:7px;
}

.rgs-admin-thumb{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:6px;
  background:#b6b5af;
}

.rgs-admin-thumb img{
  max-width:90%;
  max-height:90%;
  object-fit:contain;
}

.rgs-admin-actions{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.rgs-admin-actions button{
  width:29px;
  height:29px;
  border:1px solid var(--rgs-line);
  border-radius:5px!important;
  background:transparent;
  cursor:pointer;
}

.rgs-cat-admin{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center;
  padding:8px;
  border:1px solid var(--rgs-line);
  border-radius:7px;
}

/* Чек */
.rgs-receipt{
  width:min(460px,94vw);
  padding:25px;
  position:relative;
  border-radius:12px;
  background:#d7d6d0;
  box-shadow:0 28px 90px rgba(0,0,0,.35);
}

.rgs-receipt-title{
  text-align:center;
  font:21px var(--rgs-serif);
  text-transform:uppercase;
}

.rgs-receipt-meta{
  margin-top:12px;
  padding:10px 0;
  border-top:1px dashed #85857f;
  border-bottom:1px dashed #85857f;
  color:#5f605b;
  font-size:10px;
}

.rgs-receipt-item,
.rgs-receipt-total{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.rgs-receipt-item{
  padding:5px 0;
}

.rgs-receipt-total{
  margin-top:11px;
  padding-top:11px;
  border-top:1px dashed #85857f;
  font:19px var(--rgs-serif);
}

.rgs-receipt-note{
  margin-top:13px;
  text-align:center;
  color:#61625d;
  font-size:10px;
}

/* Адаптация */
@media(max-width:1180px){
  .rgs-cart-drawer{
    position:fixed!important;
    top:18px!important;
    right:18px!important;
    width:min(330px,calc(100vw - 36px))!important;
    max-height:calc(100vh - 36px)!important;
    transform:translateX(36px) scale(.985);
  }

  .rgs-cart-drawer.open{
    transform:translateX(0) scale(1)!important;
  }
}

@media(max-width:1000px){
  #resonance-gift-shop{
    width:calc(100% + 70px)!important;
  }

  .rgs-shop-main-v2{
    grid-template-columns:165px minmax(0,1fr);
  }

  .rgs-catalog-v2 .rgs-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .rgs-catalog-sort > span,
  .rgs-utility-btn.my-gifts{
    display:none;
  }
}

@media(max-width:760px){
  #resonance-gift-shop{
    left:auto!important;
    width:100%!important;
    margin-left:0!important;
    transform:none!important;
  }

  .rgs-shop{
    border-radius:14px;
  }

  .rgs-storefront,
  .rgs-storefront-img,
  .rgs-storefront:after{
    border-radius:14px 14px 0 0;
  }

  .rgs-sign-title{
    font-size:28px;
  }

  .rgs-shop-main-v2{
    display:block;
    min-height:0;
    border-radius:0 0 14px 14px;
  }

  .rgs-category-sidebar-v2{
    min-height:auto;
    padding:10px 12px;
    border-right:0;
    border-bottom:1px solid var(--rgs-line);
    border-radius:0;
  }

  .rgs-side-head,
  .rgs-side-note{
    display:none;
  }

  .rgs-category-sidebar-v2 .rgs-cats{
    flex-direction:row;
    overflow-x:auto;
    gap:7px;
    padding:0;
  }

  .rgs-category-sidebar-v2 .rgs-cat{
    flex:0 0 auto;
    width:auto;
    grid-template-columns:auto auto;
    min-height:36px;
  }

  .rgs-cat-icon{
    display:none;
  }

  .rgs-catalog-v2{
    min-height:580px;
    border-radius:0 0 14px 14px;
  }

  .rgs-catalog-toolbar{
    flex-wrap:wrap;
  }

  .rgs-catalog-search{
    flex-basis:100%;
  }

  .rgs-catalog-sort{
    flex:1 1 auto;
  }

  .rgs-catalog-actions{
    margin-left:auto;
  }

  .rgs-catalog-v2 .rgs-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .rgs-manager-grid,
  .rgs-form{
    grid-template-columns:1fr;
  }

  .rgs-form .full{
    grid-column:auto;
  }
}

@media(max-width:480px){
  .rgs-sign-title{
    font-size:24px;
  }

  .rgs-sign-subtitle{
    display:none;
  }

  .rgs-catalog-v2 .rgs-grid{
    grid-template-columns:1fr;
  }

  .rgs-product-media{
    height:192px;
  }
}


/* Обрезанная шапка */
.rgs-storefront{
  height:330px!important;
}

.rgs-storefront-img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 50%!important;
}

/* Совместимость со старой разметкой */
.rgs-toolbar{
  min-height:52px!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  background:var(--rgs-dark)!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  border-bottom:1px solid rgba(0,0,0,.25)!important;
}

.rgs-toolbar-left,
.rgs-toolbar-right{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}

.rgs-toolbar .rgs-text-action{
  min-height:32px!important;
  padding:0 8px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.04)!important;
  color:#d6d4cd!important;
  font-size:6px!important;
  letter-spacing:.08em!important;
}

.rgs-toolbar .rgs-text-action:hover{
  background:rgba(255,255,255,.09)!important;
  color:#f0ece4!important;
}

.rgs-toolbar .rgs-search-line,
.rgs-toolbar .rgs-sort-line{
  height:34px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 8px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.04)!important;
}

.rgs-toolbar .rgs-search-line span,
.rgs-toolbar .rgs-sort-line span{
  color:#8e8f89!important;
  font-size:5px!important;
  letter-spacing:.12em!important;
}

.rgs-toolbar .rgs-search{
  width:105px!important;
  height:30px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#e1dfd8!important;
  font-size:8px!important;
}

.rgs-toolbar .rgs-sort{
  width:110px!important;
  height:30px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#e1dfd8!important;
  font-size:7px!important;
}

.rgs-toolbar .rgs-sort option{
  color:#222!important;
}

.rgs-toolbar .rgs-cart-icon{
  width:38px!important;
  height:38px!important;
  border-radius:9px!important;
}

/* Старый основной контейнер */
.rgs-shop-main:not(.rgs-shop-main-v2){
  min-height:680px!important;
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr)!important;
  align-items:stretch!important;
  overflow:hidden!important;
  border-radius:0 0 20px 20px!important;
  background:var(--rgs-bg)!important;
}

/* Старые категории */
.rgs-category-sidebar:not(.rgs-category-sidebar-v2){
  min-height:680px!important;
  padding:18px 14px 24px!important;
  border-right:1px solid var(--rgs-line)!important;
  border-radius:0 0 0 20px!important;
  background:var(--rgs-panel)!important;
}

.rgs-category-title{
  padding:4px 5px 14px!important;
  margin-bottom:12px!important;
  border-bottom:1px solid var(--rgs-line)!important;
  color:var(--rgs-ink)!important;
  font:400 17px var(--rgs-serif)!important;
  letter-spacing:.02em!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cats{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  padding:0!important;
  overflow:visible!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat{
  width:100%!important;
  min-height:43px!important;
  padding:0 10px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#676863!important;
  text-align:left!important;
  cursor:pointer!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat:before,
.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat:after{
  display:none!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat span{
  padding:0!important;
  color:inherit!important;
  font-size:8px!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat em{
  position:static!important;
  color:#8a8b85!important;
  font-size:7px!important;
  font-style:normal!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat:hover{
  background:rgba(255,255,255,.20)!important;
  border-color:rgba(35,36,33,.09)!important;
  color:#292a27!important;
}

.rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat.active{
  background:var(--rgs-dark)!important;
  border-color:var(--rgs-dark)!important;
  color:#e5e3dc!important;
  box-shadow:0 5px 14px rgba(0,0,0,.11)!important;
}

/* Старый каталог */
.rgs-shop-main:not(.rgs-shop-main-v2) > .rgs-catalog{
  min-width:0!important;
  min-height:680px!important;
  padding:18px 16px 30px!important;
  border-radius:0 0 20px 0!important;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.11),transparent 27%),
    var(--rgs-bg)!important;
}

.rgs-shop-main:not(.rgs-shop-main-v2) .rgs-grid{
  min-height:610px!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:12px!important;
  align-content:start!important;
}

/* Старые товарные карточки */
.rgs-object{
  min-width:0!important;
  grid-column:auto!important;
  overflow:hidden!important;
  border:1px solid rgba(35,36,33,.16)!important;
  border-radius:11px!important;
  background:rgba(207,206,200,.62)!important;
  transition:.18s ease!important;
}

.rgs-object.featured{
  grid-column:auto!important;
}

.rgs-object:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(91,60,43,.28)!important;
  box-shadow:0 10px 22px rgba(33,31,28,.12)!important;
}

.rgs-object-stage{
  min-height:172px!important;
  height:172px!important;
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 50% 40%,rgba(255,255,255,.23),transparent 44%),
    var(--rgs-media)!important;
}

.rgs-object-stage img{
  position:relative!important;
  z-index:2!important;
  max-width:86%!important;
  max-height:149px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 11px 9px rgba(28,24,21,.20))!important;
}

.rgs-object-add{
  position:absolute!important;
  z-index:4!important;
  right:10px!important;
  bottom:10px!important;
  min-width:34px!important;
  height:34px!important;
  padding:0 8px!important;
  border:1px solid rgba(62,47,39,.28)!important;
  border-radius:7px!important;
  background:rgba(201,200,194,.86)!important;
  color:#74492f!important;
  font-size:6px!important;
  cursor:pointer!important;
}

.rgs-object-add:hover{
  border-color:var(--rgs-dark)!important;
  background:var(--rgs-dark)!important;
  color:#ebe9e2!important;
}

.rgs-object-caption{
  min-height:101px!important;
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr) auto!important;
  gap:7px!important;
  padding:10px 10px 12px!important;
}

.rgs-object-index{
  color:#83847e!important;
  font:8px var(--rgs-serif)!important;
}

.rgs-object-copy > span{
  display:block!important;
  margin-bottom:4px!important;
  color:#777872!important;
  font-size:6px!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}

.rgs-object-copy h4{
  color:#272825!important;
  font:400 13px/1.25 var(--rgs-serif)!important;
}

.rgs-object-copy p{
  margin-top:5px!important;
  color:#73746f!important;
  font-size:8px!important;
  line-height:1.35!important;
}

.rgs-object-price{
  color:#815033!important;
  white-space:nowrap!important;
  font:14px/1 var(--rgs-serif)!important;
}

/* Старое пустое состояние */
.rgs-shop-main:not(.rgs-shop-main-v2) .rgs-empty{
  min-height:590px!important;
}

/* На узких экранах */
@media(max-width:1000px){
  .rgs-shop-main:not(.rgs-shop-main-v2){
    grid-template-columns:165px minmax(0,1fr)!important;
  }

  .rgs-shop-main:not(.rgs-shop-main-v2) .rgs-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  .rgs-storefront{
    height:270px!important;
  }

  .rgs-shop-main:not(.rgs-shop-main-v2){
    display:block!important;
  }

  .rgs-category-sidebar:not(.rgs-category-sidebar-v2){
    min-height:auto!important;
    border-right:0!important;
    border-bottom:1px solid var(--rgs-line)!important;
    border-radius:0!important;
  }

  .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cats{
    flex-direction:row!important;
    overflow-x:auto!important;
  }

  .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat{
    flex:0 0 auto!important;
    width:auto!important;
  }

  .rgs-shop-main:not(.rgs-shop-main-v2) .rgs-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}




/* Положение свечения боковых фонарей */
.rgs-lamp-glow-left,
.rgs-lamp-glow-right{
  top:20%!important;
}


/* =========================================================
   RUSFF SAFE LAYOUT
   Корпус магазина вынесен JS-ом в body и не влияет
   на ширину таблицы форума.
   ========================================================= */

#resonance-gift-shop{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:12px 0 38px!important;
  padding:0!important;
  transform:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

/* Старые правила расширения mount полностью нейтрализованы */
#resonance-gift-shop > .rgs-shop{
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Вынесенный корпус */
body > .rgs-shop.rgs-detached{
  z-index:50!important;
  box-sizing:border-box!important;
}

/* На мобильном магазин не выступает за пост */
@media(max-width:760px){
  body > .rgs-shop.rgs-detached{
    border-radius:14px!important;
  }
}


/* Панель инструментов редактора форума */
#form-buttons,
#form-buttons table,
.form-buttons,
.form-buttons table{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}


/* Shop Manager и чек всегда выше вынесенного магазина */
body > .rgs-shop.rgs-detached{
  z-index:5000!important;
}

body > .rgs-layer.rgs-detached-layer{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
}

body > .rgs-layer.rgs-detached-layer.open{
  display:flex!important;
}

/* Модальное окно само находится поверх затемнения */
body > .rgs-layer.rgs-detached-layer .rgs-modal,
body > .rgs-layer.rgs-detached-layer .rgs-receipt{
  position:relative!important;
  z-index:2!important;
}

/* =========================================================
   PROFILE + BANK BALANCE v0.8.1
   ========================================================= */

.rgs-account-chip{
  min-width:124px;
  height:40px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 9px 4px 5px;
  border:1px solid rgba(35,36,33,.16);
  border-radius:9px;
  background:rgba(255,255,255,.12);
  color:var(--rgs-ink);
  text-decoration:none!important;
  transition:background .18s ease,border-color .18s ease,opacity .18s ease;
}

.rgs-account-chip:hover{
  border-color:rgba(35,36,33,.27);
  background:rgba(255,255,255,.25);
  color:var(--rgs-ink);
  text-decoration:none!important;
}

.rgs-account-chip.is-loading{
  opacity:.72;
}

.rgs-account-avatar,
.rgs-cart-account-avatar{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  overflow:hidden;
  border:1px solid rgba(35,36,33,.17);
  border-radius:50%;
  background:#aaa9a3;
  color:#eeeae3;
  font:700 11px var(--rgs-serif);
  text-decoration:none!important;
}

.rgs-account-avatar{
  width:30px;
  height:30px;
}

.rgs-cart-account-avatar{
  width:44px;
  height:44px;
}

.rgs-account-avatar img,
.rgs-cart-account-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.rgs-account-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}

.rgs-account-name{
  max-width:82px;
  overflow:hidden;
  color:#333430;
  font:700 7px/1.15 var(--rgs-sans);
  letter-spacing:.02em;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rgs-account-balance{
  color:#815033;
  font:400 9px/1.15 var(--rgs-serif);
  white-space:nowrap;
}

/* Detailed customer panel inside the cart */
.rgs-cart-account{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  margin:13px 0 4px;
  padding:11px;
  border:1px solid rgba(35,36,33,.12);
  border-radius:10px;
  background:rgba(255,255,255,.12);
}

.rgs-cart-account.is-loading{
  opacity:.78;
}

.rgs-cart-account-copy{
  min-width:0;
}

.rgs-cart-account-copy > span,
.rgs-cart-balance-box > span{
  display:block;
  margin-bottom:3px;
  color:var(--rgs-muted);
  font-size:6px;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.rgs-cart-account-name{
  display:block;
  max-width:108px;
  overflow:hidden;
  color:#2d2e2b;
  font:400 12px/1.2 var(--rgs-serif);
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rgs-cart-balance-box{
  min-width:83px;
  padding-left:9px;
  border-left:1px solid var(--rgs-line);
  text-align:right;
}

.rgs-cart-account-balance{
  display:block;
  color:#815033;
  font:400 15px/1 var(--rgs-serif);
  white-space:nowrap;
}

.rgs-cart-balance-box small{
  display:block;
  margin-top:5px;
  color:var(--rgs-muted);
  font-size:5px;
  line-height:1.35;
  letter-spacing:.02em;
  white-space:nowrap;
}

.rgs-cart-balance-box small strong{
  color:#5d5e59;
  font-weight:700;
}

.rgs-cart-after-value.is-negative,
.rgs-cart-balance-box.is-low .rgs-cart-account-balance{
  color:#984a3f;
}

/* On medium widths keep only the avatar in the toolbar. */
@media(max-width:1080px){
  .rgs-account-chip{
    min-width:40px;
    width:40px;
    padding:4px;
  }

  .rgs-account-copy{
    display:none;
  }
}

@media(max-width:760px){
  .rgs-cart-account{
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:8px;
    padding:9px;
  }

  .rgs-cart-account-avatar{
    width:40px;
    height:40px;
  }

  .rgs-cart-balance-box{
    min-width:74px;
  }
}

/* =========================================================
   FINAL BASE: dark espresso sidebar + quiet taupe catalog
   ========================================================= */

/* Общий интерфейс — темнее шапки, без оранжевой заливки */
.rgs-shop-main-v2{
  background:#9c9187!important;
}

.rgs-catalog-v2{
  background:
    radial-gradient(circle at 20% 0%,rgba(255,244,232,.075),transparent 28%),
    #9c9187!important;
}

/* Текстура почти незаметна — только общий фон */
.rgs-catalog-v2:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.045;
  background-image:var(--rgs-ui-texture);
  background-size:1100px 1100px;
  mix-blend-mode:multiply;
}

/* Сайдбар единым темным блоком */
.rgs-category-sidebar-v2{
  background:#382a22!important;
  border-right:1px solid rgba(255,255,255,.055)!important;
}

/* Профиль в сайдбаре */
.rgs-category-sidebar-v2 .rgs-account-chip--sidebar{
  border-bottom-color:rgba(255,255,255,.11)!important;
  background:transparent!important;
}

.rgs-category-sidebar-v2 .rgs-account-name{
  color:#eaded2!important;
}

.rgs-category-sidebar-v2 .rgs-account-balance{
  color:#c7885d!important;
}

/* Заголовок */
.rgs-side-head{
  border-bottom-color:rgba(255,255,255,.10)!important;
}

.rgs-side-head span{
  color:rgba(234,222,210,.38)!important;
}

.rgs-side-head b{
  color:#eee2d5!important;
}

/* Категории — не кирпичи */
.rgs-category-sidebar-v2 .rgs-cats{
  gap:2px!important;
}

.rgs-category-sidebar-v2 .rgs-cat{
  min-height:40px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  border-radius:0!important;
  background:transparent!important;
  color:#bca99a!important;
  box-shadow:none!important;
}

.rgs-category-sidebar-v2 .rgs-cat:hover{
  background:rgba(255,255,255,.035)!important;
  color:#eaded2!important;
}

.rgs-category-sidebar-v2 .rgs-cat.active{
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  background:#1a0d06!important;
  color:#f0e4d8!important;
  box-shadow:inset 3px 0 0 #a45f36!important;
}

.rgs-category-sidebar-v2 .rgs-cat-icon{
  color:#a45f36!important;
}

.rgs-category-sidebar-v2 .rgs-cat em{
  color:rgba(234,222,210,.35)!important;
}

/* Поиск и сортировка */
.rgs-catalog-toolbar{
  border-bottom-color:rgba(35,25,19,.16)!important;
}

.rgs-catalog-search,
.rgs-catalog-sort .rgs-sort{
  border-color:rgba(35,25,19,.16)!important;
  background:rgba(235,226,216,.22)!important;
  color:#211711!important;
}

.rgs-catalog-search:focus-within{
  border-color:rgba(164,95,54,.48)!important;
  background:rgba(235,226,216,.30)!important;
}

.rgs-catalog-search .rgs-search{
  color:#211711!important;
}

.rgs-catalog-search .rgs-search::placeholder{
  color:rgba(33,23,17,.48)!important;
}

/* Убираем слово "Сортировка" */
.rgs-catalog-sort > span{
  display:none!important;
}

/* MY GIFTS — селектор по реальной вынесенной разметке */
.rgs-shop .my-gifts,
.rgs-shop .rgs-utility-btn.my-gifts,
body > .rgs-shop.rgs-detached .my-gifts{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:96px!important;
  height:40px!important;
  padding:0 16px!important;
  border:1px solid #1a0d06!important;
  border-radius:8px!important;
  background:#1a0d06!important;
  color:#f0e4d8!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.075em!important;
  opacity:1!important;
  visibility:visible!important;
  box-shadow:0 4px 12px rgba(26,13,6,.18)!important;
}

.rgs-shop .my-gifts:hover,
.rgs-shop .rgs-utility-btn.my-gifts:hover,
body > .rgs-shop.rgs-detached .my-gifts:hover{
  border-color:#a45f36!important;
  background:#28170f!important;
  color:#fff3e6!important;
}

/* Корзина */
.rgs-cart-icon{
  border-color:#1a0d06!important;
  background:#1a0d06!important;
  color:#e6d7c8!important;
}

.rgs-cart-icon:hover{
  border-color:#a45f36!important;
  background:#28170f!important;
}

/* Карточки — прозрачнее, без плотной заливки */
.rgs-product-card{
  border:1px solid rgba(240,229,217,.18)!important;
  background:rgba(238,228,216,.085)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 6px 16px rgba(32,21,15,.07)!important;
  backdrop-filter:blur(1px)!important;
}

.rgs-product-card:hover{
  border-color:rgba(164,95,54,.38)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 22px rgba(32,21,15,.12)!important;
}

/* Контейнер изображения — прозрачный с едва теплым бликом */
.rgs-product-media{
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(241,225,207,.13) 0%,
      rgba(241,225,207,.045) 40%,
      transparent 72%
    )!important;
}

.rgs-product-media:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(255,245,233,.045) 40%,
      transparent 60%
    );
}

.rgs-product-media:after{
  background:rgba(31,20,14,.09)!important;
}

/* Низ карточки тоже прозрачный */
.rgs-product-info{
  background:rgba(239,229,218,.055)!important;
  border-top:1px solid rgba(239,229,218,.09)!important;
}

.rgs-product-category{
  color:rgba(33,23,17,.46)!important;
}

.rgs-product-title-row h4{
  color:#211711!important;
}

.rgs-product-price{
  color:#7d4629!important;
}

.rgs-product-add{
  border-color:rgba(33,23,17,.23)!important;
  background:rgba(239,229,218,.07)!important;
  color:#73442d!important;
}

.rgs-product-add:hover{
  border-color:#1a0d06!important;
  background:#1a0d06!important;
  color:#eaded2!important;
}

/* Служебные кнопки */
.rgs-shop .rgs-manager-open,
.rgs-shop .rgs-edit-shop--sidebar{
  border-color:rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.025)!important;
  color:rgba(234,222,210,.46)!important;
}

/* Корзина / manager — спокойный taupe */
.rgs-cart-drawer,
.rgs-modal,
.rgs-receipt,
.rgs-box{
  background:#aea196!important;
  color:#211711!important;
  background-image:none!important;
}

.rgs-input,
.rgs-select,
.rgs-textarea{
  border-color:rgba(35,25,19,.17)!important;
  background:#bbb0a7!important;
  color:#211711!important;
}

/* Шапка — без вмешательства */
.rgs-storefront,
.rgs-storefront-img,
.rgs-storefront:after{
  background-image:none!important;
}


/* =========================================================
   LATTE / SOFT BROWN — по референсу из Photoshop
   ========================================================= */

/* Общая теплая latte-база */
.rgs-shop-main-v2{
  background:#9a806b!important;
}

.rgs-catalog-v2{
  background:
    radial-gradient(circle at 20% 0%,rgba(255,240,224,.075),transparent 30%),
    #9a806b!important;
}

.rgs-category-sidebar-v2{
  background:#8d725f!important;
  border-right-color:rgba(73,47,32,.20)!important;
}

/* Профиль */
.rgs-category-sidebar-v2 .rgs-account-chip--sidebar{
  border-bottom-color:rgba(73,47,32,.20)!important;
  background:transparent!important;
}

.rgs-category-sidebar-v2 .rgs-account-name{
  color:#2d1d14!important;
}

.rgs-category-sidebar-v2 .rgs-account-balance{
  color:#8a4f2d!important;
}

/* Заголовок категорий */
.rgs-side-head{
  border-bottom-color:rgba(73,47,32,.20)!important;
}

.rgs-side-head span{
  color:rgba(53,34,23,.46)!important;
}

.rgs-side-head b{
  color:#2d1d14!important;
}

/* Категории — темно-коричневые, НЕ черные */
.rgs-category-sidebar-v2 .rgs-cats{
  gap:5px!important;
}

.rgs-category-sidebar-v2 .rgs-cat{
  min-height:40px!important;
  border:1px solid rgba(72,45,30,.14)!important;
  border-radius:7px!important;
  background:#6f513f!important;
  color:#e6d2c1!important;
  box-shadow:none!important;
}

.rgs-category-sidebar-v2 .rgs-cat:hover{
  border-color:rgba(145,84,46,.50)!important;
  background:#765642!important;
  color:#f2dfcf!important;
}

.rgs-category-sidebar-v2 .rgs-cat.active{
  border-color:#9b5c36!important;
  background:#5f412f!important;
  color:#f3e1d1!important;
  box-shadow:inset 3px 0 0 #a8623a!important;
}

.rgs-category-sidebar-v2 .rgs-cat-icon{
  color:#c17a4e!important;
}

.rgs-category-sidebar-v2 .rgs-cat em{
  color:rgba(240,221,204,.56)!important;
}

/* Поиск / сортировка в том же latte */
.rgs-catalog-search,
.rgs-catalog-sort .rgs-sort{
  border-color:rgba(73,47,32,.16)!important;
  background:rgba(225,207,190,.28)!important;
  color:#2d1d14!important;
}

.rgs-catalog-search:focus-within{
  border-color:rgba(155,92,54,.50)!important;
  background:rgba(225,207,190,.36)!important;
}

.rgs-catalog-search .rgs-search{
  color:#2d1d14!important;
}

.rgs-catalog-search .rgs-search::placeholder{
  color:rgba(45,29,20,.46)!important;
}

/* MY GIFTS — заметная, но не черная */
.rgs-shop .my-gifts,
.rgs-shop .rgs-utility-btn.my-gifts,
body > .rgs-shop.rgs-detached .my-gifts{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:98px!important;
  height:40px!important;
  padding:0 16px!important;
  border:1px solid #664632!important;
  border-radius:8px!important;
  background:#664632!important;
  color:#f1dfcf!important;
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.075em!important;
  opacity:1!important;
  visibility:visible!important;
  box-shadow:0 4px 12px rgba(65,40,27,.16)!important;
}

.rgs-shop .my-gifts:hover,
.rgs-shop .rgs-utility-btn.my-gifts:hover,
body > .rgs-shop.rgs-detached .my-gifts:hover{
  border-color:#8e5735!important;
  background:#75503a!important;
  color:#fff0e2!important;
}

/* Корзина тоже в мягком коричневом */
.rgs-cart-icon{
  border-color:#664632!important;
  background:#664632!important;
  color:#f0ddcc!important;
}

.rgs-cart-icon:hover{
  border-color:#8e5735!important;
  background:#75503a!important;
}

/* Карточки — прозрачные latte */
.rgs-product-card{
  border:1px solid rgba(240,225,211,.20)!important;
  background:rgba(236,220,204,.09)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 6px 16px rgba(63,42,29,.07)!important;
}

.rgs-product-card:hover{
  border-color:rgba(155,92,54,.38)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 22px rgba(63,42,29,.11)!important;
}

/* Контейнер изображения — прозрачный с теплым мягким бликом */
.rgs-product-media{
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(244,225,207,.14) 0%,
      rgba(244,225,207,.045) 42%,
      transparent 72%
    )!important;
}

.rgs-product-info{
  background:rgba(239,224,209,.055)!important;
  border-top:1px solid rgba(239,224,209,.09)!important;
}

.rgs-product-title-row h4{
  color:#2d1d14!important;
}

.rgs-product-category{
  color:rgba(45,29,20,.48)!important;
}

.rgs-product-price{
  color:#814c2d!important;
}

.rgs-product-add{
  border-color:rgba(78,51,35,.24)!important;
  background:rgba(239,224,209,.07)!important;
  color:#78482f!important;
}

.rgs-product-add:hover{
  border-color:#664632!important;
  background:#664632!important;
  color:#f1dfcf!important;
}

/* Служебные окна */
.rgs-cart-drawer,
.rgs-modal,
.rgs-receipt,
.rgs-box{
  background:#b29a86!important;
  color:#2d1d14!important;
  background-image:none!important;
}

.rgs-input,
.rgs-select,
.rgs-textarea{
  border-color:rgba(73,47,32,.18)!important;
  background:#c3ad99!important;
  color:#2d1d14!important;
}

/* EDIT SHOP — тихая */
.rgs-shop .rgs-manager-open,
.rgs-shop .rgs-edit-shop--sidebar{
  border-color:rgba(73,47,32,.16)!important;
  background:rgba(83,54,37,.08)!important;
  color:rgba(45,29,20,.50)!important;
}

/* Шапка не меняется */
.rgs-storefront,
.rgs-storefront-img,
.rgs-storefront:after{
  background-image:none!important;
}


/* =========================================================
   LATTE MODALS / CART
   ========================================================= */

/* Убираем CATALOG над заголовком категорий */
.rgs-side-head > span{
  display:none!important;
}

.rgs-side-head{
  padding-top:2px!important;
}

/* ---------- МОИ ПОДАРКИ ---------- */

body .rgs-gifts-history-backdrop{
  background:rgba(22,14,9,.58)!important;
  backdrop-filter:blur(2px)!important;
}

body .rgs-gifts-history{
  width:min(520px,calc(100vw - 40px))!important;
  padding:22px!important;
  border:1px solid rgba(89,57,38,.22)!important;
  border-radius:14px!important;
  background:#b69c86!important;
  color:#2d1d14!important;
  box-shadow:
    0 26px 70px rgba(26,13,6,.34),
    inset 0 1px 0 rgba(255,239,224,.18)!important;
}

/* Заголовок */
body .rgs-gifts-history-title{
  color:#2d1d14!important;
  font:400 24px/1.1 var(--rgs-serif)!important;
}

/* Крестик */
body .rgs-gifts-history-close{
  border:1px solid rgba(73,47,32,.18)!important;
  background:rgba(225,207,190,.20)!important;
  color:#5c3e2b!important;
}

body .rgs-gifts-history-close:hover{
  background:rgba(225,207,190,.38)!important;
  color:#2d1d14!important;
}

/* Вкладки */
body .rgs-gifts-history-tabs{
  gap:7px!important;
  margin:16px 0 13px!important;
  padding-bottom:12px!important;
  border-bottom:1px solid rgba(73,47,32,.18)!important;
}

body .rgs-gifts-history-tabs button{
  height:32px!important;
  border:1px solid rgba(73,47,32,.18)!important;
  border-radius:7px!important;
  background:rgba(225,207,190,.15)!important;
  color:#6b513f!important;
  font-size:8px!important;
  font-weight:700!important;
}

body .rgs-gifts-history-tabs button:hover{
  background:rgba(225,207,190,.28)!important;
  color:#3d291d!important;
}

body .rgs-gifts-history-tabs button.is-active{
  border-color:#664632!important;
  background:#664632!important;
  color:#f1dfcf!important;
}

/* Карточки истории */
body .rgs-gifts-history-body{
  gap:8px!important;
}

body .rgs-gifts-history-item{
  grid-template-columns:56px minmax(0,1fr)!important;
  gap:11px!important;
  padding:9px!important;
  border:1px solid rgba(73,47,32,.14)!important;
  border-radius:8px!important;
  background:rgba(229,213,198,.20)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,242,229,.10)!important;
}

body .rgs-gifts-history-item:hover{
  border-color:rgba(142,87,53,.32)!important;
  background:rgba(229,213,198,.28)!important;
}

body .rgs-gifts-history-img{
  width:56px!important;
  height:56px!important;
  border:1px solid rgba(73,47,32,.10)!important;
  border-radius:7px!important;
  background:
    radial-gradient(circle at 50% 38%,rgba(247,228,210,.22),transparent 66%),
    rgba(229,213,198,.08)!important;
}

body .rgs-gifts-history-name{
  color:#2d1d14!important;
  font:700 12px/1.2 var(--rgs-serif)!important;
}

body .rgs-gifts-history-meta{
  color:#725945!important;
  font-size:8px!important;
}

body .rgs-gifts-history-note{
  color:#654c3c!important;
}

body .rgs-gifts-history-state{
  color:#725945!important;
}


/* ---------- КОРЗИНА ---------- */

body .rgs-cart-drawer{
  border:1px solid rgba(73,47,32,.20)!important;
  background:#b69c86!important;
  color:#2d1d14!important;
  box-shadow:
    0 24px 62px rgba(26,13,6,.30),
    inset 0 1px 0 rgba(255,239,224,.15)!important;
}

/* Верх корзины */
body .rgs-cart-drawer-head{
  border-bottom-color:rgba(73,47,32,.18)!important;
}

body .rgs-cart-drawer-head > span{
  display:none!important;
}

body .rgs-cart-drawer-head h3{
  color:#2d1d14!important;
}

body .rgs-cart-drawer-head .rgs-count{
  background:#664632!important;
  color:#f1dfcf!important;
}

/* Крестик */
body .rgs-cart-close{
  border:1px solid rgba(73,47,32,.18)!important;
  background:rgba(225,207,190,.18)!important;
  color:#5c3e2b!important;
}

body .rgs-cart-close:hover{
  background:rgba(225,207,190,.34)!important;
  color:#2d1d14!important;
}

/* Профиль в корзине */
body .rgs-cart-account{
  border:1px solid rgba(73,47,32,.14)!important;
  background:rgba(229,213,198,.18)!important;
}

body .rgs-cart-account-avatar{
  border-color:rgba(73,47,32,.18)!important;
  background:#8d725f!important;
}

body .rgs-cart-account-copy > span,
body .rgs-cart-balance-box > span{
  color:#745b49!important;
}

body .rgs-cart-account-name{
  color:#2d1d14!important;
}

body .rgs-cart-balance-box{
  border-left-color:rgba(73,47,32,.18)!important;
}

body .rgs-cart-account-balance{
  color:#814c2d!important;
}

body .rgs-cart-balance-box small{
  color:#725945!important;
}

/* Пустая корзина */
body .rgs-cart-empty{
  color:#735b49!important;
}

/* Строки товаров */
body .rgs-cart-row{
  border-bottom-color:rgba(73,47,32,.16)!important;
}

body .rgs-cart-thumb{
  border:1px solid rgba(73,47,32,.10)!important;
  background:
    radial-gradient(circle at 50% 38%,rgba(247,228,210,.20),transparent 66%),
    rgba(229,213,198,.08)!important;
}

body .rgs-cart-name{
  color:#2d1d14!important;
}

body .rgs-cart-price{
  color:#7e4b30!important;
}

body .rgs-qty{
  border-color:rgba(73,47,32,.18)!important;
  background:rgba(229,213,198,.12)!important;
}

body .rgs-qty button{
  color:#5f4332!important;
}

body .rgs-qty span{
  color:#2d1d14!important;
}

body .rgs-remove{
  color:#694a37!important;
}

/* Итоги */
body .rgs-summary{
  color:#2d1d14!important;
}

body .rgs-sumrow.total{
  border-top-color:rgba(73,47,32,.18)!important;
  color:#2d1d14!important;
}

/* Основная кнопка */
body .rgs-primary{
  border:1px solid #664632!important;
  background:#664632!important;
  color:#f1dfcf!important;
}

body .rgs-primary:hover{
  border-color:#8e5735!important;
  background:#75503a!important;
  color:#fff0e2!important;
}

/* Вторичная */
body .rgs-secondary{
  border-color:rgba(73,47,32,.20)!important;
  background:rgba(229,213,198,.10)!important;
  color:#5e4433!important;
}

body .rgs-secondary:hover{
  background:rgba(229,213,198,.22)!important;
}

/* Checkout */
body .rgs-checkout{
  border-top-color:rgba(73,47,32,.18)!important;
}

body .rgs-field label{
  color:#725945!important;
}

body .rgs-input,
body .rgs-select,
body .rgs-textarea{
  border-color:rgba(73,47,32,.18)!important;
  background:#c3ad99!important;
  color:#2d1d14!important;
}

body .rgs-input:focus,
body .rgs-select:focus,
body .rgs-textarea:focus{
  border-color:rgba(142,87,53,.48)!important;
  outline:none!important;
}

body .rgs-cart-footnote{
  border-top-color:rgba(73,47,32,.16)!important;
  color:rgba(74,51,37,.45)!important;
}


/* Баланс в профиле — жирнее и заметнее */
.rgs-shop .rgs-account-balance,
body > .rgs-shop.rgs-detached .rgs-account-balance{
  color:#8a4f2d!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:.01em!important;
}


/* Блики боковых фонарей — ближе к внешним краям */
.rgs-lamp-glow-left{
  left:-1.2%!important;
}

.rgs-lamp-glow-right{
  right:-1.2%!important;
}


/* Баланс слева — высокий контраст */
.rgs-shop .rgs-account-balance,
body > .rgs-shop.rgs-detached .rgs-account-balance{
  display:inline-block!important;
  width:max-content!important;
  margin-top:2px!important;
  padding:2px 5px!important;
  border-radius:4px!important;
  background:rgba(245,225,207,.18)!important;
  color:#4b2817!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.1!important;
  letter-spacing:0!important;
  text-shadow:0 1px 0 rgba(255,244,232,.16)!important;
}


/* Баланс слева — без рамки и подложки */
.rgs-shop .rgs-account-balance,
body > .rgs-shop.rgs-detached .rgs-account-balance{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
  color:#4b2817!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.1!important;
}


/* Редактор магазина — без черных кнопок */
body .rgs-modal .rgs-tabs button,
body .rgs-manager .rgs-tabs button{
  border:1px solid rgba(73,47,32,.18)!important;
  background:rgba(225,207,190,.16)!important;
  color:#5f4332!important;
}

body .rgs-modal .rgs-tabs button:hover,
body .rgs-manager .rgs-tabs button:hover{
  border-color:rgba(142,87,53,.34)!important;
  background:rgba(225,207,190,.28)!important;
  color:#3d291d!important;
}

body .rgs-modal .rgs-tabs button.active,
body .rgs-manager .rgs-tabs button.active{
  border-color:#76503a!important;
  background:#76503a!important;
  color:#f1dfcf!important;
}

/* Основные кнопки внутри manager */
body .rgs-modal .rgs-primary,
body .rgs-manager .rgs-primary{
  border:1px solid #76503a!important;
  background:#76503a!important;
  color:#f1dfcf!important;
}

body .rgs-modal .rgs-primary:hover,
body .rgs-manager .rgs-primary:hover{
  border-color:#8e5735!important;
  background:#855a40!important;
  color:#fff0e2!important;
}

/* Вторичные служебные кнопки */
body .rgs-modal .rgs-secondary,
body .rgs-manager .rgs-secondary,
body .rgs-bulk-gift-toggle{
  border-color:rgba(73,47,32,.18)!important;
  background:rgba(225,207,190,.12)!important;
  color:#5f4332!important;
}

body .rgs-modal .rgs-secondary:hover,
body .rgs-manager .rgs-secondary:hover,
body .rgs-bulk-gift-toggle:hover{
  background:rgba(225,207,190,.24)!important;
  color:#3d291d!important;
}


/* Выпадающие списки — в общей latte-палитре */
.rgs-shop select,
.rgs-modal select,
.rgs-manager select,
.rgs-cart-drawer select{
  border-color:rgba(73,47,32,.18)!important;
  background-color:#c3ad99!important;
  color:#2d1d14!important;
  outline:none!important;
  box-shadow:none!important;
}

.rgs-shop select:focus,
.rgs-modal select:focus,
.rgs-manager select:focus,
.rgs-cart-drawer select:focus{
  border-color:#8e5735!important;
  outline:none!important;
  box-shadow:0 0 0 1px rgba(142,87,53,.18)!important;
}

.rgs-shop select option,
.rgs-modal select option,
.rgs-manager select option,
.rgs-cart-drawer select option{
  background:#c3ad99!important;
  color:#2d1d14!important;
}

.rgs-shop select option:checked,
.rgs-modal select option:checked,
.rgs-manager select option:checked,
.rgs-cart-drawer select option:checked{
  background:#76503a!important;
  color:#f1dfcf!important;
}


/* =========================================================
   NYC GIFT SHOP — финальная облегченная вывеска
   ========================================================= */

@font-face{
  font-family:"FIATADVERT01";
  src:url("https://forumstatic.ru/files/001c/c6/3d/83844.woff?v=1") format("woff");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

.rgs-sign-copy{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  width:100%!important;
  height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  transform:translate(-50%,-50%)!important;
  text-align:center!important;
  pointer-events:none!important;
  opacity:1!important;
  filter:none!important;
  animation:none!important;
}

.rgs-sign-title{
  position:relative!important;
  display:inline-block!important;
  margin:0!important;
  color:#ffd4a0!important;
  font-family:"FIATADVERT01","Segoe UI Light","Helvetica Neue",Arial,sans-serif!important;
  font-size:60px!important;
  font-weight:400!important;
  line-height:.86!important;
  letter-spacing:.12em!important;
  transform:scaleX(.86) scaleY(.82)!important;
  transform-origin:center center!important;
  -webkit-text-stroke:0!important;
  text-shadow:
    0 0 1px rgba(255,241,219,.95),
    0 0 3px rgba(255,206,142,.82),
    0 0 6px rgba(255,166,72,.58),
    0 0 11px rgba(255,132,34,.34)!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  opacity:1!important;
  animation:none!important;
}

/* Отдельный слой свечения: меняется только opacity, а не filter всего заголовка. */
.rgs-sign-title:after{
  content:"NYC GIFT SHOP";
  position:absolute;
  inset:0;
  z-index:-1;
  color:transparent;
  font:inherit;
  letter-spacing:inherit;
  white-space:nowrap;
  text-shadow:
    0 0 5px rgba(255,184,91,.60),
    0 0 12px rgba(244,132,30,.36),
    0 0 20px rgba(218,91,16,.15);
  opacity:.46;
  animation:rgsAmberGlowOpacity 3.4s ease-in-out infinite;
  will-change:opacity,transform;
  pointer-events:none;
}

@keyframes rgsAmberGlowOpacity{
  0%,100%{opacity:.34;transform:scale(1)}
  50%{opacity:.70;transform:scale(1.008)}
}

.rgs-sign-subtitle{
  position:absolute!important;
  top:34px!important;
  left:50%!important;
  width:100%!important;
  margin:0!important;
  transform:translateX(-50%)!important;
  color:#b89a7c!important;
  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif!important;
  font-size:6px!important;
  font-weight:400!important;
  letter-spacing:.17em!important;
  text-shadow:0 1px 3px rgba(0,0,0,.60)!important;
  filter:none!important;
  animation:none!important;
}

/* Весь интерфейс магазина — sans-serif */
.rgs-shop,
.rgs-shop button,
.rgs-shop input,
.rgs-shop select,
.rgs-shop textarea,
.rgs-cart-drawer,
.rgs-cart-drawer button,
.rgs-cart-drawer input,
.rgs-cart-drawer select,
.rgs-cart-drawer textarea,
.rgs-gifts-history,
.rgs-gifts-history button,
.rgs-modal,
.rgs-modal button,
.rgs-modal input,
.rgs-modal select,
.rgs-modal textarea,
.rgs-manager,
.rgs-manager button,
.rgs-manager input,
.rgs-manager select,
.rgs-manager textarea,
.rgs-side-head b,
.rgs-product-title-row h4,
.rgs-cart-drawer-head h3,
.rgs-gifts-history-title,
.rgs-gifts-history-name,
.rgs-manager h2,
.rgs-manager h3,
.rgs-manager h4,
.rgs-modal h2,
.rgs-modal h3,
.rgs-modal h4,
.rgs-receipt h2,
.rgs-receipt h3{
  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif!important;
}

.rgs-product-title-row h4,
.rgs-gifts-history-name{
  font-weight:600!important;
}


/* =========================================================
   Более компактные карточки товаров
   ========================================================= */

/* Укорачиваем верхнюю часть карточки */
.rgs-product-media{
  height:146px!important;
}

.rgs-product-media img{
  max-height:126px!important;
}

/* Тень под подарком немного выше */
.rgs-product-media:after{
  bottom:9px!important;
  height:10px!important;
}

/* Укорачиваем текстовый блок */
.rgs-product-info{
  min-height:82px!important;
  padding:9px 10px 10px!important;
}

.rgs-product-category{
  margin-bottom:3px!important;
}

.rgs-product-title-row h4{
  padding-top:1px!important;
  line-height:1.18!important;
}

/* Кнопка корзины в карточке чуть компактнее */
.rgs-product-add{
  width:31px!important;
  height:31px!important;
}

.rgs-product-title-row{
  grid-template-columns:minmax(0,1fr) 31px!important;
  gap:7px!important;
}

/* Цена — по весу как баланс профиля */
.rgs-product-price{
  margin-top:5px!important;
  color:#4b2817!important;
  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.1!important;
  letter-spacing:0!important;
}


/* =========================================================
   NEW / LIMITED — не бейджи, а маркировка карточки
   ========================================================= */

.rgs-badge{
  left:10px!important;
  top:10px!important;

  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;

  padding:3px 6px 3px 5px!important;

  border:1px solid rgba(93,57,36,.28)!important;
  border-radius:3px!important;

  background:rgba(226,205,185,.18)!important;
  backdrop-filter:blur(2px)!important;

  color:#5b3928!important;

  font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif!important;
  font-size:6px!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;

  box-shadow:none!important;
}

/* маленькая янтарная отметка перед NEW / LIMITED */
.rgs-badge:before{
  content:""!important;
  width:4px!important;
  height:4px!important;
  flex:0 0 4px!important;

  background:#a45f36!important;
  transform:rotate(45deg)!important;
  opacity:.85!important;
}

/* при наведении на товар маркировка слегка проявляется */
.rgs-product-card:hover .rgs-badge{
  border-color:rgba(142,87,53,.42)!important;
  background:rgba(231,211,192,.25)!important;
  color:#43291d!important;
}


/* Верхний регистр для служебного интерфейса */
.rgs-side-head b,
.rgs-collections-head,
.rgs-category-sidebar-v2 .rgs-cat,
.rgs-collection-filter,
.rgs-catalog-sort .rgs-sort,
.rgs-catalog-sort .rgs-sort option,
.rgs-shop .rgs-utility-btn,
.rgs-cart-drawer-head h3,
.rgs-cart-drawer-head > span,
.rgs-cart-drawer .rgs-checkout,
.rgs-cart-drawer .rgs-cart-footnote,
.rgs-gifts-history-title,
.rgs-gifts-history-tabs button,
.rgs-modal-head b,
.rgs-manager .rgs-tabs button,
.rgs-manager h2,
.rgs-manager h3,
.rgs-manager h4,
.rgs-manager button,
.rgs-manager label > span,
.rgs-modal button,
.rgs-modal select,
.rgs-modal select option{
  text-transform:uppercase!important;
}

/* Названия подарков и пользователей оставляем обычными */
.rgs-product-title-row h4,
.rgs-cart-name,
.rgs-gifts-history-name,
.rgs-account-name,
.rgs-cart-account-name{
  text-transform:none!important;
}


/* Убираем лишний заголовок "Категории" */
.rgs-side-head > b{
  display:none!important;
}

/* После удаления заголовка немного подтягиваем список вверх */
.rgs-side-head{
  min-height:0!important;
  margin-bottom:7px!important;
}


/* Полностью убираем контейнер бывшего заголовка "Категории":
   без линии, высоты и пустого пространства */
.rgs-side-head{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}


/* Верхняя тень без filter: дешевле для отрисовки */
.rgs-shop:after{display:none!important}

/* Чуть усиливаем общий верхний отрыв корпуса */
.rgs-shop{
  box-shadow:
    0 -14px 30px rgba(0,0,0,.16),
    0 -5px 12px rgba(0,0,0,.10),
    0 38px 72px rgba(0,0,0,.30),
    0 18px 34px rgba(0,0,0,.22),
    0 5px 14px rgba(0,0,0,.15)!important;
}


/* PERFORMANCE: статичная объемная тень без больших blur-filter слоев */
.rgs-shop{
  box-shadow:
    0 -16px 32px rgba(0,0,0,.15),
    0 -5px 12px rgba(0,0,0,.09),
    0 38px 72px rgba(0,0,0,.28),
    0 18px 34px rgba(0,0,0,.20),
    0 5px 14px rgba(0,0,0,.14)!important;
}

.rgs-shop:before,
.rgs-shop:after{
  display:none!important;
}

/* Карточки изолируем друг от друга — полезно, когда товаров станет много */
.rgs-product-card{
  contain:layout paint style;
}


/* =========================================================
   RESONANCE GIFT SHOP — COMPLETE FORUM DESIGN OVERRIDE
   reference header: https://forumstatic.ru/files/001c/cf/a2/65794.png
   neutral warm brown / greige, no pink cast
   ========================================================= */

/* ---------------------------------------------------------
   PALETTE
--------------------------------------------------------- */
:root{
  --rgs-bg:#aaa096;
  --rgs-panel:#78645a;
  --rgs-panel-2:#b6a89d;
  --rgs-card:#bdb2a8;
  --rgs-media:#b4a89e;
  --rgs-ink:#30241f;
  --rgs-muted:#6c5c53;
  --rgs-dark:#5d453a;
  --rgs-dark-2:#49362e;
  --rgs-accent:#7a5141;
  --rgs-accent-soft:#916957;
  --rgs-line:rgba(66,47,39,.24);
}

/* ---------------------------------------------------------
   TITLE: STATIC — NO BLINK
--------------------------------------------------------- */
.rgs-sign-copy,
.rgs-sign-title{
  animation:none!important;
}

.rgs-sign-title:before,
.rgs-sign-title:after{
  animation:none!important;
}

/* keep the existing glow, but static */
.rgs-sign-title:after{
  opacity:.42!important;
  transform:none!important;
}

/* ---------------------------------------------------------
   LAMPS: HIGHER + BLINKING AGAIN
   IMPORTANT: no !important on opacity — animation must own it
--------------------------------------------------------- */
.rgs-lamp-glow-left,
.rgs-lamp-glow-right{
  top:10%!important;
  width:12%!important;
  opacity:.30;
  filter:blur(10px) brightness(1.04)!important;
  animation:rgsLampPulseForum 3.9s ease-in-out infinite!important;
  will-change:opacity,transform;
}

.rgs-lamp-glow-left{
  left:-1.2%!important;
  animation-delay:-.7s!important;
}

.rgs-lamp-glow-right{
  right:-1.2%!important;
  animation-delay:-2.4s!important;
}

@keyframes rgsLampPulseForum{
  0%,100%{opacity:.20;transform:scale(.93)}
  22%{opacity:.48;transform:scale(1.02)}
  44%{opacity:.27;transform:scale(.97)}
  67%{opacity:.68;transform:scale(1.09)}
  84%{opacity:.37;transform:scale(1.01)}
}

/* ---------------------------------------------------------
   OUTER BODY — NO WHITE RIM
--------------------------------------------------------- */
body .rgs-shop,
body > .rgs-shop.rgs-detached{
  border:0!important;
  outline:0!important;
  background:var(--rgs-bg)!important;
  box-shadow:
    0 30px 62px rgba(28,20,17,.28),
    0 12px 26px rgba(28,20,17,.18)!important;
}

body .rgs-shop:before,
body .rgs-shop:after{
  display:none!important;
}

/* ---------------------------------------------------------
   MAIN BODY
--------------------------------------------------------- */
body .rgs-shop-main-v2,
body .rgs-shop-main:not(.rgs-shop-main-v2){
  background:var(--rgs-bg)!important;
  border:0!important;
}

body .rgs-catalog-v2,
body .rgs-shop-main:not(.rgs-shop-main-v2) > .rgs-catalog{
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.055),transparent 30%),
    #aea39a!important;
  border:0!important;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */
body .rgs-category-sidebar-v2,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2){
  background:
    linear-gradient(180deg,#806b60 0%,#725e55 100%)!important;
  border:0!important;
  border-right:1px solid rgba(54,39,33,.24)!important;
}

body .rgs-side-head{
  border-bottom-color:rgba(49,35,29,.24)!important;
}

body .rgs-side-head span,
body .rgs-side-note span{
  color:#c2b6ad!important;
}

body .rgs-side-head b,
body .rgs-category-title{
  color:#eee7e1!important;
}

body .rgs-side-note{
  border-top-color:rgba(49,35,29,.24)!important;
}

body .rgs-side-note p{
  color:#d0c5bd!important;
}

/* category buttons */
body .rgs-category-sidebar-v2 .rgs-cat,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat{
  border:1px solid rgba(47,34,29,.13)!important;
  background:rgba(255,255,255,.035)!important;
  color:#e3dad4!important;
  box-shadow:none!important;
}

body .rgs-category-sidebar-v2 .rgs-cat:hover,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat:hover{
  border-color:rgba(45,31,26,.24)!important;
  background:rgba(255,255,255,.075)!important;
  color:#fff!important;
}

/* active category — NOT WHITE */
body .rgs-category-sidebar-v2 .rgs-cat.active,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat.active{
  border-color:#60473d!important;
  background:#60473d!important;
  color:#f0e9e4!important;
  box-shadow:none!important;
}

body .rgs-category-sidebar-v2 .rgs-cat em,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat em{
  color:#b9aaa1!important;
}

body .rgs-category-sidebar-v2 .rgs-cat.active em,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat.active em{
  color:#d8cec7!important;
}

body .rgs-cat-icon{
  color:#c18a68!important;
}

/* ---------------------------------------------------------
   ACCOUNT CHIP
--------------------------------------------------------- */
body .rgs-account-chip,
body .rgs-category-sidebar-v2 .rgs-account-chip--sidebar,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-account-chip--sidebar{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body .rgs-account-name{
  color:#2e231f!important;
}

body .rgs-category-sidebar-v2 .rgs-account-name,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-account-name{
  color:#eee6e0!important;
}

body .rgs-account-balance,
body > .rgs-shop.rgs-detached .rgs-account-balance{
  margin-top:1px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#68483a!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-weight:700!important;
}

body .rgs-category-sidebar-v2 .rgs-account-balance,
body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-account-balance{
  color:#ddc8b9!important;
}

/* ---------------------------------------------------------
   SEARCH / SORT / TOP ACTIONS
--------------------------------------------------------- */
body .rgs-catalog-toolbar{
  border-bottom-color:rgba(64,46,38,.19)!important;
}

body .rgs-catalog-search,
body .rgs-catalog-sort .rgs-sort,
body .rgs-toolbar .rgs-search-line,
body .rgs-toolbar .rgs-sort-line{
  border:1px solid rgba(65,47,39,.22)!important;
  background:#bcb0a6!important;
  box-shadow:none!important;
}

body .rgs-catalog-search .rgs-search,
body .rgs-catalog-sort .rgs-sort,
body .rgs-toolbar .rgs-search,
body .rgs-toolbar .rgs-sort{
  color:#3e302a!important;
}

body .rgs-catalog-search .rgs-search::placeholder{
  color:#76675f!important;
}

body .rgs-catalog-sort > span{
  color:#67574f!important;
}

body .rgs-utility-btn,
body .rgs-toolbar .rgs-text-action{
  border:1px solid rgba(64,46,38,.20)!important;
  background:#aa9b90!important;
  color:#4e3d35!important;
  box-shadow:none!important;
}

body .rgs-utility-btn:hover,
body .rgs-toolbar .rgs-text-action:hover{
  border-color:#65493d!important;
  background:#65493d!important;
  color:#f3ece7!important;
}

body .rgs-cart-icon{
  border:1px solid #674a3d!important;
  background:#674a3d!important;
  color:#f4ede8!important;
  box-shadow:none!important;
}

body .rgs-cart-icon:hover{
  border-color:#51382f!important;
  background:#51382f!important;
}

body .rgs-cart-icon .rgs-count,
body .rgs-count{
  border-color:var(--rgs-bg)!important;
  background:#79513f!important;
  color:#f5eee9!important;
}

/* ---------------------------------------------------------
   PRODUCT CARDS
--------------------------------------------------------- */
body .rgs-product-card,
body .rgs-object{
  border:1px solid rgba(64,46,38,.18)!important;
  background:#bbb0a7!important;
  box-shadow:none!important;
}

body .rgs-product-card:hover,
body .rgs-object:hover{
  border-color:rgba(71,48,39,.34)!important;
  background:#beb3aa!important;
  box-shadow:0 8px 18px rgba(48,34,28,.10)!important;
}

body .rgs-product-media,
body .rgs-object-stage{
  background:
    radial-gradient(circle at 50% 40%,rgba(255,255,255,.15),transparent 44%),
    #afa49a!important;
}

body .rgs-product-media:after{
  background:rgba(40,30,25,.10)!important;
}

body .rgs-product-category,
body .rgs-object-copy > span{
  color:#76675f!important;
}

body .rgs-product-title-row h4,
body .rgs-object-copy h4{
  color:#352822!important;
}

body .rgs-product-info p,
body .rgs-object-copy p{
  color:#6b5c54!important;
}

body .rgs-product-price,
body .rgs-object-price{
  color:#674638!important;
}

body .rgs-product-add,
body .rgs-object-add{
  border:1px solid rgba(68,47,39,.23)!important;
  background:#b4a79d!important;
  color:#634538!important;
  box-shadow:none!important;
}

body .rgs-product-add:hover,
body .rgs-object-add:hover{
  border-color:#60443a!important;
  background:#60443a!important;
  color:#f5eee9!important;
}

body .rgs-badge{
  background:#665047!important;
  color:#e8ddd5!important;
}

/* ---------------------------------------------------------
   CART — FULL INTERFACE
--------------------------------------------------------- */
body .rgs-cart-drawer{
  border:1px solid rgba(62,44,36,.24)!important;
  background:#b7a99e!important;
  color:#342721!important;
  box-shadow:
    0 28px 58px rgba(28,20,17,.25),
    0 10px 24px rgba(28,20,17,.15)!important;
}

body .rgs-cart-close{
  border:1px solid rgba(62,44,36,.20)!important;
  background:#aa9b90!important;
  color:#45342d!important;
}

body .rgs-cart-close:hover{
  background:#9c8b80!important;
}

body .rgs-cart-drawer-head,
body .rgs-cart-row,
body .rgs-summary,
body .rgs-cart-footnote,
body .rgs-checkout{
  border-color:rgba(62,44,36,.19)!important;
}

body .rgs-cart-drawer-head > span,
body .rgs-cart-price,
body .rgs-sumrow,
body .rgs-cart-footnote{
  color:#68584f!important;
}

body .rgs-cart-drawer-head h3,
body .rgs-cart-name,
body .rgs-sumrow.total{
  color:#30231e!important;
}

body .rgs-cart-thumb{
  background:#a89b91!important;
}

body .rgs-qty{
  border-color:rgba(62,44,36,.22)!important;
}

body .rgs-qty button{
  color:#49372f!important;
}

body .rgs-remove{
  color:#49372f!important;
}

body .rgs-primary{
  border:0!important;
  background:#694a3c!important;
  color:#f3ebe6!important;
}

body .rgs-primary:hover{
  background:#563b32!important;
}

body .rgs-secondary{
  border:1px solid rgba(62,44,36,.22)!important;
  background:#aa9c91!important;
  color:#49372f!important;
}

body .rgs-secondary:hover{
  background:#9f9085!important;
}

/* ---------------------------------------------------------
   ALL INPUTS — CART + MANAGER
--------------------------------------------------------- */
body .rgs-input,
body .rgs-select,
body .rgs-textarea,
body .rgs-modal input,
body .rgs-modal select,
body .rgs-modal textarea,
body .rgs-cart-drawer input,
body .rgs-cart-drawer select,
body .rgs-cart-drawer textarea{
  border:1px solid rgba(63,45,37,.22)!important;
  outline:0!important;
  background:#c5b9af!important;
  color:#392b25!important;
  box-shadow:none!important;
}

body .rgs-input:focus,
body .rgs-select:focus,
body .rgs-textarea:focus,
body .rgs-modal input:focus,
body .rgs-modal select:focus,
body .rgs-modal textarea:focus,
body .rgs-cart-drawer input:focus,
body .rgs-cart-drawer select:focus,
body .rgs-cart-drawer textarea:focus{
  border-color:#745343!important;
  background:#c9bdb3!important;
}

body .rgs-modal select option,
body .rgs-cart-drawer select option{
  background:#c5b9af!important;
  color:#392b25!important;
}

/* ---------------------------------------------------------
   SHOP MANAGER — FULL RESTYLE
--------------------------------------------------------- */
body .rgs-layer{
  background:rgba(25,19,16,.70)!important;
  backdrop-filter:blur(5px)!important;
}

body .rgs-modal{
  border:1px solid rgba(60,42,35,.26)!important;
  background:#b4a69b!important;
  color:#342721!important;
  box-shadow:0 30px 88px rgba(20,14,12,.36)!important;
}

body .rgs-modal-head{
  border-bottom:1px solid rgba(60,42,35,.20)!important;
  background:#aa9b90!important;
}

body .rgs-modal-head b{
  color:#362821!important;
}

body .rgs-close{
  color:#3d2e27!important;
}

body .rgs-modal-body{
  background:#b4a69b!important;
}

/* manager tabs */
body .rgs-tabs{
  border:0!important;
}

body .rgs-tabs button{
  border:1px solid rgba(60,42,35,.21)!important;
  background:#ac9d92!important;
  color:#5a4941!important;
  box-shadow:none!important;
}

body .rgs-tabs button:hover{
  background:#a19085!important;
}

body .rgs-tabs button.active{
  border-color:#694a3c!important;
  background:#694a3c!important;
  color:#f2eae5!important;
}

/* manager sections */
body .rgs-box{
  border:1px solid rgba(60,42,35,.20)!important;
  background:#b8aaa0!important;
  box-shadow:none!important;
}

body .rgs-box h3{
  color:#3b2d27!important;
}

body .rgs-form label,
body .rgs-seasonal-note,
body .rgs-collection-admin-meta{
  color:#695950!important;
}

/* rows / catalog inside manager */
body .rgs-admin-row,
body .rgs-cat-admin{
  border:1px solid rgba(60,42,35,.20)!important;
  background:#b2a49a!important;
  box-shadow:none!important;
}

body .rgs-admin-thumb{
  background:#a69990!important;
}

body .rgs-admin-actions button{
  border:1px solid rgba(60,42,35,.22)!important;
  background:#aa9c91!important;
  color:#43322b!important;
  box-shadow:none!important;
}

body .rgs-admin-actions button:hover{
  background:#927f73!important;
}

/* seasonal / collections addon */
body .rgs-collections-wrap{
  border-top-color:rgba(60,42,35,.20)!important;
}

body .rgs-collections-head{
  color:#3c2d27!important;
}

body .rgs-collection-filter{
  border:1px solid rgba(60,42,35,.20)!important;
  background:#ad9f94!important;
  color:#59473f!important;
}

body .rgs-collection-filter:hover{
  background:#a6978c!important;
}

body .rgs-collection-filter.active{
  border-color:#684a3c!important;
  background:#684a3c!important;
  color:#efe7e2!important;
}

body .rgs-collection-status{
  background:#9d8c80!important;
  color:#46352e!important;
}

body .rgs-collection-status.active{
  background:#684a3c!important;
  color:#efe7e2!important;
}

body .rgs-new-days-box{
  border:1px solid rgba(60,42,35,.20)!important;
  background:#afa096!important;
}

/* manager primary/secondary buttons, including add gift */
body .rgs-manager button,
body .rgs-modal .rgs-primary,
body .rgs-modal .rgs-secondary,
body .rgs-modal .rgs-collection-form-actions button{
  box-shadow:none!important;
}

body .rgs-modal .rgs-primary,
body .rgs-modal .rgs-collection-form-actions button{
  border-color:#694a3c!important;
  background:#694a3c!important;
  color:#f2eae5!important;
}

body .rgs-modal .rgs-primary:hover,
body .rgs-modal .rgs-collection-form-actions button:hover{
  background:#573c32!important;
}

/* ---------------------------------------------------------
   RECEIPT
--------------------------------------------------------- */
body .rgs-receipt{
  border:1px solid rgba(60,42,35,.24)!important;
  background:#b9aca1!important;
  color:#342721!important;
  box-shadow:0 28px 80px rgba(20,14,12,.34)!important;
}

body .rgs-receipt-meta,
body .rgs-receipt-total{
  border-color:#76675e!important;
}

body .rgs-receipt-note{
  color:#67574e!important;
}

/* ---------------------------------------------------------
   EMPTY / STATUS
--------------------------------------------------------- */
body .rgs-empty{
  color:#6b5b52!important;
}

body .rgs-empty b{
  color:#392b25!important;
}

body .rgs-empty-edit{
  color:#68493b!important;
}

body .rgs-status{
  border-color:rgba(60,42,35,.20)!important;
  background:#b4a69b!important;
}

body .rgs-status.err{
  color:#71382f!important;
}

body .rgs-status.ok{
  color:#46523f!important;
}

/* ---------------------------------------------------------
   REMOVE LIGHT/WHITE EDGES EVERYWHERE
--------------------------------------------------------- */
body .rgs-shop *,
body .rgs-modal *,
body .rgs-cart-drawer *,
body .rgs-receipt *{
  outline-color:transparent;
}

body .rgs-shop button,
body .rgs-modal button,
body .rgs-cart-drawer button{
  text-shadow:none!important;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */
@media(max-width:760px){
  body .rgs-category-sidebar-v2,
  body .rgs-category-sidebar:not(.rgs-category-sidebar-v2){
    border-right:0!important;
    border-bottom:1px solid rgba(54,39,33,.24)!important;
  }

  .rgs-lamp-glow-left,
  .rgs-lamp-glow-right{
    top:9%!important;
  }
}


/* =========================================================
   FINAL CARD / CATEGORY POSITION FIX
   ========================================================= */

/* product card becomes positioning context */
html body .rgs-product-card{
  position:relative!important;
}

/* cart button back to bottom-right corner, like the original shop */
html body .rgs-product-card .rgs-product-add{
  position:absolute!important;
  right:11px!important;
  bottom:11px!important;
  top:auto!important;
  left:auto!important;
  width:31px!important;
  height:31px!important;
  margin:0!important;
  z-index:8!important;
}

/* the title no longer reserves a separate grid column for the cart */
html body .rgs-product-card .rgs-product-title-row{
  display:block!important;
  grid-template-columns:none!important;
  padding-right:0!important;
}

/* reserve room at the bottom so price/text never collide with cart */
html body .rgs-product-card .rgs-product-info{
  position:relative!important;
  min-height:91px!important;
  padding:9px 50px 12px 10px!important;
}

/* legacy card layout: keep its cart in the same bottom-right position */
html body .rgs-object{
  position:relative!important;
}

html body .rgs-object .rgs-object-add{
  position:absolute!important;
  right:11px!important;
  bottom:11px!important;
  top:auto!important;
  left:auto!important;
  margin:0!important;
  z-index:8!important;
}

/* hard final category styling: no pale/white active button */
html body > .rgs-shop.rgs-detached .rgs-category-sidebar-v2 .rgs-cat,
html body #resonance-gift-shop .rgs-category-sidebar-v2 .rgs-cat{
  border:1px solid rgba(47,34,29,.13)!important;
  background:rgba(255,255,255,.035)!important;
  color:#e3dad4!important;
  box-shadow:none!important;
}

html body > .rgs-shop.rgs-detached .rgs-category-sidebar-v2 .rgs-cat:hover,
html body #resonance-gift-shop .rgs-category-sidebar-v2 .rgs-cat:hover{
  border-color:rgba(45,31,26,.24)!important;
  background:rgba(255,255,255,.075)!important;
  color:#fff!important;
}

html body > .rgs-shop.rgs-detached .rgs-category-sidebar-v2 .rgs-cat.active,
html body #resonance-gift-shop .rgs-category-sidebar-v2 .rgs-cat.active{
  border-color:#594139!important;
  background:#594139!important;
  color:#f1e9e4!important;
  box-shadow:inset 3px 0 0 #9a6b54!important;
}


/* =========================================================
   RESONANCE GIFT SHOP — FINAL OVERRIDE
   greige / taupe palette
   header grain + dust
   no overlay title
   only side lamps animate
   product cart restored to normal grid
   ========================================================= */

/* ---------------------------------------------------------
   FINAL PALETTE
--------------------------------------------------------- */
:root{
  --rgs-bg:#a69f99;
  --rgs-panel:#6b5b53;
  --rgs-panel-2:#b1a9a3;
  --rgs-card:#beb7b1;
  --rgs-media:#b2aaa4;
  --rgs-ink:#302722;
  --rgs-muted:#665a53;
  --rgs-dark:#59453b;
  --rgs-dark-2:#47372f;
  --rgs-accent:#93684f;
  --rgs-accent-soft:#a17a64;
  --rgs-line:rgba(53,40,34,.22);
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
html body .rgs-storefront{
  position:relative!important;
  overflow:hidden!important;
  background:#29231f!important;
}

/* remove generated title/subtitle completely */
html body .rgs-sign-copy,
html body .rgs-sign-title,
html body .rgs-sign-subtitle{
  display:none!important;
  visibility:hidden!important;
  animation:none!important;
}

/* grain + fine dust */
html body .rgs-storefront:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.17;
  mix-blend-mode:soft-light;
  background:
    radial-gradient(circle at 7% 19%,rgba(255,245,226,.28) 0 1px,transparent 1.8px),
    radial-gradient(circle at 15% 63%,rgba(238,218,196,.18) 0 1px,transparent 1.7px),
    radial-gradient(circle at 24% 35%,rgba(255,245,226,.18) 0 1px,transparent 1.6px),
    radial-gradient(circle at 31% 79%,rgba(224,203,184,.16) 0 1px,transparent 1.7px),
    radial-gradient(circle at 42% 16%,rgba(255,245,226,.20) 0 1px,transparent 1.8px),
    radial-gradient(circle at 51% 56%,rgba(235,214,193,.18) 0 1px,transparent 1.6px),
    radial-gradient(circle at 61% 27%,rgba(255,245,226,.17) 0 1px,transparent 1.7px),
    radial-gradient(circle at 70% 72%,rgba(230,208,188,.15) 0 1px,transparent 1.6px),
    radial-gradient(circle at 79% 38%,rgba(255,245,226,.19) 0 1px,transparent 1.7px),
    radial-gradient(circle at 89% 18%,rgba(239,218,196,.18) 0 1px,transparent 1.7px),
    radial-gradient(circle at 94% 68%,rgba(255,245,226,.14) 0 1px,transparent 1.6px),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.014) 0 1px,
      rgba(0,0,0,.018) 1px 2px,
      transparent 2px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.010) 0 1px,
      rgba(0,0,0,.014) 1px 2px,
      transparent 2px 3px
    );
}

/* existing soft cinematic shade stays under lamps */
html body .rgs-storefront:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:
    linear-gradient(180deg,rgba(18,13,10,.08),transparent 24%),
    linear-gradient(0deg,rgba(20,14,11,.13),transparent 23%),
    radial-gradient(circle at 50% 50%,transparent 48%,rgba(19,13,10,.08) 100%)!important;
}

/* ---------------------------------------------------------
   SIDE LAMPS — ONLY THESE ANIMATE
--------------------------------------------------------- */
html body .rgs-lamp-glow-left,
html body .rgs-lamp-glow-right{
  display:block!important;
  top:10%!important;
  width:12%!important;
  opacity:.30;
  filter:blur(10px) brightness(1.04)!important;
  animation:rgsLampPulseFinal 4.15s ease-in-out infinite!important;
  will-change:opacity,transform;
  z-index:3!important;
}

html body .rgs-lamp-glow-left{
  left:-1.0%!important;
  animation-delay:-.65s!important;
}

html body .rgs-lamp-glow-right{
  right:-1.0%!important;
  animation-delay:-2.55s!important;
}

@keyframes rgsLampPulseFinal{
  0%,100%{opacity:.20;transform:scale(.94)}
  22%{opacity:.46;transform:scale(1.02)}
  43%{opacity:.27;transform:scale(.98)}
  68%{opacity:.66;transform:scale(1.08)}
  86%{opacity:.36;transform:scale(1.01)}
}

/* ---------------------------------------------------------
   SHOP BODY
--------------------------------------------------------- */
html body .rgs-shop,
html body > .rgs-shop.rgs-detached{
  border:0!important;
  outline:0!important;
  background:#a69f99!important;
  box-shadow:
    0 30px 62px rgba(27,20,17,.25),
    0 12px 26px rgba(27,20,17,.15)!important;
}

html body .rgs-shop-main-v2,
html body .rgs-shop-main:not(.rgs-shop-main-v2){
  background:#a69f99!important;
  border:0!important;
}

html body .rgs-catalog-v2,
html body .rgs-shop-main:not(.rgs-shop-main-v2) > .rgs-catalog{
  background:
    radial-gradient(circle at 20% 0%,rgba(255,255,255,.055),transparent 30%),
    #aea7a1!important;
  border:0!important;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */
html body .rgs-category-sidebar-v2,
html body .rgs-category-sidebar:not(.rgs-category-sidebar-v2){
  background:
    linear-gradient(180deg,#716159 0%,#64544d 100%)!important;
  border-right:1px solid rgba(44,33,28,.25)!important;
}

html body .rgs-category-sidebar-v2 .rgs-cat,
html body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat{
  background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(43,31,26,.12)!important;
  color:#e5ddd8!important;
  box-shadow:none!important;
}

html body .rgs-category-sidebar-v2 .rgs-cat:hover,
html body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat:hover{
  background:rgba(255,255,255,.075)!important;
  border-color:rgba(43,31,26,.22)!important;
  color:#fff!important;
}

html body .rgs-category-sidebar-v2 .rgs-cat.active,
html body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat.active{
  background:#59453b!important;
  border-color:#59453b!important;
  color:#f1eae5!important;
  box-shadow:inset 3px 0 0 #95694f!important;
}

html body .rgs-category-sidebar-v2 .rgs-cat em,
html body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat em{
  color:#c4b8b0!important;
}

html body .rgs-category-sidebar-v2 .rgs-cat.active em,
html body .rgs-category-sidebar:not(.rgs-category-sidebar-v2) .rgs-cat.active em{
  color:#e8ddd6!important;
}

html body .rgs-cat-icon{
  color:#b98262!important;
}

/* ---------------------------------------------------------
   TOP BAR / SEARCH / BUTTONS
--------------------------------------------------------- */
html body .rgs-catalog-search,
html body .rgs-catalog-sort .rgs-sort,
html body .rgs-toolbar .rgs-search-line,
html body .rgs-toolbar .rgs-sort-line{
  background:#bbb3ad!important;
  border:1px solid rgba(58,43,36,.20)!important;
  box-shadow:none!important;
}

html body .rgs-catalog-search .rgs-search,
html body .rgs-catalog-sort .rgs-sort,
html body .rgs-toolbar .rgs-search,
html body .rgs-toolbar .rgs-sort{
  color:#40332d!important;
}

html body .rgs-catalog-search .rgs-search::placeholder{
  color:#786a63!important;
}

html body .rgs-utility-btn,
html body .rgs-toolbar .rgs-text-action{
  background:#a89e96!important;
  border:1px solid rgba(58,43,36,.18)!important;
  color:#4d3e37!important;
  box-shadow:none!important;
}

html body .rgs-utility-btn:hover,
html body .rgs-toolbar .rgs-text-action:hover{
  background:#5d473d!important;
  border-color:#5d473d!important;
  color:#f3ece7!important;
}

html body .rgs-cart-icon{
  background:#62493e!important;
  border-color:#62493e!important;
  color:#f4ede8!important;
  box-shadow:none!important;
}

html body .rgs-cart-icon:hover{
  background:#4f3a31!important;
  border-color:#4f3a31!important;
}

/* ---------------------------------------------------------
   PRODUCT CARDS
--------------------------------------------------------- */
html body .rgs-product-card,
html body .rgs-object{
  background:#beb7b1!important;
  border:1px solid rgba(58,43,36,.17)!important;
  box-shadow:none!important;
}

html body .rgs-product-card:hover,
html body .rgs-object:hover{
  background:#c3bcb6!important;
  border-color:rgba(58,43,36,.28)!important;
  box-shadow:0 8px 18px rgba(45,33,28,.09)!important;
}

html body .rgs-product-media,
html body .rgs-object-stage{
  background:
    radial-gradient(circle at 50% 38%,rgba(255,255,255,.12),transparent 45%),
    #b1aaa4!important;
}

/* ---------------------------------------------------------
   CART BUTTON IN PRODUCT CARD
   IMPORTANT: NO ABSOLUTE POSITIONING.
   Restored to the card's own grid so it cannot drift.
--------------------------------------------------------- */
html body .rgs-product-card .rgs-product-info{
  position:static!important;
  min-height:102px!important;
  padding:11px 11px 12px!important;
}

html body .rgs-product-card .rgs-product-title-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 34px!important;
  gap:8px!important;
  align-items:start!important;
  padding-right:0!important;
}

html body .rgs-product-card .rgs-product-add{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  flex:0 0 34px!important;
  margin:0!important;
  padding:0!important;
  align-self:start!important;
  justify-self:end!important;
  transform:none!important;
  z-index:auto!important;
  border:1px solid rgba(65,47,39,.23)!important;
  background:#b3aaa3!important;
  color:#60483d!important;
}

html body .rgs-product-card .rgs-product-add:hover{
  background:#59453b!important;
  border-color:#59453b!important;
  color:#f3ece7!important;
}

/* legacy card keeps its stable old absolute stage button */
html body .rgs-object{
  position:relative!important;
}

html body .rgs-object .rgs-object-add{
  position:absolute!important;
  right:10px!important;
  bottom:10px!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
}

/* ---------------------------------------------------------
   PRODUCT TEXT
--------------------------------------------------------- */
html body .rgs-product-title-row h4,
html body .rgs-object-copy h4{
  color:#332923!important;
}

html body .rgs-product-info p,
html body .rgs-object-copy p{
  color:#685b54!important;
}

html body .rgs-product-price,
html body .rgs-object-price{
  color:#65493d!important;
}

/* ---------------------------------------------------------
   CART DRAWER
--------------------------------------------------------- */
html body .rgs-cart-drawer{
  background:#b4aba5!important;
  border:1px solid rgba(58,43,36,.22)!important;
  color:#342923!important;
}

html body .rgs-cart-close{
  background:#a79d95!important;
  border-color:rgba(58,43,36,.18)!important;
  color:#46372f!important;
}

html body .rgs-primary{
  background:#5f483d!important;
  color:#f3ece7!important;
}

html body .rgs-primary:hover{
  background:#4c382f!important;
}

html body .rgs-secondary{
  background:#aaa098!important;
  border-color:rgba(58,43,36,.20)!important;
  color:#493a32!important;
}

/* ---------------------------------------------------------
   MANAGER / FORMS
--------------------------------------------------------- */
html body .rgs-modal{
  background:#b2aaa4!important;
  border:1px solid rgba(56,42,35,.23)!important;
  color:#342923!important;
}

html body .rgs-modal-head{
  background:#a69c94!important;
  border-bottom-color:rgba(56,42,35,.19)!important;
}

html body .rgs-modal-body{
  background:#b2aaa4!important;
}

html body .rgs-tabs button{
  background:#aaa098!important;
  border-color:rgba(56,42,35,.19)!important;
  color:#584941!important;
}

html body .rgs-tabs button.active{
  background:#5d473d!important;
  border-color:#5d473d!important;
  color:#f1eae5!important;
}

html body .rgs-box,
html body .rgs-admin-row,
html body .rgs-cat-admin{
  background:#b7aea8!important;
  border-color:rgba(56,42,35,.18)!important;
}

html body .rgs-input,
html body .rgs-select,
html body .rgs-textarea,
html body .rgs-modal input,
html body .rgs-modal select,
html body .rgs-modal textarea,
html body .rgs-cart-drawer input,
html body .rgs-cart-drawer select,
html body .rgs-cart-drawer textarea{
  background:#c1b8b1!important;
  border-color:rgba(56,42,35,.20)!important;
  color:#3b302a!important;
  box-shadow:none!important;
}

html body .rgs-input:focus,
html body .rgs-select:focus,
html body .rgs-textarea:focus,
html body .rgs-modal input:focus,
html body .rgs-modal select:focus,
html body .rgs-modal textarea:focus{
  background:#c6bdb6!important;
  border-color:#755748!important;
}

/* ---------------------------------------------------------
   RECEIPT
--------------------------------------------------------- */
html body .rgs-receipt{
  background:#b8afa8!important;
  border:1px solid rgba(56,42,35,.22)!important;
  color:#342923!important;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */
@media(max-width:760px){
  html body .rgs-lamp-glow-left,
  html body .rgs-lamp-glow-right{
    top:9%!important;
  }
}
