/* ========================================
   가전렌탈 CSS
   ======================================== */

/* 공통 변수 */
:root {
  --rental-primary: #4183ed;
  --rental-primary-dark: #3570d4;
  --rental-secondary: #6c757d;
  --rental-success: #28a745;
  --rental-warning: #ffc107;
  --rental-danger: #dc3545;
  --rental-bg: #f8f9fa;
  --rental-border: #e9ecef;
  --rental-text: #333;
  --rental-text-muted: #666;
  --rental-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --rental-radius: 12px;
  --rental-radius-sm: 8px;
}

/* ========================================
   히어로 섹션
   ======================================== */
.rental-hero {
  background: linear-gradient(135deg, rgba(65, 131, 237, 0.9) 0%, rgba(106, 90, 205, 0.9) 100%),
              url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
  padding: 80px 0;
  color: #fff;
  position: relative;
}

.rental-hero .hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.rental-hero .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.rental-hero .hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 32px;
}

.rental-search-box {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.rental-search-box .search-input-wrap {
  flex: 1;
  position: relative;
}

.rental-search-box .search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.rental-search-box input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: none;
  border-radius: var(--rental-radius);
  font-size: 1rem;
}

.rental-search-box .search-btn {
  padding: 14px 28px;
  background: #fff;
  color: var(--rental-primary);
  border: none;
  border-radius: var(--rental-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.rental-search-box .search-btn:hover {
  background: #f0f0f0;
}

/* ========================================
   프로모션 배너
   ======================================== */
.rental-promo-section {
  padding: 40px 0;
  background: #fff;
}

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

.promo-card {
  position: relative;
  border-radius: var(--rental-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  text-decoration: none;
  display: block;
}

.promo-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.promo-card:hover .promo-image {
  transform: scale(1.05);
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #fff;
}

.promo-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--rental-primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.promo-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .promo-card {
    aspect-ratio: 16/9;
  }
}

/* ========================================
   브레드크럼
   ======================================== */
.rental-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--rental-border);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--rental-text-muted);
}

.breadcrumb a {
  color: var(--rental-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--rental-primary);
}

.breadcrumb .separator {
  font-size: 0.75rem;
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--rental-text);
  font-weight: 500;
}

/* ========================================
   섹션 공통
   ======================================== */
.rental-categories-section,
.rental-recommended-section,
.rental-ranking-section,
.rental-popular-section {
  padding: 60px 0;
}

.rental-categories-section {
  background: #fff;
}

.rental-recommended-section {
  background: var(--rental-bg);
}

.rental-ranking-section {
  background: #fff;
}

.rental-popular-section {
  background: var(--rental-bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rental-text);
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
  margin-top: 8px;
}

.view-all-link {
  font-size: 0.9375rem;
  color: var(--rental-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* ========================================
   카테고리 그리드
   ======================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--rental-bg);
  border-radius: var(--rental-radius);
  text-decoration: none;
  color: var(--rental-text);
  transition: all 0.2s;
}

.category-card:hover {
  background: var(--rental-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--rental-shadow);
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--rental-primary);
}

.category-card:hover .category-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* 카테고리 이미지 스타일 */
.category-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--rental-radius);
  margin-bottom: 12px;
  padding: 8px;
  transition: all 0.3s;
}

.category-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.category-image i {
  font-size: 2rem;
  color: var(--rental-primary);
}

.category-card:hover .category-image {
  background: rgba(255,255,255,0.95);
  transform: scale(1.05);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-name {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ========================================
   제품 그리드
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--rental-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--rental-text);
  box-shadow: var(--rental-shadow);
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-card .no-image {
  font-size: 3rem;
  color: #ddd;
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-best {
  background: var(--rental-primary);
  color: #fff;
}

.badge-recommend {
  background: var(--rental-success);
  color: #fff;
}

.badge-new {
  background: var(--rental-warning);
  color: #333;
}

.product-card .product-info {
  padding: 16px;
}

.product-card .product-brand {
  display: block;
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
  margin-bottom: 4px;
}

.product-card .product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-subtitle {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
  margin-bottom: 12px;
}

.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-card .monthly-label {
  font-size: 0.875rem;
  color: var(--rental-text-muted);
}

.product-card .monthly-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rental-primary);
}

