/* ==========================================================================
   COCOACAR MALL (cocoacarmall.com) POINT REWARDS - DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  /* Site Layout & Widths */
  --site-max-width: 1280px;
  --header-height: 60px;
  --category-height: 48px;

  /* Typography Colors (cocoacarmall.com exact tokens) */
  --font-color-base: #1d1d1f;
  --font-color-heading: #0d0d0f;
  --font-color-title-desc: #7d7d80;
  --font-color-muted: #8e8e93;
  --font-color-link: #1d1d1f;

  /* Surface & Background Colors */
  --bg-color-base: #ffffff;
  --bg-color-secondary: #f8f8fb;
  --bg-color-card: #ffffff;
  --bg-color-topbar: #18181b;

  /* Borders & Dividers */
  --border-color-base: #eeeef0;
  --border-color-light: #f4f4f6;
  --border-color-dark: #dfdfe2;
  --border-color-focus: #1d1d20;

  /* Brand Accents */
  --color-primary: #1d1d1f;
  --color-accent-point: #92af88;
  --color-accent-red: #ff3b30;
  --color-accent-orange: #ef441f;
  --color-accent-blue: #007cef;

  /* Buttons */
  --btn-primary-bg: #1d1d1f;
  --btn-primary-hover: #333336;
  --btn-primary-color: #ffffff;
  --btn-secondary-bg: #f4f4f6;
  --btn-secondary-hover: #eaeaee;
  --btn-secondary-color: #1d1d1f;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ================= Global Reset & Typography ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--font-color-base);
  background-color: var(--bg-color-base);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--font-color-base);
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ================= Layout Containers ================= */
.site-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.df-wrap-content {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .df-wrap-content {
    padding: 0 32px;
  }
}

.df-display-pc {
  display: none !important;
}
@media (min-width: 768px) {
  .df-display-pc {
    display: inline-flex !important;
  }
}

/* ================= 1. 최상단 공지 바 (df-top-notice) ================= */
.df-top-notice {
  background-color: var(--bg-color-topbar);
  color: #e4e4e7;
  font-size: 12px;
  line-height: 34px;
  height: 34px;
  overflow: hidden;
  border-bottom: 1px solid #27272a;
}

.df-top-notice__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.df-top-notice__txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d4d4d8;
}

.df-top-notice__txt strong {
  color: #ffffff;
  font-weight: 700;
}

.df-top-notice__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.df-top-notice__link {
  color: #a1a1aa;
  font-size: 11.5px;
  transition: color 0.15s;
}

.df-top-notice__link:hover {
  color: #ffffff;
}

/* ================= 2. 글로벌 헤더 (df-header) ================= */
.df-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color-base);
  box-shadow: var(--shadow-sm);
}

.df-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 좌측 컨트롤 */
.df-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 100px;
}

.df-header__back-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--font-color-base);
  transition: background-color 0.15s, transform 0.15s;
}

.df-header__back-btn:hover {
  background-color: var(--bg-color-secondary);
  transform: translateX(-2px);
}

.df-header__divider {
  width: 1px;
  height: 14px;
  background-color: var(--border-color-base);
}

.df-header__chat-link {
  font-size: 13px;
  font-weight: 600;
  color: #52525b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: var(--bg-color-secondary);
  transition: all 0.15s;
}

.df-header__chat-link:hover {
  color: var(--font-color-base);
  background-color: #ebebef;
}

/* 중앙 로고 */
.df-header__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.df-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.df-logo__img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .df-logo__img {
    height: 32px;
  }
}

.df-logo__sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

/* 우측 유틸리티 */
.df-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 100px;
}

.df-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f4f4f6;
  border: 1px solid var(--border-color-base);
  border-radius: 20px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.df-header-badge:hover {
  background: #ebebee;
  border-color: #d4d4d8;
}

.df-header-badge__point {
  color: var(--color-primary);
  font-weight: 800;
}

.df-header-badge__user {
  color: #71717a;
  font-weight: 500;
}

/* 버튼 기본 스타일 */
.df-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.df-btn--login {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  padding: 7px 14px;
  font-size: 13px;
}

