:root {
  --bg: #edf0f5;
  --ink: #0f1f34;
  --ink-soft: #5e6f87;
  --line: #d4dce9;
  --panel: #ffffff;
  --top-1: #111a2a;
  --top-2: #23344a;
  --accent: #f7991d;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 520px at 100% -20%, #dbe3f3 0%, transparent 70%), var(--bg);
}

.store-page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.store-position-banner {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #dfe6ef;
}

.store-position-banner[hidden] {
  display: none;
}

.store-position-banner-link {
  display: block;
  text-decoration: none;
}

.store-position-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.store-page-shell > *,
.store-page-top > *,
.store-page-panel > *,
.store-page-cards > *,
.store-product-layout > *,
.store-cart-layout > *,
.store-checkout-layout > *,
.store-account-order-card > * {
  min-width: 0;
}

.store-page-top {
  border-radius: 15px;
  padding: 12px;
  background: linear-gradient(95deg, var(--top-1), var(--top-2));
  color: #edf2fb;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.store-page-brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.store-page-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: #111827;
  background: linear-gradient(145deg, #fff, #dbe2ef);
}

.store-page-brand strong {
  display: block;
}

.store-page-brand small {
  color: #bbc9dc;
  font-size: 0.75rem;
}

.store-page-search {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.store-page-search input {
  border: none;
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
}

.store-page-search button {
  border: none;
  min-height: 42px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  color: #1a2638;
  background: linear-gradient(130deg, #ffc165, var(--accent));
}

.store-page-mode {
  display: inline-flex;
  gap: 8px;
}

.store-page-mode a {
  text-decoration: none;
  color: #e5edfa;
  border: 1px solid #3a4d68;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.83rem;
  font-weight: 700;
}

.store-page-mode a.active {
  background: #fff;
  color: #121b2c;
  border-color: #fff;
}

.store-subnav {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-subnav a {
  text-decoration: none;
  color: #334862;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-subnav a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #3e63dd, #274ecf);
}

.store-page-header,
.store-page-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
}

.store-kicker {
  margin: 0;
  color: #6b7d97;
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.store-page-header h1 {
  margin: 7px 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.store-page-header p {
  margin: 0;
  color: var(--ink-soft);
}

.store-checkout-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.store-checkout-top-notice {
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #f7faff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.store-checkout-top-notice h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.store-checkout-top-notice p {
  margin: 0;
}

.store-checkout-top-notice[hidden] {
  display: none !important;
}

.store-page-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.store-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.store-card p {
  margin: 0;
  color: #70829e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.store-card strong {
  display: block;
  margin-top: 5px;
  font-family: "Sora", sans-serif;
}

.store-page-panel h2 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
}

.store-page-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #4f627f;
}

.store-page-panel li { margin-bottom: 7px; }

.store-page-panel code {
  background: #f3f6fb;
  border: 1px solid #dde5f1;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.82em;
}

.store-product-layout {
  display: grid;
  grid-template-columns: minmax(300px, 540px) minmax(320px, 1fr);
  grid-template-areas:
    "image meta"
    "thumbs meta";
  gap: 14px;
  align-items: start;
}

.store-product-image-wrap {
  grid-area: image;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 18px;
}

.store-product-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.store-product-no-image {
  color: #8a99b1;
  font-weight: 700;
}

.store-product-image-thumbs {
  grid-area: thumbs;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}

.store-product-image-thumbs > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.store-product-image-thumb {
  width: 74px;
  height: 74px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.store-product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.store-product-image-thumb.is-active {
  border-color: #2b4d9b;
  box-shadow: 0 0 0 2px #2b4d9b1f;
}

.store-product-meta p {
  margin: 0 0 8px;
  color: #4d607e;
}

.store-product-meta {
  grid-area: meta;
  align-self: stretch;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fbfdff;
  padding: 14px;
}

.store-product-description {
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.store-product-description-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.store-product-description-card {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #f8faff;
  padding: 11px 12px;
  display: grid;
  gap: 7px;
}

.store-product-description-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f3354;
}

.store-product-description-card p {
  margin: 0;
  color: #4c617f;
}

.store-product-description-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: #4c617f;
}

.store-product-description-list li {
  margin: 0;
}

.store-product-description-empty {
  color: #6d7f99;
  font-style: italic;
}

.store-related-summary {
  margin: 0 0 10px;
  color: #60718a;
}

.store-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.store-related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.store-related-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.store-related-card p {
  margin: 0;
  color: #5c6e89;
  font-size: 0.83rem;
}

.store-related-price {
  font-weight: 800;
  color: #1b2a43;
}

.store-related-image-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2f6fc;
  display: grid;
  place-items: center;
}

.store-related-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  background: #ffffff;
}

.store-related-no-image {
  color: #8d9ab0;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-related-card a {
  text-decoration: none;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--brand-button-background);
  color: var(--brand-button-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.store-product-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce4f1;
  display: grid;
  gap: 8px;
}

.store-product-actions label {
  font-size: 0.85rem;
  color: #536680;
  font-weight: 700;
}

.store-product-buy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.store-product-referral-row {
  display: grid;
  gap: 5px;
}

.store-product-buy-row input {
  width: 95px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #cfd9e8;
  padding: 0 10px;
  font: inherit;
}

.store-product-buy-row button,
.store-primary-button {
  min-height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  color: var(--brand-button-text);
  background: var(--brand-button-background);
  cursor: pointer;
}

.store-product-buy-row button:disabled,
.store-primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-inline-feedback {
  margin: 0;
  min-height: 20px;
  color: #5c708f;
  font-size: 0.84rem;
  font-weight: 700;
}

.store-inline-feedback.is-success {
  color: #15803d;
}

.store-inline-feedback.is-error {
  color: #b42318;
}

.store-primary-link,
.store-secondary-link {
  text-decoration: none;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.store-secondary-action {
  width: fit-content;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid #d8e1ef;
  padding: 0 13px;
  background: #f3f6fb;
  color: #304867;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.store-secondary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-primary-link {
  color: var(--brand-button-text, #ffffff);
  background: var(--brand-button-background, #2563eb);
}

.store-secondary-link {
  color: #304867;
  background: #f3f6fb;
  border: 1px solid #d8e1ef;
}

.store-danger-button,
.store-ghost-button {
  min-height: 38px;
  width: fit-content;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 12px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
}

.store-danger-button {
  color: #b42318;
  border-color: #f4d0cd;
  background: #fff6f5;
}

.store-ghost-button {
  color: #324a67;
  border-color: #d6dfed;
  background: #f5f8fc;
}

.store-muted-text {
  margin: 0;
  color: #5f708a;
  font-size: 0.84rem;
}

.store-empty-state {
  display: grid;
  gap: 8px;
  text-align: left;
}

.store-empty-state h2 {
  margin: 0;
}

.store-empty-state p {
  margin: 0;
  color: #5a6d88;
}

.store-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.store-cart-list {
  display: grid;
  gap: 10px;
}

.store-cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 220px;
  gap: 10px;
  align-items: center;
}

.store-cart-item-image {
  position: relative;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f6fc;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: #8395af;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-cart-item-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  background: #ffffff;
}

.store-cart-item-main h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.store-cart-item-main p {
  margin: 0 0 5px;
  color: #5d6f89;
  font-size: 0.84rem;
}

.store-cart-item-controls {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.store-cart-item-controls label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: #5c6f88;
  font-weight: 700;
}

.store-cart-item-controls input {
  width: 90px;
  min-height: 36px;
  border: 1px solid #d0d9e8;
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
}

.store-cart-item-controls p {
  margin: 0;
  color: #556883;
  font-size: 0.82rem;
}

.store-cart-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
  display: grid;
  gap: 10px;
  align-content: start;
  height: fit-content;
}

.store-cart-summary h2 {
  margin: 0;
}

.store-cart-summary dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.store-cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #51647f;
  font-size: 0.9rem;
}

.store-cart-summary dl dt,
.store-cart-summary dl dd {
  margin: 0;
}

.store-cart-summary .store-primary-link,
.store-cart-summary .store-secondary-link,
.store-cart-summary .store-danger-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  font-size: 0.9rem;
}

