/* KrosGear Stability & UX v7
   Shared UI for navigation drawers, quantity controls, favourites, checkout,
   order security and admin outbox. Loaded last so it intentionally supersedes
   older one-off patches. */
:root{
  --kg-v7-ink:#0b090a;
  --kg-v7-red:#c9010c;
  --kg-v7-red-dark:#a90009;
  --kg-v7-surface:#fff;
  --kg-v7-soft:#f3f5f7;
  --kg-v7-border:#d8dde3;
  --kg-v7-muted:#6b7280;
  --kg-v7-shadow:0 12px 34px rgba(11,9,10,.14);
  --kg-v7-radius:14px;
}

/* Unified navigation icons ------------------------------------------------- */
html body .kg-nav-fixed .navbar .kg-nav-icons{
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  gap:2px!important;
  margin-left:auto!important;
}
html body .kg-nav-fixed .kg-nav-icons .kg-nav-icon-link,
html body .kg-nav-fixed .kg-nav-icons [data-kg-open-favorites],
html body .kg-nav-fixed .kg-nav-icons [data-kg-open-cart]{
  position:relative!important;
  width:48px!important;
  min-width:48px!important;
  height:65px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#f8f9fa!important;
  border-radius:0!important;
  text-decoration:none!important;
  transition:background-color .16s ease,color .16s ease,transform .16s ease!important;
}
html body .kg-nav-fixed .kg-nav-icons .kg-nav-icon-link:hover,
html body .kg-nav-fixed .kg-nav-icons .kg-nav-icon-link:focus-visible{
  color:#fff!important;
  background:rgba(255,255,255,.1)!important;
  outline:2px solid rgba(255,255,255,.75)!important;
  outline-offset:-3px!important;
}
html body .kg-nav-fixed .kg-nav-icons .kg-nav-icon-link > i{
  font-size:1.12rem!important;
  line-height:1!important;
}
html body .kg-nav-fixed .kg-nav-icons .kg-nav-badge{
  position:absolute!important;
  top:10px!important;
  right:5px!important;
  left:auto!important;
  min-width:19px!important;
  height:19px!important;
  padding:0 5px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:var(--kg-v7-red)!important;
  color:#fff!important;
  font-size:.69rem!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:0 0 0 2px #343a40!important;
}
html body .kg-nav-fixed .kg-nav-icons .kg-nav-badge:empty{display:none!important;}
html body .kg-nav-icon-link.kg-counter-pulse{animation:kgCounterPulseV7 .36s ease;}
@keyframes kgCounterPulseV7{50%{transform:scale(1.12)}100%{transform:scale(1)}}

