/* ===================================================================
   TisiShop 商品頁專用元件 - 莫蘭迪粉扁平設計
   ================================================================ */

/* ===================================================================
   選擇器群組
   ================================================================ */

.morandi-selector-group {
  background: #f8f9fa;
  border-radius: var(--radius-base, 12px);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light, #e1e7ec);
  transition: all 0.3s ease;
}

.morandi-selector-group.highlight {
  border-color: var(--morandi-pink, #E8C9BC);
  box-shadow: 0 0 0 3px rgba(232, 201, 188, 0.25);
}

.morandi-selector-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #373f50);
  margin-bottom: 0.75rem;
}

.morandi-selector-label-icon {
  font-size: 1.25rem;
  color: var(--morandi-pink-deep, #C19A8B);
}

.morandi-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.morandi-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.morandi-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: white;
  border: 2px solid var(--border-light, #e1e7ec);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.morandi-radio-label:hover {
  border-color: var(--morandi-pink, #E8C9BC);
  background: #f8f9fa;
  transform: translateY(-2px);
}

.morandi-radio-input:checked + .morandi-radio-label {
  border-color: var(--morandi-pink-deep, #C19A8B);
  background: var(--morandi-pink, #E8C9BC);
  color: var(--text-primary, #373f50);
  box-shadow: none;
  font-weight: 700;
}

.morandi-radio-input:focus + .morandi-radio-label {
  outline: 3px solid rgba(232, 201, 188, 0.3);
  outline-offset: 2px;
}

.morandi-radio-input:disabled + .morandi-radio-label {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f0f0f0;
}

.morandi-radio-input:disabled + .morandi-radio-label:hover {
  transform: none;
  border-color: var(--border-light, #e1e7ec);
}

.morandi-radio-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.morandi-radio-input:checked + .morandi-radio-label .morandi-radio-indicator::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--morandi-pink-deep, #C19A8B);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===================================================================
   CTA 按鈕（扁平設計）
   ================================================================ */

.btn-morandi-primary {
  background: var(--morandi-pink-deep, #C19A8B);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 1rem);
  box-shadow: none;
  width: 100%;
}

.btn-morandi-primary:hover {
  background: var(--morandi-pink-dark, #A0887E);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-morandi-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-morandi-secondary {
  background: white;
  color: var(--morandi-pink-deep, #C19A8B);
  border: 2px solid var(--morandi-pink-deep, #C19A8B);
  padding: 1rem 2rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 1rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.btn-morandi-secondary:hover {
  background: rgba(232, 201, 188, 0.1);
  border-color: var(--morandi-pink-deep, #C19A8B);
  transform: translateY(-2px);
}

.btn-morandi-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===================================================================
   專業標籤
   ================================================================ */

.professional-tag {
  display: inline-block;
  background: var(--morandi-pink, #E8C9BC);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ===================================================================
   信任標章
   ================================================================ */

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border: 1px solid var(--border-light, #e1e7ec);
  border-radius: var(--radius-base, 12px);
  transition: all 0.3s ease;
  font-size: 0.8125rem;
  color: var(--text-primary, #373f50);
}

.trust-badge:hover {
  border-color: var(--morandi-pink, #E8C9BC);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(232, 201, 188, 0.12));
  transform: translateY(-2px);
}

.trust-badge-icon {
  font-size: 1.5rem;
}

@media (max-width: 576px) {
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   壓力等級資訊卡片
   ================================================================ */

.pressure-levels {
  display: grid;
  gap: var(--space-3, 1.5rem);
}

@media (min-width: 768px) {
  .pressure-levels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pressure-level {
  background: white;
  border-radius: var(--radius-base, 12px);
  padding: var(--space-4, 2rem);
  border: 1px solid var(--border-light, #e1e7ec);
  transition: all 0.3s ease;
}

.pressure-level:hover {
  border-color: var(--morandi-pink, #E8C9BC);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(232, 201, 188, 0.15));
}

.pressure-badge {
  display: inline-block;
  background: var(--morandi-pink, #E8C9BC);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-2, 1rem);
}

.pressure-label {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #373f50);
}

.pressure-desc {
  font-size: 0.875rem;
  color: var(--text-secondary, #7d879c);
  line-height: 1.6;
}

.pressure-note {
  margin-top: var(--space-4, 2rem);
  padding: var(--space-3, 1.5rem);
  background: white;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.875rem;
  color: var(--text-secondary, #7d879c);
  display: flex;
  align-items: center;
  gap: var(--space-2, 1rem);
  border-left: none;
}

/* ===================================================================
   統一區塊卡片（商品說明 / 優惠加購 / 壓力等級共用）
   ================================================================ */

.morandi-section-card,
.product-description-card,
.pressure-info-card {
  background: #f8f9fa;
  border: 2px solid var(--border-light, #e1e7ec);
  color: var(--text-primary, #373f50);
  border-radius: var(--radius-lg, 16px);
  padding: var(--space-4, 2rem);
  margin: var(--space-3, 1.5rem) 0;
  border-left: 4px solid var(--morandi-pink, #E8C9BC);
  box-shadow: none;
}

.morandi-section-header,
.product-description-header,
.pressure-info-header {
  display: flex;
  align-items: center;
  gap: var(--space-2, 1rem);
  margin-bottom: var(--space-3, 1.5rem);
}

.morandi-section-header i,
.product-description-header i,
.pressure-info-header i {
  font-size: 1.5rem;
  color: var(--morandi-pink-deep, #C19A8B);
}

.morandi-section-header h3,
.product-description-header h3,
.pressure-info-header h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary, #373f50);
  margin: 0;
}

/* 商品說明內容 */
.product-description-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary, #7d879c);
}

.product-description-body p {
  margin-bottom: 0.75rem;
}

.product-description-body hr {
  border-color: var(--border-light, #e1e7ec);
  margin: 1rem 0;
}

/* 優惠加購商品項目 */
.buyMore-item {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-light, #e1e7ec);
  border-radius: var(--radius-base, 12px);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100px;
}

.buyMore-item:hover {
  border-color: var(--morandi-pink, #E8C9BC);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(232, 201, 188, 0.12));
}

/* ===================================================================
   桌面版產品佈局（解決右側較長時圖片下方空白）
   ================================================================ */

@media (min-width: 992px) {
  .product-layout-row {
    align-items: flex-start;
  }
}

/* ===================================================================
   響應式調整
   ================================================================ */

@media (max-width: 768px) {
  .morandi-selector-group {
    padding: var(--space-3, 1.5rem);
  }

  .morandi-options {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }

  .morandi-radio-label {
    padding: 0.75rem;
    font-size: 0.875rem;
    min-height: 44px;
  }

  .morandi-section-card,
  .product-description-card,
  .pressure-info-card {
    padding: var(--space-3, 1.5rem);
  }

  .btn-morandi-primary,
  .btn-morandi-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    min-height: 44px;
  }
}
