/* =========================================================
   Main Rental Section
   Figma RentalSection.tsx 렌탈 상품 영역 변환
========================================================= */

.main-rental-section {
  position: relative;
  width: 100%;
  padding: 40px 0;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f9fafb 100%
    );
}

.main-rental-section__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================================
   Heading
========================================================= */

.main-rental-heading {
  margin-bottom: 48px;
  padding: 0 16px;
  text-align: center;
}

.main-rental-heading h2 {
  margin: 0 0 16px;
  color: var(--se-foreground, #1a1a1a);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.main-rental-heading p {
  margin: 0;
  color: var(--se-muted, #666666);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  word-break: keep-all;
}

.main-rental-heading strong {
  color: var(--se-primary, #023da5);
  font-weight: 600;
}

/* =========================================================
   Product Area
========================================================= */

.rental-product-area {
  position: relative;
  margin-bottom: 40px;
}

.rental-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.rental-product-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  color: #666666;
  text-align: center;
  font-size: 16px;
}

/* =========================================================
   Product Card
========================================================= */

.rental-product-card {
  display: block;
  min-width: 0;
  overflow: hidden;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  background: #ffffff;
  color: #1a1a1a;

  cursor: pointer;

  transition:
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.rental-product-card:hover,
.rental-product-card:focus-visible {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #1a1a1a;

  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rental-product-card:focus-visible {
  outline: 3px solid rgba(2, 61, 165, 0.25);
  outline-offset: 3px;
}

/* =========================================================
   Product Image
========================================================= */

.rental-product-card__image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #ffffff;
}

.rental-product-card__product-image {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transform: none;
  filter: none;

  transition: none;
}

/*
  이미지보다 큰 부모 배경을 변경하지 않고
  이미지 영역 전체 위에 5% 파란 오버레이만 표시합니다.
*/
.rental-product-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: block;

  background: #023da5;
  opacity: 0;

  pointer-events: none;

  transition: opacity 300ms ease;
}

.rental-product-card:hover
.rental-product-card__overlay,
.rental-product-card:focus-visible
.rental-product-card__overlay {
  opacity: 0.05;
}

/* =========================================================
   Brand Logo
========================================================= */

.rental-product-card__brand {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 20px;
  padding: 4px 8px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.95);

  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.rental-product-card__brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 12px;

  object-fit: contain;
}

/* =========================================================
   Product Body
========================================================= */

.rental-product-card__body {
  padding: 20px;
  background: #ffffff;
}

.rental-product-card__body h3 {
  margin: 0 0 16px;

  color: #1a1a1a;

  text-align: center;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;

  word-break: keep-all;
}

/* =========================================================
   Product Specs
========================================================= */

.rental-product-card__specs {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.rental-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-width: 0;

  color: #1a1a1a;

  font-size: 14px;
  line-height: 1.5;
}

.rental-spec-row__label {
  display: flex;
  align-items: center;
  gap: 8px;

  min-width: 0;

  color: #666666;
}

.rental-spec-row__label span {
  word-break: keep-all;
  white-space: nowrap;
}

.rental-spec-row__icon {
  flex: 0 0 16px;

  display: block;
  width: 16px;
  height: 16px;

  color: currentColor;
}

.rental-spec-row strong {
  flex: 0 0 auto;

  color: #1a1a1a;

  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   Rental Price
========================================================= */

.rental-product-card__price {
  padding-top: 16px;

  border-top: 1px solid #f3f4f6;

  text-align: center;
}

.rental-price-label {
  display: inline-block;

  margin-bottom: 8px;
  padding: 4px 16px;

  border-radius: 9999px;

  background: rgba(2, 61, 165, 0.1);
  color: #023da5;

  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.rental-product-card__price p {
  margin: 0;

  color: #023da5;

  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;

  word-break: keep-all;
}

/* =========================================================
   Responsive
========================================================= */

@media (min-width: 640px) {
  .main-rental-section__container {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (min-width: 768px) {
  .main-rental-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .main-rental-heading h2 {
    font-size: 36px;
  }

  .main-rental-heading p {
    font-size: 20px;
  }

  .rental-product-area {
    margin-bottom: 48px;
  }

  .rental-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .main-rental-section__container {
    padding-right: 32px;
    padding-left: 32px;
  }

  .main-rental-heading h2 {
    font-size: 48px;
  }

  .rental-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rental-product-card,
  .rental-product-card__overlay {
    transition: none;
  }
}

/* 렌탈 상품 가격 안내 */
.rental-product-notice {
  display: flex;
  align-items: flex-start;
  gap: 5px;

  margin: 8px 0 0;
  padding: 0 16px 12px 16px;

  /* border: 1px solid #e7eaf0; */
  /* border-radius: 8px; */
  /* background-color: #f8f9fb; */

  color: #687080;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;

  word-break: keep-all;
  overflow-wrap: break-word;
}

.rental-product-notice__mark {
  flex: 0 0 auto;

  color: #315bec;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.rental-product-notice__text {
  min-width: 0;
}

/* 모바일 */
@media (max-width: 767px) {
  .rental-product-notice {
    gap: 4px;

    margin-top: 12px;
    padding: 11px 13px;

    border-radius: 6px;

    font-size: 12px;
    line-height: 1.55;
  }

  .rental-product-notice__mark {
    font-size: 14px;
  }
}