/* =============================================================
   KinetikGym – Store Styles v3
   Redesigned buttons · Cart sidebar
   ============================================================= */

/* ── Scroll lock when sidebar open ── */
body.kgs-noscroll { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   CART SIDEBAR
══════════════════════════════════════════════════════════════ */

/* Backdrop */
#kg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s ease;
}
#kg-overlay.kgs-open {
  opacity: 1;
  pointer-events: all;
}

/* Panel */
#kg-sidebar {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -6px 0 40px rgba(0, 0, 0, .20);
}
#kg-overlay.kgs-open #kg-sidebar {
  transform: translateX(0);
}

/* ── Header ── */
.kgs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 60px;
  background: #0f0f0f;
  flex-shrink: 0;
  border-bottom: 2px solid #7DC236;
}
.kgs-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.kgs-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color .2s;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kgs-close:hover { color: #fff; background: #222; }

/* ── Scrollable body ── */
.kgs-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.kgs-body::-webkit-scrollbar { width: 4px; }
.kgs-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

/* ── Empty state ── */
.kgs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 28px 40px;
  font-family: 'Barlow', sans-serif;
}
.kgs-e-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 16px 0 6px;
}
.kgs-e-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 24px;
  line-height: 1.5;
}
.kgs-shop-lnk {
  display: inline-block;
  background: #7DC236;
  color: #fff;
  padding: 11px 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
}
.kgs-shop-lnk:hover { background: #6aad2c; }

/* ── Cart item ── */
.kgs-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f2f2;
}
.kgs-item:last-child { border-bottom: none; }

.kgs-item-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: #f5f5f5;
}
.kgs-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.kgs-item-img:hover img { transform: scale(1.05); }

.kgs-item-info { flex: 1; min-width: 0; }

.kgs-item-name {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kgs-item-name:hover { color: #7DC236; }

.kgs-item-unit {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: #bbb;
  margin-bottom: 10px;
}

/* Qty row */
.kgs-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.kgs-qb {
  width: 28px;
  height: 28px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all .15s;
  font-family: sans-serif;
  flex-shrink: 0;
}
.kgs-qb:hover { background: #7DC236; color: #fff; border-color: #7DC236; }
.kgs-qn {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  color: #111;
}
.kgs-rm {
  background: none;
  border: none;
  color: #ccc;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Barlow', sans-serif;
  padding: 0;
  margin-left: 2px;
  transition: color .2s;
}
.kgs-rm:hover { color: #e44; }

/* Line total */
.kgs-item-total {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
  padding-top: 2px;
  white-space: nowrap;
}

/* ── Footer ── */
.kgs-footer {
  flex-shrink: 0;
  padding: 20px 22px;
  border-top: 1px solid #efefef;
  background: #fafafa;
}
.kgs-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 16px;
}
.kgs-sub-num {
  font-size: 22px;
  font-weight: 900;
  color: #111;
}
.kgs-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #7DC236;
  color: #fff;
  padding: 15px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
  margin-bottom: 10px;
  border: none;
  cursor: pointer;
}
.kgs-checkout-btn:hover { background: #6aad2c; }
.kgs-cont-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #aaa;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  padding: 6px 0;
  transition: color .2s;
}
.kgs-cont-btn:hover { color: #555; }

/* ══════════════════════════════════════════════════════════════
   REDESIGNED BUTTONS
══════════════════════════════════════════════════════════════ */

/* ── Buy Now – Product Detail Page ── */
.btn-buynow-redesign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  background: #0f0f0f;
  color: #fff;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .22s;
}
.btn-buynow-redesign:hover { background: #7DC236; }

/* ── Add to Cart – Product Detail Page ── */
.btn-addtocart-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  background: #7DC236;
  color: #fff;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .22s;
  margin-top: 10px;
}
.btn-addtocart-main:hover { background: #6aad2c; }
.btn-addtocart-main svg,
.btn-buynow-redesign svg { flex-shrink: 0; }

/* ── View Product – Shop / Home Cards ── */
.btn-viewprod-card,
.btn-buynow-card {
  background: #0f0f0f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-family: 'Barlow', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  border-radius: 2px;
}
.btn-viewprod-card:hover,
.btn-buynow-card:hover { background: #7DC236; }

/* ── Add to Cart – Shop / Home Cards ── */
.btn-addcart-card {
  background: transparent;
  color: #7DC236;
  border: 1.5px solid #7DC236;
  padding: 9px 13px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 2px;
  transition: all .2s;
  flex-shrink: 0;
}
.btn-addcart-card:hover { background: #7DC236; color: #fff; }

/* ── Badge pop ── */
@keyframes kgpop { 0%{transform:scale(1)} 50%{transform:scale(1.5)} 100%{transform:scale(1)} }
.cart-badge.kgpop { animation: kgpop .3s ease; }

/* ── Mobile sidebar ── */
@media (max-width: 480px) {
  #kg-sidebar { width: 100vw; }
  .kgs-head { padding: 0 16px; }
  .kgs-item { padding: 14px 16px; gap: 12px; }
  .kgs-item-img { width: 60px; height: 60px; }
  .kgs-footer { padding: 16px; }
  .btn-buynow-redesign,
  .btn-addtocart-main { font-size: 12px; letter-spacing: 1.5px; height: 48px; }
}
