/* ===== Mini Cart (FAB + Drawer) ===== */

/* Floating cart button */
.grs-mc-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  border: 1px solid #111827;
  background: #111827;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);

  transform: translateY(0);
  transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
}

.grs-mc-fab:hover{
  transform: translateY(-2px);
}

.grs-mc-fab.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.grs-mc-fab__badge{
  position: absolute;
  top: -6px;
  right: -6px;

  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  line-height: 1;

  background: #fff;
  color: #111827;
  border: 1px solid rgba(17,24,39,.25);
}

/* Drawer shell */
.grs-mc-drawer{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.grs-mc-drawer.is-open{
  display: block;
}

.grs-mc-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.grs-mc-panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);

  background: #fff;
  box-shadow: -20px 0 50px rgba(0,0,0,.2);

  display: flex;
  flex-direction: column;
}

/* Drawer content */
.grs-mc-head{
  padding: 16px;
  border-bottom: 1px solid #eef2f7;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grs-mc-title{
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.grs-mc-close{
  border: 0;
  background: transparent;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  padding: 6px 10px;
}

.grs-mc-body{
  padding: 12px 16px;
  overflow: auto;
  flex: 1;
}

/* Item */
.grs-mc-item{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.grs-mc-thumb{
  display: block;
  text-decoration: none;
}

.grs-mc-thumb img{
  width: 72px;
  height: 72px;
  object-fit: cover;

  border-radius: 10px;
  background: #f3f4f6;

  display: block;
}

.grs-mc-name{
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.grs-mc-name a{
  text-decoration: none;
  color: inherit;
}

.grs-mc-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Qty */
.grs-mc-qty{
  display: inline-flex;
  align-items: center;

  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;

  background: #fff;
}

.grs-mc-qty button{
  border: 0;
  background: #fff;

  width: 34px;
  height: 32px;

  cursor: pointer;
  line-height: 1;
}

.grs-mc-qty input{
  width: 44px;
  height: 32px;

  border: 0;
  outline: none;

  text-align: center;
  background: #fff;
}

/* Remove */
.grs-mc-remove{
  border: 0;
  background: transparent;

  color: #6b7280;
  cursor: pointer;

  font-size: 12px;
  padding: 0;
}

.grs-mc-foot{
  padding: 14px 16px;
  border-top: 1px solid #eef2f7;
}

.grs-mc-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;

  font-size: 13px;
}

.grs-mc-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.grs-mc-actions a{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 12px;

  text-decoration: none;
}

.grs-mc-cart{
  border: 1px solid #111827;
  color: #111827;
  background: #fff;
}

.grs-mc-checkout{
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.grs-mc-muted{
  opacity: .75;
  font-size: 12px;
}

/* Optional: block body scroll when drawer open (if you decide to add this class in JS) */
body.grs-mc-open{
  overflow: hidden;
}