/*
Theme Name: Seoul Street Storefront
Theme URI: https://woocommerce-1647744-6544365.cloudwaysapps.com/
Author: Seoul Street
Description: Mobile-first WooCommerce storefront shell for Seoul Street / 首尔街.
Version: 0.3.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: seoulstreet-storefront
*/

:root {
  --pink: #f48a9d;
  --hot-pink: #ec5d83;
  --ink: #333238;
  --muted: #77747c;
  --line: #eeeeee;
  --soft: #f7f7f7;
  --surface: #ffffff;
  --green: #19b57a;
  --app-header-height: 76px;
  --app-tabs-height: 42px;
  --app-chrome-height: 118px;
  --app-visible-chrome-height: 118px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 492px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.has-app-chrome {
  padding-top: var(--app-visible-chrome-height);
}

.ss-app-content {
  position: relative;
  min-height: calc(100vh - var(--app-visible-chrome-height));
  overflow: hidden;
  background: #fff;
}

.ss-app-content.is-loading {
  pointer-events: none;
}

.ss-curation-tab {
  min-height: calc(100vh - var(--app-visible-chrome-height));
  padding: 14px 18px 96px;
  background: #fff;
}

.ss-curation-tab__hero {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8eef2, #f5f7fa);
  align-content: end;
}

.ss-curation-tab__hero span {
  color: #f48a9d;
  font-size: 12px;
  font-weight: 950;
}

.ss-curation-tab__hero h1 {
  margin: 0;
  color: #17191c;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 950;
}

.ss-curation-tab__hero p {
  margin: 0;
  color: #5e646b;
  font-size: 14px;
  line-height: 1.55;
}

.ss-curation-tab__section {
  margin-top: 26px;
}

.ss-curation-tab__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ss-curation-tab__section-head h2 {
  margin: 0;
  color: #17191c;
  font-size: 18px;
  font-weight: 950;
}

.ss-curation-tab__section-head span {
  color: #9aa0a6;
  font-size: 12px;
  font-weight: 800;
}

.ss-curation-tab__chips,
.ss-curation-tab__cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ss-curation-tab__chips::-webkit-scrollbar,
.ss-curation-tab__cards::-webkit-scrollbar {
  display: none;
}

.ss-curation-tab__chips span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #f4f5f6;
  color: #30343a;
  font-size: 13px;
  font-weight: 850;
}

.ss-curation-card {
  display: grid;
  flex: 0 0 148px;
  min-height: 184px;
  padding: 14px;
  border-radius: 18px;
  background: #f7f8f9;
  align-content: space-between;
}

.ss-curation-card b {
  color: #17191c;
  font-size: 15px;
  line-height: 1.35;
}

.ss-curation-card p {
  margin: 8px 0 0;
  color: #737982;
  font-size: 12px;
  line-height: 1.45;
}

.ss-curation-card em {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #f48a9d;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ss-curation-tab__empty {
  margin-top: 22px;
  padding: 24px 18px;
  border: 1px dashed #dde1e5;
  border-radius: 18px;
  color: #777f87;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.ss-tab-slider-track {
  display: flex;
  width: 200%;
  min-height: inherit;
  transform: translateX(0);
  transition: transform 0.52s cubic-bezier(0.2, 0.86, 0.2, 1);
  will-change: transform;
}

.ss-tab-slider-track.is-to-left {
  transform: translateX(-50%);
}

.ss-tab-slider-track.is-from-left {
  transform: translateX(-50%);
}

.ss-tab-slider-track.is-from-left.is-active {
  transform: translateX(0);
}