.store-cart-summary dl .total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #d7e0ed;
  color: #172942;
  font-weight: 800;
}

.store-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.store-checkout-form {
  display: grid;
  gap: 11px;
}

.store-checkout-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.store-checkout-step {
  min-height: 40px;
  border: 1px solid #d4deec;
  border-radius: 999px;
  background: #f4f7fc;
  color: #395475;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.store-checkout-step.is-active {
  border-color: #2d58d8;
  background: linear-gradient(140deg, #3e63dd, #274ecf);
  color: #fff;
}

.store-checkout-step.is-done {
  border-color: #8fc2a5;
  background: #edf8f1;
  color: #1f7a44;
}

.store-checkout-step-panel {
  display: grid;
  gap: 10px;
}

.store-checkout-step-panel[hidden] {
  display: none !important;
}

.store-checkout-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.store-checkout-quick-login {
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #f7faff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.store-checkout-quick-login h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.store-checkout-quick-login-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.store-checkout-quick-login-head h2 {
  margin: 0;
}

.store-checkout-quick-login-form {
  margin-top: 2px;
}

.store-checkout-quick-login-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.store-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-quote-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.store-quote-copy {
  border: 1px solid #d6dfed;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(145deg, #f8fbff, #eef4ff);
}

.store-quote-copy h2 {
  margin-top: 0;
}

.store-quote-form {
  border: 1px solid #d6dfed;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
}

.store-field {
  display: grid;
  gap: 4px;
  font-size: 0.83rem;
  color: #536781;
  font-weight: 700;
}

.store-field-full {
  grid-column: 1 / -1;
}

.store-field input,
.store-field select,
.store-field textarea {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d0d9e8;
  padding: 8px 10px;
  font: inherit;
}

.store-field textarea {
  min-height: 88px;
  resize: vertical;
}

.store-mini-items {
  display: grid;
  gap: 8px;
}

.store-mini-item {
  border: 1px solid #dce4f1;
  border-radius: 10px;
  background: #fff;
  padding: 9px;
}

.store-mini-item p {
  margin: 0;
  color: #5a6d88;
  font-size: 0.83rem;
}

.store-mini-item p.name {
  color: #172941;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 36, 0.56);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1100;
}

.store-modal-backdrop[hidden] {
  display: none !important;
}

.store-modal-card {
  position: relative;
  width: min(700px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #cfd9ea;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.store-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d7dfed;
  background: #f3f6fb;
  color: #23344f;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.store-pix-modal-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.store-pix-modal-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
}

.store-pix-logo {
  width: 160px;
  max-width: 44vw;
  height: auto;
  border-radius: 8px;
}

.store-pix-modal-body {
  display: grid;
  gap: 10px;
}

.store-pix-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(180px, 1fr);
  gap: 12px;
  align-items: stretch;
}

#successPixQrImage {
  width: min(320px, 100%);
  height: auto;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.store-pix-paid-panel {
  border-radius: 12px;
  background: #6f852f;
  color: #ffffff;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 14px 10px;
  gap: 8px;
}

.store-pix-paid-panel .icon {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
}

.store-pix-paid-panel .title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.store-pix-paid-panel .text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
  max-width: 260px;
}

