/* ============================================
   IBCA Shop - EC Styles
   ============================================ */

/* --- Hero --- */
.shop-hero {
  background: #FDF0F4;
  text-align: center;
  padding: 70px 20px 55px;
}
.shop-hero__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #c4899a;
  margin: 0 0 10px;
}
.shop-hero__heading {
  font-size: 30px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 6px;
}
.shop-hero__heading-en {
  font-size: 13px;
  color: #7a6a6e;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
}
.shop-hero__lead {
  font-size: 14px;
  line-height: 1.9;
  color: #5a5a5a;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Container --- */
.shop-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}
.shop-section-title {
  font-size: 22px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 8px;
  text-align: center;
}
.shop-section-title-en {
  font-size: 11px;
  color: #b0a0a6;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 40px;
}

/* --- Product Grid --- */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* --- Product Card --- */
.shop-card {
  background: #fff;
  border: 1px solid #ede8e9;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.shop-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f8f3f4 0%, #ede8e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.shop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-card__placeholder-icon {
  font-size: 36px;
  color: #c4899a;
  opacity: 0.6;
}
.shop-card__placeholder-text {
  font-size: 11px;
  color: #9a8a8e;
  letter-spacing: 0.06em;
}
.shop-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(196, 120, 154, 0.9);
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.shop-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shop-card__name {
  font-size: 15px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 10px;
  line-height: 1.5;
}
.shop-card__price {
  font-size: 20px;
  font-weight: bold;
  color: #C4789A;
  margin: 0 0 4px;
}
.shop-card__price-tax {
  font-size: 12px;
  color: #8a7a7e;
  margin: 0 0 16px;
}
.shop-card__btn {
  display: block;
  background: #2a2a2a;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: auto;
}
.shop-card__btn:hover {
  background: #C4789A;
}

