/* ==========================================================================
   Velora Mall — 日本語 H5 商城（CRMEB情報設計 × 上質な配色）
   Soft sakura header · Coral accent · Cool paper · Hiragino
   ========================================================================== */

:root {
  --ink: #1a1a1c;
  --ink-2: #3a3a3e;
  --muted: #8b8b93;
  --line: rgba(26, 26, 28, 0.07);
  --paper: #f3f4f6;
  --card: #ffffff;
  --accent: #e24b3b;
  --accent-deep: #c7382a;
  --accent-soft: #fff1ef;
  --gold: #c4a574;
  --gold-deep: #9a7a4e;
  --gold-soft: #f7f2ea;
  --rose: #e24b3b;
  --max: 430px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: calc(56px + var(--safe-b));
  --radius: 12px;
  --shadow: 0 4px 18px rgba(26, 26, 28, 0.05);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "PingFang SC", system-ui, sans-serif;
  --display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Hiragino Sans", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: #e8e9ed;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

.app-frame {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

body.app-shell { background: #d8d9de; }

/* Home header — sakura wash like mall apps */
.mall-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #ffd6d0 0%, #ffe8e4 42%, #f3f4f6 100%);
  padding-bottom: 2px;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
  background: transparent;
  border-bottom: 0;
}

.app-topbar--mall { position: relative; z-index: 1; }

.app-topbar--plain {
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.app-topbar--back {
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.app-topbar__brand {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(226, 75, 59, 0.35);
}

.app-topbar__brand span {
  color: rgba(255,255,255,0.85);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  display: block;
  margin-top: -1px;
  font-weight: 600;
}

.app-topbar__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
}

.app-topbar__title--truncate {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.app-topbar__search-form { flex: 1; margin: 0; }

.app-topbar__search {
  width: 100%;
  border: 0;
  outline: none;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.84rem;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(226, 75, 59, 0.08);
}

.app-topbar__search::placeholder { color: var(--muted); }

.app-topbar__cart {
  position: relative;
  color: var(--ink);
  display: flex;
  padding: 4px;
}

.app-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.app-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ink);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

/* Chips under header */
.mall-chips {
  display: flex;
  gap: 4px;
  padding: 2px 10px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mall-chips::-webkit-scrollbar { display: none; }

.mall-chips__item {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: rgba(26,26,28,0.55);
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
}

.mall-chips__item.is-active {
  color: var(--ink);
  font-weight: 700;
  background: rgba(255,255,255,0.72);
}

.app-main {
  padding-bottom: calc(var(--tab-h) + 16px);
  min-height: 50vh;
}

/* Hero banner */
.mall-hero {
  padding: 10px 14px 0;
}

.mall-hero__slide {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 176px;
  padding: 26px 20px 22px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(28,18,20,0.78) 0%, rgba(90,28,32,0.45) 48%, rgba(226,75,59,0.35) 100%),
    var(--hero-img, linear-gradient(135deg, #3a1a1c, #8c3030));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.mall-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffc9c2;
  font-weight: 700;
}

.mall-hero__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.mall-hero__desc {
  margin: 0 0 14px;
  font-size: 0.8rem;
  opacity: 0.88;
  max-width: 22em;
}

.mall-hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Channel grid — circular icons */
.mall-channels {
  margin: 12px 14px 0;
  padding: 16px 6px 14px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mall-channels__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 2px;
}

.mall-ch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.2;
}

.mall-ch__icon {
  --tile-bg: #f3f4f6;
  --tile-fg: #5a6578;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--tile-bg);
  color: var(--tile-fg);
  box-shadow: 0 1px 2px rgba(26, 26, 28, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mall-ch__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.mall-ch:active .mall-ch__icon {
  transform: scale(0.94);
}

.mall-ch__icon.tone-amber { --tile-bg: #fff3dc; --tile-fg: #d4890e; }
.mall-ch__icon.tone-sky { --tile-bg: #e6f2ff; --tile-fg: #2f7fd4; }
.mall-ch__icon.tone-indigo { --tile-bg: #ece8ff; --tile-fg: #5f57c7; }
.mall-ch__icon.tone-orange { --tile-bg: #ffeee3; --tile-fg: #e56a22; }
.mall-ch__icon.tone-green { --tile-bg: #e6f6eb; --tile-fg: #2f9a52; }
.mall-ch__icon.tone-slate { --tile-bg: #eef1f5; --tile-fg: #556173; }
.mall-ch__icon.tone-rose { --tile-bg: #ffe9ef; --tile-fg: #d44d6d; }
.mall-ch__icon.tone-wine { --tile-bg: #f5e8eb; --tile-fg: #a3475a; }
.mall-ch__icon.tone-gold { --tile-bg: #f7f0e2; --tile-fg: #a07a32; }
.mall-ch__icon.tone-violet { --tile-bg: #f0e9ff; --tile-fg: #7a5cc7; }

.app-notice__ico {
  flex-shrink: 0;
  color: var(--accent);
  display: flex;
  margin-top: 1px;
}

/* Dual promo cards */
.mall-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 14px 0;
}

.mall-promo__card {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 148px;
}

.mall-promo__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.82rem;
}

.mall-promo__head span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.22);
}

.mall-promo__card--rank .mall-promo__head {
  background: linear-gradient(90deg, #e24b3b, #f0784a);
}

.mall-promo__card--week .mall-promo__head {
  background: linear-gradient(90deg, #2d6cdf, #5b9dff);
}

.mall-promo__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 10px 4px;
}

.mall-promo__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gold-soft);
}

.mall-promo__sub {
  margin: 0;
  padding: 4px 12px 12px;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Sections */
.app-section { padding: 18px 14px 0; }

.app-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.app-section__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-section__head a {
  font-size: 0.78rem;
  color: var(--muted);
}

.mall-floor__tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2px;
}

/* Product grid */
.app-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-product {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 11, 10, 0.03);
}

.app-product__media {
  aspect-ratio: 1;
  background: var(--gold-soft);
  overflow: hidden;
}

.app-product__media img,
.app-product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-product__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #ebe4d8, #f7f2ea);
}

.app-product__body { padding: 10px 11px 12px; }

.app-product__title {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
}

.app-product__price {
  color: var(--rose);
  font-weight: 700;
  font-size: 0.98rem;
}

.app-product__price .from {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 2px;
}

.app-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  border: 1px solid var(--line);
}

.app-notice p { margin: 0; }
.app-notice a { color: var(--accent-deep); font-weight: 600; }

.app-empty, .app-empty-block {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 0.92rem;
  grid-column: 1 / -1;
}

.app-muted { color: var(--muted); font-size: 0.85rem; }

/* Category page */
.app-category {
  display: flex;
  min-height: calc(100vh - 100px);
  padding-bottom: var(--tab-h);
}

.app-cat-side {
  width: 88px;
  flex-shrink: 0;
  background: #ebecef;
  overflow-y: auto;
}

.app-cat-side__item {
  display: block;
  padding: 15px 6px;
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  border-left: 3px solid transparent;
}

.app-cat-side__item.is-active {
  background: var(--card);
  color: var(--accent-deep);
  font-weight: 700;
  border-left-color: var(--accent);
}

.app-cat-panel {
  flex: 1;
  background: var(--card);
  overflow-y: auto;
  padding: 8px 0 24px;
}

.app-product-list { display: flex; flex-direction: column; }

.app-product-row {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.app-product-row__media {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gold-soft);
  flex-shrink: 0;
}

.app-product-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-product-row__body { flex: 1; min-width: 0; }
.app-product-row__body h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 560;
}

.app-product-row__desc {
  margin: 0 0 8px;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-product-row__price {
  color: var(--rose);
  font-weight: 700;
}

/* Orders / tabs */
.app-tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 49px;
  z-index: 20;
}

.app-tabs__item {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 0.84rem;
  color: var(--muted);
  position: relative;
}

.app-tabs__item.is-active {
  color: var(--accent-deep);
  font-weight: 700;
}

.app-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
}

.app-order-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

.app-order-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 4px 14px rgba(12,11,10,0.04);
}

.app-order-card__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.app-order-card__status { color: var(--accent-deep); font-weight: 700; }

.app-order-card__body {
  display: flex;
  gap: 10px;
  align-items: center;
}

.app-order-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--gold-soft);
  flex-shrink: 0;
}

.app-order-card__name {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.app-order-card__date {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.app-order-card__total {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}

.app-order-card__actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Mine */
.app-mine-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 36px 16px 28px;
  background: linear-gradient(160deg, #ff8f7a 0%, #e24b3b 48%, #c7382a 100%);
  color: #fff;
}

.app-mine-hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.app-mine-hero__info h1 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 700;
}

.app-mine-hero__info h1 a { color: #fff; }
.app-mine-hero__info p { margin: 0; font-size: 0.78rem; opacity: 0.85; }

.app-mine-orders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  margin: -14px 14px 0;
  border-radius: var(--radius);
  padding: 14px 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(12,11,10,0.06);
}

.app-mine-orders__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ink);
}

.app-mine-orders__num { font-size: 1.05rem; }

.app-cell-group {
  margin: 14px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(12,11,10,0.03);
}

.app-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--line);
}