.store-pix-pending-panel {
  border-radius: 12px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 14px 10px;
  gap: 8px;
}

.store-pix-pending-panel .icon {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  animation: pendingPulse 2s infinite ease-in-out;
}

.store-pix-pending-panel .title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.store-pix-pending-panel .text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
  max-width: 260px;
}

.store-pix-paid-panel[hidden],
.store-pix-pending-panel[hidden] {
  display: none !important;
}

@keyframes pendingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.92); }
}

/* Estilos do Cartão do PIX Inline Integrado */
.store-pix-inline-card {
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #dce4f1;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(15, 31, 52, 0.05);
  animation: slideInUp 0.5s ease-out;
}

.store-pix-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f9;
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.store-pix-card-head h3 {
  margin: 0 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.store-pix-card-body {
  display: grid;
  gap: 16px;
}

.store-pix-copy-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf2f9;
  padding-top: 16px;
}

.store-pix-copy-section label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.store-pix-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#successPixCode {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cfd9e8;
  padding: 9px 10px;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.store-pix-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.store-success-header-row {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .store-success-header-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.store-order-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.store-order-head h2 {
  margin: 4px 0;
}

.store-order-badge {
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #f4f7fc;
  padding: 8px 12px;
  color: #2d4665;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-account-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.store-account-address-card {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
  display: grid;
  gap: 4px;
}

.store-account-address-card.is-primary {
  border-color: #8bb2ff;
  background: #f4f8ff;
}

.store-account-address-card h3 {
  margin: 0;
  font-size: 0.92rem;
}

.store-account-address-card p {
  margin: 0;
  color: #4d607d;
  font-size: 0.84rem;
}

.store-account-orders {
  display: grid;
  gap: 10px;
}

.store-account-order-card {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 7px;
}

.store-account-order-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.store-account-order-card header strong {
  font-family: "Sora", sans-serif;
}

.store-order-head-main {
  display: grid;
  gap: 2px;
}

.store-order-head-main small {
  color: #687d99;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-account-order-card header span {
  border: 1px solid #d5dfee;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f4f7fd;
  color: #335077;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.store-order-status-chip.aguardando_pagamento {
  background: #fff7e8;
  border-color: #f6d9a7;
  color: #8a5a14;
}

.store-order-status-chip.expirado {
  background: #ffe9ec;
  border-color: #f2b8c0;
  color: #8f2432;
}

.store-order-status-chip.pago,
.store-order-status-chip.em_separacao,
.store-order-status-chip.sendo_embalado,
.store-order-status-chip.emissao_documento,
.store-order-status-chip.despacho {
  background: #edf3ff;
  border-color: #cddbf9;
  color: #22457a;
}

.store-order-status-chip.cancelado {
  background: #ffeef0;
  border-color: #f5c0c8;
  color: #8a2e3d;
}

.store-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.store-order-summary-grid p {
  margin: 0;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  padding: 6px 8px;
  background: #f7f9fe;
  display: grid;
  gap: 2px;
}

.store-order-summary-grid p span {
  color: #607591;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.store-order-summary-grid p strong {
  color: #1f3354;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.store-order-step-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 8px;
}

.store-order-step-btn {
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: #f7f9fe;
  padding: 8px;
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: left;
  cursor: default;
}

.store-order-step-icon {
  min-width: 28px;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #d6dfed;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-order-step-label {
  color: #1f3354;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.store-order-step-state {
  border: 1px solid #d6dfed;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-order-step-btn.is-ok {
  border-color: #9ec6a7;
  background: #edf8f0;
}

.store-order-step-btn.is-ok .store-order-step-icon,
.store-order-step-btn.is-ok .store-order-step-state {
  background: #edf8f0;
  border-color: #9ec6a7;
  color: #245f35;
}

.store-order-step-btn.is-waiting {
  border-color: #f6d9a7;
  background: #fff7e8;
}

.store-order-step-btn.is-waiting .store-order-step-icon,
.store-order-step-btn.is-waiting .store-order-step-state {
  background: #fff7e8;
  border-color: #f6d9a7;
  color: #8a5a14;
}

.store-order-step-btn.is-expired {
  border-color: #f2b8c0;
  background: #ffe9ec;
}

.store-order-step-btn.is-expired .store-order-step-icon,
.store-order-step-btn.is-expired .store-order-step-state {
  background: #ffe9ec;
  border-color: #f2b8c0;
  color: #8f2432;
}

.store-order-cancelled {
  margin: 8px 0 2px;
  color: #8a2e3d;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-account-order-card p {
  margin: 0;
  color: #526884;
  font-size: 0.84rem;
}

.store-account-order-card details {
  border-top: 1px solid #e2e9f4;
  padding-top: 7px;
}

.store-account-order-card summary {
  cursor: pointer;
  color: #28466f;
  font-size: 0.84rem;
  font-weight: 700;
}

.store-account-order-card ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #506680;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .store-page-top { grid-template-columns: 1fr; }
  .store-page-cards { grid-template-columns: 1fr; }
  .store-product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "thumbs"
      "meta";
  }
  .store-cart-layout { grid-template-columns: 1fr; }
  .store-checkout-layout { grid-template-columns: 1fr; }
  .store-checkout-header { grid-template-columns: 1fr; }
  .store-form-grid { grid-template-columns: 1fr; }
  .store-quote-layout { grid-template-columns: 1fr; }
  .store-checkout-stepper { grid-template-columns: 1fr; }
  .store-order-summary-grid { grid-template-columns: 1fr; }
  .store-order-step-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .store-cart-item {
    grid-template-columns: 1fr;
  }

  .store-product-buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-order-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-pix-hero {
    grid-template-columns: 1fr;
  }
}

