/* =========================================================
   SAWA FOOD — 02. Page structure
   Section-level layout rules built on top of 01-base.css.
   ========================================================= */
/* =========================================================
   SAWA FOOD V2 ADD-ON LAYER
   IMPORTANT: additive only — original structure/content kept
   Features: Multi-Country, B2B Flow, Where-to-Buy, Dark Mode,
   restrained animations.
   ========================================================= */
.sawa-v2-layer {
  font-family: inherit;
}
.v2-country-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.v2-country-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.v2-country-select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.v2-country-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.v2-country-result {
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  color: var(--muted);
}
.v2-country-result strong {
  color: var(--ink);
}
.v2-b2b {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.v2-b2b-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.v2-b2b-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.v2-b2b-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.v2-b2b-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.v2-choice {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 15px;
  text-align: start;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.v2-choice:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
}
.v2-choice.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--paper));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 12%, transparent);
}
.v2-choice strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.v2-choice span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.v2-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.v2-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.v2-step b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.v2-step.active b {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.v2-line {
  height: 1px;
  width: 28px;
  background: var(--line);
}
.v2-b2b-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.v2-field {
  display: grid;
  gap: 6px;
}
.v2-field.full {
  grid-column: 1/-1;
}
.v2-field label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.v2-field input,.v2-field select,.v2-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  outline: none;
}
.v2-field textarea {
  min-height: 90px;
  resize: vertical;
}
.v2-field input:focus,.v2-field select:focus,.v2-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.v2-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1/-1;
  margin-top: 4px;
}
.v2-stores {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.v2-store-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.v2-store-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.v2-store-toolbar select {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.v2-store-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.v2-store-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.v2-store-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
}
.v2-store-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.v2-store-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
}
.v2-store-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.v2-store-status {
  font-size: 10px;
  font-weight: 800;
  color: #198754;
  white-space: nowrap;
}
.v2-store-products {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}
.v2-store-products span {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
  color: var(--ink);
}
.v2-store-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.v2-store-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.v2-store-actions .primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.v2-toast {
  position: fixed;
  z-index: 1500;
  bottom: 22px;
  inset-inline-end: 22px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 15px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 12px;
}
.v2-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.theme-dark .v2-store-status {
  color: #6ee7a0;
}
.theme-dark .v2-choice:hover,.theme-dark .v2-store-card:hover {
  box-shadow: 0 14px 35px rgba(0, 0, 0, .28);
}
.v2-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.v2-reveal.v2-visible {
  opacity: 1;
  transform: none;
  margin: 50px;
}
.v2-reveal:nth-child(2) {
  transition-delay: .05s;
}
.v2-reveal:nth-child(3) {
  transition-delay: .1s;
}
.v2-reveal:nth-child(4) {
  transition-delay: .15s;
}
@media (max-width:900px) {
  .v2-b2b-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-store-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .v2-store-toolbar label:last-child {
    grid-column: 1/-1;
  }
  .v2-store-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width:560px) {
  .v2-country-bar {
    align-items: stretch;
  }
  .v2-country-select,.v2-country-result {
    width: 100%;
    min-width: 0;
  }
  .v2-b2b {
    padding: 16px;
  }
  .v2-b2b-head {
    display: block;
  }
  .v2-b2b-grid {
    grid-template-columns: 1fr;
  }
  .v2-stepper {
    align-items: flex-start;
  }
  .v2-line {
    width: 18px;
  }
  .v2-b2b-form {
    grid-template-columns: 1fr;
  }
  .v2-field.full {
    grid-column: auto;
  }
  .v2-form-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr;
  }
  .v2-stores {
    padding: 16px;
  }
  .v2-store-toolbar {
    grid-template-columns: 1fr;
  }
  .v2-store-toolbar label:last-child {
    grid-column: auto;
  }
  .v2-store-list {
    grid-template-columns: 1fr;
  }
  .v2-toast {
    bottom: 14px;
    inset-inline: 14px;
    max-width: none;
  }
}
/* Partner form V3 — progressive 3-step flow. No timed hiding while filling. */
.v2-form-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 5px;
}
.v2-b2b-head {
  align-items: center;
}
.v2-b2b {
  padding: 24px;
}
.v2-wizard {
  display: block;
  margin-top: 18px;
}
.v2-stage[hidden] {
  display: none !important;
}
.v2-stage-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.v2-stage-title>span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 12%, var(--paper));
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}
.v2-stage-title h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.v2-stage-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.v2-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
.v2-stage-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v2-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.v2-wizard-actions .btn {
  min-height: 42px;
}
.v2-wizard-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 11px;
  color: var(--muted);
}
.v2-wizard-summary strong {
  color: var(--ink);
}
.v2-step {
  transition: color .2s ease;
}
.v2-step.active {
  color: var(--ink);
}
.v2-b2b.is-form-active {
  box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
  margin: 50px;
}
@media(max-width:700px) {
  .v2-b2b {
    padding: 18px;
  }
  .v2-choice-grid,.v2-stage-fields {
    grid-template-columns: 1fr;
  }
  .v2-wizard-actions {
    position: sticky;
    bottom: 10px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    z-index: 4;
  }
  .v2-wizard-actions .btn {
    flex: 1;
  }
}
