* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3073BB;
  --primary-dark: #265c96;
  --primary-tint: #A7C8EB;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #202632;
  --text-light: #7a8699;
  --border: #dde3ea;
  --nav-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --divider: #e8ecf1;
  --hover: #eef2f6;
  --overlay: rgba(20,28,40,0.5);
  --nav-btn-color: #9aa7b5;
  --platform-hover: #eaf2fb;
  --skeleton: #c9d2dc;
  --muted-gray: #6b7684;
  --nav-glass-bg: rgba(255,255,255,0.55);
  --nav-glass-border: rgba(255,255,255,0.7);
  --nav-glass-highlight: rgba(255,255,255,0.8);
}

[data-theme="dark"] {
  --primary: #4C8FD2;
  --primary-dark: #3073BB;
  --primary-tint: #1e2a38;
  --bg: #10141a;
  --card: #1a2029;
  --text: #e8edf3;
  --text-light: #8b96a3;
  --border: #2a323d;
  --divider: #212832;
  --hover: #212832;
  --overlay: rgba(0,0,0,0.75);
  --nav-btn-color: #5c6774;
  --platform-hover: #1c2733;
  --skeleton: #3a4451;
  --muted-gray: #92a0b0;
  --nav-glass-bg: rgba(26,32,41,0.55);
  --nav-glass-border: rgba(255,255,255,0.1);
  --nav-glass-highlight: rgba(255,255,255,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  transition: background 0.3s, color 0.3s;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  transition: background 0.3s;
}

.page {
  display: none;
  padding: 20px 16px;
  padding-bottom: calc(var(--nav-height) + 20px + var(--safe-bottom));
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* 홈 페이지 - 초기 중앙 배치 */
#page-home {
  display: none;
}

#page-home.active {
  display: flex;
  flex-direction: column;
}

/* home-main = 검색창 영역. 화면 한 화면 높이만큼 확보해서
   중앙 정렬은 이 안에서만 일어나고, footer는 그 아래로 밀려나
   스크롤해야 보이게 된다 */
.home-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.home-centered {
  padding-top: 0;
}

.home-centered .home-main {
  justify-content: center;
  align-items: center;
}

.home-centered .home-main .search-wrap {
  width: 100%;
  max-width: 400px;
}

.home-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.logo-img {
  width: 41px;
  height: 41px;
  object-fit: contain;
  border-radius: 9px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-align: center;
}

/* 검색 완료 시 상단 배치 */
.search-top .home-main .home-logo {
  display: none;
}

.search-top .home-main .search-wrap {
  width: 100%;
  max-width: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding: 12px 0 8px;
  order: -1;
}

.search-results {
  width: 100%;
  flex: 1;
  padding-top: 8px;
}

.home-centered .search-results {
  flex: 0 0 auto;
}

.search-results:empty {
  display: none;
  padding-top: 0;
}

.company-info {
  width: 100%;
  padding: 18px 0 4px;
  text-align: left;
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 12px;
}

.company-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-gray);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.company-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 5px;
}

.company-inline-link {
  color: inherit;
  text-decoration: none;
}

.company-info .company-inline-link,
.company-info .company-inline-link span {
  color: inherit;
}

.company-info p {
  font-size: 0.8rem;
  color: var(--muted-gray);
  line-height: 1.75;
}

.company-info p span {
  margin-right: 4px;
}

.company-legal-note {
  margin-top: 10px;
  word-break: keep-all;
}

.company-address {
  margin-bottom: 10px;
}

.nav-btn.feature-unavailable {
  opacity: .45;
}

.company-heading-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.company-details {
  min-width: 0;
}

.company-socials {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.company-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.company-socials a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.company-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-socials .social-dot {
  fill: currentColor;
  stroke: none;
}

.company-socials .x-mark,
.company-socials .instagram-mark {
  fill: currentColor;
  stroke: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-card .card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  font-size: 3.5rem;
  background: var(--bg);
}

.product-card .card-body {
  padding: 10px;
}

.product-card .card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.product-card .card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.search-area {
  width: 100%;
}

.platform-btn-wrapper {
  position: relative;
}

.platform-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 12px;
  color: var(--text-light);
}

.platform-icon svg {
  width: 19px;
  height: 19px;
}

.platform-icon-badge {
  width: 28px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.3px;
}

.platform-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: -4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 10;
  overflow: hidden;
  min-width: 120px;
}

.platform-dropdown.open {
  display: block;
}

.platform-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
  white-space: nowrap;
}

.platform-option:hover,
.platform-option:active {
  background: var(--platform-hover);
}

.platform-option.selected {
  background: var(--platform-hover);
  color: var(--primary);
  font-weight: 600;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: var(--card);
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 6px;
  font-size: 1.05rem;
  background: transparent;
  color: var(--text);
}

#search-input::placeholder {
  color: var(--skeleton);
  font-weight: 500;
}

#search-btn {
  border: none;
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  border-radius: 0 8px 8px 0;
}

#search-btn:active {
  background: var(--primary-dark);
}

.search-results {
  width: 100%;
}

.search-results .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.search-results .result-item {
  background: var(--card);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

.search-results .result-warn {
  color: var(--primary);
  font-weight: 600;
}

.inline-warn {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 0;
}

/* 장바구니 */
.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-policy-note {
  margin: 12px 0 14px;
  padding: 12px 13px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 78%, var(--bg));
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.55;
  word-break: keep-all;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
}

.order-summary-toggle {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.order-summary-toggle:hover {
  transform: none;
  background: var(--hover);
}

.order-summary-toggle:active {
  transform: none;
}

.order-summary-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
}

.order-summary-product > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-summary-product strong {
  overflow: hidden;
  color: var(--text);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-summary-product span:not(.cart-item-img):not(.order-toggle-icon):not(.item-thumb-placeholder) {
  color: var(--text-light);
  font-size: .77rem;
}

.item-thumb-placeholder {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--hover);
  color: var(--text-light);
}

.item-thumb-placeholder svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-toggle-icon {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-right: 1.5px solid var(--text-light);
  border-bottom: 1.5px solid var(--text-light);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease-out);
}

.order-summary-toggle[aria-expanded="true"] .order-toggle-icon {
  transform: rotate(225deg);
}

.order-detail-panel {
  display: grid;
  gap: 16px;
  padding: 15px 14px 14px;
  border-top: 1px solid var(--divider);
  background: color-mix(in srgb, var(--card) 72%, var(--bg));
}

.order-detail-panel[hidden] {
  display: none;
}

.order-detail-section {
  display: grid;
  gap: 10px;
}

.order-detail-section + .order-detail-section {
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}

.order-detail-section h3 {
  color: var(--text);
  font-size: .82rem;
}

.order-detail-section .order-price-grid {
  padding-top: 0;
  border-top: 0;
}

.order-detail-section .order-address {
  padding: 0;
  border: 0;
}

.order-card-head,
.order-item-line,
.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card-head div,
.order-item-line div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-card-head strong,
.order-item-line strong {
  color: var(--text);
  font-size: 0.92rem;
}