/* Unified segmented quantity control ------------------------------------- */
html body .quantity,
html body .quantity.kg-qty-control{
  width:auto!important;
  min-width:122px!important;
  height:44px!important;
  display:inline-flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  border:1px solid var(--kg-v7-border)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:var(--kg-v7-surface)!important;
  box-shadow:0 4px 14px rgba(11,9,10,.07)!important;
  isolation:isolate!important;
}
html body .quantity .input-group-btn{
  display:flex!important;
  flex:0 0 40px!important;
  width:40px!important;
  height:42px!important;
  margin:0!important;
}
html body .quantity .btn,
html body .quantity .btn-minus,
html body .quantity .btn-plus{
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding:0!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--kg-v7-ink)!important;
  font-size:1rem!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:none!important;
  outline:0!important;
  transition:background-color .14s ease,color .14s ease!important;
}
html body .quantity .btn:hover{
  background:var(--kg-v7-ink)!important;
  color:#fff!important;
}
html body .quantity .btn:active{background:var(--kg-v7-red)!important;color:#fff!important;}
html body .quantity .btn:focus-visible{
  position:relative!important;
  z-index:2!important;
  box-shadow:inset 0 0 0 2px var(--kg-v7-red)!important;
}
html body .quantity input,
html body .quantity .form-control{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  flex:0 0 42px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-left:1px solid var(--kg-v7-border)!important;
  border-right:1px solid var(--kg-v7-border)!important;
  border-radius:0!important;
  background:var(--kg-v7-soft)!important;
  color:var(--kg-v7-ink)!important;
  font-weight:800!important;
  text-align:center!important;
  box-shadow:none!important;
  appearance:textfield!important;
}
html body .quantity input::-webkit-outer-spin-button,
html body .quantity input::-webkit-inner-spin-button{appearance:none;margin:0;}
html body .kg-product-actions .quantity{margin-right:12px!important;}
html body .kg-cart-table .quantity{min-width:116px!important;margin:auto!important;}
html body .kg-drawer .quantity{height:36px!important;min-width:98px!important;border-radius:10px!important;box-shadow:none!important;}
html body .kg-drawer .quantity .input-group-btn,
html body .kg-drawer .quantity .btn{width:32px!important;min-width:32px!important;max-width:32px!important;height:34px!important;min-height:34px!important;max-height:34px!important;}
html body .kg-drawer .quantity input{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;flex-basis:34px!important;font-size:.85rem!important;}

/* Favourite state and animation ------------------------------------------ */
html body .kg-favorite-btn,
html body .kg-mini-favorite-btn,
html body #kgFavoriteBtn{
  position:relative!important;
  overflow:visible!important;
  isolation:isolate!important;
}
html body .kg-favorite-btn i.fa-heart,
html body .kg-mini-favorite-btn i.fa-heart,
html body #kgFavoriteBtn i.fa-heart{transition:transform .18s ease,color .18s ease!important;}
html body .kg-favorite-btn.is-active i.fa-heart,
html body .kg-mini-favorite-btn.is-active i.fa-heart,
html body #kgFavoriteBtn.is-active i.fa-heart,
html body #kgFavoriteBtn.active i.fa-heart{color:var(--kg-v7-red)!important;}
html body .kg-fav-animate i.fa-heart{animation:kgHeartPopV7 .48s cubic-bezier(.2,.85,.25,1.25)!important;}
html body .kg-fav-animate::before{
  content:""!important;
  position:absolute!important;
  inset:-7px!important;
  border:2px solid var(--kg-v7-red)!important;
  border-radius:999px!important;
  opacity:0!important;
  pointer-events:none!important;
  animation:kgHeartRingV7 .5s ease-out!important;
  z-index:-1!important;
}
html body .kg-fav-added::after{
  content:"♥"!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  color:var(--kg-v7-red)!important;
  font-size:.72rem!important;
  pointer-events:none!important;
  animation:kgHeartSparkV7 .58s ease-out!important;
}
@keyframes kgHeartPopV7{0%{transform:scale(1)}36%{transform:scale(.72) rotate(-8deg)}68%{transform:scale(1.34) rotate(5deg)}100%{transform:scale(1) rotate(0)}}
@keyframes kgHeartRingV7{0%{opacity:.65;transform:scale(.55)}100%{opacity:0;transform:scale(1.35)}}
@keyframes kgHeartSparkV7{0%{opacity:0;transform:translate(-50%,-35%) scale(.3)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-190%) scale(1.2)}}