.df-btn--login:hover {
  background-color: var(--btn-primary-hover);
}

.df-btn--logout {
  background-color: transparent;
  color: #71717a;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
}

.df-btn--logout:hover {
  color: #18181b;
  text-decoration: underline;
}

/* ================= 3. 카테고리 네비게이션 바 (df-category-bar) ================= */
.df-category-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color-light);
}

.df-category-bar__inner {
  height: var(--category-height);
  display: flex;
  align-items: center;
}

.df-category__list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  padding: 0 4px;
}

.df-category__list::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #71717a;
  border-radius: 20px;
  white-space: nowrap;
  background-color: transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-chip:hover {
  color: var(--font-color-base);
  background-color: var(--bg-color-secondary);
}

.cat-chip.active {
  color: #ffffff;
  background-color: var(--color-primary);
  font-weight: 700;
}

.df-badge-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent-red);
}

/* ================= 4. 메인 컨텐츠 영역 ================= */
.df-main-content {
  flex: 1;
  padding: 24px 0 60px;
}

/* 4-1. 히어로 섹션 (슬라이더 + 지갑 카드) */
.df-hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .df-hero-section {
    grid-template-columns: 1.55fr 1fr;
    align-items: stretch;
  }
}

/* 공식 메인 비주얼 슬라이더 */
.df-main-slider {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0f172a;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1340 / 440;
}

.df-main-slider__track {
  width: 100%;
  height: 100%;
  position: relative;
}

.df-main-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.df-main-slider__slide.active {
  opacity: 1;
  visibility: visible;
}

.df-main-slider__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.df-main-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 슬라이더 컨트롤 화살표 */
.df-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  color: #18181b;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.15s, transform 0.15s;
}

.df-main-slider:hover .df-slider-nav {
  opacity: 1;
}

.df-slider-nav:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.df-slider-nav--prev {
  left: 12px;
}

.df-slider-nav--next {
  right: 12px;
}

/* 슬라이더 인디케이터 도트 */
.df-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  padding: 4px 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.df-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.df-slider-dot.active {
  width: 18px;
  background-color: #ffffff;
}

/* VIP 코코포인트 지갑 카드 */
.df-wallet-container {
  display: flex;
  flex-direction: column;
}

.df-wallet-card {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* 로그인 회원 지갑 카드 (매트 블랙 럭셔리 VIP 테마) */
.df-wallet-card--member {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  border: 1px solid #3f3f46;
}

.df-wallet-card--member::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 175, 136, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* 비로그인 게스트 지갑 카드 */
.df-wallet-card--guest {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8fb 100%);
  color: var(--font-color-base);
  border: 1px solid var(--border-color-base);
}

.df-wallet-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.df-wallet-card__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a1a1aa;
}

.df-wallet-card--guest .df-wallet-card__badge {
  color: #71717a;
}

.df-wallet-card__status {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  background-color: rgba(52, 211, 153, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.df-wallet-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.df-wallet-card__desc {
  font-size: 13px;
  color: #71717a;
  line-height: 1.5;
  margin-bottom: 18px;
}

.df-wallet-card__balance-block {
  margin: 12px 0 18px;
}

.df-wallet-card__balance-label {
  font-size: 12px;
  color: #a1a1aa;
  margin-bottom: 4px;
}

.df-wallet-card__balance-val {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.df-wallet-card__balance-val small {
  font-size: 18px;
  font-weight: 600;
  color: #a1a1aa;
}

.df-wallet-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

.df-wallet-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.df-wallet-stat span {
  font-size: 11px;
  color: #a1a1aa;
}

.df-wallet-stat strong {
  font-size: 13.5px;
  font-weight: 700;
}

.df-wallet-card__actions {
  display: flex;
  gap: 10px;
}

.df-btn--wallet-sub {
  flex: 1;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 13px;
}

.df-btn--wallet-sub:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.df-btn--wallet-login {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.df-btn--wallet-login:hover {
  background-color: #333336;
}

/* ================= 4-2. 타이틀 메인 (df-title-main 규격) ================= */
.df-title-main {
  text-align: left;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}

.df-title-main h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--font-color-heading);
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .df-title-main h2 {
    font-size: 26px;
  }
}

.df-title-main h2 p {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--font-color-title-desc);
  margin-top: 4px;
  letter-spacing: -0.02em;
}

/* ================= 4-3. 툴바 (df-prl-toolbar) ================= */
.df-prl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 6px 0;
}