.order-card-head span,
.order-item-line span,
.order-address,
.order-history span,
.order-history small,
.order-request-note {
  color: var(--text-light);
  font-size: 0.76rem;
}

.order-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary) !important;
  font-weight: 800;
}

.order-item-line {
  justify-content: flex-start;
}

.order-product-list {
  display: grid;
  gap: 10px;
}

.order-product-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--card);
}

.order-product-line > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-product-line strong {
  color: var(--text);
  font-size: .84rem;
  line-height: 1.35;
}

.order-product-line span,
.order-product-line p {
  color: var(--text-light);
  font-size: .74rem;
  line-height: 1.45;
}

.order-product-line p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.order-price-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
  color: var(--text-light);
  font-size: 0.82rem;
}

.order-price-grid strong {
  color: var(--text);
}

.order-address {
  padding: 10px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  line-height: 1.5;
}

.order-history {
  display: grid;
  gap: 7px;
}

.order-history div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: start;
}

.order-history strong {
  color: var(--text);
  font-size: 0.78rem;
}

.order-history small {
  grid-column: 2;
}

.order-request-note {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--hover);
  font-weight: 700;
}

.order-actions {
  justify-content: flex-end;
}

.order-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cart-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 12px;
}

.cart-select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.cart-select-all-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cart-clear-all {
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 0.8rem;
  cursor: pointer;
}

