/* =========================================================
  plants.css
  - 내 식물 페이지 전용 스타일만 (현재 없음)
========================================================= */
/* ---------- Plant List ---------- */
#list.plantList { display:flex; flex-direction:column; gap:12px; }

.plantRow{
  display:flex;
  position:relative;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border-radius: 16px;
  transition: transform .06s ease, background .12s ease;
}

.plantRow:hover{
  background:#F9FAFB;
}

.plantRow:active{
  transform: scale(0.99);
}

.plantMedia{
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow:hidden;
  flex: 0 0 auto;
  background:#F3F4F6;
}

.plantImg{ width:100%; height:100%; object-fit:cover; display:block; }

.plantFallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size: 28px;
}

.plantInfo{
  flex: 1 1 auto;
  min-width: 0;
}

.plantName{
  color:#1F2933;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;

}

.plantLine{
  margin-top: 6px;
  color:#6B7280;
}

/* 버튼 우측 끝 + 하단 정렬 */
.plantAction{
  position:absolute;
  right:12px;
  bottom:12px;
}

/* ---------- Search Bar ---------- */
.searchBar{
  display:flex;
  gap: 10px;
  width: 100%;
}

.searchBar #q{
  flex: 1 1 auto;
  min-width: 0;
}

.searchBar #sort{
  flex: 0 0 auto;
  width: 100%;
  height: 44px;
  font-size:16px;
  color:#6B7280;
  border-radius: 12px;
  border:1px solid #D1D5DB;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 44px;
}

@media (max-width: 420px){
  .searchBar{ flex-direction: column; }
}

/* ---------- Home Header (No Panel) ---------- */
.plantsHeader{
  margin-top: 14px;
}

/* ---------- Header Icon Button ---------- */
.btnIcon{
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btnIcon:hover{
  background:#F0FDF4;
  border-color:#22C55E;
}

.iconPlus{
  width: 22px;
  height: 22px;
  display:block;
  color:#1F2933;
}

.btnIcon:hover .iconPlus{
  color:#16A34A;
}

.btnIcon:active .iconPlus{
  color:#15803D;
}

/* ---------- Empty State ---------- */
.emptyBox{
  border:1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  text-align:center;
  background:#F9FAFB;
}
.emptyIcon{ font-size: 32px; }
.emptyTitle{ margin-top: 10px; font-weight: 700; }
.emptyDesc{ margin-top: 6px; font-size: 13px; color:#6B7280; }
.emptyBox button{ margin-top: 12px; }

/* ---------- Spacing ---------- */
#countTop{
  padding:20px 0 10px;
}

.plantsSearchPanel{
  margin-top: 10px;
}

/* ---------- Plant Fallback Image ---------- */
.plantFallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3f3f3;
}

.plantFallback img{
  width: 70%;
  height: 70%;
  display:block;
  object-fit: contain;
  opacity: 0.95;
}

/* ---------- Count Styling ---------- */
.count{
  font-size: 14px;
  margin-top: 8px;
}

.countLabel{
  color:#6B7280;
}

.countSub{
  color:#9CA3AF;
}

.countNum{
  font-weight: 700;
  color:#16A34A;
  transition: all .5s ease;
}

.countUnit{
  color:#6B7280;
}

.countDot{
  font-size:20px;
  color:#D1D5DB;
  display:inline-block;
  transform: translateY(1px);
}

/* ---------- File Upload ---------- */
.fileUploadField{
  margin-top:6px;
}

.fileInputHidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.fileUploadRow{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}

.filePickBtn{
  flex:0 0 auto;
  min-width:96px;
  height:44px;
  padding:0 14px;
  border:1px solid #22C55E;
  border-radius:12px;
  background:#F0FDF4;
  color:#16A34A;
  font-weight:600;
}

.filePickBtn:hover{
  background:#DCFCE7;
  border-color:#16A34A;
  color:#15803D;
}

.filePickBtn:active{
  background:#BBF7D0;
  border-color:#15803D;
  color:#166534;
}

.fileNameText{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  display:flex;
  align-items:center;
  padding:0 14px;
  border:1px solid #D1D5DB;
  border-radius:12px;
  background:#fff;
  color:#6B7280;
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fileUploadActions{
  margin-top:10px;
}

.fileRemoveBtn{
  display:none;
  width:100%;
  border:1px solid #D1D5DB;
  background:#fff;
  color:#6B7280;
}

.fileRemoveBtn:hover{
  border-color:#EF4444;
  color:#DC2626;
  background:#FEF2F2;
}

.fileHelpText{
  margin-top:8px;
  font-size:12px;
  color:#6B7280;
}

/* ---------- Detail Info Grid ---------- */
.plantInfoGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.plantInfoItem{
  padding:14px;
  border:1px solid #E5E7EB;
  border-radius:14px;
  background:#F9FAFB;
}

.plantInfoLabel{
  font-size:12px;
  color:#6B7280;
  margin-bottom:6px;
}

.plantInfoValue{
  font-size:18px;
  font-weight:700;
  color:#1F2933;
  line-height:1.35;
  word-break:break-word;
}

@media (max-width: 520px){
  .plantInfoGrid{
    
  }

  .plantInfoValue{
    font-size:17px;
  }
}