/* ═══════════════════════════════════════
   ISO — style.css  v=1
═══════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;           /* main scroll handled by .main-content */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #111;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════ */
.landing {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.landing.gone { display: none; }

/* Hero — fills viewport */
.landing-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  flex-shrink: 0;
  background: #d8d8d8;   /* placeholder until hero.jpg added */
  overflow: hidden;
}
.landing-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top nav — fixed so it stays visible while scrolling */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 510;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 32px 0;
}

.landing-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s;
}

.landing-nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.landing-link {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  transition: opacity 0.15s, color 0.3s;
}
.landing-link:hover { opacity: 0.55; }

/* Nav turns dark when scrolled into footer area */
.landing-nav.dark .landing-logo,
.landing-nav.dark .landing-link {
  color: #111;
}

/* Footer */
.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 100px 32px 40px;
  background: #fff;
  flex-shrink: 0;
}

.lf-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lf-logo {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #111;
}

.lf-nav {
  display: flex;
  gap: 20px;
}

.lf-nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #111;
  transition: opacity 0.15s;
}
.lf-nav-link:hover { opacity: 0.45; }

.lf-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.lf-policy-link {
  font-size: 11px;
  color: #111;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.lf-policy-link:hover { color: #111; }

.lf-right {
  font-size: 11px;
  color: #111;
  letter-spacing: 0.04em;
  align-self: flex-end;
  white-space: nowrap;
}

/* ─── Landing mobile ─── */
@media (max-width: 768px) {
  .landing-nav { padding: 18px 20px 0; }
  .landing-logo { font-size: 17px; }
  .landing-nav-links { gap: 20px; }
  .landing-link { font-size: 14px; }

  .landing-footer {
    flex-direction: column;
    gap: 24px;
    padding: 28px 20px 36px;
  }
  .lf-right { align-self: flex-start; }
  .lf-policy { gap: 4px 14px; }
}

/* ═══════════════════════════════════════
   TOP NAV BAR
═══════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 25px; left: 0; right: 0;
  height: 52px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 160px;
  z-index: 10;
}

.topbar-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #111;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

/* Right group: nav + icons */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 50px;
}

.topbar-nav {
  display: flex;
  gap: 50px;
  align-items: center;
}

.topbar-link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #111;
}

.topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  opacity: 1;
  transition: opacity 0.15s;
  text-decoration: none;
  position: relative;
}
.topbar-icon:hover { opacity: 0.5; }
.topbar-icon svg { display: block; }

.cart-badge {
  display: none;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.main-content {
  margin-left: 0;
  padding-top: 77px;      /* 25px top gap + 52px topbar height */
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════════════
   SHOP PAGE — Filter Bar + Product Grid
═══════════════════════════════════════ */
.page-shop {}

/* Category Filter Bar */
.shop-filter-bar {
  display: flex;
  gap: 0;
  padding: 17px 160px 0;
}

.filter-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #111;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: opacity 0.15s;
}
.filter-btn:first-child { padding-left: 0; }
.filter-btn:hover { opacity: 0.5; }
.filter-btn.active { color: #2d7a3a; font-weight: 400; }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1px;
  row-gap: 0;
  padding: 32px 160px 60px;
  column-gap: 20px;
  row-gap: 40px;
}

/* Product Card */
.product-card {
  background: #fff;
  cursor: pointer;
  position: relative;
}

.product-card:hover .pc-img-wrap img {
  transform: scale(1.03);
}

.pc-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f3f3f3;
  position: relative;
}
.pc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.pc-info {
  padding: 12px 0 0;
  text-align: center;
}
.pc-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #111;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-price {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.04em;
}