.cart-selection-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-delete-selected {
  border: none;
  background: none;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-delete-selected:disabled {
  color: var(--text-light);
  cursor: not-allowed;
  opacity: .55;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--divider);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cart-item-img {
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-info strong {
  font-size: 0.9rem;
  color: var(--text);
}

.cart-product-link {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cart-product-link:hover,
.cart-product-link:active {
  transform: none;
}

.cart-product-image {
  flex: 0 0 auto;
  padding: 0;
  font-size: 2rem;
}

.cart-product-image img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.cart-product-title {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-product-title:hover {
  color: var(--primary);
}

.cart-item-meta {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-remove {
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px 16px;
  font-size: 0.9rem;
  color: var(--text);
}

.cart-total strong {
  font-size: 1.1rem;
  color: var(--primary);
}

.btn-cart-buy {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-cart-buy:active {
  background: var(--primary-dark);
}

.btn-cart-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 마이페이지 */
.mypage-content {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

/* mypage-main = 로그인 카드+메뉴 영역. 한 화면 높이만큼 확보해서
   사업자 정보(약관 링크)는 그 아래로 밀려나 스크롤해야 보이게 된다 */
.mypage-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
}

.mypage-card {
  text-align: left;
  padding-bottom: 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.mypage-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mypage-card-tools {
  margin-left: auto;
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.mypage-card-tools .theme-icon-btn {
  margin-left: 0;
}

.message-icon-btn {
  position: relative;
}

.message-icon-btn > svg {
  width: 18px;
  height: 18px;
}

.message-unread-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--card);
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
}

.message-unread-badge[hidden] {
  display: none;
}

.theme-icon-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-btn:active {
  background: var(--hover);
}

.theme-icon-btn .theme-icon svg {
  width: 18px;
  height: 18px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.avatar-circle svg {
  width: 22px;
  height: 22px;
}

.mypage-card-info h3 {
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.mypage-card-info p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.btn-login {
  border: none;
  background: var(--primary);
  color: white;
  padding: 11px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-login:active {
  background: var(--primary-dark);
}

.btn-logout,
.btn-edit-profile {
  width: 100%;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-edit-profile:active {
  background: var(--divider);
}

.btn-logout:active {
  background: var(--divider);
}

.btn-logout-bottom {
  margin-top: 16px;
}


.mypage-menu-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.mypage-menu-grid + .mypage-menu-grid {
  margin-top: 28px;
}

.menu-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding: 22px 4px;
  border: none;
  border-bottom: 1px solid var(--divider);
  background: none;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: opacity 0.15s;
}

.menu-tile:last-child {
  border-bottom: none;
}

.menu-tile:active {
  opacity: 0.6;
}

.menu-tile-icon {
  display: flex;
  color: var(--primary);
  flex-shrink: 0;
}

.menu-tile-icon svg {
  width: 21px;
  height: 21px;
}

.menu-tile-label {
  font-size: 0.92rem;
  white-space: nowrap;
}

.menu-tile-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* 고객지원 페이지 */
.support-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.support-header .page-title {
  margin-bottom: 0;
}

.back-btn {
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:active {
  background: var(--divider);
}

.support-content {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
}

.notice-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
}

.notice-item {
  padding: 16px 4px;
  border-bottom: 1px solid var(--divider);
}

.notice-title {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.notice-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 4px;
  border: none;
  border-bottom: 1px solid var(--divider);
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s;
}

.support-btn:last-child {
  border-bottom: none;
}

.support-btn:active {
  opacity: 0.6;
}

.support-btn .support-icon {
  display: flex;
  color: var(--primary);
  flex-shrink: 0;
}

.support-btn .support-icon svg {
  width: 24px;
  height: 24px;
}

/* 상품 상세 페이지 */
.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-header .page-title {
  margin-bottom: 0;
}

.detail-media {
  position: relative;
}

.btn-bookmark {
  position: absolute;
  top: 12px;
  right: 30px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-bookmark.active {
  color: #ff5470;
}

.btn-image-zoom {
  position: absolute;
  top: 12px;
  right: 74px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-image-zoom:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.62);
}

.btn-image-zoom svg {
  width: 18px;
  height: 18px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  padding: max(64px, env(safe-area-inset-top)) 14px max(44px, env(safe-area-inset-bottom));
  background: rgba(8, 10, 13, 0.94);
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-stage {
  --viewer-zoom: 1;
  width: 100%;
  height: min(82dvh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.image-viewer-stage::-webkit-scrollbar {
  display: none;
}

.image-viewer-stage img {
  display: block;
  width: calc(100% * var(--viewer-zoom));
  height: calc(100% * var(--viewer-zoom));
  max-width: none;
  object-fit: contain;
  transition: width 220ms cubic-bezier(.2, .8, .2, 1), height 220ms cubic-bezier(.2, .8, .2, 1);
  will-change: width, height;
}

@media (hover: hover) and (pointer: fine) {
  .image-viewer-stage img {
    cursor: zoom-in;
  }

  .image-viewer-stage img.is-max-zoom {
    cursor: zoom-out;
  }
}

.image-viewer-close,
.image-viewer-nav {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.image-viewer-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.45rem;
}

.image-viewer-nav {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  font-size: 2rem;
}

.image-viewer-count {
  position: absolute;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px));
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.image-viewer-zoom-controls {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: 42px 68px 42px;
  gap: 6px;
  transform: translateX(-50%);
}

.image-viewer-zoom-controls button {
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(24, 27, 31, .84);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.image-viewer-zoom-controls button:disabled {
  opacity: .38;
}

.detail-classification-report {
  width: 100%;
  margin: 8px 0 16px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: var(--text-light);
  text-align: left;
  font-size: .82rem;
  font-weight: 700;
}

.detail-classification-report:hover {
  transform: none;
  color: var(--primary);
}

.classification-contact-actions {
  display: grid;
  gap: 9px;
  margin-bottom: 8px;
}

.classification-contact-actions .support-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.classification-contact-actions .is-unavailable {
  opacity: .55;
}

.classification-contact-hours {
  margin: -1px 0 16px;
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.45;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .image-viewer-stage img {
    transition: none;
  }
}

@media (min-width: 700px) {
  #classification-contact-modal {
    align-items: center;
    padding: 24px;
  }

  .classification-contact-sheet {
    border-radius: 10px;
    padding-bottom: 24px;
    animation: none;
  }

  .classification-contact-sheet .modal-handle {
    display: none;
  }
}

.detail-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  font-size: 6rem;
  background: var(--bg);
  border-radius: 14px;
  /* 좌우 18px는 .detail-info의 padding과 맞춰서 버튼 줄과 폭을 정확히 일치시킴 */
  margin: 0 18px 16px;
  overflow: hidden;
}

.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-shipping {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.btn-toggle-original {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--bg);
  color: var(--text-light);
  font-size: 0.75rem;
  cursor: pointer;
}

/* 사진이 여러 장일 때의 갤러리 - .detail-info의 padding(18px)과 맞춰서 버튼 줄과 폭을 정확히 일치시킴 */
.detail-gallery {
  margin: 0 18px 16px;
}

.detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  height: 240px;
  border-radius: 14px;
  background: var(--bg);
  scrollbar-width: none;
}

.detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.detail-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.detail-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--divider);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.detail-gallery-dot.active {
  width: 16px;
  border-radius: 4px;
  background: var(--primary);
}

.detail-options {
  margin-bottom: 16px;
}

.option-group {
  margin-bottom: 12px;
}

.option-group-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.option-group-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-chip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.option-chip.selected {
  border-color: var(--primary);
  background: var(--platform-hover);
  color: var(--primary);
}

.detail-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.detail-info {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
}

.detail-info h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.detail-info .detail-platform {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 750;
}

.detail-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.76rem;
}

.detail-seller-name {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.detail-favorites,
.detail-location {
  color: var(--text-light);
}

.detail-info .detail-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.detail-info .detail-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: pre-line;
}

.detail-info .detail-actions {
  display: flex;
  gap: 10px;
}

.btn-cart {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cart:active {
  background: var(--primary-dark);
}

.btn-buy {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #222;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* 구매 페이지 */
.buy-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.buy-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider);
  margin-bottom: 20px;
}

.buy-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--divider);
}

.buy-item:last-child {
  border-bottom: none;
}

.buy-item-img {
  font-size: 2rem;
  flex-shrink: 0;
}

.buy-item-img img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.buy-item strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.buy-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.buy-summary {
  padding: 4px 2px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.buy-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.buy-row.total {
  border-top: 1px solid var(--divider);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--text);
}

.buy-row.total strong {
  color: var(--primary);
}

.detail-translation-notice {
  margin: 14px 0 10px;
  padding: 11px 12px;
  border-left: 3px solid var(--primary);
  background: var(--primary-tint);
  color: var(--text);
}

.detail-translation-notice strong {
  display: block;
  font-size: 0.78rem;
}

.detail-translation-notice p {
  margin: 3px 0 0;
  color: var(--text-light);
  font-size: 0.74rem;
  line-height: 1.55;
  word-break: keep-all;
}

.detail-imported-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 0.75rem;
}

.detail-imported-actions a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.checkout-policy-notice {
  padding: 14px 2px;
  border-bottom: 1px solid var(--divider);
}

.customs-tax-row {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.customs-tax-row small {
  margin-left: 4px;
  color: var(--text-light);
  font-size: .72rem;
  font-weight: 600;
}

.customs-tax-note {
  margin: 6px 0 12px;
  padding: 10px 11px;
  border-left: 3px solid var(--primary);
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.55;
}

.checkout-policy-notice strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.checkout-policy-notice p,
.checkout-privacy-summary {
  margin: 5px 0 0;
  color: var(--text-light);
  font-size: 0.76rem;
  line-height: 1.55;
  word-break: keep-all;
}

.checkout-policy-notice > div {
  display: flex;
  gap: 14px;
  margin-top: 9px;
}

.checkout-policy-notice button,
.checkout-agreement-row button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-agreements {
  display: grid;
  gap: 11px;
  padding: 16px 2px;
}

.checkout-agreement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-agreement-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.84rem;
  cursor: pointer;
}

.checkout-agreement-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.checkout-agreement-row em {
  color: var(--primary);
  font-size: 0.7rem;
  font-style: normal;
}

.checkout-privacy-summary {
  margin: -5px 28px 0;
}

.buy-balance {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
}

.pay-method span:first-child {
  display: flex;
  color: var(--primary);
}

.pay-method span:first-child svg {
  width: 21px;
  height: 21px;
}

.pay-method-label {
  flex: 1;
}

.pay-method-balance {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.pay-method.selected {
  border-color: var(--primary);
  background: var(--platform-hover);
  color: var(--primary);
}

.pay-method:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pay-method.selected .pay-method-balance {
  color: var(--primary);
}

.wallet-source-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.wallet-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 15px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-source-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.wallet-source-value {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

.wallet-source.selected {
  border-color: var(--primary);
  background: var(--platform-hover);
}

.wallet-source.selected .wallet-source-label,
.wallet-source.selected .wallet-source-value {
  color: var(--primary);
}

.wallet-source:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.btn-pay {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-pay:active {
  background: var(--primary-dark);
}

.btn-pay:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.checkout-feature-notice,
.wallet-charge-unavailable {
  margin: 0 0 10px;
  padding: 11px 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--hover);
  color: var(--text-light);
  font-size: .78rem;
  line-height: 1.5;
}

/* 예치금 (닉네임 옆 인라인 표시) */
.balance-inline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 6px;
}

.mypage-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-charge {
  width: 100%;
  border: none;
  background: var(--primary);
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-charge:active {
  background: var(--primary-dark);
}

/* 지갑 모달 */
.wallet-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.wallet-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  background: var(--hover);
  border-radius: 10px;
}

.wallet-stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.wallet-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.charge-form {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.charge-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border 0.2s;
  margin-bottom: 24px;
}

.charge-form input:focus {
  border-color: var(--primary);
}

.charge-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.charge-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.charge-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s;
}

.charge-method svg {
  width: 18px;
  height: 18px;
}

.charge-method.selected {
  border-color: var(--primary);
  background: var(--platform-hover);
  color: var(--primary);
}

.charge-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.charge-submit:active {
  background: var(--primary-dark);
}

.support-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.support-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}


/* 하단 네비게이션 - Liquid Glass */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  height: 64px;
  background: var(--nav-glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--nav-glass-border);
  border-radius: 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  z-index: 100;
  padding: 0 4px;
  padding-bottom: 0;
  box-shadow:
    inset 0 1px 0 var(--nav-glass-highlight),
    0 8px 32px rgba(0,0,0,0.14);
  transition: background 0.3s, border 0.3s;
}

.nav-btn {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.65rem;
  color: var(--nav-btn-color);
  transition: color 0.2s;
  position: relative;
  border-radius: 16px;
}

.nav-btn .nav-icon {
  width: 25px;
  height: 25px;
  min-height: 25px;
  flex: 0 0 25px;
  stroke: currentColor;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* 로그인 모달 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
  justify-content: center;
  align-items: flex-end;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 32px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.modal-desc {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.sns-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sns-consent-notice {
  margin: 14px 2px 0;
  color: var(--text-light);
  font-size: .72rem;
  line-height: 1.65;
  text-align: center;
  word-break: keep-all;
}

.sns-consent-notice button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text-light) 65%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.sns-consent-notice button:hover {
  color: var(--primary);
  transform: none;
}

.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sns-btn:active {
  opacity: 0.85;
}

.sns-btn .sns-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.sns-btn.kakao {
  background: #FEE500;
  color: #191919;
}

.sns-btn.naver {
  background: #03C75A;
  color: white;
}

.sns-btn.google {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.sns-btn.apple {
  background: #000;
  color: white;
}

.modal-close {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  background: var(--bg);
  color: var(--text-light);
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-close:active {
  background: var(--divider);
}

/* 배송지 폼 */
.address-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

#address-form-wrap {
  gap: 24px;
}

#address-form-wrap input + input {
  margin-top: 6px;
}

.address-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border 0.2s;
}

.address-form input:focus {
  border-color: var(--primary);
}

.address-limit-note {
  margin: -4px 0 18px;
  color: var(--text-light);
  font-size: .8rem;
  line-height: 1.5;
}

.non-physical-contact {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.non-physical-contact p {
  margin: 0 0 2px;
  color: var(--text-light);
  font-size: .82rem;
}

.non-physical-contact input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}

.checkout-agreement-all {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--divider);
  font-weight: 700;
}

.address-form input[readonly] {
  color: var(--text);
  background: var(--hover);
  cursor: default;
}

.address-lookup-row,
.customs-verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.address-lookup-btn,
.customs-verify-btn {
  min-width: 92px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--text);
  color: var(--card);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.customs-verify-state {
  min-height: 18px;
  margin-top: -8px;
  color: var(--text-light);
  font-size: .72rem;
}

.customs-verify-state.verified {
  color: var(--primary);
  font-weight: 700;
}

.postcode-layer {
  z-index: 420;
  align-items: center;
  padding: 14px;
}

.postcode-sheet {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.postcode-sheet-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--divider);
}