.ss-tab-slider-panel {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .ss-tab-slider-track {
    transition: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-header {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(492px, 100vw);
  height: var(--app-header-height);
  padding: 12px 18px 8px;
  background: #fff;
  border-bottom: 0;
  transform: translateX(-50%);
  transition: transform 0.24s ease;
  will-change: transform;
}

.brand {
  width: 118px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16171b;
  line-height: 1;
}

.header-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #17191c;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, transform 0.18s ease;
}

.header-icon:active {
  background: #f5f6f7;
  transform: scale(0.94);
}

.header-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icon--cart svg {
  width: 25px;
  height: 25px;
}

.header-cart-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.top-tabs {
  position: fixed;
  left: 50%;
  top: var(--app-header-height);
  z-index: 25;
  overflow-x: auto;
  overflow-y: hidden;
  width: min(492px, 100vw);
  height: var(--app-tabs-height);
  background: #fff;
  border-bottom: 1px solid rgba(226, 230, 234, 0.86);
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(16, 18, 22, 0.035);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  transform: translateX(-50%);
  transition: transform 0.24s ease;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}

body.is-header-hidden .app-header {
  transform: translateX(-50%) translateY(calc(-1 * var(--app-header-height)));
}

body.is-header-hidden .top-tabs {
  transform: translateX(-50%) translateY(calc(-1 * var(--app-header-height)));
}

.top-tabs::-webkit-scrollbar {
  display: none;
}

.top-tabs__list {
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 0 18px 0 20px;
  list-style: none;
  touch-action: pan-x;
}

.top-tabs li {
  position: relative;
  flex: 0 0 auto;
}

.top-tabs a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  height: 42px;
  color: #6f747a;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  touch-action: manipulation;
}

.top-tabs .current-menu-item > a,
.top-tabs .current-menu-ancestor > a,
.top-tabs a.active {
  color: #1e1d22;
}

.top-tabs .current-menu-item > a::after,
.top-tabs .current-menu-ancestor > a::after,
.top-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: #17191c;
}

.top-tabs .sub-menu {
  display: none;
}

.hero-rail {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 12px;
  padding: 16px 0 26px;
  overflow: hidden;
  background: #fff;
}

.hero-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 24px;
  background: #f7f7f7;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.side-card {
  opacity: 0.72;
}

.side-card:first-child {
  border-radius: 0 24px 24px 0;
}

.side-card:last-child {
  border-radius: 24px 0 0 24px;
}

.hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.hero-caption strong,
.hero-caption span {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.hero-caption small {
  font-size: 16px;
}

.hero-caption em {
  font-style: normal;
  font-weight: 800;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 30px;
  padding: 16px 18px 34px;
}

.shortcut-grid a {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #343238;
  font-size: 14px;
}

.shortcut-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(66, 55, 65, 0.12);
}