/* Forca a imagem principal do detalhe a caber inteira no quadro, sem corte. */
.store-product-image-wrap {
  position: relative;
}

.store-product-image-wrap #productImage {
  position: absolute !important;
  inset: 18px !important;
  width: calc(100% - 36px) !important;
  height: calc(100% - 36px) !important;
  max-width: calc(100% - 36px) !important;
  max-height: calc(100% - 36px) !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Lista/carrinho de itens para solicitacao unica de orcamento. */
.store-quote-items-panel {
  grid-column: 1 / -1;
  border: 1px solid #d6e1f0;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.store-quote-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-quote-items-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.store-quote-items-list {
  display: grid;
  gap: 8px;
}

.store-quote-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 96px auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e8f3;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.store-quote-item-media {
  width: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5ecf5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.store-quote-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-quote-item strong,
.store-quote-item small {
  display: block;
  min-width: 0;
}

.store-quote-item small {
  color: #667892;
}

.store-quote-item input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  padding: 0 8px;
  font: inherit;
}

.store-quote-item button,
.store-quote-items-head button {
  border: 1px solid #d7e1ef;
  border-radius: 9px;
  background: #fff;
  color: #9f1d1d;
  font-weight: 800;
  min-height: 36px;
  cursor: pointer;
}

.store-quote-empty {
  margin: 0;
  color: #667892;
  font-weight: 700;
}