.product-card .free-months {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========================================
   랭킹 탭
   ======================================== */
.ranking-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.ranking-tabs .tab-btn {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--rental-border);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rental-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.ranking-tabs .tab-btn:hover,
.ranking-tabs .tab-btn.active {
  background: var(--rental-primary);
  border-color: var(--rental-primary);
  color: #fff;
}

/* ========================================
   랭킹 리스트
   ======================================== */
.ranking-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--rental-radius);
  text-decoration: none;
  color: var(--rental-text);
  box-shadow: var(--rental-shadow);
  transition: all 0.2s;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.ranking-item .rank-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--rental-text-muted);
}

.ranking-item .rank-number.top {
  background: var(--rental-primary);
  color: #fff;
}

.ranking-item .ranking-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #f8f8f8;
  border-radius: var(--rental-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-item .ranking-image img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.ranking-item .ranking-info {
  flex: 1;
}

.ranking-item .ranking-brand {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.ranking-item .ranking-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 4px 0;
}

.ranking-item .ranking-model {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.ranking-item .ranking-price {
  text-align: right;
}

.ranking-item .ranking-price .monthly-label {
  font-size: 0.875rem;
  color: var(--rental-text-muted);
}

.ranking-item .ranking-price .monthly-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rental-primary);
}

/* ========================================
   상담 신청 섹션
   ======================================== */
.rental-consultation-section {
  padding: 40px 0;
  background: #fff;
}

.consultation-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: linear-gradient(135deg, #4183ed 0%, #6a5acd 100%);
  border-radius: var(--rental-radius);
  color: #fff;
}

.consultation-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.consultation-desc {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.consultation-btn {
  padding: 14px 32px;
  background: #fff;
  color: var(--rental-primary);
  border: none;
  border-radius: var(--rental-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.consultation-btn:hover {
  background: #f0f0f0;
}

/* ========================================
   카테고리 페이지
   ======================================== */
.category-header-section {
  background: #fff;
  padding: 40px 0 0;
  border-bottom: 1px solid var(--rental-border);
}

.category-header .category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-header .category-desc {
  font-size: 1rem;
  color: var(--rental-text-muted);
}

.category-tabs-wrapper {
  margin-top: 32px;
  overflow-x: auto;
}

.category-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rental-border);
}

.category-tabs .tab-link {
  padding: 16px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rental-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-tabs .tab-link:hover,
.category-tabs .tab-link.active {
  color: var(--rental-primary);
  border-bottom-color: var(--rental-primary);
}

.category-content-section {
  padding: 40px 0;
  background: var(--rental-bg);
}

.category-layout {
  display: flex;
  gap: 32px;
}

/* ========================================
   사이드 필터
   ======================================== */
.filter-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.filter-section {
  background: #fff;
  border-radius: var(--rental-radius);
  padding: 20px;
  margin-bottom: 16px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rental-border);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.filter-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--rental-primary);
}

.filter-reset-btn {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.filter-reset-btn:hover {
  border-color: var(--rental-primary);
  color: var(--rental-primary);
}

/* ========================================
   메인 콘텐츠
   ======================================== */
.product-main {
  flex: 1;
  min-width: 0;
}

.product-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.product-count {
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
}

.control-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  border: 1px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  overflow: hidden;
  background: #fff;
}

.search-box input {
  padding: 10px 14px;
  border: none;
  font-size: 0.875rem;
  width: 180px;
}

.search-box button {
  padding: 10px 14px;
  background: var(--rental-primary);
  color: #fff;
  border: none;
  cursor: pointer;
}

.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  font-size: 0.875rem;
  background: #fff;
}

/* 인라인 랭킹 */
.inline-ranking {
  background: #fff;
  border-radius: var(--rental-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.inline-ranking-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rental-primary);
  margin-bottom: 16px;
}

.inline-ranking-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.inline-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--rental-bg);
  border-radius: var(--rental-radius-sm);
  text-decoration: none;
  color: var(--rental-text);
  min-width: 200px;
  flex-shrink: 0;
}