.postcode-sheet-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

#postcode-embed {
  width: 100%;
  height: min(620px, 72dvh);
}

@media (max-width: 760px) {
  .postcode-layer {
    align-items: stretch;
    padding: 0;
  }

  .postcode-sheet {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
  }

  #postcode-embed {
    flex: 1 1 auto;
    height: calc(100dvh - 52px);
    min-height: 0;
  }
}

.address-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  padding: 2px 0 6px;
}

.address-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.address-card {
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 12px;
}

.address-card-name {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.address-card-phone {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.85rem;
}

.address-card-line {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* 로그인 폼 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border 0.2s;
}

.login-form input:focus {
  border-color: var(--primary);
}

.login-form input::placeholder {
  color: var(--skeleton);
}

.login-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.login-submit:active {
  background: var(--primary-dark);
}

.login-submit.btn-danger {
  background: #ff3b30;
}

.login-submit.btn-danger:active {
  background: #d6382f;
}

.text-link-muted {
  display: block;
  margin: 12px 0 0;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.login-error {
  text-align: center;
  color: #ff3b30;
  font-size: 0.8rem;
  min-height: 18px;
}

.login-hint {
  text-align: center;
  color: var(--text-light);
  font-size: 0.75rem;
}

.email-login-link {
  display: block;
  width: auto;
  margin: 12px auto 0;
  padding: 4px 2px;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-switch {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.login-switch button {
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

/* 토스트 */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--card);
  border-radius: 10px;
  pointer-events: auto;
  animation: toastIn 0.35s ease, toastOut 0.3s ease 2.5s forwards;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
}

.toast.success .toast-icon { color: #34c759; }
.toast.error .toast-icon { color: #ff3b30; }
.toast.info .toast-icon { color: var(--primary); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-msg { flex: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 확인 모달 */
.modal-sheet-sm {
  width: calc(100% - 64px);
  max-width: 320px;
  border-radius: 18px;
  padding: 24px 20px 20px;
  text-align: center;
  align-self: center;
}

.confirm-msg {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 8px;
}

.confirm-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-btn.cancel {
  background: var(--bg);
  color: var(--text-light);
}

.confirm-btn.cancel:active {
  background: var(--divider);
}

.confirm-btn.ok {
  background: var(--primary);
  color: white;
}

.confirm-btn.ok:active {
  background: var(--primary-dark);
}

/* Taste pass: trust-first commerce polish */
:root {
  --primary: #3073BB;
  --primary-dark: #245A96;
  --primary-tint: #A7C8EB;
  --bg: #F5F8FC;
  --card: #FFFFFF;
  --text: #202A36;
  --text-light: #68788B;
  --border: #D8E3EF;
  --divider: #E5EDF5;
  --hover: #EDF3F9;
  --overlay: rgba(18, 34, 53, 0.52);
  --nav-btn-color: #7F8FA2;
  --platform-hover: #E8F1FA;
  --skeleton: #B9C9D9;
  --muted-gray: #6F7F90;
  --nav-glass-bg: rgba(255, 255, 255, 0.82);
  --nav-glass-border: rgba(48, 115, 187, 0.12);
  --nav-glass-highlight: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 18px 48px rgba(36, 76, 119, 0.13);
  --shadow-tight: 0 8px 24px rgba(36, 76, 119, 0.10);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  --primary: #4C8FD2;
  --primary-dark: #A7C8EB;
  --primary-tint: #203B58;
  --bg: #0F1620;
  --card: #182230;
  --text: #EEF4FA;
  --text-light: #AAB8C7;
  --border: #2B3A4C;
  --divider: #223043;
  --hover: #1E2B3B;
  --overlay: rgba(0, 0, 0, 0.72);
  --nav-btn-color: #8796A8;
  --platform-hover: #1E344D;
  --skeleton: #53657A;
  --muted-gray: #A0AFBE;
  --nav-glass-bg: rgba(24, 34, 48, 0.84);
  --nav-glass-border: rgba(255, 255, 255, 0.08);
  --nav-glass-highlight: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.32);
  --shadow-tight: 0 8px 24px rgba(0, 0, 0, 0.24);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  background: var(--bg);
}

body::before {
  display: none;
}

#app {
  isolation: isolate;
  box-shadow: none;
}

html.app-booting #app {
  visibility: hidden;
}

button,
input {
  font: inherit;
}

button {
  transition: transform 180ms var(--ease-out), background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out), opacity 180ms var(--ease-out);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0) scale(.985);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 72%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 500;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--card);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  padding: 24px 18px;
  padding-bottom: calc(var(--nav-height) + 34px + var(--safe-bottom));
}

.home-centered .home-main {
  justify-content: flex-start;
  align-items: stretch;
  min-height: calc(100dvh - 48px);
  padding: max(28px, calc(50dvh - 162px)) 0 0;
}

.home-centered .home-main .search-wrap {
  width: 100%;
  max-width: none;
  position: relative;
  isolation: isolate;
}

.home-centered .home-main .search-wrap::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -16px;
  height: 86px;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%,
      color-mix(in srgb, var(--primary) 16%, transparent) 0%,
      color-mix(in srgb, #A7C8EB 12%, transparent) 44%,
      transparent 72%);
  filter: blur(16px);
  opacity: .58;
}