/* Shop Pagination */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 0 12px;
}
.page-num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: #aaa;
  cursor: pointer;
  transition: color 0.15s;
}
.page-num.active {
  color: #111;
  font-weight: 400;
}
.page-num:hover { color: #111; }

/* Shop Footer */
.shop-footer {
  padding: 24px 160px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.shop-footer p.shop-footer-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #111;
  margin-bottom: 16px;
}
.shop-footer p:not(.shop-footer-logo) {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.page-about.active {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.about-wrap {
  padding: 60px 40px;
  max-width: 520px;
}

.about-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.about-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #444;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   OVERLAY BASE
═══════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0,0,0,0.4);
}
.overlay.open { display: flex; }

/* ═══════════════════════════════════════
   PRODUCT DETAIL OVERLAY
═══════════════════════════════════════ */
.pd-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.pd-inner {
  width: min(640px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

.pd-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 18px;
  z-index: 5;
  color: #555;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.pd-close:hover { background: #f0f0f0; }

/* Images side */
.pd-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.pd-img-main {
  flex: 1;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
}
.pd-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.pd-img-thumbs {
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 6px;
  background: #fff;
  overflow-x: auto;
  flex-shrink: 0;
  max-height: 72px;
}
.pd-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #f0f0f0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.pd-thumb.active { border-color: #111; }
.pd-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Info side */
.pd-info {
  width: 220px;
  flex-shrink: 0;
  padding: 52px 20px 24px;
  border-left: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.pd-brand {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
}
.pd-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  line-height: 1.4;
}
.pd-price {
  font-size: 13px;
  color: #444;
  margin-bottom: 14px;
}
.pd-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Size */
.pd-size-wrap { margin-bottom: 18px; }
.pd-size-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
}
.pd-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pd-size-btn {
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pd-size-btn:hover { border-color: #111; }
.pd-size-btn.active { background: #111; color: #fff; border-color: #111; }

/* Qty + Add */
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: fit-content;
}
.pd-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #444;
  transition: background 0.15s;
}
.pd-qty-btn:hover { background: #f5f5f5; }
.pd-qty-val {
  width: 36px;
  text-align: center;
  font-size: 13px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  line-height: 32px;
}

.pd-add-btn {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.pd-add-btn:hover { background: #333; }
.pd-add-btn:disabled { background: #ccc; cursor: default; }

.pd-notice {
  font-size: 10px;
  color: #aaa;
  line-height: 1.6;
  margin-top: auto;
}

/* ═══════════════════════════════════════
   CART OVERLAY
═══════════════════════════════════════ */
.cart-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.cart-inner {
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0e0e0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.cart-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.cart-close {
  font-size: 18px;
  color: #555;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.cart-close:hover { background: #f0f0f0; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Empty cart */
.cart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* Cart item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
}
.cart-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.cart-item-size {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.cart-item-price {
  font-size: 12px;
  color: #444;
}
.cart-item-remove {
  font-size: 16px;
  color: #bbb;
  align-self: flex-start;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: #111; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
#cartSubtotal { font-weight: 600; }

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.15s;
}
.cart-checkout-btn:hover { background: #333; }

/* ═══════════════════════════════════════
   CHECKOUT OVERLAY
═══════════════════════════════════════ */
.checkout-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.checkout-scroll {
  width: min(860px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid #e0e0e0;
}

.checkout-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.checkout-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.checkout-back {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #666;
  transition: color 0.15s;
}
.checkout-back:hover { color: #111; }

.checkout-body {
  flex: 1;
  display: flex;
  gap: 0;
  padding: 0;
}

/* Co Left */
.co-left {
  flex: 1;
  padding: 32px 40px;
  border-right: 1px solid #e0e0e0;
}

.co-section { margin-bottom: 32px; }
.co-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

/* User row */
.co-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.co-user-email {
  font-size: 13px;
  color: #444;
}
.co-login-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.co-login-link:hover { opacity: 0.6; }

/* Shipping */
.co-ship-text {
  font-size: 13px;
  color: #444;
}
.co-ship-addr {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}
.co-ship-change {
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  cursor: pointer;
  display: inline-block;
}
.co-ship-change:hover { color: #111; border-color: #111; }

/* Payment box */
.co-pay-box {
  border: 1px solid #e0e0e0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-pay-provider {
  font-size: 13px;
  font-weight: 600;
}
.co-pay-note {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

/* Pay button */
.co-pay-btn {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.co-pay-btn:hover { background: #333; }
.co-pay-btn:disabled { background: #ccc; cursor: default; }

/* Co Right */
.co-right {
  width: 320px;
  flex-shrink: 0;
  padding: 32px 32px;
}

/* Co Items */
.co-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.co-item-img {
  width: 52px;
  height: 64px;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
}
.co-item-img img { width:100%; height:100%; object-fit:cover; }
.co-item-info { flex: 1; }
.co-item-name {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.co-item-meta {
  font-size: 10px;
  color: #999;
  margin-bottom: 4px;
}
.co-item-price {
  font-size: 11px;
  color: #444;
}

.co-summary-rows {
  margin-top: 16px;
  border-top: 1px solid #e0e0e0;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}
.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
}
.co-total-currency {
  font-size: 10px;
  font-weight: 400;
  color: #999;
  margin-right: 4px;
}
.co-total-amount { font-size: 15px; }

/* ═══════════════════════════════════════
   AUTH PAGES (Login / Signup)
═══════════════════════════════════════ */
.page-login.active,
.page-signup.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 77px);
}

.page-signup .auth-wrap {
  padding-top: 90px;
}
.page-signup .auth-btn-primary {
  margin-top: 24px;
}
.page-signup .auth-label::after {
  content: ' *';
}

.auth-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 110px 20px 60px;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  zoom: 1.05;
}

.auth-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.auth-input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #111;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}

/* ── Signup row layout ───────────────── */
.auth-row {
  display: flex;
  gap: 10px;
}
.auth-field--half {
  flex: 1;
  min-width: 0;
}

/* ── Birth date selects ──────────────── */
.auth-date-row {
  display: flex;
  gap: 8px;
}
.auth-select {
  flex: 1;
  padding: 14px 28px 14px 10px;
  border: 1px solid #111;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 10px center;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}

/* ── Gender radio ────────────────────── */
.auth-radio-group {
  display: flex;
  gap: 20px;
  padding: 4px 0;
}
.auth-radio-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
}
.auth-radio-item input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #111;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Address zip row ─────────────────── */
.auth-zip-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.auth-input--zip {
  flex: 1;
  min-width: 0;
}
.auth-zip-btn {
  flex-shrink: 0;
  padding: 14px 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.auth-zip-btn:hover { background: #333; }
.auth-input--detail { margin-top: 8px; }

/* ── Phone 3-field row ───────────────── */
.auth-phone-row {
  display: flex;
  align-items: center;
}
.auth-input--phone {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.auth-phone-sep {
  flex-shrink: 0;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 300;
  color: #111;
}

/* ── Consent sub-text ────────────────── */
.check-main {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: #111;
}
.check-sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: #111;
  margin-top: 3px;
  line-height: 1.5;
}

.login-error {
  font-size: 11px;
  color: #e44;
  min-height: 0;
  margin-bottom: 0;
}

.auth-sub-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 3px 0 45px;
}
.auth-sub-link {
  font-size: 14px;
  font-weight: 300;
  color: #a07840;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-sub-link:hover { color: #7a5c2a; }

.auth-btn-primary {
  display: block;
  width: 65%;
  margin: 0 auto 10px;
  padding: 20px;
  background: #111;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-btn-primary:hover { background: #333; }
.auth-btn-primary:disabled { background: #999; cursor: default; }

.auth-btn-outline {
  display: block;
  width: 65%;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  color: #111;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 1px solid #bbb;
  cursor: pointer;
  transition: border-color 0.15s;
}
.auth-btn-outline:hover { border-color: #111; }

.auth-btn-text {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  font-weight: 300;
  font-family: inherit;
  cursor: pointer;
  margin-top: 18px;
  padding: 0;
  display: block;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.auth-btn-text:hover { color: #111; }

/* ── Signup Consent ─────────────────── */
.signup-consent {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.signup-check-all {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
  color: #111;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.signup-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
}
.signup-check-all input[type="checkbox"],
.signup-check-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: #111;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   INFORMATION OVERLAY
═══════════════════════════════════════ */
.info-overlay {
  align-items: stretch;
  justify-content: flex-end;
}

.info-inner {
  width: min(520px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e0e0e0;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.info-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.info-close {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #666;
  transition: color 0.15s;
}
.info-close:hover { color: #111; }

.info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.info-nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #999;
  padding: 14px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.info-nav-link:first-child { padding-left: 0; }
.info-nav-link:hover { color: #111; }
.info-nav-link.active { color: #111; border-bottom-color: #111; }

.info-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}
.info-content h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: #111;
}
.info-content p {
  margin-bottom: 14px;
}
.info-content a {
  color: #111;
  border-bottom: 1px solid #ccc;
}

/* ═══════════════════════════════════════
   ADDRESS MODAL (within checkout)
═══════════════════════════════════════ */
.addr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
}
.addr-modal.open { display: flex; }
.addr-inner {
  width: min(480px, 94%);
  background: #fff;
  padding: 28px;
}
.addr-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.addr-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: flex-end;
}
.addr-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: transparent;
}
.addr-input:focus { border-color: #111; }
.addr-input::placeholder { color: #bbb; }
.addr-search-btn {
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.addr-save-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 8px;
  transition: background 0.15s;
}
.addr-save-btn:hover { background: #333; }

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   MOBILE (≤ 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {

  html, body {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Topbar compact on mobile */
  .topbar {
    height: 48px;
    padding: 0 16px;
  }
  .topbar-logo { font-size: 16px; }
  .topbar-nav { gap: 16px; }
  .topbar { top: 24px; }
  .topbar-right { gap: 20px; }
  .topbar-link { font-size: 10px; letter-spacing: 0.08em; }
  .topbar-actions { gap: 10px; }
  .topbar-icon { font-size: 14px; }

  /* Main content shifts below top bar */
  .main-content {
    margin-left: 0;
    height: 100%;
    padding-top: 86px; /* 24px top gap + 52px topbar + 10px buffer */
    overflow-y: auto;
  }

  /* Filter bar on mobile */
  .shop-filter-bar { padding: 0 12px; }
  .filter-btn { padding: 11px 10px; font-size: 10px; }

  /* 2-column grid on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 12px 40px;
    column-gap: 10px;
    row-gap: 24px;
  }

  /* Product Detail Overlay – full screen stack */
  .pd-overlay { align-items: flex-end; }
  .pd-inner {
    width: 100%;
    height: 92%;
    flex-direction: column;
  }
  .pd-images {
    flex: none;
    height: 55%;
    flex-direction: row;
  }
  .pd-img-main { flex: 1; height: 100%; }
  .pd-img-thumbs { flex-direction: column; width: 56px; overflow-y: auto; padding: 4px; max-height: unset; }

  .pd-info {
    width: 100%;
    height: 45%;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding: 16px 20px;
    overflow-y: auto;
  }

  /* Cart Overlay */
  .cart-inner { width: 100%; }

  /* Checkout Overlay */
  .checkout-scroll { width: 100%; }
  .checkout-inner {}
  .checkout-header { padding: 16px 20px; }
  .checkout-body { flex-direction: column; }
  .co-left { padding: 24px 20px; border-right: none; border-bottom: 1px solid #e0e0e0; }
  .co-right { width: 100%; padding: 24px 20px; }

  /* Login Overlay */
  .login-inner { width: 100%; position: absolute; bottom: 0; }
  .login-overlay { align-items: flex-end; }

  /* Info Overlay */
  .info-inner { width: 100%; }

  /* About */
  .about-wrap { padding: 32px 20px; }

}

/* ═══════════════════════════════════════
   SMALL MOBILE (≤ 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .topbar-action:nth-child(3) { display: none; } /* hide INFO on very small screens */
}

/* ═══════════════════════════════════════
   MYPAGE (마이페이지)
═══════════════════════════════════════ */
.page-mypage {
  display: none;
  height: 100%;
}
.page-mypage.active { display: flex; }

.mypage-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 170px 0 150px;
  box-sizing: border-box;
}

/* 왼쪽 사이드 */
.mypage-side {
  width: 50%;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 95px 80px 80px 100px;
}
.mypage-side::-webkit-scrollbar { display: none; }

.mypage-sections { width: 100%; }

.mp-section-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #111;
}

.mp-section-body {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 오른쪽 콘텐츠 */
.mypage-content {
  width: 50%;
  overflow-y: auto;
  padding: 95px 0 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mypage-content::-webkit-scrollbar { display: none; }

.mp-panel { display: none; width: 100%; max-width: 440px; }
.mp-panel.active { display: block; }

.mp-panel-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: #111;
}

/* 로그아웃 행 (회원정보 패널) */
.mp-logout-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.mp-btn-logout {
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 0;
  transition: color 0.15s;
}
.mp-btn-logout:hover { color: #111; }

.mp-empty {
  font-size: 16px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.02em;
}

/* 폼 — 회원가입 스타일과 동일 */
.mp-form {
  width: 100%;
}
.mp-form-row {
  margin-bottom: 16px;
}
.mp-form-label {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: #111;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mp-form-input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #111;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  outline: none;
  background: #fff;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}
.mp-form-input:focus { border-color: #111; }
.mp-form-input[readonly] { background: #f7f7f7; color: #999; cursor: default; }
.mp-form-input::placeholder { color: #ccc; }
.mp-input-mt { margin-top: 8px; }

/* 우편번호 행 */
.mp-zip-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.mp-zip-row .mp-form-input { flex: 1; min-width: 0; }
.mp-zip-btn {
  flex-shrink: 0;
  padding: 14px 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.mp-zip-btn:hover { background: #333; }

/* 생년월일 */
.mp-birth-row { display: flex; gap: 8px; }
.mp-form-select {
  flex: 1;
  padding: 14px 28px 14px 10px;
  border: 1px solid #111;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 10px center;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.mp-form-select:focus { border-color: #111; }

/* 마케팅 체크박스 */
.mp-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 300;
  color: #111;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.mp-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #111;
}

/* 서브 버튼 행 */
.mp-form-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mp-btn-sub {
  flex: 1;
  padding: 14px 10px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid #bbb;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mp-btn-sub:hover { border-color: #111; }
.mp-btn-del { color: #b00; border-color: #e8c0c0; }
.mp-btn-del:hover { border-color: #b00; }

/* 저장 버튼 */
.mp-btn-save {
  display: block;
  width: 65%;
  margin: 0 auto;
  padding: 20px;
  background: #111;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.mp-btn-save:hover { background: #333; }
.mp-btn-save:disabled { background: #999; cursor: default; }

/* 반응형 */
@media (max-width: 768px) {
  .mypage-wrap { flex-direction: column; height: auto; }
  .mypage-side { width: 100%; padding: 40px 24px 20px; }
  .mypage-content { width: 100%; padding: 20px 24px 60px 24px; }
}