/* Drawers ---------------------------------------------------------------- */
html body .kg-drawer{width:min(440px,100vw)!important;background:#fff!important;}
html body .kg-drawer__header{padding:1.05rem 1.2rem!important;background:#fff!important;}
html body .kg-drawer__body{flex:1 1 auto!important;min-height:0!important;padding:1rem 1.15rem!important;}
html body .kg-drawer__footer{
  flex:0 0 auto!important;
  padding:1rem 1.15rem calc(1rem + env(safe-area-inset-bottom))!important;
  border-top:1px solid var(--kg-v7-border)!important;
  background:#fff!important;
  box-shadow:0 -8px 22px rgba(11,9,10,.07)!important;
}
html body .kg-drawer__close{
  width:40px!important;height:40px!important;border-radius:999px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:var(--kg-v7-soft)!important;color:var(--kg-v7-ink)!important;font-size:1.55rem!important;
}
html body .kg-drawer__close:hover{background:var(--kg-v7-ink)!important;color:#fff!important;}
html body .kg-cart-drawer-item{
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  gap:.8rem!important;
  padding:.85rem!important;
  border:1px solid var(--kg-v7-border)!important;
  border-radius:var(--kg-v7-radius)!important;
  background:#fff!important;
}
html body .kg-cart-drawer-item__image{
  width:76px!important;height:76px!important;border-radius:10px!important;overflow:hidden!important;
  background:var(--kg-v7-soft)!important;display:flex!important;align-items:center!important;justify-content:center!important;
}
html body .kg-cart-drawer-item__image img{width:100%!important;height:100%!important;object-fit:contain!important;}
html body .kg-cart-drawer-item__main{min-width:0!important;}
html body .kg-cart-drawer-item__title{display:block!important;color:var(--kg-v7-ink)!important;font-weight:700!important;line-height:1.25!important;}
html body .kg-cart-drawer-item__meta{font-size:.82rem!important;color:var(--kg-v7-muted)!important;margin:.2rem 0 .55rem!important;}
html body .kg-cart-drawer-item__bottom{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:.65rem!important;flex-wrap:wrap!important;}
html body .kg-cart-drawer-item__price{font-weight:800!important;white-space:nowrap!important;}
html body .kg-cart-drawer-item__remove{border:0!important;background:transparent!important;color:#a00!important;padding:.25rem!important;}
html body .kg-drawer-total{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:.75rem!important;}
html body .kg-drawer-total strong{font-size:1.15rem!important;}
html body .kg-free-shipping-progress{margin:.55rem 0 .9rem!important;}
html body .kg-free-shipping-progress__track{height:7px!important;border-radius:999px!important;background:#e9ecef!important;overflow:hidden!important;}
html body .kg-free-shipping-progress__bar{height:100%!important;background:var(--kg-v7-red)!important;border-radius:inherit!important;transition:width .2s ease!important;}
html body .kg-free-shipping-progress small{display:block!important;margin-top:.4rem!important;color:var(--kg-v7-muted)!important;}

/* Product loading and rails ---------------------------------------------- */
html body .kg-product-skeleton{
  position:relative!important;overflow:hidden!important;border-radius:10px!important;background:#eceff2!important;min-height:18px!important;
}
html body .kg-product-skeleton::after{
  content:""!important;position:absolute!important;inset:0!important;transform:translateX(-100%)!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent)!important;
  animation:kgSkeletonV7 1.25s infinite!important;
}
@keyframes kgSkeletonV7{100%{transform:translateX(100%)}}
html body .kg-rail-skeleton{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;width:100%!important;}
html body .kg-rail-skeleton__card{height:260px!important;border-radius:14px!important;background:#eceff2!important;position:relative!important;overflow:hidden!important;}
html body .kg-rail-skeleton__card::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:kgSkeletonV7 1.25s infinite;}

/* Checkout address separation -------------------------------------------- */
html body .kg-shipping-address-toggle{
  display:flex!important;align-items:flex-start!important;gap:.7rem!important;padding:.9rem 1rem!important;
  border:1px solid var(--kg-v7-border)!important;border-radius:12px!important;background:#fff!important;cursor:pointer!important;
}
html body .kg-shipping-address-toggle input{margin-top:.22rem!important;}
html body .kg-shipping-address-panel{
  margin-top:.9rem!important;padding:1rem!important;border:1px solid var(--kg-v7-border)!important;
  border-radius:14px!important;background:var(--kg-v7-soft)!important;
}
html body .kg-shipping-address-panel[hidden]{display:none!important;}
html body .kg-checkout-method.is-selected + .kg-shipping-address-panel{border-color:var(--kg-v7-red)!important;}

/* Protected order cancellation ------------------------------------------- */
html body .kg-order-cancel-panel{
  margin-top:1.2rem!important;padding:1rem!important;border:1px solid #f0b8bc!important;border-radius:14px!important;background:#fff6f7!important;
}
html body .kg-order-cancel-panel h6{color:#8e0008!important;}
html body .kg-order-cancel-panel .form-control{background:#fff!important;}
html body .kg-order-cancel-panel[hidden]{display:none!important;}
html body .kg-order-access-error{max-width:760px!important;margin:2rem auto!important;}

/* Admin outbox ------------------------------------------------------------ */
html body .kg-admin-outbox-summary{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.65rem!important;}
html body .kg-admin-outbox-stat{padding:.75rem!important;border:1px solid var(--kg-v7-border)!important;border-radius:12px!important;background:#fff!important;text-align:center!important;}
html body .kg-admin-outbox-stat strong{display:block!important;font-size:1.25rem!important;}
html body .kg-admin-outbox-error{max-width:340px!important;white-space:normal!important;word-break:break-word!important;color:#9b111e!important;}

@media (max-width:991.98px){
  html body .kg-nav-fixed .navbar .kg-nav-icons{margin-left:0!important;margin-right:0!important;}
  html body .kg-nav-fixed .kg-nav-icons .kg-nav-icon-link{height:52px!important;}
  html body .kg-rail-skeleton{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body .kg-admin-outbox-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:575.98px){
  html body .kg-product-actions .quantity{margin-right:0!important;}
  html body .kg-rail-skeleton{grid-template-columns:1fr!important;}
  html body .kg-cart-drawer-item{grid-template-columns:64px minmax(0,1fr)!important;padding:.7rem!important;}
  html body .kg-cart-drawer-item__image{width:64px!important;height:64px!important;}
}
@media (prefers-reduced-motion:reduce){
  html body .kg-fav-animate i.fa-heart,
  html body .kg-fav-animate::before,
  html body .kg-fav-added::after,
  html body .kg-product-skeleton::after,
  html body .kg-rail-skeleton__card::after{animation:none!important;}
  html body .kg-drawer{transition:none!important;}
}

/* V7 final component alignment ------------------------------------------- */
html body .kg-quantity-stepper{
  min-width:122px!important;height:44px!important;display:inline-flex!important;align-items:stretch!important;
  border:1px solid var(--kg-v7-border)!important;border-radius:12px!important;overflow:hidden!important;
  background:#fff!important;box-shadow:0 4px 14px rgba(11,9,10,.07)!important;
}
html body .kg-quantity-stepper__button{
  width:40px!important;min-width:40px!important;max-width:40px!important;height:42px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:0!important;border-radius:0!important;background:#fff!important;color:var(--kg-v7-ink)!important;
  padding:0!important;font-weight:800!important;box-shadow:none!important;
}
html body .kg-quantity-stepper__button:hover{background:var(--kg-v7-ink)!important;color:#fff!important;}
html body .kg-quantity-stepper__button:active{background:var(--kg-v7-red)!important;color:#fff!important;}
html body .kg-quantity-stepper__button:focus-visible{outline:2px solid var(--kg-v7-red)!important;outline-offset:-2px!important;z-index:2!important;}
html body .kg-quantity-stepper__value,
html body .kg-quantity-stepper input{
  width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;margin:0!important;border:0!important;border-left:1px solid var(--kg-v7-border)!important;
  border-right:1px solid var(--kg-v7-border)!important;border-radius:0!important;background:var(--kg-v7-soft)!important;
  color:var(--kg-v7-ink)!important;font-weight:800!important;text-align:center!important;line-height:42px!important;
  box-shadow:none!important;
}
html body .kg-quantity-stepper--compact{min-width:98px!important;height:36px!important;border-radius:10px!important;box-shadow:none!important;}
html body .kg-quantity-stepper--compact .kg-quantity-stepper__button{width:32px!important;min-width:32px!important;max-width:32px!important;height:34px!important;}
html body .kg-quantity-stepper--compact .kg-quantity-stepper__value{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;line-height:34px!important;font-size:.85rem!important;}

html body .kg-favorite-added i.fa-heart,
html body .kg-favorite-removed i.fa-heart{animation:kgHeartPopV7 .48s cubic-bezier(.2,.85,.25,1.25)!important;}
html body .kg-favorite-added::before,
html body .kg-favorite-removed::before{
  content:""!important;position:absolute!important;inset:-7px!important;border:2px solid var(--kg-v7-red)!important;
  border-radius:999px!important;opacity:0!important;pointer-events:none!important;animation:kgHeartRingV7 .5s ease-out!important;z-index:-1!important;
}
html body .kg-favorite-added::after{
  content:"♥"!important;position:absolute!important;left:50%!important;top:50%!important;color:var(--kg-v7-red)!important;
  font-size:.72rem!important;pointer-events:none!important;animation:kgHeartSparkV7 .58s ease-out!important;
}
html body .kg-favorite-removed::after{
  content:""!important;position:absolute!important;inset:8px!important;border-top:2px solid var(--kg-v7-muted)!important;
  transform:rotate(-35deg)!important;opacity:0!important;animation:kgHeartRemoveV7 .45s ease-out!important;pointer-events:none!important;
}
@keyframes kgHeartRemoveV7{0%{opacity:.8;transform:rotate(-35deg) scale(.45)}100%{opacity:0;transform:rotate(-35deg) scale(1.35)}}

html body .kg-cart-drawer__footer{
  flex:0 0 auto!important;padding:1rem 1.15rem calc(1rem + env(safe-area-inset-bottom))!important;
  border-top:1px solid var(--kg-v7-border)!important;background:#fff!important;box-shadow:0 -8px 22px rgba(11,9,10,.07)!important;
}
html body .kg-cart-drawer__total{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:.45rem!important;}
html body .kg-cart-drawer__total strong{font-size:1.18rem!important;}
html body .kg-cart-drawer__shipping{font-size:.82rem!important;color:var(--kg-v7-muted)!important;margin-bottom:.85rem!important;line-height:1.35!important;}
html body .kg-cart-drawer__shipping.is-complete{color:#137333!important;font-weight:700!important;}
html body .kg-cart-drawer-item{grid-template-columns:76px minmax(0,1fr) 28px!important;align-items:start!important;}
html body .kg-cart-drawer-item__content{min-width:0!important;display:flex!important;flex-direction:column!important;gap:.2rem!important;}
html body .kg-cart-drawer-item__remove{width:28px!important;height:28px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;}
html body .kg-cart-drawer-item__remove:hover{background:#fff0f1!important;color:var(--kg-v7-red)!important;}
html body .kg-empty-state__icon{width:58px;height:58px;border-radius:999px;background:var(--kg-v7-soft);display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;margin-bottom:.8rem;}

html body .kg-product-skeleton-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;width:100%!important;}
html body .kg-product-skeleton-grid .kg-product-skeleton{min-height:245px!important;padding:0 14px 14px!important;border:1px solid #e8ebee!important;background:#fff!important;display:flex!important;flex-direction:column!important;gap:10px!important;}
html body .kg-product-skeleton__image{display:block!important;aspect-ratio:1/1!important;margin:0 -14px 6px!important;background:#eceff2!important;}
html body .kg-product-skeleton__line{display:block!important;height:13px!important;border-radius:999px!important;background:#e6e9ec!important;}
html body .kg-product-skeleton__line--short{width:44%!important;}
html body .kg-product-skeleton__line--price{width:58%!important;height:18px!important;margin-top:auto!important;}
html body .kg-product-skeleton__image,
html body .kg-product-skeleton__line{position:relative!important;overflow:hidden!important;}
html body .kg-product-skeleton__image::after,
html body .kg-product-skeleton__line::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);animation:kgSkeletonV7 1.25s infinite;}

html body .kg-checkout-delivery-address{margin-top:1rem!important;}
html body .kg-checkout-delivery-address__intro{display:flex!important;gap:.75rem!important;align-items:flex-start!important;padding:.9rem 1rem!important;border:1px solid var(--kg-v7-border)!important;border-radius:12px!important;background:#fff!important;}
html body .kg-checkout-delivery-address__fields{margin-top:.9rem!important;padding:1rem!important;border:1px solid var(--kg-v7-border)!important;border-radius:14px!important;background:var(--kg-v7-soft)!important;}
html body .kg-checkout-delivery-address__fields.is-hidden{display:none!important;}
html body .kg-checkout-free-shipping{margin-top:.8rem!important;padding:.65rem .8rem!important;border-radius:10px!important;background:#f5f7f9!important;color:var(--kg-v7-muted)!important;font-size:.86rem!important;}
html body .kg-checkout-free-shipping.is-complete{background:#eaf7ed!important;color:#137333!important;font-weight:700!important;}

html body .kg-order-cancel-panel .btn-danger{background:var(--kg-v7-red)!important;border-color:var(--kg-v7-red)!important;}
html body .kg-order-cancel-panel .btn-danger:hover{background:var(--kg-v7-red-dark)!important;border-color:var(--kg-v7-red-dark)!important;}

html body .kg-admin-outbox-table td,html body .kg-admin-outbox-table th{vertical-align:middle!important;}
html body .kg-admin-outbox-actions{display:flex!important;gap:.5rem!important;flex-wrap:wrap!important;}

@media (max-width:1199.98px){html body .kg-product-skeleton-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media (max-width:767.98px){html body .kg-product-skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}html body .kg-cart-drawer-item{grid-template-columns:64px minmax(0,1fr) 26px!important;}}
@media (max-width:420px){html body .kg-product-skeleton-grid{grid-template-columns:1fr!important;}}
@media (prefers-reduced-motion:reduce){html body .kg-favorite-added i.fa-heart,html body .kg-favorite-removed i.fa-heart,html body .kg-favorite-added::before,html body .kg-favorite-removed::before,html body .kg-favorite-added::after,html body .kg-favorite-removed::after,html body .kg-product-skeleton__image::after,html body .kg-product-skeleton__line::after{animation:none!important;}}

/* Final checkout/address/order polish ------------------------------------- */
html body .is-hidden{display:none!important;}
html body .kg-shipping-address-options{
  padding:1rem!important;border:1px solid var(--kg-v7-border)!important;border-radius:14px!important;background:#fff!important;
}
html body .kg-shipping-same-check{font-weight:700!important;}
html body .kg-shipping-address-panel__head{
  display:flex!important;align-items:flex-start!important;gap:.75rem!important;color:var(--kg-v7-ink)!important;
}
html body .kg-shipping-address-panel__head > i{
  width:38px!important;height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:10px!important;background:var(--kg-v7-red)!important;color:#fff!important;flex:0 0 38px!important;
}
html body .kg-shipping-address-panel__head small{display:block!important;color:var(--kg-v7-muted)!important;font-weight:400!important;}
html body .kg-order-address-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1rem!important;
}
html body .kg-order-address-card{
  padding:1rem!important;border:1px solid var(--kg-v7-border)!important;border-radius:14px!important;background:#fff!important;
}
html body .kg-order-address-card small{display:block!important;color:var(--kg-v7-muted)!important;text-transform:uppercase!important;letter-spacing:.05em!important;font-weight:700!important;margin-bottom:.35rem!important;}
html body .kg-order-address-card strong,html body .kg-order-address-card span{display:block!important;}
html body .kg-order-cancel-panel.d-none{display:none!important;}
html body .kg-order-cancel-panel .btn-outline-danger{background:#fff!important;}
html body .kg-order-cancel-panel .btn-outline-danger:hover{background:#dc3545!important;color:#fff!important;}
@media(max-width:575.98px){
  html body .kg-order-address-grid{grid-template-columns:1fr!important;}
  html body .kg-shipping-address-options{padding:.8rem!important;}
}


/* Stability & UX v7 final refinements ------------------------------------ */
html body .kg-product-detail-placeholder{
  position:relative!important;
  overflow:hidden!important;
  color:transparent!important;
  border-radius:9px!important;
  background:#e9edf1!important;
}
html body .kg-product-detail-placeholder::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  transform:translateX(-100%)!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.82),transparent)!important;
  animation:kgSkeletonV7 1.15s infinite!important;
}
html body .kg-product-detail-placeholder--title{min-height:38px!important;max-width:78%!important;}
html body .kg-product-detail-placeholder--description{min-height:88px!important;width:100%!important;}

html body .kg-quantity-stepper--product{min-width:130px!important;}
html body .kg-cart-table .kg-quantity-stepper,
html body #kgCartBody .kg-quantity-stepper{min-width:112px!important;margin-inline:auto!important;box-shadow:none!important;}
html body .kg-quantity-stepper,
html body .quantity.kg-qty-control{
  background:#fff!important;
  border-color:#cfd5dc!important;
  box-shadow:0 5px 16px rgba(11,9,10,.08)!important;
}
html body .kg-quantity-stepper__button,
html body .quantity.kg-qty-control .btn{
  background:#fff!important;
  color:#17191c!important;
}
html body .kg-quantity-stepper__button:hover,
html body .quantity.kg-qty-control .btn:hover{
  background:#f0f2f4!important;
  color:var(--kg-v7-red)!important;
}
html body .kg-quantity-stepper__button:active,
html body .quantity.kg-qty-control .btn:active{
  background:var(--kg-v7-red)!important;
  color:#fff!important;
}

html body .kg-favorites-drawer-list{display:flex!important;flex-direction:column!important;gap:.85rem!important;}
html body .kg-fav-card{border-radius:14px!important;border-color:var(--kg-v7-border)!important;box-shadow:0 5px 18px rgba(11,9,10,.05)!important;}
html body .kg-fav-card__content{display:flex!important;flex-direction:column!important;min-width:0!important;}
html body .kg-fav-card__title{line-height:1.25!important;}
html body .kg-fav-card__price{display:block!important;margin:.05rem 0 .45rem!important;color:var(--kg-v7-ink)!important;}
html body .kg-fav-card__actions{margin-top:auto!important;}

html body .kg-admin-order-outbox{display:flex!important;flex-direction:column!important;gap:.45rem!important;}
html body .kg-admin-order-outbox__row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:.75rem!important;padding:.55rem .65rem!important;border:1px solid var(--kg-v7-border)!important;border-radius:10px!important;background:var(--kg-v7-soft)!important;}
html body .kg-admin-order-outbox__row small{color:var(--kg-v7-muted)!important;text-align:right!important;}
html body .kg-admin-outbox-table{min-width:860px!important;}
html body .kg-admin-outbox-summary{grid-template-columns:repeat(5,minmax(110px,1fr))!important;}

@media (max-width:575.98px){
  html body .kg-nav-fixed .kg-nav-icons .kg-nav-icon-link{width:46px!important;min-width:46px!important;}
  html body .kg-fav-card{padding:.7rem!important;gap:.65rem!important;}
  html body .kg-fav-card__image{width:70px!important;height:70px!important;flex-basis:70px!important;}
  html body .kg-admin-order-outbox__row{align-items:flex-start!important;flex-direction:column!important;}
  html body .kg-admin-order-outbox__row small{text-align:left!important;}
}
@media (prefers-reduced-motion:reduce){
  html body .kg-product-detail-placeholder::after{animation:none!important;}
}

/* Admin runtime status — v7 */
.kg-admin-runtime-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kg-admin-runtime-card{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid #e2e5e9;border-radius:14px;background:#f8f9fa}
.kg-admin-runtime-card small{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6c757d}
.kg-admin-runtime-card strong{font-size:1.05rem;color:#111}
.kg-admin-runtime-card span{font-size:.82rem;color:#6c757d}
@media(max-width:575.98px){.kg-admin-runtime-grid{grid-template-columns:1fr}}

/* V7.1 quantity specificity guard: one segmented control, never red circles. */
html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper,
html body .kg-product-actions .kg-quantity-stepper,
html body .kg-cart-table .kg-quantity-stepper,
html body .kg-cart-drawer .kg-quantity-stepper{
  display:inline-grid!important;
  grid-template-columns:42px 52px 42px!important;
  align-items:stretch!important;
  width:136px!important;
  min-width:136px!important;
  max-width:136px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  padding:0!important;
  border:1px solid #d9dee5!important;
  border-radius:11px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(11,9,10,.08)!important;
}
html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper .kg-quantity-stepper__button,
html body .kg-product-actions .kg-quantity-stepper .kg-quantity-stepper__button,
html body .kg-cart-table .kg-quantity-stepper .kg-quantity-stepper__button,
html body .kg-cart-drawer .kg-quantity-stepper .kg-quantity-stepper__button{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#f2f4f6!important;
  color:#0b090a!important;
  box-shadow:none!important;
  outline:0!important;
  transform:none!important;
}
html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper .kg-quantity-stepper__button:hover,
html body .kg-product-actions .kg-quantity-stepper .kg-quantity-stepper__button:hover,
html body .kg-cart-table .kg-quantity-stepper .kg-quantity-stepper__button:hover,
html body .kg-cart-drawer .kg-quantity-stepper .kg-quantity-stepper__button:hover{
  background:#c4020d!important;
  color:#fff!important;
}
html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper .kg-quantity-stepper__button:active,
html body .kg-product-actions .kg-quantity-stepper .kg-quantity-stepper__button:active,
html body .kg-cart-table .kg-quantity-stepper .kg-quantity-stepper__button:active,
html body .kg-cart-drawer .kg-quantity-stepper .kg-quantity-stepper__button:active{
  background:#0b090a!important;
  color:#fff!important;
}
html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper .kg-quantity-stepper__value,
html body .kg-product-actions .kg-quantity-stepper .kg-quantity-stepper__value,
html body .kg-cart-table .kg-quantity-stepper .kg-quantity-stepper__value,
html body .kg-cart-drawer .kg-quantity-stepper .kg-quantity-stepper__value{
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-left:1px solid #d9dee5!important;
  border-right:1px solid #d9dee5!important;
  border-radius:0!important;
  background:#fff!important;
  color:#0b090a!important;
  font-weight:800!important;
  line-height:44px!important;
  text-align:center!important;
  box-shadow:none!important;
}
html body .kg-cart-table .kg-quantity-stepper,
html body .kg-cart-drawer .kg-quantity-stepper--compact{
  grid-template-columns:34px 40px 34px!important;
  width:108px!important;
  min-width:108px!important;
  max-width:108px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  border-radius:9px!important;
  box-shadow:0 3px 10px rgba(11,9,10,.06)!important;
}
html body .kg-cart-table .kg-quantity-stepper .kg-quantity-stepper__button,
html body .kg-cart-drawer .kg-quantity-stepper--compact .kg-quantity-stepper__button{
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
}
html body .kg-cart-table .kg-quantity-stepper .kg-quantity-stepper__value,
html body .kg-cart-drawer .kg-quantity-stepper--compact .kg-quantity-stepper__value{
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  line-height:36px!important;
  font-size:.88rem!important;
}
@media (max-width:575.98px){
  html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper,
  html body .kg-product-actions .kg-quantity-stepper{
    grid-template-columns:38px 46px 38px!important;
    width:122px!important;
    min-width:122px!important;
    max-width:122px!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
  }
  html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper .kg-quantity-stepper__button,
  html body .kg-product-actions .kg-quantity-stepper .kg-quantity-stepper__button{
    width:38px!important;min-width:38px!important;max-width:38px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
  }
  html body .kg-page-box .kg-product-actions:not(.product-action) .kg-quantity-stepper .kg-quantity-stepper__value,
  html body .kg-product-actions .kg-quantity-stepper .kg-quantity-stepper__value{
    width:46px!important;min-width:46px!important;max-width:46px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;line-height:40px!important;
  }
}
