.card{
  background:#fff;
  border:1px solid #ECECEC;
  border-radius:22px;
  padding:22px;
  margin:16px 0;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.result-card{
  background:#fff;
  border:1px solid #EAEAEA;
  border-radius:28px;
  padding:28px;
  margin:10px 0 24px;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.button{
  width:100%;
  border:0;
  border-radius:14px;
  padding:17px 18px;

  background:var(--oy-green);
  color:#111;

  font-size:16px;
  font-weight:800;

  transition:
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.button:hover{
  background:#75CC21;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(130,220,40,.25);
}

.button:active{
  transform:scale(.98);
}

.button.secondary{
    background:#fff;
    color:#333;
    border:1px solid #ddd;
}

.button.secondary:hover{
  border-color:var(--oy-green);
  background:#FAFDF5;
}

.button:disabled{
  opacity:.35;
  cursor:default;
  transform:none;
  box-shadow:none;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.option{
  display:block;
  width:100%;
  text-align:left;

  padding:17px 18px;
  margin:10px 0;

  border-radius:17px;
  border:1px solid var(--line);

  background:#fff;

  font-size:16px;

  transition:.25s;
}

.option:hover{
  border-color:var(--oy-green);
  background:#FAFDF5;
}

.option.selected{
  border:2px solid var(--oy-green);
  background:var(--oy-green-light);
  color:#222;
  font-weight:700;
}

.option.selected::after{
  content:"✓";
  float:right;
  color:var(--oy-green-dark);
  font-weight:900;
}

.progress{
  height:6px;
  background:#EEEEEE;
  border-radius:999px;
  overflow:hidden;
}

.progress-bar{
  height:100%;
  background:var(--oy-green);
  border-radius:999px;
  transition:width .3s ease;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}

.tag{
  font-size:12px;
  background:#F5FAEF;
  color:#5A8E23;
  border:none;
  border-radius:999px;
  padding:7px 12px;
  font-weight:600;
}

.emoji{
  font-size:42px;
}

.rank{
  display:inline-flex;
  align-items:center;

  padding:6px 12px;

  background:#fff;

  border-left:4px solid var(--oy-green);

  color:#444;

  font-size:11px;
  font-weight:800;

  border-radius:6px;
}

.product-title{
  font-size:21px;
  font-weight:700;
  letter-spacing:-.03em;
  margin:8px 0;
}

.match{
  color:var(--oy-green-dark);
  font-size:34px;
  font-weight:800;
  letter-spacing:-.05em;
}

.match small{
  font-size:13px;
  color:var(--gray);
  font-weight:600;
}

.reasons{
  padding-left:18px;
  line-height:1.7;
}

.link{
  display:inline-block;
  margin-top:8px;
  color:var(--black);
  font-weight:700;
  text-decoration:none;
}

.link:hover{
  color:var(--oy-green-dark);
}

.notice{
  font-size:13px;
  background:var(--light);
  border-radius:15px;
  padding:14px;
  line-height:1.6;
  color:#555;
}

.metric-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.metric{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
}

.metric-label{
  font-size:11px;
  color:var(--gray);
  font-weight:700;
}

.metric-value{
  font-size:24px;
  font-weight:800;
  margin-top:6px;
}

.bar-list{
  display:grid;
  gap:12px;
}

.bar-row{
  display:grid;
  grid-template-columns:120px 1fr 45px;
  gap:10px;
  align-items:center;
}

.bar-track{
  height:9px;
  background:#eee;
  border-radius:99px;
  overflow:hidden;
}

.bar-fill{
  height:100%;
  background:var(--oy-green);
}

.table-wrap{
  overflow:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

th,
td{
  padding:10px 7px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

th{
  font-weight:700;
}

.text-button{
    width:100%;
    margin-top:12px;
    background:none;
    border:none;
    color:#666;
    cursor:pointer;
    font-size:14px;
    padding:10px 0;
    transition:color .2s;
}

.text-button:hover{
    color:#111;
    text-decoration:underline;
}
.product-image-box{
  margin:14px 0 12px;
  padding:14px;
  border-radius:20px;
  background:#FAFAFA;
  border:1px solid #F0F0F0;
  text-align:center;
}

.product-image{
  width:100%;
  max-height:170px;
  object-fit:contain;
  display:block;
  margin:0 auto;
}

/* 추천 상품 카드: 텍스트 왼쪽 / 이미지 오른쪽 */
.card.product-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px;
  column-gap: 32px;
  row-gap: 12px;
  align-items: start;
}

/* 이미지 박스 전체를 오른쪽에 배치 */
.card.product-card .product-image-box {
  grid-column: 2 !important;
  grid-row: 1 / span 10 !important;

  width: 260px !important;
  height: 260px !important;
  margin: 0 0 0 auto !important;
  padding: 20px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #f8f8f8;
  border-radius: 22px;
}

/* 이미지 자체 */
.card.product-card .product-image {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* 이미지 박스를 제외한 나머지는 왼쪽 */
.card.product-card > :not(.product-image-box) {
  grid-column: 1 !important;
}

/* 모바일에서는 이미지 위 / 텍스트 아래 */
@media (max-width: 768px) {
  .card.product-card {
    display: block !important;
  }

  .card.product-card .product-image-box {
    width: 100% !important;
    height: 220px !important;
    margin: 0 0 20px 0 !important;
  }
}

.feedback-reason-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #f8faf5;
  border: 1px solid #e5efd8;
}

.feedback-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.feedback-reason-button {
  border: 1px solid #dfead2;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.feedback-reason-button:hover {
  background: #f1f8e8;
}

.feedback-custom {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.feedback-input {
  flex: 1;
  border: 1px solid #dfead2;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.feedback-submit {
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: #82dc28;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .feedback-reason-grid {
    grid-template-columns: 1fr;
  }

  .feedback-custom {
    flex-direction: column;
  }

  .feedback-submit {
    height: 44px;
  }
}

.dashboard-table-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-table-sub {
  margin-top: 6px;
  margin-bottom: 0;
}

.dashboard-table-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-page-size {
  height: 36px;
  min-width: 96px;
  padding: 0 12px;
  border: 1px solid #dfead2;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.dashboard-pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.dashboard-page-btn {
  width: auto !important;
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dfead2;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-page-btn:hover:not(:disabled) {
  background: #f1f8e8;
}

.dashboard-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dashboard-page-info {
  min-width: 58px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

@media (max-width: 768px) {
  .dashboard-pagination {
    justify-content: center;
  }

  .dashboard-page-btn {
    flex: 0 0 auto;
  }

  .dashboard-page-info {
    width: auto;
    order: 0;
    text-align: center;
    margin-bottom: 0;
  }
}