.search-top .home-main .search-wrap::before {
  left: 18%;
  right: 18%;
  top: -10px;
  height: 54px;
  opacity: .18;
  filter: blur(12px);
}

.home-logo {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: var(--shadow-tight);
}

.logo {
  color: var(--text);
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  line-height: .96;
  font-weight: 850;
  text-align: left;
  text-wrap: balance;
}

.home-kicker {
  margin: -8px 0 22px;
  max-width: none;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.55;
}

.home-kicker strong {
  color: var(--text);
  font-weight: 800;
}

.home-kicker strong,
.home-kicker span {
  white-space: nowrap;
}

.home-exchange-wrap {
  margin-top: 14px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.home-exchange {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "label rate" "time time";
  align-items: center;
  gap: 2px 10px;
  padding: 10px 2px;
  color: var(--text-light);
  text-align: left;
}

.home-exchange > span:first-child {
  grid-area: label;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-exchange strong {
  grid-area: rate;
  color: var(--primary);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.profile-field-label {
  color: var(--text-light);
  font-size: .78rem;
  font-weight: 700;
}

.profile-account-note {
  margin: 14px 0 6px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  color: var(--text-light);
  font-size: .78rem;
  line-height: 1.55;
}

.home-exchange small {
  grid-area: time;
  font-size: 0.68rem;
}


.customer-editor {
  display: grid;
  gap: 14px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--divider);
}

.customer-editor label {
  display: grid;
  gap: 7px;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.customer-editor input[type="text"],
.customer-editor textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.customer-editor input[type="text"] { min-height: 48px; padding: 0 13px; }
.customer-editor textarea { min-height: 190px; padding: 13px; resize: vertical; line-height: 1.6; }

.customer-markdown-tools { display: flex; align-items: center; gap: 8px; }
.customer-markdown-tools button,
.customer-markdown-tools label {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--text-light);
  font-size: 0.75rem;
  cursor: pointer;
}
.customer-markdown-tools input { display: none; }

.customer-submission-list,
.message-list { display: grid; gap: 0; padding-top: 18px; }
.customer-submission-item,
.customer-message { padding: 14px 0; border-bottom: 1px solid var(--divider); }
.customer-submission-item > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.customer-submission-item > div:first-child span,
.customer-message-head i { color: var(--primary); font-size: 0.7rem; font-style: normal; font-weight: 750; }
.customer-submission-item > small,
.customer-message-head small { color: var(--text-light); font-size: 0.7rem; }
.customer-submission-item .notice-content { margin-top: 10px; color: var(--text-light); font-size: 0.8rem; line-height: 1.6; }
.customer-feedback-reply {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
}
.customer-feedback-reply > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.customer-feedback-reply > div:first-child small { color: var(--text-light); font-size: 0.7rem; }
.customer-feedback-reply .notice-content { color: var(--text); }
.customer-message-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.customer-message-head span { display: grid; gap: 4px; }
.customer-message.unread .customer-message-head strong { color: var(--primary); }
.customer-message-body {
  margin-top: 12px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--divider);
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.65;
}
.customer-message-body[hidden] { display: none; }

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 8px;
}

.trust-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 14px;
  min-width: 0;
  min-height: 62px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.trust-chip:last-child {
  border-bottom: 0;
}

.trust-chip::after {
  content: "›";
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--text-light);
  font-size: 1.15rem;
  line-height: 1;
  text-align: right;
  transition: transform 180ms var(--ease-out), color 180ms var(--ease-out);
}

.trust-chip[aria-expanded="true"] {
  border-color: var(--divider);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  box-shadow: inset 3px 0 0 var(--primary);
}

.trust-chip[aria-expanded="true"]::after {
  color: var(--primary);
  transform: rotate(90deg);
}

.trust-chip strong {
  grid-column: 1;
  grid-row: 1;
  font-size: .84rem;
  color: var(--text);
}

.trust-chip span {
  grid-column: 1;
  grid-row: 2;
  font-size: .74rem;
  color: var(--text-light);
  line-height: 1.45;
  text-align: left;
}

.feature-detail {
  margin: 0;
  padding: 14px 15px 16px 18px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: color-mix(in srgb, var(--card) 76%, var(--bg));
}

.feature-detail[hidden] {
  display: none;
}

#feature-detail-title {
  display: none;
}

.feature-detail .notice-content {
  color: var(--text-light);
  font-size: .78rem;
  line-height: 1.55;
}

.search-bar {
  position: relative;
  z-index: 1;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--primary) 46%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 7%, transparent),
    0 10px 24px color-mix(in srgb, var(--primary) 9%, transparent),
    var(--shadow-tight);
  overflow: visible;
}

#search-input {
  min-width: 0;
  padding: 17px 16px;
  font-size: 1.08rem;
}

#search-btn {
  align-self: stretch;
  margin: 5px 5px 5px 0;
  display: grid;
  place-items: center;
  width: 46px;
  padding: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
}

#search-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

#search-btn:hover {
  background: var(--primary-dark);
}

.platform-btn {
  width: 46px;
  color: var(--primary);
}

.platform-dropdown {
  border-radius: 9px;
  box-shadow: var(--shadow-tight);
}

.search-top .home-main .search-wrap {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.search-results {
  position: relative;
  z-index: 1;
}

.search-top .home-kicker,
.search-top .trust-strip,
.search-top .home-exchange-wrap {
  display: none;
}

.result-item,
.inline-warn,
.cart-empty,
#bookmarks-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--text-light);
}

.result-loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 30px 22px 26px;
  text-align: center;
}

.listing-loader {
  width: 42px;
  height: 42px;
  border: 3px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: listingLoaderSpin .8s linear infinite;
}

.listing-loading-copy {
  min-height: 52px;
}

.listing-loading-copy strong {
  display: block;
  color: var(--text);
  font-size: .92rem;
}

.listing-loading-copy p {
  margin-top: 5px;
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.5;
}

.listing-loading-progress {
  width: min(250px, 82%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--border));
}