.inline-rank-item .rank-badge {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.inline-rank-item .rank-badge.top {
  background: var(--rental-primary);
  color: #fff;
}

.inline-rank-item .rank-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.inline-rank-item .rank-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inline-rank-item .rank-info {
  display: flex;
  flex-direction: column;
}

.inline-rank-item .rank-brand {
  font-size: 0.75rem;
  color: var(--rental-text-muted);
}

.inline-rank-item .rank-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.inline-rank-item .rank-price {
  font-size: 0.8125rem;
  color: var(--rental-primary);
  font-weight: 600;
}

/* 대형 제품 그리드 */
.product-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card-large {
  background: #fff;
  border-radius: var(--rental-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--rental-text);
  box-shadow: var(--rental-shadow);
  transition: all 0.2s;
}

.product-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card-large .product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-large .product-image img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.product-card-large .product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.product-card-large .product-info {
  padding: 20px;
}

.product-card-large .product-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-card-large .product-brand {
  font-size: 0.8125rem;
  color: var(--rental-primary);
  font-weight: 500;
}

.product-card-large .product-category {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.product-card-large .product-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card-large .product-model {
  font-size: 0.875rem;
  color: var(--rental-text-muted);
  margin-bottom: 4px;
}

.product-card-large .product-subtitle {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
  margin-bottom: 16px;
}

.product-card-large .product-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-card-large .monthly-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-card-large .monthly-label {
  font-size: 0.875rem;
  color: var(--rental-text-muted);
}

.product-card-large .monthly-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rental-primary);
}

.product-card-large .free-tag {
  padding: 4px 10px;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card-large .product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card-large .spec-item {
  padding: 4px 10px;
  background: var(--rental-bg);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--rental-text-muted);
}

/* ========================================
   페이지네이션
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  font-size: 0.9375rem;
  color: var(--rental-text);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--rental-primary);
  color: var(--rental-primary);
}

.page-btn.active {
  background: var(--rental-primary);
  border-color: var(--rental-primary);
  color: #fff;
}

.page-dots {
  padding: 0 8px;
  color: var(--rental-text-muted);
}

/* ========================================
   제품 상세 페이지
   ======================================== */
.product-detail-section {
  padding: 40px 0;
  background: #fff;
}

.product-detail-layout {
  display: flex;
  gap: 48px;
}

.product-gallery {
  width: 480px;
  flex-shrink: 0;
}