@media (max-width: 640px) {
  .store-quote-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .store-quote-item input,
  .store-quote-item button {
    grid-column: 2;
  }
}

/* Carrossel de imagens do detalhe do produto e visualizacao em tela cheia. */
.store-product-image-wrap {
  touch-action: pan-y;
  user-select: none;
}

.store-product-image-wrap:focus-visible {
  outline: 3px solid #2b4d9b66;
  outline-offset: 2px;
}

.store-product-image-wrap #productImage {
  cursor: zoom-in;
}

.store-gallery-nav,
.store-gallery-zoom,
.store-lightbox-close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ffffffe6;
  color: #1c2b44;
  box-shadow: 0 2px 10px #0b14202e;
  cursor: pointer;
  line-height: 1;
}

.store-gallery-nav {
  top: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  transform: translateY(-50%);
}

.store-gallery-nav.is-prev { left: 10px; }
.store-gallery-nav.is-next { right: 10px; }

.store-gallery-zoom {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.store-gallery-counter {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: #0b1420b3;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.store-gallery-nav[hidden],
.store-gallery-zoom[hidden],
.store-gallery-counter[hidden] {
  display: none;
}

.store-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b1420;
  touch-action: pan-y;
}

.store-lightbox[open] {
  display: grid;
  place-items: center;
}

.store-lightbox::backdrop {
  background: #0b1420cc;
}

.store-lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  user-select: none;
}

.store-lightbox .store-gallery-nav {
  position: fixed;
}

.store-lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.store-lightbox .store-gallery-counter {
  position: fixed;
  bottom: 16px;
}

@media (max-width: 640px) {
  .store-gallery-nav {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}

/* Descricao formatada (secoes com emoji, chamadas, listas, vantagens e hashtags). */
.pd-rich {
  display: grid;
  gap: 18px;
  color: #33475f;
  line-height: 1.6;
  font-size: 0.98rem;
}

.pd-section {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e9f2;
}

.pd-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-section p {
  margin: 0;
}

.pd-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  color: #14253d;
}

.pd-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.pd-subtitle {
  font-weight: 700;
  color: #1f3354;
}

.pd-highlight {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 8px;
  background: #eef4ff;
  color: #14253d;
  font-weight: 700;
}

.pd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 18px;
}

.pd-list li {
  position: relative;
  padding-left: 16px;
}

.pd-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-button-background, #2563eb);
}

.pd-defs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 18px;
}

.pd-defs li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand-button-background, #2563eb);
  border-radius: 8px;
  background: #f6f8fc;
}

.pd-defs strong {
  color: #14253d;
}

.pd-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.pd-checks li {
  position: relative;
  padding-left: 24px;
}

.pd-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 800;
}

.pd-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff8e8;
  color: #5b4a1e;
}

.pd-note-icon {
  flex: 0 0 auto;
  line-height: 1.5;
}

.pd-cta {
  justify-self: start;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--brand-button-background, #2563eb);
  color: var(--brand-button-text, #ffffff);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.pd-cta:hover {
  filter: brightness(0.92);
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #4c617f;
  font-size: 0.85rem;
}

#addToCartButton {
  scroll-margin-top: 140px;
}

.store-quote-add { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(15, 23, 42, 0.12); }
.store-quote-add-row { display: flex; gap: 8px; margin-top: 6px; }
.store-quote-add-row input { flex: 1; min-width: 0; }
.store-quote-add-results { display: grid; gap: 8px; margin-top: 8px; }

