/* スティッキーカートバー */
.ec-sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-paper, #FFFDFA);
  border-top: 1px solid var(--c-line, #E6DFD4);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  padding: 12px 22px;
}

/* 表示状態 */
.ec-sticky-cart.is-active {
  transform: translateY(0);
}

.ec-sticky-cart__container {
  max-width: var(--maxw, 1160px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ec-sticky-cart__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-sticky-cart__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink, #2C2722);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.ec-sticky-cart__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-celebrate, #C04A3B);
}

.ec-sticky-cart__price .tax {
  font-size: 0.75rem;
  color: var(--c-muted, #6A6A6C);
  font-weight: 400;
}

#ec-sticky-cart-btn {
  margin: 0;
  min-height: 48px;
  padding: 8px 24px;
  font-size: 1rem;
  white-space: nowrap;
}

/* モバイル対応 */
@media (max-width: 580px) {
  .ec-sticky-cart {
    padding: 10px 16px;
  }
  .ec-sticky-cart__name {
    max-width: 160px;
    font-size: 0.9rem;
  }
  .ec-sticky-cart__price {
    font-size: 1rem;
  }
  #ec-sticky-cart-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}