.listing-loading-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: listingProgress 1.35s ease-in-out infinite;
}

.listing-loading-steps {
  display: flex;
  gap: 6px;
}

.listing-loading-steps span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background .25s, transform .25s;
}

.listing-loading-steps span.active {
  background: var(--primary);
  transform: scale(1.25);
}

@keyframes listingLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes listingProgress {
  from { transform: translateX(-115%); }
  to { transform: translateX(240%); }
}

.skeleton-line {
  display: block;
  height: 10px;
  width: 74%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hover), color-mix(in srgb, var(--hover) 45%, white), var(--hover));
  background-size: 220% 100%;
  animation: skeletonFlow 1.4s ease-in-out infinite;
}

.skeleton-line-lg {
  width: 92%;
  height: 13px;
}

.skeleton-line-sm {
  width: 48%;
}

@keyframes skeletonFlow {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 84%, var(--bg));
}

.notice-card h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.notice-content {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.65;
}

.notice-content a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.content-page-body {
  min-height: 180px;
  padding: 8px 0 28px;
}

.content-page-body > .cart-empty {
  margin-top: 6px;
}

.notice-image {
  display: block;
  width: 100%;
  max-height: 280px;
  margin: 8px 0;
  object-fit: contain;
  border-radius: 8px;
  background: var(--hover);
}

.product-card,
.detail-info,
.modal-sheet,
.pay-method,
.wallet-source,
.wallet-stat,
.support-btn,
.notice-item {
  box-shadow: none;
}

.product-card {
  border-radius: 9px;
  background: transparent;
}

.product-card .card-img {
  height: 150px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--card) 64%, var(--bg));
  overflow: hidden;
}

.product-card .card-body {
  padding: 9px 1px 0;
}

.product-card .card-name {
  font-size: .88rem;
  line-height: 1.35;
}

.product-card .card-price,
.detail-info .detail-price,
.cart-total strong,
.buy-row.total strong {
  color: var(--text);
}

.page-title {
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.detail-info {
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 84%, var(--bg));
  border: 1px solid var(--divider);
}

.detail-img,
.detail-gallery-track {
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 62%, var(--bg));
}

.btn-bookmark {
  right: 28px;
  background: rgba(38, 35, 31, .68);
  backdrop-filter: blur(12px);
  color: #fff;
}

.btn-bookmark svg {
  width: 19px;
  height: 19px;
}

.btn-bookmark.active {
  color: #fff;
  background: var(--primary);
}

.btn-cart,
.btn-cart-buy,
.login-submit,
.charge-submit,
.btn-pay,
.btn-login,
.confirm-btn.ok {
  border-radius: 9px;
  background: var(--text);
  color: var(--card);
}

.btn-buy {
  border-radius: 9px;
  background: var(--primary);
}

.btn-cart,
.btn-buy {
  background: var(--primary);
  color: #fff;
}

.btn-cart:hover,
.btn-buy:hover {
  background: var(--primary-dark);
}

.btn-cart:hover,
.btn-cart-buy:hover,
.login-submit:hover,
.charge-submit:hover,
.btn-pay:hover,
.btn-login:hover,
.confirm-btn.ok:hover {
  background: var(--primary);
}

.mypage-card {
  padding: 4px 0 22px;
}

.mypage-account-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.mypage-menu-grid {
  background: color-mix(in srgb, var(--card) 45%, transparent);
  border-radius: 12px;
  border: 1px solid var(--divider);
  overflow: hidden;
}

.mypage-menu-grid + .mypage-menu-grid {
  margin-top: 16px;
}

.menu-tile {
  padding: 19px 14px;
}

.menu-tile-icon {
  color: var(--text);
}

.avatar-circle {
  border-radius: 12px;
  background: var(--primary-tint);
}

.theme-icon-btn,
.back-btn {
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 60%, transparent);
}

.bottom-nav {
  height: 64px;
  padding: 5px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .34)),
    var(--nav-glass-bg);
  border-color: rgba(255, 255, 255, .58);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(38, 35, 31, .07),
    0 18px 38px rgba(60, 51, 38, .22);
}

.nav-btn {
  border-radius: 17px;
}

.nav-btn.active {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .30));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 8px 18px rgba(36, 76, 119, .12);
}

[data-theme="dark"] .bottom-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
    rgba(24, 34, 48, 0.88);
  border-color: rgba(255, 255, 255, .10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    0 18px 38px rgba(0, 0, 0, .34);
}

[data-theme="dark"] .nav-btn.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 8px 18px rgba(0, 0, 0, .26);
}

.cart-badge {
  background: var(--primary);
}

.modal-sheet {
  border: 1px solid var(--divider);
  border-bottom: none;
}

.modal-title {
  letter-spacing: 0;
}

.sns-btn,
.charge-method,
.pay-method,
.wallet-source,
.confirm-btn,
.modal-close,
.btn-edit-profile,
.btn-logout {
  border-radius: 9px;
}

.sns-btn.kakao,
.sns-btn.naver,
.sns-btn.google {
  border: 1px solid var(--divider);
  background: color-mix(in srgb, var(--card) 86%, var(--bg));
  color: var(--text);
}

.charge-method.selected,
.pay-method.selected,
.wallet-source.selected {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
  background: var(--platform-hover);
}

.coupon-apply-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 20px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 82%, var(--bg));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.coupon-apply-btn span {
  font-size: .9rem;
  font-weight: 700;
}

.coupon-apply-btn small {
  color: var(--text-light);
  font-size: .74rem;
  line-height: 1.35;
}

.coupon-apply-btn.selected {
  border-color: color-mix(in srgb, var(--primary) 54%, var(--border));
  background: var(--platform-hover);
  color: var(--primary);
}

.coupon-apply-btn:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.checkout-coupon-list {
  display: grid;
  gap: 8px;
  margin: -10px 0 20px;
}

.checkout-coupon-list[hidden] {
  display: none;
}

.checkout-coupon-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 80%, var(--bg));
  color: var(--text);
  text-align: left;
}

.checkout-coupon-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .86rem;
}

.checkout-coupon-card strong em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: .64rem;
  font-style: normal;
  font-weight: 750;
}

.checkout-coupon-card span {
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.35;
}

.checkout-coupon-card.selected {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
  background: var(--platform-hover);
}

.checkout-coupon-code-form {
  margin: 0 0 4px;
}

.checkout-coupon-error {
  margin: 0;
}

.checkout-coupon-error:empty {
  display: none;
}

.saved-address-list,
.address-list {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.saved-address-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 82%, var(--bg));
  color: var(--text);
  text-align: left;
}

.saved-address-card strong,
.address-card-name strong {
  font-size: .88rem;
}

.saved-address-card span,
.saved-address-card small {
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.35;
}

.saved-address-card.selected {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
  background: var(--platform-hover);
}

.address-default-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: .68rem;
  font-weight: 700;
}

.address-card-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

#address-save {
  order: 20;
  margin-top: 8px;
}