.app-cell:last-child { border-bottom: 0; }
.app-cell__extra { color: var(--muted); font-size: 0.84rem; }
.app-cell--static { cursor: default; }

.app-mine-foot {
  text-align: center;
  color: #a39b92;
  font-size: 0.72rem;
  padding: 8px 0 24px;
  letter-spacing: 0.08em;
}

/* Buttons */
.app-btn,
.velora-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.app-btn--primary,
.velora-btn--primary {
  background: linear-gradient(180deg, #ef5a4a, var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 16px rgba(226, 75, 59, 0.28);
}

.velora-btn--ghost,
.app-btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.app-btn--sm { padding: 6px 14px; font-size: 0.78rem; }
.velora-btn--block { width: 100%; }
.velora-btn--ghost { width: 100%; margin-top: 8px; }

/* Tab bar */
.app-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  height: var(--tab-h);
  padding-bottom: var(--safe-b);
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(26,26,28,0.04);
}

.app-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #a0a0a8;
  font-size: 0.64rem;
  font-weight: 500;
  position: relative;
}

.app-tabbar__item.is-active { color: var(--accent); font-weight: 700; }

.app-tabbar__icon {
  display: flex;
  width: 22px;
  height: 22px;
}

.app-tabbar__icon svg { width: 100%; height: 100%; }