.main-image {
  aspect-ratio: 1;
  background: #f8f8f8;
  border-radius: var(--rental-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.main-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.main-image .no-image {
  font-size: 4rem;
  color: #ddd;
}

.thumbnail-list {
  display: flex;
  gap: 8px;
}

.thumbnail {
  width: 72px;
  height: 72px;
  border: 2px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: var(--rental-primary);
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info {
  flex: 1;
}

.product-detail-info .product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.product-detail-info .brand-name {
  font-size: 1rem;
  color: var(--rental-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.product-detail-info .product-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-info .product-model {
  font-size: 1rem;
  color: var(--rental-text-muted);
  margin-bottom: 4px;
}

.product-detail-info .product-subtitle {
  font-size: 1rem;
  color: var(--rental-text-muted);
  margin-bottom: 24px;
}

/* 가격 요약 */
.price-summary {
  background: var(--rental-bg);
  border-radius: var(--rental-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.price-row.main-price {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rental-border);
}

.price-label {
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
}

.price-value {
  font-size: 1rem;
  font-weight: 500;
}

.price-row.main-price .price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rental-primary);
}

.price-highlight {
  color: var(--rental-primary);
  font-weight: 600;
}

.price-value.original {
  text-decoration: line-through;
  color: var(--rental-text-muted);
}

/* 제품 옵션 */
.product-options {
  margin-bottom: 24px;
}

.option-group {
  margin-bottom: 16px;
}

.option-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.color-option input {
  display: none;
}

.color-option.selected,
.color-option:has(input:checked) {
  border-color: var(--rental-primary);
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.color-name {
  font-size: 0.875rem;
}

/* 제품 특징 */
.product-features {
  margin-bottom: 24px;
}

.features-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--rental-text);
}

.features-list li i {
  color: var(--rental-success);
}

/* 액션 버튼 */
.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.product-actions .btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 1rem;
  border-radius: var(--rental-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.info-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: var(--rental-bg);
  border-radius: var(--rental-radius-sm);
  color: var(--rental-text-muted);
  font-size: 0.875rem;
}

.info-notice i {
  margin-top: 2px;
}

/* ========================================
   상세 탭
   ======================================== */
.product-tabs-section {
  padding: 40px 0;
  background: var(--rental-bg);
}

.tabs-header {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--rental-radius) var(--rental-radius) 0 0;
  overflow: hidden;
  border: 1px solid var(--rental-border);
  border-bottom: none;
}

.tabs-header .tab-btn {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--rental-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tabs-header .tab-btn:hover {
  background: var(--rental-bg);
}

.tabs-header .tab-btn.active {
  color: var(--rental-primary);
  border-bottom-color: var(--rental-primary);
  background: #fff;
}

.tabs-content {
  background: #fff;
  border: 1px solid var(--rental-border);
  border-radius: 0 0 var(--rental-radius) var(--rental-radius);
  padding: 32px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.detail-content {
  line-height: 1.8;
}

.detail-content img {
  max-width: 100%;
  height: auto;
}

.specs-table {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  border-bottom: 1px solid var(--rental-border);
  padding: 14px 0;
}

.spec-key {
  width: 160px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--rental-text);
}

.spec-value {
  flex: 1;
  color: var(--rental-text-muted);
}

/* 설치 안내 */
.install-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--rental-bg);
  border-radius: var(--rental-radius);
}

.guide-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rental-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.guide-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-content p {
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
  line-height: 1.6;
}

/* 이용 안내 */
.notice-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.notice-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.notice-item ul {
  padding-left: 20px;
  color: var(--rental-text-muted);
}

.notice-item li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* 관련 제품 */
.related-products-section {
  padding: 60px 0;
  background: #fff;
}

/* ========================================
   베스트 랭킹 페이지
   ======================================== */
.ranking-header-section {
  background: linear-gradient(135deg, #4183ed 0%, #6a5acd 100%);
  padding: 60px 0 40px;
  color: #fff;
}

.ranking-header {
  text-align: center;
  margin-bottom: 40px;
}

.ranking-title {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ranking-title i {
  color: #ffc107;
}

.ranking-desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 12px;
}

.ranking-category-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.ranking-tabs-scroll {
  display: flex;
  gap: 8px;
}

.ranking-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--rental-radius);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.ranking-tab:hover,
.ranking-tab.active {
  background: #fff;
  color: var(--rental-primary);
  border-color: #fff;
}

.ranking-tab i {
  font-size: 1.25rem;
}

.ranking-tab span {
  font-size: 0.8125rem;
  font-weight: 500;
}

.ranking-content-section {
  padding: 40px 0;
  background: var(--rental-bg);
}

/* TOP 3 */
.top-three-section {
  margin-bottom: 48px;
}

.top-three-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}

.top-card {
  width: 280px;
  background: #fff;
  border-radius: var(--rental-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--rental-text);
  box-shadow: var(--rental-shadow);
  transition: all 0.2s;
}

.top-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.top-card.first {
  width: 320px;
}

.top-rank {
  padding: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.top-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
}

.top-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.top-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b07025 100%);
}

.top-image {
  aspect-ratio: 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-image img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.top-info {
  padding: 20px;
  text-align: center;
}

.top-brand {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.top-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 8px 0 4px;
}

.top-model {
  font-size: 0.875rem;
  color: var(--rental-text-muted);
  margin-bottom: 16px;
}

.top-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.top-price .label {
  font-size: 0.875rem;
  color: var(--rental-text-muted);
}

.top-price .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rental-primary);
}

.top-card .free-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 랭킹 테이블 */
.ranking-table-section {
  background: #fff;
  border-radius: var(--rental-radius);
  padding: 24px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.table-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.table-count {
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
}

.ranking-table .table-head {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 2px solid var(--rental-border);
  font-weight: 500;
  color: var(--rental-text-muted);
  font-size: 0.875rem;
}

.ranking-table .table-row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rental-border);
}

