@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap);
/* 예시파일 */

:root {
  --layout-color: #fff;
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-bottom-gap: 0px;
  --app-bottom-offset: calc(var(--app-safe-bottom) + var(--app-bottom-gap));
}

@media (max-width: 768px) {
  :root {
    --app-bottom-gap: 10px;
  }
}

/* 헤더 스타일 - thirtymall.com 디자인 반영 */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header--main {
  padding-top: var(--app-safe-top);
  height: calc(52px + var(--app-safe-top));
  box-sizing: border-box;
}

.header.header--sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: calc(4px + var(--app-safe-top)) 10px 4px;
}

.header.header--sub .header__title {
  margin: 0;
}

.header.header--sub .header__left-btn,
.header.header--sub .header__cart-btn {
  margin-top: 2px;
}

.header__title-wrap {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header.header--search .header__left-btn,
.header.header--search .header__cart-btn {
  position: static;
  transform: none;
}

.header.header--search .header__search-field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.header.header--search .search-field {
  width: 100%;
  background: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 4px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.header.header--search .search-field input,
.header.header--search .header__search-field input {
  width: 100%;
  background: transparent;
  font-size: 15px;
  padding: 0;
  height: 100%;
  line-height: normal;
}

.header.header--search .search-field input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.header--main .header-top {
  height: 100%;
}

.header-top__left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.hamburger-menu {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-menu svg {
  width: 24px !important;
  height: 24px !important;
}

.header-top__center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 0 12px 0 0;
  min-width: 0;
}

.header-top__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.display-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 12px 0;
}

.display-section-card {
  border-radius: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 8px 15px;
  border: 1px solid #e0e0e0;
  width: 100%;
  max-width: 400px;
  min-width: 0;
  box-sizing: border-box;
}

.search-box__input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 5px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

.search-box__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
}

.search-keyword-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.search-landing {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 24px;
}

.search-landing,
.search-keyword-sections {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.search-landing__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 24px;
  background: #f4f4f4;
}

.search-landing__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.search-landing__button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.search-keyword-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-keyword-section__title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.search-keyword-section__action {
  font-size: 13px;
  color: #999;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.search-keyword-section__empty,
.search-keyword-section__loading {
  font-size: 13px;
  color: #b0b0b0;
  margin: 0;
}

.search-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #eee;
  background: #f7f7f7;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.search-keyword-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #666;
  font-size: 12px;
  line-height: 1;
}

.search-recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.search-recommend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: #222;
}

.search-recommend-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ffeceb;
  color: #ff6b5a;
  font-weight: 700;
  font-size: 12px;
}

.search-recommend-text {
  font-size: 14px;
  font-weight: 500;
}

.search-recent-products__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-recent-products__list .thumb-item {
  margin: 0;
}

.search-recent-products__list .product-thumb-info__currency {
  margin-left: 2px;
  font-size: 12px;
  color: #999;
}

.search-recent-slider {
  padding-bottom: 8px;
}

.search-recent-slider .swiper-slide {
  width: 160px;
}

.search-recent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-recent-card__image {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}

.search-recent-card__image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.search-recent-card .cart-icon-button {
  position: absolute;
  right: 10px;
  bottom: 86px;
}

.search-recent-card__name {
  font-size: 14px;
  color: #222;
  text-decoration: none;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-recent-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.search-recent-card__discount {
  font-weight: 700;
  color: #ff6b5a;
}

.search-recent-card__amount {
  font-weight: 700;
  color: #111;
}

.search-recent-card__currency {
  font-size: 12px;
  color: #999;
}

.search-recent-card__expiration {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}

.search-recent-card__shipping {
  font-size: 12px;
  color: #888;
}

.search-recent-more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px dashed #ddd;
  color: #888;
  text-decoration: none;
  min-height: 160px;
  font-size: 13px;
}

