/* Stratigem Modern Mini Cart (Blocks-inspired) */

.smmc {
  --smmc-border: rgba(0,0,0,0.10);
  --smmc-muted: rgba(0,0,0,0.62);
  --smmc-radius: 14px;
  --smmc-gap: 12px;
  --smmc-max-height: 70vh;
}

.smmc__panel {
  width: 100%;
  max-width: 420px;
}

.smmc__header {
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--smmc-border);
}

.smmc__title {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.smmc__title-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.smmc__count {
  font-size: 13px;
  color: var(--smmc-muted);
}

.smmc__items {
  max-height: var(--smmc-max-height);
  overflow: auto;
  padding: 6px 0;
}

.smmc__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--smmc-gap);
  padding: 12px 0;
  border-bottom: 1px solid var(--smmc-border);
}

.smmc__thumb a,
.smmc__thumb {
  display: block;
}

.smmc__thumb-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.smmc__name a,
.smmc__name span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
}

.smmc__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--smmc-muted);
}

.smmc__controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.smmc__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--smmc-border);
  border-radius: 999px;
  height: 34px;
  overflow: hidden;
}

.smmc__qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.smmc__qty-input {
  width: 44px;
  height: 34px;
  border: 0;
  text-align: center;
  outline: none;
  font-size: 13px;
  background: transparent;
  -moz-appearance: textfield;
}

.smmc__qty-input::-webkit-outer-spin-button,
.smmc__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.smmc__qty--static {
  padding: 0 12px;
  font-size: 13px;
  color: var(--smmc-muted);
}

.smmc__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--smmc-muted);
  text-decoration: underline;
}

.smmc__total {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}

.smmc__footer {
  padding: 14px 0 0;
}

.smmc__subtotal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 14px;
}

.smmc__subtotal-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--smmc-muted);
}

.smmc__actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.smmc__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.smmc__button--outline {
  border: 1px solid var(--smmc-border);
}

.smmc__button--primary {
  border: 1px solid transparent;
}

.smmc__empty {
  padding: 18px 0 4px;
  text-align: center;
}

.smmc__empty p {
  margin: 0 0 12px;
  color: var(--smmc-muted);
}

/* Busy state */
.smmc--busy {
  opacity: 0.75;
  pointer-events: none;
}

/* Respect narrow sidebars */
@media (max-width: 480px) {
  .smmc__item {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "thumb details"
      "total total";
  }
  .smmc__thumb { grid-area: thumb; }
  .smmc__details { grid-area: details; }
  .smmc__total { grid-area: total; text-align: left; }
  .smmc__thumb-img { width: 56px; height: 56px; }
}