.df-prl-toolbar__count {
  font-size: 14px;
  color: #52525b;
}

.df-prl-toolbar__count strong {
  color: var(--color-primary);
  font-weight: 800;
}

.df-prl-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.df-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.df-search-icon {
  position: absolute;
  left: 12px;
  color: #a1a1aa;
  pointer-events: none;
}

.df-search-input {
  height: 38px;
  padding: 0 12px 0 34px;
  background-color: #ffffff;
  border: 1px solid var(--border-color-base);
  border-radius: 20px;
  font-size: 13px;
  width: 170px;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .df-search-input {
    width: 220px;
  }
}

.df-search-input:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.08);
}

.df-sort-select {
  height: 38px;
  padding: 0 28px 0 12px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  font-size: 13px;
  color: #52525b;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.df-sort-select:focus {
  border-color: var(--border-color-focus);
}

/* ================= 4-4. 상품 카드 그리드 (df-prl__items) ================= */
.df-prl-section {
  width: 100%;
}

.df-prl__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .df-prl__items {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .df-prl__items {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.df-loading-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #a1a1aa;
  font-size: 15px;
}

/* 개별 상품 카드 (df-prl__item) */
.df-prl__item {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color-base);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.df-prl__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-dark);
}

/* 썸네일 영역 */
.df-prl__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-color-secondary);
  overflow: hidden;
}

.df-prl__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.df-prl__item:hover .df-prl__thumb-img {
  transform: scale(1.05);
}

.df-prl__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(29, 29, 31, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.df-prl__stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-accent-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* 상품 상세 정보 */
.df-prl__info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.df-prl__meta {
  margin-bottom: 12px;
}

.df-prl__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--font-color-base);
  line-height: 1.38;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.df-prl__desc {
  font-size: 12.5px;
  color: var(--font-color-title-desc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 가격 & 액션 버튼 */
.df-prl__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color-light);
}

.df-prl__price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.df-prl__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.4px;
}

.df-prl__price-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent-point);
  margin-left: 2px;
}

.df-prl__btn {
  width: 100%;
  height: 38px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.df-prl__btn:hover:not(:disabled) {
  background-color: var(--btn-primary-hover);
}

.df-prl__btn:disabled {
  background-color: #e4e4e7;
  color: #a1a1aa;
  cursor: not-allowed;
}

/* ================= 5. 공식 푸터 (df-footer) ================= */
.df-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color-base);
  padding: 40px 0 60px;
  color: #71717a;
  font-size: 12.5px;
  line-height: 1.6;
}

.df-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color-light);
  font-size: 13px;
  color: #52525b;
}

.df-footer__nav a:hover {
  color: var(--font-color-base);
}

.df-footer__nav-bar {
  width: 1px;
  height: 12px;
  background-color: var(--border-color-base);
}

.df-footer__info-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .df-footer__info-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

.df-footer__logo-img {
  height: 24px;
  opacity: 0.85;
}

.df-footer__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.df-footer__line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.df-footer__line strong {
  color: #27272a;
}

.df-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color-light);
  font-size: 12px;
  color: #a1a1aa;
}

.df-footer__brand {
  color: #52525b;
}

.df-footer__service-tag {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a1a1aa;
}

/* ================= 모달 윈도우 스타일 (df-modal) ================= */
.df-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.df-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.df-modal-dialog {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.df-modal-dialog--lg {
  max-width: 580px;
}

.df-modal-dialog--sm {
  max-width: 380px;
}

@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.df-modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.df-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--font-color-heading);
}

.df-modal-close {
  font-size: 24px;
  line-height: 1;
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}

.df-modal-close:hover {
  background-color: var(--bg-color-secondary);
  color: var(--font-color-base);
}