#storeReferralPanel .store-account-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; }
#storeReferralPanel .store-account-form-row label { display: grid; gap: 4px; font-size: 0.85rem; }
.store-referral-body { overflow-x: auto; }
.rr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rr-table th, .rr-table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
.rr-table .rr-total td { background: #f3f4f6; }
.rr-block { margin-bottom: 18px; }
.rr-grand { margin-top: 12px; }
/* Relacionados: usam o mesmo cartao de produto da loja. */
.store-related-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
@media (max-width: 520px) {
  .store-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---- Pagina de produto remodelada: galeria + caixa de compra ---- */
.store-product-crumbs { margin: 4px 0 10px; font-size: .84rem; color: #5c708f; }
.store-product-crumbs a { color: inherit; font-weight: 700; text-decoration: none; }
.store-product-crumbs a:hover { text-decoration: underline; }
.store-product-main .store-product-layout {
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, .95fr);
  grid-template-areas: "gal meta";
  gap: 28px;
}
.store-product-gallery-col { grid-area: gal; display: grid; gap: 10px; min-width: 0; }
.store-product-gallery-col .store-product-image-wrap { grid-area: auto; width: 100%; justify-self: stretch; }
.store-product-gallery-col .store-product-image-thumbs { grid-area: auto; }
.store-buybox { position: sticky; top: 16px; align-self: start; background: #fff; padding: 20px; display: grid; gap: 10px; }
.store-buybox p { margin: 0; }
.store-buybox-ids { font-size: .8rem; color: #6b7c93; font-weight: 600; }
.store-buybox-sep { margin: 0 4px; opacity: .5; }
.store-buybox-title { margin: 0; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.2; color: #0f1b2d; }
.store-buybox-price { display: grid; gap: 2px; padding: 4px 0 2px; }
.store-buybox-price-main { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1.1; color: #0f1b2d; }
.store-buybox-price-main.is-quote { font-size: 1.15rem; color: #5c708f; }
.store-buybox-wholesale { font-size: .88rem; color: #5c708f; }
.store-buybox-stock { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: #1a7f37; }
.store-stock-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.store-buybox-stock[data-stock="low"] { color: #b45309; }
.store-buybox-stock[data-stock="out"] { color: #b42318; }
.store-buybox-status { font-weight: 600; color: #6b7c93; }
.store-buybox .store-product-actions { margin-top: 4px; }
.store-qty { display: inline-flex; align-items: stretch; border: 1px solid #cfd9e8; border-radius: 10px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.store-qty button { width: 40px; min-height: 44px; border: 0; background: #f3f6fa; color: #0f1b2d; font-size: 1.2rem; font-weight: 800; cursor: pointer; padding: 0; }
.store-qty button:hover { background: #e6ecf5; }
.store-qty input { width: 56px; min-height: 44px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.store-qty input::-webkit-outer-spin-button, .store-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.store-buybox .store-product-buy-row { flex-wrap: nowrap; }
.store-buybox .store-product-buy-row > #addToCartButton { flex: 1; min-height: 44px; font-size: 1rem; }
.store-qty button:focus-visible, .store-qty input:focus-visible, .store-sticky-buy button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.store-sticky-buy { display: none; }
@media (max-width: 980px) {
  .store-product-main .store-product-layout { grid-template-columns: 1fr; grid-template-areas: "gal" "meta"; gap: 16px; }
  .store-buybox { position: static; }
}
@media (max-width: 760px) {
  .store-buybox .store-product-buy-row { flex-direction: row; }
  .store-sticky-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 49px; z-index: 240; padding: 10px 14px; background: #fff; border-top: 1px solid #d5d9d9; box-shadow: 0 -6px 18px rgba(15,17,17,.12); }
  .store-sticky-buy[hidden] { display: none; }
  .store-sticky-buy strong { font-size: 1.1rem; color: #0f1b2d; }
  .store-sticky-buy button { flex: 1; max-width: 220px; min-height: 44px; border: 0; border-radius: 10px; font: 800 .95rem inherit; font-family: inherit; color: var(--brand-button-text); background: var(--brand-button-background); cursor: pointer; }
  .store-sticky-buy button:disabled { opacity: .6; }
}

/* ---- Atacado na pagina de produto (cliente habilitado) ---- */
.store-buybox-tiers { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #cfe3d4; background: #f3faf5; border-radius: 10px; font-size: .88rem; color: #1b4332; }
.store-buybox-tiers[hidden] { display: none; }
.store-buybox-tiers-now { color: #0f1b2d; }

.store-wholesale-note { margin: 4px 0 0; font-size: .85rem; font-weight: 700; color: #5c708f; }
.store-wholesale-note.is-on { color: #1a7f37; }