/* --- Product Detail --- */
.shop-detail {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.shop-detail__image {
  width: 45%;
  min-width: 300px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f8f3f4 0%, #ede8e9 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.shop-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.shop-detail__info {
  flex: 1;
}
.shop-detail__category {
  display: inline-block;
  background: rgba(196, 120, 154, 0.12);
  color: #C4789A;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.shop-detail__name {
  font-size: 24px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 16px;
  line-height: 1.4;
}
.shop-detail__price {
  font-size: 28px;
  font-weight: bold;
  color: #C4789A;
  margin: 0 0 4px;
}
.shop-detail__price small {
  font-size: 14px;
  font-weight: normal;
}
.shop-detail__price-tax {
  font-size: 13px;
  color: #8a7a7e;
  margin: 0 0 24px;
}
.shop-detail__desc {
  font-size: 14px;
  line-height: 1.9;
  color: #5a5a5a;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ede8e9;
}
.shop-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.shop-detail__list li {
  font-size: 14px;
  color: #5a5a5a;
  padding: 8px 0;
  border-bottom: 1px solid #f4f0f1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-detail__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #C4789A;
  border-radius: 50%;
  flex-shrink: 0;
}
.shop-detail__buy-btn {
  display: block;
  width: 100%;
  background: #C4789A;
  color: #fff;
  text-align: center;
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.shop-detail__buy-btn:hover {
  background: #b0607a;
  transform: translateY(-1px);
}
.shop-detail__exam-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #C4789A;
  text-decoration: none;
}
.shop-detail__exam-link:hover {
  text-decoration: underline;
}

/* --- Shipping Note --- */
.shop-shipping-note {
  background: #f9f6f7;
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 40px;
  text-align: center;
}
.shop-shipping-note__title {
  font-size: 13px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 6px;
}
.shop-shipping-note__text {
  font-size: 12px;
  color: #7a6a6e;
  margin: 0;
  line-height: 1.7;
}

/* --- Order Form --- */
.shop-order {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
}
.shop-order__product {
  background: #f9f6f7;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.shop-order__product-thumb {
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, #f0e8ea, #ede8e9);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shop-order__product-thumb svg {
  width: 24px;
  height: 24px;
  color: #c4899a;
  opacity: 0.5;
}
.shop-order__product-info {
  flex: 1;
}
.shop-order__product-name {
  font-size: 14px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 4px;
}
.shop-order__product-price {
  font-size: 18px;
  font-weight: bold;
  color: #C4789A;
  margin: 0;
}
.shop-order__product-price small {
  font-size: 12px;
  font-weight: normal;
  color: #8a7a7e;
}

.shop-form__group {
  margin-bottom: 20px;
}
.shop-form__label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #2a2a2a;
  margin-bottom: 6px;
}
.shop-form__label .required {
  background: #C4789A;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  font-weight: normal;
  vertical-align: middle;
}
.shop-form__label .optional {
  background: #ccc;
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  font-weight: normal;
  vertical-align: middle;
}
.shop-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #2a2a2a;
  background: #fff;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.shop-form__input:focus {
  outline: none;
  border-color: #C4789A;
}
.shop-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #2a2a2a;
  background: #fff;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.shop-form__textarea:focus {
  outline: none;
  border-color: #C4789A;
}
.shop-form__address-row {
  display: flex;
  gap: 12px;
}
.shop-form__address-row .shop-form__group {
  flex: 1;
}
.shop-form__address-row .shop-form__group:first-child {
  flex: 0 0 140px;
}
.shop-form__privacy {
  background: #f9f6f7;
  border-radius: 6px;
  padding: 20px;
  margin: 28px 0;
}
.shop-form__privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #5a5a5a;
  cursor: pointer;
  line-height: 1.6;
}
.shop-form__privacy input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.shop-form__privacy a {
  color: #C4789A;
}
.shop-form__error {
  color: #d44;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.shop-form__submit-btn {
  display: block;
  width: 100%;
  background: #2a2a2a;
  color: #fff;
  text-align: center;
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s;
}
.shop-form__submit-btn:hover {
  background: #C4789A;
}
.shop-form__submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* --- Confirm Overlay --- */
.shop-confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.shop-confirm-overlay.is-active {
  display: flex;
}
.shop-confirm-box {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 32px;
}
.shop-confirm-box__title {
  font-size: 18px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 24px;
  text-align: center;
}
.shop-confirm-box__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.shop-confirm-box__table th {
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: #8a7a7e;
  padding: 10px 0;
  border-bottom: 1px solid #f0ecee;
  width: 100px;
  vertical-align: top;
}
.shop-confirm-box__table td {
  font-size: 14px;
  color: #2a2a2a;
  padding: 10px 0;
  border-bottom: 1px solid #f0ecee;
}
.shop-confirm-box__btns {
  display: flex;
  gap: 12px;
}
.shop-confirm-box__back {
  flex: 1;
  padding: 14px;
  background: #f0ecee;
  color: #5a5a5a;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.shop-confirm-box__back:hover {
  background: #e0dce0;
}
.shop-confirm-box__send {
  flex: 2;
  padding: 14px;
  background: #C4789A;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.shop-confirm-box__send:hover {
  background: #b0607a;
}
.shop-confirm-box__send:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* --- Complete Page --- */
.shop-complete {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.shop-complete__icon {
  width: 64px;
  height: 64px;
  background: #C4789A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.shop-complete__icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}
.shop-complete__title {
  font-size: 24px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 12px;
}
.shop-complete__text {
  font-size: 14px;
  line-height: 1.9;
  color: #5a5a5a;
  margin: 0 0 32px;
}
.shop-complete__bank {
  background: #f9f6f7;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 32px;
  text-align: left;
}
.shop-complete__bank-title {
  font-size: 14px;
  font-weight: bold;
  color: #2a2a2a;
  margin: 0 0 16px;
  text-align: center;
}
.shop-complete__bank-table {
  width: 100%;
  border-collapse: collapse;
}
.shop-complete__bank-table th {
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: #8a7a7e;
  padding: 8px 0;
  width: 100px;
  vertical-align: top;
}
.shop-complete__bank-table td {
  font-size: 14px;
  color: #2a2a2a;
  padding: 8px 0;
}
.shop-complete__notice {
  background: #fff8e1;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 32px;
  text-align: left;
}
.shop-complete__notice p {
  font-size: 13px;
  color: #7a6a3e;
  margin: 0 0 4px;
  line-height: 1.7;
}
.shop-complete__notice p:last-child {
  margin-bottom: 0;
}
.shop-complete__back-btn {
  display: inline-block;
  background: #2a2a2a;
  color: #fff;
  padding: 14px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.3s;
}
.shop-complete__back-btn:hover {
  background: #C4789A;
}

/* --- Error page --- */
.shop-error {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.shop-error__title {
  font-size: 20px;
  font-weight: bold;
  color: #d44;
  margin: 0 0 12px;
}
.shop-error__text {
  font-size: 14px;
  color: #5a5a5a;
  margin: 0 0 24px;
  line-height: 1.8;
}

/* --- Scroll Animations --- */
.shop-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.shop-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.shop-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.shop-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.shop-scale-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.shop-scale-up.is-visible {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .shop-fade-up,
  .shop-slide-left,
  .shop-scale-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .shop-hero {
    padding: 50px 20px 40px;
  }
  .shop-hero__heading {
    font-size: 24px;
  }
  .shop-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-detail {
    flex-direction: column;
    gap: 24px;
  }
  .shop-detail__image {
    width: 100%;
    min-width: unset;
  }
  .shop-detail__name {
    font-size: 20px;
  }
  .shop-detail__price {
    font-size: 24px;
  }
  .shop-order__product {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .shop-form__address-row {
    flex-direction: column;
    gap: 0;
  }
  .shop-form__address-row .shop-form__group:first-child {
    flex: 1;
  }
  .shop-confirm-box {
    padding: 28px 20px;
  }
  .shop-confirm-box__btns {
    flex-direction: column-reverse;
  }
}
