/* ========== Detail Swiper ========== */
.detail-swiper {
  position: relative; background: #fff;
  overflow: hidden;
}
.detail-swiper-track {
  display: flex; transition: transform .3s ease;
}
.detail-swiper-item {
  min-width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: #f8f8f8;
}
.detail-swiper-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.4); color: #fff;
  font-size: 11px; padding: 2px 8px;
  border-radius: 10px;
}

/* ========== Product Info ========== */
.detail-info {
  background: #fff; padding: 12px 16px;
  margin-bottom: 8px;
}
.detail-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.detail-price .price-symbol { font-size: 14px; }
.detail-price .price-value { font-size: 28px; }
.detail-tags { display: flex; gap: 6px; margin-top: 8px; }
.detail-tag {
  font-size: 10px; padding: 2px 6px;
  border-radius: 3px; color: #ff4757;
  border: 1px solid rgba(255,71,87,.3);
  background: rgba(255,71,87,.05);
}
.detail-title {
  font-size: 15px; line-height: 1.5; color: #333;
  margin-top: 10px;
}
.detail-subtitle {
  font-size: 12px; color: #999; margin-top: 4px;
}

/* ========== Spec Section ========== */
.spec-section {
  background: #fff; padding: 12px 16px;
  margin-bottom: 8px;
}
.spec-row {
  display: flex; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 13px; color: #999; width: 60px; }
.spec-value { font-size: 13px; color: #333; flex: 1; }
.spec-arrow {
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========== Detail Bottom Bar ========== */
.detail-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; background: #fff;
  display: flex; align-items: center;
  border-top: 1px solid #eee;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.detail-bar-icon {
  width: 50px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; color: #666;
  position: relative;
}
.detail-bar-icon span {
  width: 22px; height: 22px;
}
.detail-bar-btns {
  flex: 1; display: flex; gap: 0; padding: 0 8px;
}
.detail-bar-btns .btn {
  flex: 1; border-radius: 20px 0 0 20px;
  font-size: 14px; padding: 10px 0;
}
.btn-cart {
  background: linear-gradient(135deg, #ffa502, #ff7f50);
  color: #fff;
}
.btn-buy {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  border-radius: 0 20px 20px 0;
}

/* ========== Spec Popup ========== */
.spec-popup {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200; display: none;
}
.spec-popup.show { display: block; }
.spec-mask {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
}
.spec-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 12px 12px 0 0;
  padding: 16px;
  max-height: 70vh; overflow-y: auto;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.spec-header {
  display: flex; gap: 12px; padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f5;
}
.spec-thumb {
  width: 80px; height: 80px; border-radius: 8px;
  background: #f5f5f5; display: flex;
  align-items: center; justify-content: center;
  font-size: 36px;
}
.spec-info { flex: 1; }
.spec-price { color: #ff4757; font-size: 20px; font-weight: 600; margin-top: 8px; }
.spec-selected { font-size: 12px; color: #999; margin-top: 4px; }
.spec-close {
  position: absolute; top: 16px; right: 16px;
  width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.spec-group { margin-top: 16px; }
.spec-group-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-option {
  padding: 6px 16px; border-radius: 16px;
  font-size: 13px; border: 1px solid #ddd;
  background: #fff; cursor: pointer;
  transition: all .2s;
}
.spec-option.active {
  border-color: #ff4757; color: #ff4757;
  background: rgba(255,71,87,.05);
}
.spec-quantity {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid #f5f5f5;
}
.qty-control {
  display: flex; align-items: center; gap: 0;
}
.qty-btn {
  width: 30px; height: 30px; border-radius: 4px;
  background: #f5f5f5; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.qty-num {
  width: 40px; height: 30px; text-align: center;
  font-size: 14px; line-height: 30px;
}
.spec-confirm {
  margin-top: 20px; padding-bottom: env(safe-area-inset-bottom);
}