.df-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.df-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color-base);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background-color: var(--bg-color-secondary);
}

.df-btn--modal-cancel {
  padding: 10px 18px;
  background-color: #ffffff;
  border: 1px solid var(--border-color-base);
  color: #52525b;
  font-size: 13.5px;
}

.df-btn--modal-cancel:hover {
  background-color: #f4f4f6;
  color: var(--font-color-base);
}

.df-btn--modal-submit {
  padding: 10px 22px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  font-size: 13.5px;
  font-weight: 700;
}

.df-btn--modal-submit:hover {
  background-color: var(--btn-primary-hover);
}

/* 교환 신청 폼 요소 */
.df-exchange-preview {
  display: flex;
  gap: 14px;
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color-base);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.df-exchange-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #ffffff;
}

.df-exchange-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.df-exchange-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--font-color-base);
  margin-bottom: 4px;
  line-height: 1.3;
}

.df-exchange-cost {
  font-size: 13.5px;
  color: #71717a;
}

.df-exchange-cost strong {
  font-size: 15px;
  color: var(--color-accent-orange);
}

.df-balance-calc {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.df-balance-row {
  display: flex;
  justify-content: space-between;
  color: #166534;
  margin-bottom: 6px;
}

.df-balance-row--result {
  margin-bottom: 0;
  padding-top: 6px;
  border-top: 1px dashed #bbf7d0;
  font-weight: 800;
  color: #15803d;
}

.df-form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.df-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #3f3f46;
}

.df-required {
  color: var(--color-accent-red);
}

.df-input, .df-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  font-size: 13.5px;
  transition: border-color 0.2s;
}

.df-input:focus, .df-textarea:focus {
  border-color: var(--border-color-focus);
}

.df-textarea {
  resize: vertical;
  min-height: 64px;
}

/* 소셜 로그인 모달 */
.df-login-body {
  text-align: center;
  padding: 28px 24px;
}

.df-login-desc {
  font-size: 14px;
  color: #52525b;
  margin-bottom: 24px;
  line-height: 1.5;
}

.df-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.df-btn-social {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.df-btn-social:hover {
  opacity: 0.92;
}

.df-btn-social--kakao {
  background-color: #FEE500;
  color: #191919;
}

.df-btn-social--naver {
  background-color: #03C75A;
  color: #ffffff;
}

/* 포인트 내역 & 교환 내역 리스트 아이템 */
.df-history-item, .df-order-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.df-history-item:last-child, .df-order-item:last-child {
  border-bottom: none;
}

.df-history-item__left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.df-history-item__reason {
  font-size: 14px;
  font-weight: 600;
  color: var(--font-color-base);
}

.df-history-item__date {
  font-size: 12px;
  color: #a1a1aa;
}

.df-history-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.df-amount--earn {
  color: #10b981;
  font-weight: 800;
  font-size: 15px;
}

.df-amount--use {
  color: var(--color-accent-orange);
  font-weight: 800;
  font-size: 15px;
}

.df-history-item__balance {
  font-size: 11.5px;
  color: #71717a;
}

/* 주문 내역 카드 */
.df-order-card {
  background-color: var(--bg-color-secondary);
  border: 1px solid var(--border-color-base);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.df-order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #71717a;
  margin-bottom: 8px;
}

.df-order-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.df-order-badge--requested {
  background-color: #fef3c7;
  color: #b45309;
}

.df-order-badge--completed {
  background-color: #d1fae5;
  color: #065f46;
}

.df-order-badge--canceled {
  background-color: #fee2e2;
  color: #991b1b;
}

.df-order-card__prod {
  font-size: 15px;
  font-weight: 700;
  color: var(--font-color-base);
  margin-bottom: 4px;
}

.df-order-card__cost {
  font-size: 13px;
  color: var(--color-accent-orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.df-order-card__meta {
  font-size: 12.5px;
  color: #71717a;
  line-height: 1.45;
  border-top: 1px solid var(--border-color-base);
  padding-top: 8px;
}

/* 토스트 알림 */
.df-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background-color: rgba(24, 24, 27, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.df-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
