/* Cuts (Срезы) volume discount — progress bar + cart line pricing */
.hf-cuts-global-mount{
  position:sticky;top:var(--hf-cuts-sticky-top,96px);z-index:280;
  max-width:1200px;margin:0 auto;padding:10px 16px 12px;
  background:#faf7f2;border-bottom:0.5px solid #e8e0d5;
  box-sizing:border-box;transition:opacity .2s ease;
}
.hf-cuts-global-mount .hf-cuts-discount{margin-bottom:0;}
/* Каталог / карточка товара: блок скидки уже на ~30% */
.hf-cuts-global-mount .hf-cuts-discount:not(.hf-cuts-discount--drawer){
  max-width:70%;
  margin-left:auto;
  margin-right:auto;
}
/* Карточка среза: блок скидки уже на 20% от прежних 70% */
.prod-detail .pd-header-cuts-wrap .hf-cuts-global-mount .hf-cuts-discount:not(.hf-cuts-discount--drawer){
  max-width:56%;
  margin-left:auto;
  margin-right:auto;
}
.prod-section>.hf-cuts-global-mount,.prod-detail .hf-cuts-global-mount{
  max-width:none;margin-left:0;margin-right:0;
}
.hf-cuts-discount{
  background:#faf7f2;border:1px solid rgba(44,32,16,.1);border-radius:14px;
  padding:16px 16px 14px;margin-bottom:18px;
  box-shadow:0 4px 20px rgba(44,32,16,.04);
  transition:box-shadow .3s ease,border-color .3s ease;
}
.hf-cuts-discount--drawer{
  margin:0 0 14px;border-radius:12px;padding:12px 12px 10px;
  background:rgba(250,247,242,.08);border-color:rgba(212,165,85,.2);
}
.hf-cuts-discount-title{
  font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#6a5c4a;
  margin:0 0 12px;font-weight:500;
}
/* Типографика блока в каталоге / корзине (не drawer) */
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-discount-title{
  font-size:13px;
  letter-spacing:2px;
  font-weight:500;
}
.hf-cuts-discount--drawer .hf-cuts-discount-title{color:rgba(250,247,242,.65);}
.hf-cuts-bar-wrap{position:relative;padding:0 4px 22px;}
.hf-cuts-bar-track{
  height:6px;border-radius:6px;background:rgba(44,32,16,.1);
  position:relative;overflow:hidden;
}
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-bar-track{
  background-color:#c8b09a;
}
.hf-cuts-discount--drawer .hf-cuts-bar-track{background:rgba(255,255,255,.12);}
.hf-cuts-bar-fill{
  height:100%;border-radius:6px;background:linear-gradient(90deg,#8a6a3a,#d4a555);
  width:0%;transition:width .35s ease;
}
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-bar-fill{
  background:#8B6F4E;
}
.hf-cuts-milestones{
  display:flex;justify-content:space-between;position:relative;
  margin-top:-17px;pointer-events:none;
}
.hf-cuts-dot{
  width:12px;height:12px;border-radius:50%;background:rgba(44,32,16,.2);
  border:2px solid #faf7f2;box-shadow:0 1px 4px rgba(0,0,0,.08);
  transition:background .3s ease,transform .3s ease,box-shadow .3s ease;
  z-index:1;
}
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-dot{
  background-color:#c8b09a;
  border:2px solid #a08060;
  box-shadow:0 1px 3px rgba(44,32,16,.12);
}
.hf-cuts-discount--drawer .hf-cuts-dot{
  background:rgba(255,255,255,.25);border-color:rgba(30,22,12,.9);
}
.hf-cuts-dot.is-done{background:#d4a555;border-color:#faf7f2;}
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-dot.is-done{
  background-color:#c8a06a;
  border:2px solid #8B6F4E;
}
.hf-cuts-discount--drawer .hf-cuts-dot.is-done{border-color:#2c1810;}
.hf-cuts-dot.is-next{
  animation:hfCutsPulse 1.8s ease-in-out infinite;
  box-shadow:0 0 0 0 rgba(212,165,85,.45);
}
@keyframes hfCutsPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(212,165,85,.35);transform:scale(1);}
  50%{box-shadow:0 0 0 6px rgba(212,165,85,0);transform:scale(1.08);}
}
.hf-cuts-labels{
  display:flex;justify-content:space-between;gap:4px;margin-top:10px;
  font-size:9px;line-height:1.25;color:#5a4e40;text-align:center;
}
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-labels{
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  color:#4a4034;
}
.hf-cuts-discount--drawer .hf-cuts-labels{color:rgba(250,247,242,.55);}
.hf-cuts-labels span{flex:1;min-width:0;}
.hf-cuts-hint{
  font-size:12px;color:#3a3228;line-height:1.45;margin:10px 0 0;text-align:center;
}
.hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-hint{
  font-size:15px;
  font-weight:500;
  line-height:1.5;
}
.hf-cuts-discount--drawer .hf-cuts-hint{color:rgba(250,247,242,.78);}
.hf-cuts-hint strong{color:#2c2010;}
.hf-cuts-discount--drawer .hf-cuts-hint strong{color:#d4a555;}

.hf-cart-swatch{
  width:36px;height:36px;border-radius:50%;flex-shrink:0;border:2px solid rgba(255,255,255,.9);
  box-shadow:0 2px 8px rgba(0,0,0,.12);align-self:center;
}
.hf-mini-card.hf-cart-card{display:flex;flex-direction:row;align-items:center;gap:10px;text-align:left;}
.hf-cart-line-thumb-wrap{
  flex-shrink:0;width:52px;height:52px;border-radius:8px;overflow:hidden;
  background:var(--sand2);display:flex;align-items:center;justify-content:center;
}
.cart-drawer .hf-cart-line-thumb-wrap{background:#ede8e0;}
.hf-cart-line-thumb{width:100%;height:100%;object-fit:cover;display:block;}
.hf-cart-line-thumb-ph{font-size:20px;line-height:1;opacity:.55;}
.hf-cart-line-meta{
  display:flex;flex-direction:column;gap:2px;margin:2px 0 4px;max-width:100%;
  font-size:11px;line-height:1.35;color:rgba(250,247,242,.62);font-family:'Montserrat',sans-serif;
}
.cart-drawer .hf-cart-line-meta{color:#7a6c5c;}
.hf-cart-line-meta-row{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.hf-cart-price-stack{display:flex;flex-direction:column;align-items:flex-end;gap:2px;}
.hf-cart-line-sum{font-family:'Montserrat',sans-serif;font-size:15px;color:var(--gold);white-space:nowrap;}
.hf-cart-price-was{font-size:12px;color:rgba(250,247,242,.45);text-decoration:line-through;font-family:'Montserrat',sans-serif;}
.hf-cart-econ{
  font-size:12px;color:#1D9E75;text-align:right;margin-bottom:8px;
}
.hf-cart-sub{margin-top:4px;}
.hf-cart-checkout-btn{
  display:block;width:100%;margin-top:12px;padding:12px 16px;border-radius:10px;border:none;
  background:#1D9E75;color:#fff;font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;
  text-align:center;text-decoration:none;cursor:pointer;
  transition:background .3s ease,transform .15s ease;
}
.hf-cart-checkout-btn:hover{background:#178f68;color:#fff;}
.hf-cart-checkout-btn:active{transform:scale(.99);}

.cart-page-cuts-bar{
  margin-bottom:20px;max-width:70%;margin-left:auto;margin-right:auto;
}
/* Cart page only: bolder discount bar (readability + presence) */
.cart-page-cuts-bar .hf-cuts-discount{
  padding:24px 24px 22px;border-radius:16px;
  box-shadow:0 6px 28px rgba(44,32,16,.08);
  max-width:100%;
}
.cart-page-cuts-bar .hf-cuts-discount-title{
  font-size:13px;letter-spacing:2px;margin-bottom:18px;font-weight:500;color:#5a4c3c;
}
.cart-page-cuts-bar .hf-cuts-bar-wrap{padding:4px 8px 32px;}
.cart-page-cuts-bar .hf-cuts-bar-track{
  height:12px;border-radius:8px;
  background-color:#c8b09a;
  box-shadow:inset 0 1px 2px rgba(44,32,16,.08);
}
.cart-page-cuts-bar .hf-cuts-bar-fill{
  border-radius:8px;
  background:#8B6F4E;
}
.cart-page-cuts-bar .hf-cuts-milestones{margin-top:-26px;}
.cart-page-cuts-bar .hf-cuts-dot{
  width:18px;height:18px;border-width:2px;border-radius:50%;
  background-color:#c8b09a;
  border:2px solid #a08060;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.cart-page-cuts-bar .hf-cuts-dot.is-done{
  background-color:#c8a06a;
  border:2px solid #8B6F4E;
}
.cart-page-cuts-bar .hf-cuts-dot.is-next{
  animation:hfCutsPulseCart 1.8s ease-in-out infinite;
}
@keyframes hfCutsPulseCart{
  0%,100%{box-shadow:0 0 0 0 rgba(212,165,85,.4);transform:scale(1);}
  50%{box-shadow:0 0 0 8px rgba(212,165,85,0);transform:scale(1.06);}
}
.cart-page-cuts-bar .hf-cuts-labels{
  margin-top:16px;gap:6px;font-size:14px;line-height:1.35;font-weight:500;color:#4a4034;
}
.cart-page-cuts-bar .hf-cuts-hint{
  font-size:15px;line-height:1.55;margin-top:16px;font-weight:500;color:#3a3228;
}
.cart-page-cuts-bar .hf-cuts-hint strong{font-weight:600;}
.cart-page-thumb-row{display:flex;align-items:center;gap:12px;min-width:0;}
.cart-page-swatch{
  width:36px;height:36px;border-radius:50%;flex-shrink:0;border:2px solid #fff;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.cart-page-price-stack{display:flex;flex-direction:column;align-items:flex-end;gap:2px;}
.cart-page-price-was{font-size:12px;color:var(--ink3);text-decoration:line-through;}
.cart-page-econ{font-size:13px;color:#1D9E75;margin-top:8px;text-align:right;}
.cart-co-form .btn-send.cart-checkout-green{background:#1D9E75;border-color:transparent;}
.cart-co-form .btn-send.cart-checkout-green:hover{background:#178f68;}

@media(max-width:768px){
  .hf-cuts-global-mount{padding:6px 10px 8px;}
  .hf-cuts-discount:not(.hf-cuts-discount--drawer){
    padding:8px 12px;
    margin-bottom:12px;
    font-size:11px;
  }
  .hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-discount-title{
    font-size:10px;
    letter-spacing:1px;
    margin-bottom:6px;
  }
  .hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-labels{font-size:10px;line-height:1.25;}
  .hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-hint{
    font-size:11px;
    margin-top:4px;
    line-height:1.4;
  }
  .hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-bar-wrap{padding:0 2px 12px;}
  .hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-milestones{margin-top:-14px;}
  .pd-header-cuts-wrap{margin-bottom:20px;padding:8px 0;}
  .cart-page-cuts-bar .hf-cuts-discount{padding:12px 14px;}
  .cart-page-cuts-bar .hf-cuts-discount-title{font-size:10px;letter-spacing:1px;margin-bottom:8px;}
  .cart-page-cuts-bar .hf-cuts-bar-wrap{padding:2px 4px 18px;}
  .cart-page-cuts-bar .hf-cuts-labels{font-size:10px;margin-top:10px;}
  .cart-page-cuts-bar .hf-cuts-hint{font-size:11px;margin-top:6px;}
}

@media(max-width:520px){
  .hf-cuts-global-mount .hf-cuts-discount:not(.hf-cuts-discount--drawer){max-width:100%;}
  .prod-detail .pd-header-cuts-wrap .hf-cuts-global-mount .hf-cuts-discount:not(.hf-cuts-discount--drawer){max-width:100%;}
  .hf-cuts-discount:not(.hf-cuts-discount--drawer) .hf-cuts-labels{font-size:10px;}
  .cart-page-cuts-bar{max-width:100%;}
  .cart-page-cuts-bar .hf-cuts-labels{font-size:10px;}
  .cart-page-cuts-bar .hf-cuts-hint{font-size:11px;}
}
