/* Mie Amazon Card v2 */
.amazon-product-card {
  --mac-border: #e7e2db;
  --mac-shadow: 0 8px 24px rgba(45, 40, 32, 0.08);
  --mac-title: #1f2430;
  --mac-text: #3a414b;
  --mac-sub: #6b7280;
  --mac-color: #9aa1ab;
  --mac-price: #d63625;
  --mac-bullet: #dc8f83;
  --mac-button: #f7cf39;
  --mac-button-hover: #efc423;
  --mac-button-text: #1a1a1a;
  --mac-bg: #ffffff;

  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 26px auto;
  color: var(--mac-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.amazon-product-card *,
.amazon-product-card *::before,
.amazon-product-card *::after {
  box-sizing: border-box;
}

.mac-shell {
  display: grid;
  grid-template-columns: minmax(250px, 38%) 1fr;
  gap: 30px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--mac-border);
  border-radius: 16px;
  background: var(--mac-bg);
  box-shadow: var(--mac-shadow);
}

.mac-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mac-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 390px;
  object-fit: contain;
}

.mac-info {
  min-width: 0;
}

.mac-title {
  margin: 0 0 11px;
  color: var(--mac-title);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
}

.mac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 14px;
  align-items: baseline;
}

.mac-brand {
  margin: 0;
  color: #4d5561;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.mac-color {
  margin: 0;
  color: var(--mac-color);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.mac-features {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.mac-features li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  color: #232a31;
  font-size: 14px;
  line-height: 1.8;
}

.mac-features li:last-child {
  margin-bottom: 0;
}

.mac-features li::before {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mac-bullet);
  transform: translateY(-50%);
}

.mac-price {
  margin: 0 0 18px;
  color: var(--mac-price);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
}

.mac-buy {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--mac-button);
  color: var(--mac-button-text) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 3px 0 rgba(195, 151, 10, 0.25);
}

.mac-buy:hover {
  background: var(--mac-button-hover);
  transform: translateY(-1px);
}

.mac-loading,
.mac-error {
  padding: 18px;
  border: 1px solid var(--mac-border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}

.mac-error {
  color: #8a1c1c;
  background: #fff8f8;
  border-color: #efcccc;
}

@media (max-width: 640px) {
  .amazon-product-card {
    margin: 18px auto;
  }

  .mac-shell {
    display: block;
    padding: 18px 16px 18px;
    border-radius: 15px;
  }

  .mac-image-link {
    margin: 0 auto 18px;
  }

  .mac-image {
    width: auto;
    max-width: 94%;
    max-height: 395px;
    margin: 0 auto;
  }

  .mac-title {
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.55;
  }

  .mac-meta {
    gap: 8px 12px;
    margin-bottom: 12px;
  }

  .mac-brand {
    font-size: 14px;
  }

  .mac-color {
    font-size: 12px;
  }

  .mac-features {
    margin-bottom: 16px;
  }

  .mac-features li {
    margin-bottom: 9px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.75;
  }

  .mac-price {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .mac-buy {
    min-height: 52px;
    font-size: 16px;
  }
}