#address-error {
  order: 21;
}

.coupon-row span:last-child {
  color: var(--primary);
  font-weight: 700;
}

.wallet-stat-button {
  border: none;
  cursor: pointer;
  text-align: left;
}

.checkout-coupon-card.unavailable {
  cursor: not-allowed;
  opacity: .56;
}

.wallet-stat-button:hover {
  background: var(--platform-hover);
}

.wallet-history-sheet {
  max-height: min(760px, 88dvh);
}

.wallet-history-head {
  padding: 16px 2px 18px;
  border-bottom: 1px solid var(--divider);
}

.wallet-history-head span {
  display: block;
  color: var(--text-light);
  font-size: .78rem;
}

.wallet-history-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.5rem;
}

.wallet-history-list {
  min-height: 160px;
  max-height: 48dvh;
  overflow-y: auto;
}

.wallet-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid var(--divider);
}

.wallet-history-item-copy,
.wallet-history-item-value {
  display: grid;
  gap: 4px;
}

.wallet-history-item-copy strong {
  color: var(--text);
  font-size: .86rem;
}

.wallet-history-item-copy small {
  color: var(--text-light);
  font-size: .7rem;
}

.wallet-history-item-value {
  justify-items: end;
}

.wallet-history-item-value strong {
  font-size: .84rem;
}

.wallet-history-item-value.in strong {
  color: var(--primary);
}

.wallet-history-item-value.out strong {
  color: var(--text);
}

.wallet-history-item-value button {
  border: 0;
  background: transparent;
  color: var(--danger, #b33f45);
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}

.wallet-history-loading {
  padding: 42px 0;
  color: var(--text-light);
  text-align: center;
  font-size: .82rem;
}

.coupon-code-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 16px 0 14px;
}

.coupon-code-form input {
  min-width: 0;
  padding: 12px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
}

.coupon-code-form .login-submit {
  width: auto;
  padding: 0 15px;
}

.coupon-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.coupon-list-item,
.coupon-empty {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 82%, var(--bg));
}

.coupon-list-item strong {
  font-size: .88rem;
  color: var(--text);
}

.coupon-list-item span {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 700;
}

.coupon-list-item small,
.coupon-empty {
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.35;
}

.platform-option-disabled {
  color: var(--text-light);
  opacity: .62;
}

.platform-option-disabled span {
  margin-left: 4px;
  font-size: .72rem;
}

[data-theme="dark"] .search-bar {
  border-color: color-mix(in srgb, var(--primary) 44%, var(--border));
  background: #182230;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent),
    0 0 18px color-mix(in srgb, var(--primary) 12%, transparent),
    0 10px 28px rgba(0, 0, 0, .22);
}

[data-theme="dark"] .home-centered .home-main .search-wrap::before {
  background:
    radial-gradient(ellipse at 50% 50%,
      color-mix(in srgb, #4C8FD2 22%, transparent) 0%,
      color-mix(in srgb, #A7C8EB 10%, transparent) 42%,
      transparent 76%);
  filter: blur(16px);
  opacity: .5;
}

[data-theme="dark"] body,
[data-theme="dark"] #app {
  background: #0F1620;
  background-color: #0F1620;
}

[data-theme="dark"] #page-home {
  background: #0F1620;
}

[data-theme="dark"] .home-kicker,
[data-theme="dark"] .company-info,
[data-theme="dark"] .company-info p,
[data-theme="dark"] .company-info p span,
[data-theme="dark"] .trust-chip span {
  color: #AAB8C7;
}

[data-theme="dark"] .trust-chip {
  background: #182230;
  border-color: #2B3A4C;
}

[data-theme="dark"] .trust-chip[aria-expanded="true"] {
  background: #192534;
  border-color: #2B3A4C;
  box-shadow: inset 3px 0 0 #4C8FD2;
}

[data-theme="dark"] .feature-detail {
  border-color: #2B3A4C;
  background: #141E2A;
}

[data-theme="dark"] .feature-detail .notice-content {
  color: #B9C6D4;
}

[data-theme="dark"] .trust-chip strong,
[data-theme="dark"] .company-name,
[data-theme="dark"] .company-link,
[data-theme="dark"] .company-inline-link {
  color: #EEF4FA;
}

[data-theme="dark"] .company-info .company-inline-link,
[data-theme="dark"] .company-info .company-inline-link span {
  color: inherit;
}

[data-theme="dark"] #search-input {
  color: var(--text);
}

[data-theme="dark"] #search-input::placeholder {
  color: #B9C9D9;
  opacity: 1;
}

[data-theme="dark"] #search-btn,
[data-theme="dark"] .btn-cart,
[data-theme="dark"] .btn-buy,
[data-theme="dark"] .btn-cart-buy,
[data-theme="dark"] .login-submit,
[data-theme="dark"] .charge-submit,
[data-theme="dark"] .btn-pay,
[data-theme="dark"] .btn-login,
[data-theme="dark"] .confirm-btn.ok {
  background: var(--primary);
  color: #0F1620;
}

[data-theme="dark"] #search-btn:hover,
[data-theme="dark"] .btn-cart:hover,
[data-theme="dark"] .btn-buy:hover,
[data-theme="dark"] .btn-cart-buy:hover,
[data-theme="dark"] .login-submit:hover,
[data-theme="dark"] .charge-submit:hover,
[data-theme="dark"] .btn-pay:hover,
[data-theme="dark"] .btn-login:hover,
[data-theme="dark"] .confirm-btn.ok:hover {
  background: var(--primary-dark);
}

[data-theme="dark"] .platform-dropdown,
[data-theme="dark"] .modal-sheet,
[data-theme="dark"] .detail-info,
[data-theme="dark"] .mypage-menu-grid,
[data-theme="dark"] .address-card,
[data-theme="dark"] .cart-empty,
[data-theme="dark"] #bookmarks-empty,
[data-theme="dark"] .result-item,
[data-theme="dark"] .inline-warn {
  background: #182230;
  border-color: var(--border);
}