.app-tabbar__badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
}

/* WooCommerce grids */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 10px !important;
}

.woocommerce ul.products li.product a img {
  margin: 0 0 8px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .price {
  padding: 0 10px;
  color: var(--rose) !important;
  font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
  background: var(--ink) !important;
  color: #f5efe6 !important;
  border-radius: 999px !important;
  border: 0 !important;
}

.shop-main,
.content-area {
  padding: 12px 14px calc(var(--tab-h) + 16px);
}

.velora-discreet-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* PDP */
.app-pdp-main { padding-bottom: 0 !important; }
.app-pdp__gallery { background: #fff; }
.app-pdp__hero {
  aspect-ratio: 1;
  background: var(--gold-soft);
  overflow: hidden;
}
.app-pdp__hero img, .app-pdp__img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-pdp__thumbs {
  display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto;
}
.app-pdp__thumb {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; flex-shrink: 0;
}
.app-pdp__thumb.is-active { border-color: var(--gold); }
.app-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-pdp__info { padding: 16px 14px 100px; }
.app-pdp__brand {
  margin: 0 0 4px; color: var(--gold-deep); font-size: 0.75rem;
  letter-spacing: 0.14em; font-weight: 600;
}
.app-pdp__name {
  margin: 0 0 8px; font-family: var(--display); font-size: 1.25rem; font-weight: 600;
}
.app-pdp__price { color: var(--rose); font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.app-pdp__short { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.app-pdp__badges {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.app-pdp__badges li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; font-size: 0.7rem; color: var(--muted);
}
.app-pdp__desc {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  font-size: 0.9rem; line-height: 1.6;
}
.app-pdp__bar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--max);
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: rgba(250,248,245,0.96); border-top: 1px solid var(--line); z-index: 60;
}
.app-pdp__proxy,
.app-pdp__buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.app-pdp__proxy {
  color: var(--gold-deep);
  background: transparent;
  border: 1.5px solid var(--gold);
}
.app-pdp__buy {
  color: #f5efe6;
  background: var(--ink);
  border: 1.5px solid var(--ink);
}

/* PayPal QR pay page — mall red style */
.app-topbar--back.app-topbar--pay {
  background: linear-gradient(180deg, #f0784a 0%, var(--accent) 55%, var(--accent-deep) 100%);
  border-bottom: none;
  color: #fff;
}
.app-topbar--back.app-topbar--pay .app-topbar__title,
.app-topbar--back.app-topbar--pay .app-back {
  color: #fff;
}

.app-pay-main {
  padding: 0 0 40px !important;
  background:
    linear-gradient(180deg, var(--accent-deep) 0%, var(--accent) 72px, transparent 72px);
}

.app-pay {
  padding: 0 14px;
}

.app-pay__hero {
  text-align: center;
  color: #fff;
  padding: 8px 12px 28px;
}
.app-pay__hero-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  opacity: 0.88;
  letter-spacing: 0.06em;
}
.app-pay__hero-amount {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.app-pay__hero-amount .woocommerce-Price-amount,
.app-pay__hero-amount del,
.app-pay__hero-amount ins {
  color: #fff !important;
  text-decoration: none;
  background: none;
}
.app-pay__hero-amount del {
  opacity: 0.55;
  font-size: 0.55em;
  margin-right: 6px;
}
.app-pay__hero-secure {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  opacity: 0.9;
  background: rgba(255,255,255,0.14);
  padding: 4px 12px;
  border-radius: 999px;
}

.app-pay__order {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: -8px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(226, 75, 59, 0.14);
  border: 1px solid rgba(226, 75, 59, 0.1);
}
.app-pay__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gold-soft);
}
.app-pay__thumb img,
.app-pay__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-pay__order-meta { min-width: 0; flex: 1; }
.app-pay__order-name {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-pay__order-tag {
  margin: 0;
  font-size: 0.72rem;
  color: var(--rose);
  font-weight: 600;
}

.app-pay__panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(12,11,10,0.04);
  border: 1px solid var(--line);
  text-align: center;
}
.app-pay__panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.app-pay__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0070ba;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-pay__panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.app-pay__panel-lead {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.app-pay__qr {
  width: min(220px, 68vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(226, 75, 59, 0.2);
  box-shadow: 0 0 0 6px rgba(226, 75, 59, 0.07);
}
.app-pay__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.app-pay__qr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  background: var(--gold-soft);
}

.app-pay__steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  counter-reset: paystep;
}
.app-pay__steps li {
  flex: 1;
  position: relative;
  padding-top: 22px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
  counter-increment: paystep;
}
.app-pay__steps li::before {
  content: counter(paystep);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.app-pay__open-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  min-height: 50px;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8f7a 0%, var(--accent) 48%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(226, 75, 59, 0.38);
  -webkit-tap-highlight-color: transparent;
}
.app-pay__open-app:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}
.app-pay__open-note {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.app-pay__hint {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.app-pay__trust {
  list-style: none;
  margin: 0;
  padding: 4px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.app-pay__trust li {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 10px 4px;
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.app-pay__empty {
  text-align: center;
  padding: 48px 20px;
  color: #fff;
}
.app-pay__empty a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}
.app-pay-main .app-pay__empty {
  color: rgba(255,255,255,0.92);
}

.app-pay__order-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--accent-deep);
}
.app-pay__thumb--gift {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--accent-soft);
}
.app-pay__order--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.app-pay__order-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-pay__share {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(226, 75, 59, 0.1);
  border: 1px solid rgba(226, 75, 59, 0.1);
}
.app-pay__share-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}
.app-pay__share-lead {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.app-pay__share-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.app-pay__share-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  background: var(--paper);
  color: var(--ink);
}
.app-pay__share-copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.app-pay__share-native,
.app-pay__share-mail {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-sizing: border-box;
}
.app-pay__share-mail { margin-top: 8px; text-decoration: none; }

.app-pay__form { margin-top: 4px; }
.app-pay__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.app-pay__field input,
.app-pay__field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.app-pay__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0 14px;
  font-size: 0.84rem;
}
.app-pay__details {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
}
.app-pay__details summary {
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.app-pay__ship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.app-pay__ship-grid .app-pay__field:nth-child(3),
.app-pay__ship-grid .app-pay__field:nth-child(4) {
  grid-column: 1 / -1;
}
.app-pay__form-status {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
.app-pay__form-status.is-error { color: #9f1239; }

.velora-checkout-top { margin: -12px -14px 12px; }
.velora-checkout-notice { margin: 0 0 14px; }
.woocommerce-checkout #place_order {
  width: 100%; border-radius: 999px !important; background: var(--ink) !important;
  padding: 14px !important; font-weight: 700 !important;
}
.age-notice { display: none; }

@media (min-width: 480px) {
  .app-frame {
    min-height: 100vh;
    border-left: 1px solid #2a2420;
    border-right: 1px solid #2a2420;
  }
}