@media (min-width: 480px) {
  .search-recent-products__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .search-recent-products__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.header__cart-link,
.header__user-link {
  position: relative;
  font-size: 24px;
  padding: 5px;
  transition: transform 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header--main .header-top__right .header__cart-link {
  margin-right: 5px;
}

.header__cart-link:hover,
.header__user-link:hover {
  transform: scale(1.1);
}

.header__cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  color: #111;
  background: #fff;
  text-decoration: none;
}

.header__home-btn svg {
  stroke: currentColor;
}

.header__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  color: #111;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cart__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 24px;
}

.cart__tab {
  border: none;
  background: #f2f2f2;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart__tab--active {
  background: #111;
  color: #fff;
}

.cart__delivery-fee {
  display: block;
  margin-top: 6px;
  margin-left: 28px;
  font-size: 12px;
  color: #666;
}

.cart__fixed-order-btn {
  padding-bottom: calc(14px + var(--app-bottom-offset));
}

.cart-like {
  padding: 0 16px 40px;
}

.cart-like__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-like__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
}

.cart-like__thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-like__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-like__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-like__name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.cart-like__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.cart-like__discount {
  color: #e74c3c;
  font-weight: 700;
}

.cart-like__actions {
  display: flex;
  gap: 8px;
}

.cart-like__button {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 12px;
}

.cart-like__button--primary {
  border-color: #111;
  color: #111;
}

.cart-like__empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

.lao-option-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
}