[data-theme="dark"] .pay-method,
[data-theme="dark"] .wallet-source,
[data-theme="dark"] .charge-method,
[data-theme="dark"] .checkout-coupon-card,
[data-theme="dark"] .saved-address-card,
[data-theme="dark"] .coupon-list-item,
[data-theme="dark"] .coupon-empty,
[data-theme="dark"] .coupon-code-form input,
[data-theme="dark"] .sns-btn.kakao,
[data-theme="dark"] .sns-btn.naver,
[data-theme="dark"] .sns-btn.google,
[data-theme="dark"] .coupon-apply-btn,
[data-theme="dark"] .theme-icon-btn,
[data-theme="dark"] .back-btn,
[data-theme="dark"] .btn-edit-profile,
[data-theme="dark"] .btn-logout {
  background: #151e29;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .pay-method.selected,
[data-theme="dark"] .wallet-source.selected,
[data-theme="dark"] .charge-method.selected,
[data-theme="dark"] .checkout-coupon-card.selected,
[data-theme="dark"] .saved-address-card.selected,
[data-theme="dark"] .coupon-apply-btn.selected {
  background: #1a3047;
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
}

[data-theme="dark"] .buy-summary {
  padding: 2px 0 13px;
  background: transparent;
  border-color: #2a394b;
}

[data-theme="dark"] .buy-row {
  color: #aebaca;
}

[data-theme="dark"] .buy-row.total {
  border-color: #34465b;
  color: var(--text);
}

[data-theme="dark"] .buy-row.total strong {
  color: #f3f7fb;
}

[data-theme="dark"] .charge-label {
  color: #c4cfda;
}

[data-theme="dark"] .pay-method {
  min-height: 56px;
  background: #151e29;
  border-color: #29384a;
  color: #dfe7ef;
}

[data-theme="dark"] .pay-method.selected {
  background: #192d42;
  border-color: #4c8fd2;
  color: #eef4fa;
  box-shadow: inset 0 0 0 1px rgba(76, 143, 210, 0.12);
}

[data-theme="dark"] .pay-method.selected .pay-method-label {
  color: #eef4fa;
}

[data-theme="dark"] .pay-method:disabled,
[data-theme="dark"] .wallet-source:disabled {
  opacity: 1;
  background: #121a23;
  border-color: #222f3d;
  color: #718093;
}

[data-theme="dark"] .pay-method:disabled span:first-child,
[data-theme="dark"] .pay-method:disabled .pay-method-label,
[data-theme="dark"] .pay-method:disabled .pay-method-balance,
[data-theme="dark"] .wallet-source:disabled .wallet-source-label,
[data-theme="dark"] .wallet-source:disabled .wallet-source-value {
  color: #718093;
}

[data-theme="dark"] .coupon-apply-btn:disabled {
  opacity: 1;
  background: #141c26;
  border-color: #263445;
  color: #8290a1;
}

[data-theme="dark"] .coupon-apply-btn:disabled small {
  color: #738193;
}

[data-theme="dark"] .wallet-source-value,
[data-theme="dark"] .pay-method-balance,
[data-theme="dark"] .coupon-apply-btn small,
[data-theme="dark"] .mypage-card-info p {
  color: var(--text-light);
}

[data-theme="dark"] .product-card .card-img,
[data-theme="dark"] .detail-img,
[data-theme="dark"] .detail-gallery-track {
  background: #151e29;
}

[data-theme="dark"] .skeleton-line {
  background: linear-gradient(90deg, #202c3a, #304257, #202c3a);
  background-size: 220% 100%;
}

.mypage-card {
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.mypage-card-top {
  margin-bottom: 14px;
}

.mypage-card > .btn-login {
  margin-top: 6px;
}

.btn-logout-bottom {
  margin-top: 0;
}

.toast {
  border-radius: 9px;
  box-shadow: var(--shadow-tight);
}

.toast.success .toast-icon,
.toast.info .toast-icon {
  color: var(--primary);
}

.toast-icon {
  font-size: .9rem;
}

.company-info {
  border-top: 1px solid var(--divider);
  margin-top: 56px;
  padding-top: 16px;
}

.company-info .company-heading-row {
  min-height: 0;
  margin-bottom: 0;
}

.company-info .company-business-grid {
  display: block;
}

.company-info .company-name {
  margin-bottom: 0;
  line-height: 1.5;
}

.company-info .company-details {
  display: grid;
  gap: 1px;
}

.company-info .company-details p {
  line-height: 1.5;
}

.company-info .company-address {
  margin-bottom: 0;
}

.company-link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 360px) {
  .trust-chip {
    grid-template-columns: minmax(0, 1fr) 14px;
    gap: 3px 9px;
    padding: 12px;
  }

  #search-btn {
    width: 44px;
    padding: 0;
  }
}

html[data-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-theme="dark"] #page-home {
  background: #0F1620 !important;
  background-color: #0F1620 !important;
}

@media (max-width: 480px) {
  .company-info p,
  .company-info .company-details p {
    font-size: .67rem;
    line-height: 1.55;
  }

  .company-info p span {
    margin-right: 3px;
  }

  .company-info .company-details .company-registration {
    font-size: .59rem;
    white-space: nowrap;
  }
}

html[data-theme="dark"] .bottom-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
    rgba(24, 34, 48, 0.88) !important;
  border-color: rgba(255, 255, 255, .10) !important;
}

html[data-theme="dark"] .nav-btn.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)) !important;
}

/* Focused polish: search results, auth choices, address book */
.search-results .product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
  overflow: hidden;
}

.search-query-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px 9px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-light);
  font-size: .72rem;
}

.search-query-note strong {
  min-width: 0;
  color: var(--text);
  font-size: .8rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.search-results .product-card.is-loading-detail {
  position: relative;
  cursor: wait;
  pointer-events: none;
}

.search-results .product-card.is-loading-detail::after {
  content: "상세 정보 확인 중";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--text);
  font-size: .82rem;
  font-weight: 750;
  backdrop-filter: blur(5px);
}

.search-results .product-card .card-img {
  position: relative;
  height: 132px;
  min-height: 132px;
  border-radius: 0;
  border-right: none;
  border-bottom: 1px solid var(--divider);
}

.search-results .product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-index {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(38, 35, 31, .72);
  color: #fffdf8;
  font-size: .68rem;
  font-weight: 800;
}

.search-results .product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-light);
  font-size: .68rem;
  line-height: 1.2;
}

.card-platform {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.card-desc {
  color: var(--text-light);
  font-size: .76rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-results .product-card .card-price {
  margin-top: auto;
  color: var(--text);
  font-size: .98rem;
}

.address-view {
  display: block;
}

.address-list {
  gap: 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.saved-address-card {
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
}

.address-card {
  display: grid;
  gap: 12px;
  padding: 18px 2px;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
}

.address-card:last-child {
  border-bottom: none;
}

.address-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.address-card-line {
  font-size: .82rem;
  line-height: 1.82;
}

.address-card-actions {
  padding-top: 13px;
  border-top: 1px solid var(--divider);
}

.address-card-actions .text-link-muted,
.address-add-row {
  font-size: .82rem;
  font-weight: 700;
}

.address-add-row {
  width: 100%;
  margin-top: 10px;
  padding: 16px 2px;
  border: none;
  border-top: 1px solid var(--divider);
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  text-align: left;
}

.company-info-wallet {
  margin-top: 220px;
  padding-bottom: 8px;
}

#page-cart > .company-info {
  margin-top: max(280px, 62dvh);
  padding-bottom: 8px;
}

#page-cart.cart-is-empty > .company-info {
  margin-top: max(360px, 72dvh);
}

#page-cart.cart-is-long > .company-info {
  margin-top: 56px;
}

[data-theme="dark"] .search-results .product-card,
[data-theme="dark"] .saved-address-card {
  background: #151e29;
  border-color: #29384a;
}

[data-theme="dark"] .card-index {
  background: rgba(215, 229, 244, .92);
  color: #142130;
}
