/* 가전렌탈 상품 리스트 */
.rental-list-page {
  background: #f4f6f9;
  padding: 0 0 56px;
  min-height: 60vh;
}

.rental-list-inner {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.rental-list-hero {
  padding: 20px 0 8px;
}
.rental-list-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}
.rental-list-hero p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.rental-list-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f4f6f9;
  padding: 12px 0 14px;
  margin-bottom: 8px;
}

.rental-filter-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.rental-filter-row {
  display: grid;
  gap: 8px;
}
.rental-filter-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.02em;
}

.rental-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rental-cat-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rental-cat-tab:hover {
  border-color: #cbd5e1;
}
.rental-cat-tab.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.rental-chip-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rental-filter-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.rental-filter-chip.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.rental-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.rental-list-count {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.rental-sort-select {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #fff;
}

.rental-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .rental-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1024px) {
  .rental-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rental-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}
.rental-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.rental-card-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}
.rental-card-thumb img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}
.rental-card-thumb .placeholder {
  font-size: 36px;
  opacity: 0.35;
}

.rental-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rental-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  color: #fff;
}
.rental-badge--new { background: #2563eb; }
.rental-badge--sale { background: #dc2626; }
.rental-badge--hot { background: #ea580c; }
.rental-badge--pop { background: #7c3aed; }

.rental-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.rental-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rental-card-model {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rental-card-meta {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}
.rental-card-price {
  margin-top: auto;
  padding-top: 6px;
}
.rental-card-price strong {
  font-size: 17px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}
.rental-card-price span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.rental-card-price del {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.rental-consult-btn {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: linear-gradient(180deg, #2d5bff, #1d3fff);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(45, 91, 255, 0.2);
}
.rental-consult-btn:hover {
  filter: brightness(1.03);
}

.rental-list-loading,
.rental-list-empty,
.rental-list-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #94a3b8;
  font-size: 14px;
}
.rental-list-error {
  color: #dc2626;
}

.rental-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.rental-page-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rental-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rental-page-info {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.rental-external-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}
.rental-external-note a {
  font-weight: 700;
}

/* 상담 신청 모달 */
.consult-modal[hidden] { display: none !important; }
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.consult-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.consult-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.consult-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
.consult-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.consult-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  font-size: 18px;
}
.consult-modal-close:hover { background: #e2e8f0; }
.consult-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: auto;
}
.consult-summary {
  padding: 20px 22px;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}
.consult-summary h3,
.consult-form h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
}
.consult-summary-section {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e5e7eb;
}
.consult-summary-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.consult-summary-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2d5bff;
}
.consult-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #374151;
  padding: 3px 0;
}
.consult-summary-row strong { color: #111827; font-weight: 700; }
.consult-summary-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 15px;
}
.consult-summary-row.total strong { color: #2744ff; font-weight: 800; }
.consult-addon-chip {
  display: inline-block;
  background: #eef2ff;
  color: #3b4cca;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  margin: 3px 6px 0 0;
}
.consult-form {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafbff;
}
.consult-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.consult-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}
.consult-field input,
.consult-field textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.consult-field input:focus,
.consult-field textarea:focus {
  outline: 2px solid #c7d2fe;
  outline-offset: 1px;
  border-color: #6366f1;
}
.consult-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  margin-top: 4px;
}
.consult-actions { margin-top: 6px; }
.btn-consult-submit {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #2d5bff, #1d3fff);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(45, 91, 255, 0.25);
}
.btn-consult-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}
.consult-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}
.consult-msg.error { background: #fef2f2; color: #dc2626; }
.consult-msg.success { background: #ecfdf5; color: #059669; }

@media (max-width: 768px) {
  .consult-modal { padding: 0; }
  .consult-modal-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .consult-modal-body {
    grid-template-columns: 1fr;
  }
  .consult-summary {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
}