.lao-option-modal {
  position: fixed;
  bottom: var(--app-bottom-offset);
  left: 0;
  right: 0;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 20px calc(20px + var(--app-bottom-offset));
  z-index: 2000;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.lao-option-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.lao-option-modal__header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.lao-option-modal__close {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.lao-option-modal__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.lao-option-modal__footer {
  margin-top: 20px;
}

.lao-option-modal__footer button {
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
}

/* 약관/회사소개 모달 크기 조정 */
.full-modal.agreement .title-modal--full {
  width: min(92vw, 420px);
  max-height: 80vh;
  height: auto;
  margin: 0 auto;
}

.full-modal.agreement .title-modal__content {
  max-height: calc(80vh - 64px);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .full-modal.agreement .title-modal--full {
    width: min(92vw, 360px);
    max-height: 75vh;
  }

  .full-modal.agreement .title-modal__content {
    max-height: calc(75vh - 60px);
  }
}

/* 네비게이션 바 스타일 */
.nav {
  border-top: 1px solid #e0e0e0;
  padding: 10px 0;
  background: white;
}

.nav__link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 15px;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

.nav__link:hover,
.nav__link.is-active {
  color: #3498db;
}

/* 메인 페이지 스타일 */
.main-view {
  background-color: #f5f5f5;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
}

/* 컨테이너 공통 스타일 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* 배너 슬라이더 스타일 */
.hero {
  position: relative;
  height: 250px;
  overflow: hidden;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.hero .swiper {
  width: 100%;
  height: 100%;
}

.hero .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero .swiper-slide:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero .swiper-slide:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hero .slide-prev,
.hero .slide-next {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  color: white;
  transition: background 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.hero .slide-prev {
  left: 20px;
}

.hero .slide-next {
  right: 20px;
}

.hero .slide-prev:hover,
.hero .slide-next:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero .swiper-pagination {
  bottom: 20px !important;
}

.hero .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero .swiper-pagination-bullet-active {
  background: white;
}

/* 카테고리 섹션 스타일 */
.categories-section {
  padding: 24px 0;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.categories-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.categories-section .section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: bold;
}

.categories-section .category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.categories-section .category-card {
  text-align: center;
  padding: 24px 12px;
  background: #f8f9fa;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  box-sizing: border-box;
}

.categories-section .category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.categories-section .category-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
  display: block;
}

.categories-section .category-card h3 {
  color: #2c3e50;
  font-size: 14px;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 상품 섹션 스타일 개선 */
.product-section {
  padding: 40px 0;
  background: #f5f5f5;
  width: 100%;
  box-sizing: border-box;
}

.product-section:nth-child(even) {
  background: white;
}

.product-section.request-products-section {
  background: #f2f4f7;
}

.product-section.l-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  box-sizing: border-box;
}

.product-section__title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: bold;
}

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

.product-section__header .product-section__title {
  margin-bottom: 0;
  text-align: left;
}

.request-products-section .product-section__title {
  font-size: 29px;
  font-family: "Pretendard", "SUIT", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.01em;
}

.md-recommend-section.product-section {
  background: #f5f5f5;
}

.product-section__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3498db;
  text-decoration: none;
  padding: 6px 0;
}

.product-section__more-link:hover {
  color: #2980b9;
  text-decoration: none;
}

/* 배너가 있는 상품 섹션 (구해주세요) */
.product-section--with-banner .product-section__content-with-banner {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
}

.product-section--with-banner .product-section__banner {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #e8d5b7 0%, #d4b896 100%);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.product-section--with-banner .banner-content {
  position: relative;
  z-index: 2;
}

.product-section--with-banner .banner-title {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.product-section--with-banner .banner-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin: 0 0 8px 0;
}

.product-section--with-banner .banner-description {
  font-size: 14px;
  color: #5a6c7d;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.product-section--with-banner .banner-button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: fit-content;
}

.product-section--with-banner .banner-button:hover {
  background: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-section--with-banner .banner-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(44, 62, 80, 0.9);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
}

.product-section--with-banner .badge-brand {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.product-section--with-banner .badge-price {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #f39c12;
}

.product-section--with-banner .product-section__products {
  flex: 1;
  min-width: 0;
}

.product-section__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 0;
  padding: 12px 30px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
  text-decoration: none;
  max-width: 200px;
}

.product-section__more:hover {
  background: #2980b9;
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 상품 그리드 스타일 개선 */
.product-section .thumb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-section .thumb-item {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.product-section .thumb-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.product-section .thumb-item.is-sold-out {
  opacity: 0.65;
}

.thumb-item.is-sold-out img,
.thumb-item.is-sold-out .thumb-item__image,
.thumb-item.is-sold-out .thumb-item__img {
  filter: grayscale(65%) brightness(0.9);
}

.thumb-item.is-sold-out::after {
  content: '품절';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.08em;
  padding: 9px 21px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.product-section .thumb-item.is-sold-out:hover {
  transform: none;
  cursor: default;
}

.product-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 12px 0 0;
}

.product-thumb-info__name {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-thumb-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-thumb-info__discount {
  color: #e74c3c;
  font-weight: 700;
  font-size: 14px;
}

.product-thumb-info__price {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.product-thumb-info__expiration {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.product-thumb-info__shipping {
  margin: 0;
}

.product-thumb-info__shipping-label {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
}

.product-thumb-info__review {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 4px;
}

.product-thumb__cart-button {
  margin-top: 8px;
  width: 100%;
  padding: 8px 0;
  border-radius: 12px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Pull-to-refresh indicator (touch devices) */
.pull-to-refresh-indicator {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + var(--app-safe-top, 0px) + 6px);
  transform: translate(-50%, -18px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.pull-to-refresh-indicator__bubble {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
}

.pull-to-refresh-indicator__icon {
  width: 22px;
  height: 22px;
  transform-origin: 50% 50%;
}

.pull-to-refresh-indicator[data-state='pulling'] {
  opacity: var(--ptr-opacity, 0);
  transform: translate(-50%, calc(-18px + var(--ptr-translate, 0px))) scale(1);
}

.pull-to-refresh-indicator[data-state='refreshing'] {
  opacity: 1;
  transform: translate(-50%, 12px) scale(1);
}

.pull-to-refresh-indicator[data-state='refreshing'] .pull-to-refresh-indicator__icon {
  animation: ptr-spin 900ms linear infinite;
}

@keyframes ptr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 장바구니 아이콘 버튼 */
.cart-icon-button {
  position: absolute;
  bottom: 120px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cart-icon-button:hover {
  transform: scale(1.1);
}

.cart-icon-button:active {
  transform: scale(0.95);
}

.cart-icon-button svg {
  width: 40px;
  height: 40px;
  color: #333;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cart-icon-button:hover svg {
  color: #111;
}

/* 로고 스타일 개선 */
.header__logo-img {
  width: 140px;
  height: 50.4px;
  max-width: 140px;
  max-height: 50.4px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.header__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 140px;
}

.header__title {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.header__left-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* 모달이 헤더 위로 올라오도록 */
.portal {
  z-index: 1500 !important;
}

@media (min-width: 1001px) {
  .portal .modal.full-modal {
    left: calc(50% + 250px);
  }
}

/* 디자인 팝업이 헤더/상태바 위로 올라오도록 */
.design-popup,
.design-popup__window {
  position: fixed;
  z-index: 2005;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .header--main {
    height: calc(36.4px + var(--app-safe-top));
  }

  .header-top {
    padding: 2px 0;
    gap: 8px;
  }

  .header-top__left {
    gap: 0;
    flex: 0 0 auto;
  }

  .header-top__center {
    padding: 0 6px 0 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-top__right {
    gap: 8px;
    flex: 0 0 auto;
  }

  .search-box {
    max-width: 100%;
    padding: 6px 12px;
  }

  .search-box__input {
    font-size: 13px;
    padding: 4px;
  }

  .search-box__btn {
    font-size: 16px;
    padding: 0 4px;
  }

  .header__cart-link,
  .header__user-link {
    font-size: 20px;
    padding: 4px;
  }

  .hamburger-menu {
    padding: 4px;
  }

  .nav {
    padding: 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero {
    height: 200px;
    margin-bottom: 0;
  }

  .categories-section {
    padding: 20px 0;
  }

  .categories-section .container {
    padding: 0 12px;
  }

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

  .categories-section .category-card {
    padding: 16px 8px;
    min-height: 100px;
    border-radius: 10px;
  }

  .categories-section .category-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .categories-section .category-card h3 {
    font-size: 12px;
    line-height: 1.3;
  }

  .product-section {
    padding: 30px 0;
  }

  .product-section__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .request-products-section .product-section__title {
    font-size: 19px;
  }

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

  /* 모바일에서도 배너 레이아웃 유지 */
  .product-section--with-banner .product-section__content-with-banner {
    flex-direction: column;
    gap: 16px;
  }

  .product-section--with-banner .product-section__banner {
    flex: none;
    width: 100%;
    min-height: 300px;
    padding: 30px 20px;
  }

  .product-section--with-banner .banner-title {
    font-size: 24px;
  }

  .product-section--with-banner .banner-subtitle {
    font-size: 18px;
  }

  .product-section--with-banner .banner-description {
    font-size: 13px;
  }

  .product-section--with-banner .banner-badge {
    bottom: 20px;
    right: 20px;
  }
}

/* 푸터 스타일 - thirtymall.com 디자인 반영 */
.footer {
  background: #2c3e50;
  color: white;
  padding: 50px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  margin-top: 50px;
}

.footer__info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #34495e;
}

.footer__link-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__link {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

.footer__link:hover {
  color: white;
}

.footer__link--bold {
  font-weight: bold;
  color: white;
}

.footer__link-action {
  padding: 2px 6px;
  border: 1px solid #566a7f;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.footer__link-action:hover {
  border-color: #fff;
}

.footer__company {
  margin-bottom: 20px;
}

.footer__company em {
  font-style: normal;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

.footer__about {
  margin-bottom: 20px;
  color: #bdc3c7;
  font-size: 14px;
  line-height: 1.8;
}

.footer__about p {
  margin-bottom: 8px;
}

.footer__about span {
  margin-right: 15px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
  font-size: 14px;
  margin: 0;
}

.footer__extra-logo {
  text-align: center;
  margin-top: 20px;
}

.footer__extra-logo img {
  max-height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0 calc(15px + env(safe-area-inset-bottom, 0px));
  }

  .footer__nav {
    flex-direction: column;
    gap: 15px;
  }

  .footer__about {
    font-size: 12px;
  }

.footer__about span {
  display: block;
  margin-right: 0;
  margin-bottom: 5px;
}
}

/* 약관/회사소개 페이지 */
.terms-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.terms-page__header {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.terms-page__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
}

.terms-page__content {
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}

.terms-page__content img {
  max-width: 100%;
  height: auto;
}

.terms-page__status {
  color: #7f8c8d;
  font-size: 14px;
}

@media (max-width: 768px) {
  .terms-page {
    padding: 30px 16px 60px;
  }

  .terms-page__title {
    font-size: 22px;
  }
}

/* 스크롤 TOP 버튼 위치 조정 */
.fab-top-down {
  bottom: 120px;
}

/* 하단 네비게이션 바 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0 var(--app-bottom-offset);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  height: calc(56px + var(--app-bottom-offset));
  box-sizing: border-box;
}

.bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: #666;
  padding: 8px 12px;
  transition: color 0.3s;
  flex: 1;
  height: 100%;
  max-width: 100px;
}

.bottom-nav__link:hover,
.bottom-nav__link.active {
  color: #3498db;
}

.bottom-nav__icon {
  font-size: 22px;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.bottom-nav__label {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.recent-view,
.settings {
  padding: 16px;
}

.recent-view__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.recent-view__clear {
  border: none;
  background: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
}

.recent-view__loading,
.recent-view__empty {
  text-align: center;
  padding: 24px 0;
  color: #999;
}

.recent-view__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-view__item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.recent-view__image {
  position: relative;
  display: block;
}

.recent-view__item--sold-out .recent-view__image img {
  filter: grayscale(100%);
  opacity: 0.5;
}

.recent-view__sold-out {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
}

.recent-view__image img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.recent-view__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-view__name {
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.recent-view__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.recent-view__discount {
  color: #e74c3c;
  font-weight: 700;
}

.recent-view__shipping {
  font-size: 12px;
  color: #666;
}

.recent-view__review {
  font-size: 12px;
  color: #666;
}

.recent-view__actions {
  display: flex;
  gap: 8px;
}

.recent-view__action-button {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #333;
  font-size: 13px;
}

.recent-view__action-button--primary {
  border-color: #2f80ed;
  color: #2f80ed;
}

.settings__section {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings__title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.settings__link,
.settings__button {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings__row-title {
  font-size: 14px;
  color: #333;
}

.settings__desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.settings__link--arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.settings__link--danger {
  color: #d32f2f;
}

.settings__arrow {
  color: #999;
  font-size: 16px;
}

.settings__switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.settings__switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.settings__switch-track {
  width: 44px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.settings__switch-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.settings__switch-input:checked + .settings__switch-track {
  background: #ff5b7f;
}

.settings__switch-input:checked + .settings__switch-track .settings__switch-thumb {
  transform: translateX(20px);
}

/* 하단 네비가 있는 페이지에서 컨텐츠 여백 */
.has-bottom-nav {
  padding-bottom: calc(70px + var(--app-bottom-offset));
}

@media (min-width: 769px) {
  .bottom-nav {
    display: flex;
  }

  .has-bottom-nav {
    padding-bottom: calc(70px + var(--app-bottom-offset));
  }

  .footer {
    display: block;
  }
}

/* 실시간 인기 상품 스타일 */
.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.popular-product-item {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.popular-product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.popular-product-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popular-product-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f8f9fa;
}

.popular-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popular-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popular-product-price {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popular-product-discount {
  font-size: 14px;
  color: #e74c3c;
  font-weight: bold;
}

.popular-product-review {
  font-size: 13px;
  color: #95a5a6;
}

@media (min-width: 769px) {
  .popular-products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .popular-product-name {
    font-size: 15px;
  }

  .popular-product-price {
    font-size: 20px;
  }
}

/* 건강식품 탭 섹션 */
.health-section {
  padding: 32px 0;
  background: #fff;
}

.health-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.health-section__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.health-section__more {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.health-section__tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.health-section__tabs::-webkit-scrollbar {
  display: none;
}

.health-section__tab {
  border: none;
  background: #f2f2f2;
  color: #666;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.health-section__tab.is-active {
  background: #111;
  color: #fff;
}

.health-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 기획전 리스트 */
.event-list-page {
  padding: 20px 16px 40px;
  background: #f5f5f5;
  min-height: 100vh;
}

.event-list-page__header {
  margin-bottom: 16px;
}

.event-list-page__count {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.event-list-page__loading,
.event-list-page__empty {
  text-align: center;
  color: #999;
  padding: 32px 0;
  font-size: 14px;
}

.event-list-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.event-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.event-card__image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.event-card__content {
  padding: 14px 16px 18px;
}

.event-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
}

.event-card__tag {
  font-size: 13px;
  color: #ff7a00;
  margin: 0;
  font-weight: 600;
}

@media (min-width: 769px) {
  .event-list-page {
    padding: 30px 24px 60px;
  }

  .event-list-page__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-card__title {
    font-size: 18px;
  }
}

.health-section__slider {
  grid-column: 1 / -1;
}

.section-more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 1px dashed #cfcfcf;
  background: #fafafa;
  gap: 6px;
}

.section-more-card__label {
  font-size: 14px;
  font-weight: 600;
}

.section-more-card__icon {
  font-size: 22px;
  line-height: 1;
}

.product-section--slide .product-slider__column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-section--slide .product-slider__cell {
  display: flex;
}

.health-section__item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-section__thumb {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}

.health-section__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.health-section__name {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.health-section__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.health-section__discount {
  color: #e74c3c;
  font-weight: 700;
  font-size: 14px;
}

.health-section__loading,
.health-section__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 24px 0;
}

@media (min-width: 769px) {
  .health-section__title {
    font-size: 24px;
  }

  .health-section__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .health-section__name {
    font-size: 14px;
  }
}

.orders__status-label {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

/* 상품후기 작성 폼 - 하단 네비 가림 방지 */
.review-form__evaluation {
  padding: 14px 16px 0;
}

.full-modal .review-form {
  padding-top: calc(8px + var(--app-safe-top));
}

.review-form__title {
  margin-top: 8px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 20px;
}

.review-form__text-area {
  margin-top: 16px;
}

.review-form__text-area textarea {
  height: 180px;
  padding: 12px;
}

.review-form .board-product-item__description {
  padding: 12px 16px;
  margin-bottom: 10px;
}

.review-form .board-product-item__image {
  width: 84px;
  height: 84px;
}

.review-form .board-product-item__product {
  margin-left: 10px;
  line-height: 18px;
}

.review-form .board-product-item__product-name {
  font-size: 13px;
}

.review-form .board-product-item__option-value {
  margin-top: 2px;
  font-size: 12px;
}

.review-form .board-product-item__option-selector {
  margin-top: 8px;
}

.review-form__image-files {
  margin-top: 8px;
}

.review-form__upload-btn {
  margin-top: 10px;
}

.review-form__limit-text {
  margin-top: 6px;
}

.review-form__content {
  padding-bottom: 16px;
}

.review-form .board-form__button-group {
  margin-top: 12px;
  padding-bottom: calc(36px + var(--app-bottom-offset));
}

@media (max-width: 768px) {
  .review-form__evaluation {
    padding: 12px 16px 0;
  }

  .full-modal .review-form {
    padding-top: calc(6px + var(--app-safe-top));
  }

  .review-form__title {
    margin-top: 6px;
    padding: 6px 0;
    font-size: 15px;
    line-height: 18px;
  }

  .review-form__text-area textarea {
    height: 140px;
  }

  .review-form .board-product-item__description {
    padding: 10px 14px;
    margin-bottom: 8px;
  }

  .review-form .board-product-item__image {
    width: 76px;
    height: 76px;
  }

  .review-form .board-product-item__product {
    margin-left: 8px;
  }

  .review-form .board-product-item__product-name {
    font-size: 12px;
  }

  .review-form .board-product-item__option-value {
    font-size: 11px;
  }

  .review-form__image-files {
    margin-top: 6px;
  }

  .review-form__upload-btn {
    margin-top: 8px;
  }

  .review-form__limit-text {
    margin-top: 4px;
  }

  .review-form__content {
    padding-bottom: 14px;
  }

  .review-form .board-form__button-group {
    margin-top: 10px;
    padding-bottom: calc(40px + var(--app-bottom-offset));
  }
}

/* 상품 상세 페이지 스타일 */

.product-summary {
  padding: 16px;
  background: #fff;
}

.product-summary__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  margin: 0;
  word-break: keep-all;
}

.product-summary__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px 0;
}

.product-summary__share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.product-share-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-share-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: none;
}

.product-share-modal__card {
  position: relative;
  width: calc(100% - 48px);
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-share-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 16px;
  color: #111;
}

.product-share-modal__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.product-share-modal__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #333;
}

/* 상세 구매 영역 안전 여백 */
.purchase {
  padding-bottom: 0;
}

.product-detail.purchase {
  padding: 10px 10px 0;
  --purchase-bottom-gap: 8px;
}

.product-detail.purchase .purchase__button-wrap {
  padding-bottom: calc(var(--app-bottom-offset) + var(--purchase-bottom-gap));
}

.purchase__option {
  padding-bottom: var(--app-bottom-offset);
}

.product-share-modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  background: #f2f2f2;
}

.product-share-modal__icon.kakao {
  background: #fee500;
}

.product-share-modal__icon.x {
  background: #111;
  color: #fff;
}

.product-share-modal__icon.facebook {
  background: #1877f2;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.product-share-modal__label {
  font-size: 12px;
  color: #555;
}

.product-share-modal__confirm {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #ff5a3c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* 리뷰 평점 섹션 */
.product-summary__review {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.product-summary__rating {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.product-summary__review-count {
  font-size: 13px;
  color: #666;
  text-decoration: underline;
}

.product-summary__review button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.product-summary__review button:focus-visible {
  outline: 2px solid #444;
  outline-offset: 2px;
}

/* 상품 상세 > 리뷰 미리보기 */
.product-review-preview {
  padding: 16px 0 4px;
  border-top: 1px solid #f0f0f0;
}

.product-review-preview__header {
  padding: 0 16px 10px;
}

.product-review-preview__title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.product-review-preview__slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 55%);
  gap: 12px;
  padding: 0 16px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-review-preview__slider::-webkit-scrollbar {
  display: none;
}

.product-review-preview__card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scroll-snap-align: start;
  min-height: 84px;
  cursor: pointer;
  overflow: hidden;
}

.product-review-preview__card.is-has-image {
  grid-template-columns: 72px 1fr;
  min-width: 260px;
}

.product-review-preview__card.is-no-image {
  grid-template-columns: 1fr;
}

.product-review-preview__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-review-preview__image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
}

.product-review-preview__image.is-empty {
  background: #f6f6f6;
}

.product-review-preview__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-review-preview__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.product-review-preview__content {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.product-review-preview__rating {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #f5a623;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: flex-start;
  width: max-content;
}

.product-review-preview__stars {
  display: inline-flex;
  transform: scale(0.4);
  transform-origin: left center;
  flex: 0 0 auto;
  margin-right: -7px;
}

.product-review-preview__score {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  flex: 0 0 auto;
}

.product-review-preview__more {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  min-height: 84px;
  scroll-snap-align: start;
  cursor: pointer;
}

.product-review-preview__modal .title-modal__content {
  padding: 16px;
}

.product-review-preview__modal.modal {
  width: min(420px, 60vw);
  max-height: 60vh;
}

.product-review-preview__modal .title-modal {
  max-height: 60vh;
}

.product-review-preview__modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-review-preview__modal-image {
  width: 100%;
  max-width: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
  align-self: center;
}

.product-review-preview__modal-image img {
  display: block;
  width: 100%;
  height: auto;
}

.product-review-preview__modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f5a623;
}

.product-review-preview__modal-content {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 가격 정보 섹션 */
.product-summary__price-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-summary__original {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-summary__original-label {
  font-size: 13px;
  color: #999;
}

.product-summary__original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.product-summary__info-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #999;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.product-summary__price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.product-summary__discount-rate {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
}

.product-summary__final-price {
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

/* 소비기한 */
.product-summary__expiration-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-summary__expiration {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.product-summary__expiration-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.product-summary__expiration-date {
  font-size: 13px;
  color: #333;
  font-weight: 600;
}


.product-summary__shipping-label {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  padding: 0 12px;
}

/* 반응형 */
@media (min-width: 769px) {
  .product-summary {
    padding: 24px;
  }

  .product-summary__title {
    font-size: 22px;
  }

  .product-summary__rating {
    font-size: 15px;
  }

  .product-summary__review-count {
    font-size: 14px;
  }

  .product-summary__discount-rate {
    font-size: 28px;
  }

  .product-summary__final-price {
    font-size: 28px;
  }
}

/* 판매자 추천 상품 슬라이더 */
.seller-products {
  margin: 16px auto 0;
  padding: 0 16px 16px;
}

.seller-products__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.seller-products__slider {
  padding-bottom: 8px;
}

.seller-products__slide {
  width: 140px;
}

.seller-products__thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  --thumb-size: 140px;
}

.seller-products__info {
  padding: 10px;
}

.seller-products__name {
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seller-products__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}

.seller-products__discount {
  font-size: 12px;
  font-weight: 700;
  color: #e74c3c;
}

.seller-products__price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.seller-products__expiry {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
}

.seller-products__cart {
  position: absolute;
  right: 8px;
  top: calc(var(--thumb-size) - 36px - 8px);
  z-index: 2;
}

.seller-products__thumb .cart-icon-button {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  touch-action: manipulation;
}

.category-recommend-products {
  margin: 20px auto 0;
  padding: 0 16px 16px;
}

.category-recommend-products__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

@media (min-width: 769px) {
  .seller-products {
    padding: 0 24px 24px;
  }

  .seller-products__title {
    font-size: 18px;
  }

  .seller-products__slide {
    width: 160px;
  }

  .seller-products__cart {
    right: 36px;
  }
}

@media (max-width: 768px) {
  .seller-products__slide {
    width: 200px;
  }

  .seller-products__thumb {
    --thumb-size: 200px;
  }

  .seller-products__cart {
    right: 34px;
    top: calc(var(--thumb-size) - 36px - 60px);
    z-index: 5;
    pointer-events: auto;
  }

  .seller-products__expiry {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* All Categories Page */
.all-categories-page {
  padding: 20px 16px;
  background-color: var(--whole-color);
  min-height: 100vh;
}

.category-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 20px;
  padding-left: 4px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 20px 12px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.category-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-item:active .category-icon-circle {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-emoji {
  font-size: 32px;
  line-height: 1;
}

.category-label {
  font-size: 13px;
  color: var(--default-font-color);
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.3;
  max-width: 100%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 24px 16px;
  }

  .category-icon-circle {
    width: 80px;
    height: 80px;
  }

  .category-emoji {
    font-size: 36px;
  }

  .category-label {
    font-size: 14px;
  }
}

.popular-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 16px;
}

.popular-products__item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.popular-products__item:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-products__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.popular-products__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 87, 34, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popular-products__image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f5f5f5;
  overflow: hidden;
}

.popular-products__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-products__info {
  padding: 12px;
}

.popular-products__name {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 40px;
  color: #333;
}

.popular-products__price {
  display: flex;
  align-items: center;
  gap: 4px;
}

.popular-products__discount {
  color: #ff5722;
  font-weight: bold;
  font-size: 15px;
}

.popular-products__amount {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

.popular-products__cart {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  color: #333;
}

.popular-products__cart:hover {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popular-products__cart:active {
  transform: scale(0.95);
}

.popular-products__cart svg {
  flex-shrink: 0;
}

.popular-products__expiry {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  line-height: 1.2;
}

.recommended-products {
  margin-top: 28px;
  padding: 0 16px 8px;
}

.recommended-products__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.recommended-products__title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.recommended-products__subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.recommended-products__list {
  margin-top: 8px;
}

.recommended-products__loading {
  padding: 12px 16px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

@charset 'utf-8';

:root {
  --whole-color: #fff;
  --background-color: #f5f6f8;
  --point-color: #f92626;
  --point-color-secondary: #2869f7;
  --black-color: #111;
  --dark-gray-color: #262626;

  --empty-color: #f5f6f8;
  --default-color: #ddd;
  --blue-gray-color: #3f434c;
  --gray-color: #999;
  --gray-font-color: #828282;
  --tooltip-bg-color: #f7f7f7;

  --default-font-color: #181818;
}