.icon-seed {
  background: linear-gradient(135deg, #7ddc75, #ffd443);
}

.icon-member {
  background: linear-gradient(135deg, #8bd7bf, #f2ba58);
}

.icon-wheel {
  background: linear-gradient(135deg, #ca5cf6, #5e9cff);
}

.icon-shop {
  background: linear-gradient(135deg, #ff8c77, #ffc3a7);
}

.icon-drop {
  background: linear-gradient(135deg, #f4c5d0, #cc8a9e);
}

.icon-sun {
  background: linear-gradient(135deg, #74b7ff, #ffd45f);
}

.icon-mask {
  background: linear-gradient(135deg, #e6e6e6, #bdbdbd);
}

.icon-body {
  background: linear-gradient(135deg, #cdb3a4, #54433d);
}

.product-section {
  padding: 8px 14px 36px;
  text-align: center;
}

.product-section h2 {
  margin: 0 0 18px;
  font-size: 16px;
  letter-spacing: 0.18em;
}

.mini-product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.mini-product {
  display: grid;
  gap: 7px;
  min-width: 0;
  text-align: left;
}

.mini-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mini-product span {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-product b {
  color: var(--pink);
  font-size: 15px;
}

.detail-page {
  border-top: 10px solid var(--soft);
  background: #fff;
}

.detail-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #dbfbef;
}

.detail-hero img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slide-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 12px;
}

.detail-summary {
  padding: 18px 18px 0;
}

.detail-summary h1 {
  margin: 0 0 28px;
  color: #58565d;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 500;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.price-block strong {
  color: var(--pink);
  font-size: 22px;
}

.price-block del {
  color: #bbb7bd;
}

.social-row {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
}

.social-row button {
  border: 0;
  background: transparent;
  color: #56535a;
  font-size: 18px;
}

.benefit-list {
  margin: 0;
  border-top: 1px solid var(--line);
  color: #55525a;
}

.benefit-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.benefit-list dt {
  color: #8a8790;
}

.benefit-list dd {
  margin: 0;
  line-height: 1.7;
}

.detail-tabs {
  position: sticky;
  top: 120px;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 58px;
  margin-top: 44px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-tabs a {
  display: grid;
  place-items: center;
  color: #9b969d;
  font-size: 15px;
}

.detail-tabs a.active {
  color: var(--pink);
  border-bottom: 1px solid var(--pink);
}

.translation-note {
  padding: 28px 26px 12px;
  color: #6d6970;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.long-detail {
  padding: 64px 18px 28px;
  background: linear-gradient(180deg, #f5fffc, #fff);
  text-align: center;
}

.long-detail span {
  display: inline-block;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 800;
}

.long-detail h2 {
  margin: 20px 0 10px;
  color: #111;
  font-size: 38px;
  line-height: 1.28;
}

.long-detail p {
  color: var(--green);
  font-weight: 900;
}

.long-detail img {
  width: 76%;
  margin-top: 24px;
}

.checkout-page {
  padding: 34px 26px 120px;
  border-top: 10px solid var(--soft);
  background: #fff;
}

.checkout-page h2 {
  margin: 0 0 20px;
  font-size: 21px;
}

.order-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  border: 1px solid #ddd;
  margin-bottom: 36px;
}

.order-card img {
  width: 78px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 14px;
}

.order-card h3 {
  margin: 14px 12px 4px 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.order-card span {
  display: inline-block;
  border: 1px solid #ddd;
  color: #999;
  font-size: 12px;
  padding: 2px 5px;
}

.order-card p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  text-align: center;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

.notice {
  border-left: 3px solid #1e9af0;
  background: #fafafa;
  color: #777;
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 14px;
}

.form-shell,
.field-label {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.form-shell input,
.field-label input {
  width: 100%;
  height: 42px;
  border: 1px solid #d7d7d7;
  padding: 0 12px;
}

.total-list {
  margin: 0;
}

.total-list div {
  display: flex;
  justify-content: space-between;
  color: #777;
  padding: 6px 0;
}

.total-list dd {
  margin: 0;
}

.grand-total {
  border-top: 1px solid #ddd;
  margin-top: 8px;
  padding-top: 12px;
  color: #222;
  font-weight: 900;
}

.grand-total dd {
  color: var(--pink);
  font-size: 18px;
}

.buy-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(492px, 100vw);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
}

.ghost-cta,
.solid-cta {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid #d9d9d9;
  font-size: 17px;
}

.solid-cta {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.page-shell {
  padding: 28px 20px 112px;
  background: #fff;
}

.page-card {
  min-height: 58vh;
}

.page-heading {
  margin-bottom: 24px;
}

.page-eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.page-heading h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.page-content {
  color: #56535a;
  font-size: 15px;
  line-height: 1.8;
}

.page-content input,
.page-content textarea,
.page-content select {
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #d7d7d7;
  padding: 0 12px;
}

@media (max-width: 430px) {
  :root {
    --app-header-height: 68px;
    --app-chrome-height: 110px;
  }

  body {
    max-width: none;
  }

  .app-header {
    height: var(--app-header-height);
  }

  .top-tabs {
    top: var(--app-header-height);
  }

  .top-tabs__list {
    gap: 18px;
  }

  .brand {
    width: 112px;
  }

  .header-icons {
    gap: 4px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
  }

  .header-icon svg {
    width: 23px;
    height: 23px;
  }

  .hero-card,
  .hero-card img {
    min-height: 370px;
  }

  .detail-tabs {
    top: 112px;
  }

}