.ranking-table .col-rank {
  width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.ranking-table .col-product {
  flex: 2;
}

.ranking-table .col-specs {
  flex: 1.5;
}

.ranking-table .col-price {
  width: 140px;
  flex-shrink: 0;
}

.ranking-table .col-action {
  width: 100px;
  flex-shrink: 0;
  text-align: center;
}

.ranking-table .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

.ranking-table .rank-num.top {
  background: var(--rental-primary);
  color: #fff;
}

.ranking-table .product-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.ranking-table .product-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #f8f8f8;
  border-radius: var(--rental-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-table .product-thumb img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.ranking-table .product-detail {
  display: flex;
  flex-direction: column;
}

.ranking-table .product-brand {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.ranking-table .product-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 4px 0;
}

.ranking-table .product-model {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.ranking-table .spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ranking-table .spec-tag {
  padding: 4px 10px;
  background: var(--rental-bg);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--rental-text-muted);
}

.ranking-table .price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ranking-table .monthly-label {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.ranking-table .monthly-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rental-primary);
}

.ranking-table .free-badge {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #856404;
  font-weight: 500;
}

.ranking-table .contract-info {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--rental-text-muted);
}

.ranking-table .action-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--rental-primary);
  color: #fff;
  border-radius: var(--rental-radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.ranking-table .action-btn:hover {
  background: var(--rental-primary-dark);
}

/* CTA 배너 */
.rental-cta-section {
  padding: 40px 0;
  background: #fff;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: var(--rental-bg);
  border-radius: var(--rental-radius);
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--rental-text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--rental-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--rental-radius);
  font-weight: 600;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--rental-primary-dark);
}

/* ========================================
   모달
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  border-radius: var(--rental-radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-container.modal-lg {
  max-width: 600px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rental-border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--rental-text-muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--rental-bg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--rental-border);
}

/* 선택된 제품 정보 */
.selected-product-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--rental-bg);
  border-radius: var(--rental-radius-sm);
}

.selected-product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--rental-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-product-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.selected-product-detail {
  display: flex;
  flex-direction: column;
}

.selected-brand {
  font-size: 0.8125rem;
  color: var(--rental-text-muted);
}

.selected-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 4px 0;
}

.selected-price {
  font-size: 0.9375rem;
  color: var(--rental-primary);
}

.form-divider {
  height: 1px;
  background: var(--rental-border);
  margin: 20px 0;
}

/* 폼 요소 */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-label.required::after {
  content: ' *';
  color: var(--rental-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rental-border);
  border-radius: var(--rental-radius-sm);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rental-primary);
}

.form-textarea {
  resize: vertical;
}

/* 버튼 */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--rental-radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--rental-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rental-primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--rental-text);
  border: 1px solid var(--rental-border);
}

.btn-secondary:hover {
  background: var(--rental-bg);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* 빈 상태 */
.empty-message,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--rental-text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-row {
  padding: 40px;
  text-align: center;
  color: var(--rental-text-muted);
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    display: flex;
    gap: 16px;
    overflow-x: auto;
  }

  .filter-section {
    flex-shrink: 0;
    min-width: 200px;
  }

  .product-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-layout {
    flex-direction: column;
  }

  .product-gallery {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .top-three-grid {
    flex-wrap: wrap;
  }

  .top-card,
  .top-card.first {
    width: calc(50% - 12px);
  }

  .ranking-table .col-specs {
    display: none;
  }
}

@media (max-width: 768px) {
  .rental-hero {
    padding: 40px 0;
  }

  .rental-hero .hero-title {
    font-size: 1.75rem;
  }

  .rental-search-box {
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 16px 12px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-grid-large {
    grid-template-columns: 1fr;
  }

  .product-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .control-right {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .consultation-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .install-guide {
    grid-template-columns: 1fr;
  }

  .top-card,
  .top-card.first {
    width: 100%;
  }

  .ranking-table .table-head {
    display: none;
  }

  .ranking-table .table-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ranking-table .col-rank {
    width: auto;
    order: 1;
  }

  .ranking-table .col-product {
    flex: 1;
    order: 2;
  }

  .ranking-table .col-price {
    width: 100%;
    order: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 44px;
  }

  .ranking-table .col-action {
    width: 100%;
    order: 4;
    text-align: left;
    padding-left: 44px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modal-container {
    max-width: 95%;
    max-height: 85vh;
  }

  .product-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-tabs {
    flex-wrap: nowrap;
  }

  .ranking-item {
    flex-wrap: wrap;
  }

  .ranking-item .ranking-price {
    width: 100%;
    text-align: left;
    margin-top: 8px;
    padding-left: 48px;
  }
}
