@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --text: rgb(48, 51, 60);
  --muted: rgb(127, 143, 159);
  --border: rgb(232, 234, 237);
  --surface: rgb(255, 255, 255);
  --bg: rgb(243, 245, 247);
  --pill-bg: rgb(248, 249, 250);
  --open: rgb(68, 204, 170);
  --link: rgb(0, 123, 255);
  --maxw: 800px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
}

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

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(114px + env(safe-area-inset-bottom, 0px));
}

.header-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--surface);
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 7.5rem;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
}

.store-panel {
  position: relative;
  z-index: 21;
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  margin-top: 6rem;
  background: var(--surface);
}

.store-row {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo {
  margin-right: 1rem;
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(221, 226, 235);
  background-size: cover;
  background-position: center;
  background-color: var(--text);
}

.store-main {
  width: 100%;
  min-height: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-title-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
}

.store-title-row strong {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.688rem;
}

.store-title-row svg {
  flex-shrink: 0;
}

.badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  height: 1.87rem;
  padding: 0 0.75rem;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pill-bg);
}

.badge svg,
.row-icon svg {
  color: var(--muted);
}

.badge-open {
  border: 1px solid var(--open);
}

.badge-open,
.badge-open span,
.badge-open svg {
  color: var(--open) !important;
}

.badge span,
.row-icon span {
  margin-left: 0.5rem;
  line-height: 1;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
}

.info-wrapper {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.row-icon {
  display: flex;
  align-items: center;
}

.row-icon span {
  cursor: pointer;
  text-decoration: underline;
}

.delivery-info-loaded {
  margin-left: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.125rem;
  text-decoration: none !important;
}

.delivery-info-loaded[hidden] {
  display: none !important;
}

.delivery-info-loaded span {
  margin-left: 0 !important;
  line-height: 1.2;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
}

.waves {
  width: 100%;
  height: 1rem;
  min-height: 1rem;
  background-color: var(--bg);
  background-image: linear-gradient(rgb(198, 205, 212), rgb(221, 226, 235), transparent);
}

.waves-inner {
  height: 100%;
  background: url("https://our-sushi-delivery.goomer.app/assets/new-waves.svg") center top repeat-x;
}

.sticky-cats {
  width: 100%;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
}

.sticky-cats select {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 1rem;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--muted);
  background: var(--surface);
  font: inherit;
  color: var(--text);
}

.menu {
  flex: 1;
}

.category {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 80px;
}

.category > h2 {
  position: relative;
  padding: 1rem 1rem 0.5rem;
  font-weight: 800;
  font-size: 0.87rem;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  border: none;
}

@media (min-width: 720px) {
  .category > h2 {
    font-size: 1.31rem;
  }
}

.product-list > .product-card + .product-card {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  width: 100%;
  min-width: 10.85rem;
  padding: 1rem 0;
  background: var(--surface);
  cursor: pointer;
}

.thumb-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  min-width: 5.5rem;
  margin: 0 1rem 0 0;
  border-radius: 0.5rem;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumb-wrap img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  pointer-events: none;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(221, 226, 235), rgb(243, 245, 247));
}

.body {
  flex: 1;
  width: 100%;
  min-height: 4rem;
  padding: 0.857rem;
  display: flex;
  flex-direction: column;
}

.body h3 {
  font-weight: 800;
  font-size: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.desc {
  width: 100%;
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.225rem;
  color: var(--muted);
  white-space: pre-line;
}

.desc .more {
  display: inline-block;
  margin-top: 0.285rem;
  font-weight: 600;
  text-decoration: underline;
  color: var(--text);
  cursor: pointer;
}

.footer-row {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 600;
  font-size: 1rem;
}

.back-top-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 1rem auto;
}

.btn-text {
  width: 100%;
  height: 3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  background: transparent;
}

.btn-text svg {
  margin-left: 0.5rem;
  height: 2rem;
  width: auto;
}

.nav-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: 50px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--surface);
}

@media (min-width: 720px) {
  .nav-bottom {
    max-width: var(--maxw);
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-item svg {
  height: 16px;
  width: auto;
  margin-bottom: 4px;
}

.nav-item p {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-item.active p,
.nav-item.active svg,
.nav-item.active svg path {
  color: var(--text);
  fill: var(--text);
}

.nav-item:not(.active) svg,
.nav-item:not(.active) svg path {
  fill: var(--muted);
}

.goomer-brand {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.goomer-brand p {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.goomer-brand svg {
  height: 1rem;
  width: auto;
}

.goomer-brand svg path {
  fill: var(--muted);
}

.spacer-nav {
  height: 0;
}

/* ——— Carrinho flutuante ——— */
.cart-summary[hidden] {
  display: none !important;
}

.cart-summary {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: 100%;
  padding: 0 0.5rem;
}

.cart-summary-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 56px;
  background: var(--surface);
  border: 1px solid rgb(221, 226, 235);
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.cart-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
}

.cart-count {
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgb(48, 51, 60);
}

.cart-review-btn {
  width: 100%;
  min-height: 2.6rem;
  border-radius: 0.45rem;
  border: none;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.cart-review-btn:hover {
  background: rgb(26, 26, 26);
}

.cart-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-total {
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cart-summary-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cart-total {
    font-size: 1.95rem;
  }
}

/* ——— Tela Meu Pedido ——— */
.order-overlay[hidden] {
  display: none !important;
}

.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: #fff;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
}

.order-page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.order-header {
  margin: 0;
  width: 100%;
  padding: 0 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid rgb(221, 226, 235);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
}

.order-back {
  transform: rotate(180deg);
  width: 40px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  color: var(--text);
}

.order-back svg {
  transform: rotate(180deg);
}

.order-header-title-wrap {
  width: 100%;
  height: 90%;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-title {
  margin-right: 35px;
  font-weight: 800;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--text);
}

.order-body {
  position: relative;
  padding: 0.5rem 0 6rem;
  flex: 1;
  min-height: 0;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.order-container {
  margin: 0 auto;
  max-width: var(--maxw);
}

.order-list-wrap {
  padding-bottom: 1rem;
  background: #fff;
}

.order-list {
  width: 100%;
  padding: 0 1rem;
  list-style: none;
}

.order-item {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgb(221, 226, 235);
  gap: 0.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  background: #fff;
}

.order-thumb {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(243, 245, 247);
  overflow: hidden;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 0.375rem;
  object-fit: cover;
}

.order-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(221, 226, 235), rgb(243, 245, 247));
}

.order-item-main {
  min-width: 0;
}

.order-item-controls-row {
  position: relative;
  margin: 0 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  float: right;
}

.order-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background: rgb(248, 249, 250);
}

.order-qty-btn {
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
  background-color: rgb(248, 249, 250);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-qty-btn.minus {
  color: rgb(244, 67, 54);
}

.order-qty-btn.plus {
  color: var(--text);
}

.order-qty-btn svg {
  width: 20px;
  height: 20px;
}

.order-qty-value {
  height: 2rem;
  min-width: 1.5rem;
  padding: 0 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: rgb(248, 249, 250);
}

.order-item-info {
  position: relative;
  display: contents;
}

.order-item-name {
  font-weight: 700;
  line-height: 120%;
  font-size: 0.875rem;
  color: var(--text);
}

.order-item-price {
  margin-top: 0.375rem;
  font-weight: 600;
  line-height: 120%;
  font-size: 0.875rem;
  color: var(--text);
}

.order-item-notes {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: pre-line;
}

.order-add-more-wrap {
  margin: 1rem 0 0;
}

.order-clear-cart-wrap {
  margin: 0.75rem 0 0;
}

.order-clear-cart-btn {
  width: 100%;
  height: 2.75rem;
  border-radius: 4px;
  border: 1px solid rgb(180, 60, 60);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(180, 60, 60);
  cursor: pointer;
}

.order-clear-cart-btn:hover {
  background: rgba(180, 60, 60, 0.06);
}

.order-add-more-btn {
  width: 100%;
  height: 3rem;
  border-radius: 4px;
  border: 1px solid rgb(48, 51, 60);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(48, 51, 60);
}

.order-total-row {
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-total-row .label {
  font-weight: 600;
  line-height: 150%;
  font-size: 1.125rem;
  color: var(--text);
}

.order-total-row .value {
  font-weight: 600;
  line-height: 150%;
  font-size: 1.125rem;
  color: var(--text);
}

.order-empty {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px dashed rgb(221, 226, 235);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.order-divider-waves {
  width: 100%;
  height: 1rem;
  min-height: 1rem;
  margin-bottom: 0;
  background-color: rgb(243, 245, 247);
  background-image: linear-gradient(rgb(198, 205, 212), rgb(221, 226, 235), transparent);
}

.order-divider-waves-inner {
  height: 100%;
  background-position: center top;
  background-repeat: repeat-x;
  background-image: url("https://our-sushi-delivery.goomer.app/assets/new-waves.svg");
}

.order-customer-section {
  padding-top: 2rem;
  background: var(--bg);
  padding-bottom: 1.25rem;
}

.order-customer-block {
  margin-bottom: 1.875rem;
}

.order-customer-head {
  width: 100%;
  min-height: 1.625rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-customer-head-info {
  max-width: 100%;
}

.order-customer-title {
  display: block;
  font-weight: 600;
  line-height: 150%;
  font-size: 0.875rem;
  color: var(--text);
}

.order-customer-head-status {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(68, 204, 170);
}

.order-customer-head-status svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.order-customer-options {
  padding: 0.5rem 1rem 0;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
}

.order-customer-content {
  padding: 0.5rem 1rem 0;
}

.order-required-badge {
  border-radius: 1rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  color: #fff;
  background: rgb(127, 143, 159);
}

.order-required-badge.done {
  background: rgb(68, 204, 170);
}

.order-option-card {
  padding: 1rem 0.25rem 1rem 0;
  border-bottom: 1px solid rgb(221, 226, 235);
  display: flex;
  align-items: center;
  border-radius: 0.25rem;
  border: 1px solid rgb(221, 226, 235);
  background: #fff;
}

.order-option-info {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 0 1rem;
}

.order-option-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--text);
}

.order-option-check {
  margin-left: auto;
  gap: 0.5rem;
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
}

.order-option-check input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.order-option-check .mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgb(198, 205, 212);
  background: rgb(243, 245, 247);
  display: inline-block;
}

.order-option-check input:checked + .mark {
  border: 5px solid #fff;
  background: rgb(48, 51, 60);
}

.order-input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid rgb(221, 226, 235);
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  background-color: #fff;
  color: var(--text);
  transition: 0.3s;
}

.order-input:focus {
  border-color: rgb(48, 51, 60);
}

.order-input::placeholder {
  color: rgb(198, 205, 212);
}

.order-input.mt-8 {
  margin-top: 0.5rem;
}

.order-help-text {
  margin-top: 0.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  font-size: 0.75rem;
  color: var(--muted);
}

.order-help-text.success {
  color: rgb(68, 204, 170);
}

.order-help-text.error {
  color: rgb(244, 67, 54);
}

.order-address-preview {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid rgb(221, 226, 235);
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text);
}

.order-payment-card {
  position: relative;
  width: 100%;
  padding: 1rem;
  min-height: 60px;
  border-radius: 5px;
  border: 1px solid rgb(232, 234, 237);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.order-payment-left {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.order-payment-info {
  width: 100%;
  font-size: 14px;
  line-height: 17px;
}

.order-payment-title {
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-weight: 500;
  line-height: 150%;
  font-size: 0.75rem;
  color: var(--muted);
}

.order-payment-icon {
  display: flex;
  margin-right: 0.25rem;
}

.order-payment-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.order-payment-icon svg path {
  fill: var(--muted);
}

.order-payment-icon img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.order-payment-description {
  text-align: left;
  font-weight: 600;
  line-height: 150%;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
}

.order-payment-description.info {
  margin-top: 0.25rem;
  font-weight: 500;
  line-height: 150%;
  font-size: 0.75rem;
  color: var(--muted);
}

.order-payment-action path {
  fill: var(--muted);
}

.order-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 360;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0 -2px 20px;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
}

.order-send-btn {
  width: 100%;
  min-height: 3rem;
  border-radius: 4px;
  border: none;
  background: #000;
  color: #fff;
}

.order-send-btn > span {
  width: 100%;
  padding: 0 1rem;
  display: block;
}

.order-send-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-send-content span {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.order-send-btn[disabled] {
  background: rgb(198, 205, 212);
  cursor: not-allowed;
}

/* ——— Modal tempo/taxa inicial ——— */
.delivery-modal[hidden] {
  display: none !important;
}

.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 340;
}

.delivery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 51, 60, 0.7);
}

.delivery-modal-card {
  position: relative;
  width: calc(100% - 2rem);
  max-width: 28rem;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.delivery-modal-head {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(232, 234, 237);
  padding: 0 1rem;
}

.delivery-modal-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.delivery-modal-head button {
  width: 2rem;
  height: 2rem;
  color: var(--text);
}

.delivery-modal-content {
  padding: 1rem;
  background: var(--bg);
}

/* ——— Detalhe do produto (Goomer) ——— */
.pd-overlay[hidden] {
  display: none !important;
}

.pd-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  height: 100%;
  height: 100dvh;
}

.pd-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.pd-header {
  flex-shrink: 0;
  width: 100%;
  padding: 0 1rem;
  max-width: 50rem;
  min-height: 3.5rem;
  border-bottom: 1px solid rgb(221, 226, 235);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--surface);
}

@media (min-width: 768px) {
  .pd-header {
    margin: 0 auto;
  }
}

.pd-back {
  transform: rotate(180deg);
  width: 40px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0;
}

.pd-back svg {
  transform: rotate(180deg);
}

.pd-header-title-wrap {
  width: 100%;
  height: 90%;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-screen-title {
  margin-right: 35px;
  font-weight: 800;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--text);
}

.pd-body-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pd-inner {
  width: 100%;
  padding: 1rem;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.pd-img-wrap {
  position: relative;
  cursor: pointer;
}

.pd-img-wrap.pd-no-zoom {
  cursor: default;
}

.pd-img-frame {
  position: relative;
}

#pd-product-image-slot .pd-detail-placeholder {
  width: 100%;
  height: 176px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgb(221, 226, 235), var(--bg));
}

@media screen and (min-width: 720px) {
  #pd-product-image-slot .pd-detail-placeholder {
    height: 18.75rem;
  }
}

.pd-img-frame > #pd-product-image-slot {
  width: calc(100vw - 2rem);
  max-width: calc(var(--maxw) - 2rem);
  margin: 0 auto 1.12rem;
}

@media screen and (min-width: 800px) {
  .pd-img-frame > #pd-product-image-slot {
    width: calc(800px - 2rem);
  }
}

#pd-product-image-slot img {
  width: 100%;
  height: 176px;
  border-radius: 0.5rem;
  object-fit: cover;
  display: block;
}

@media screen and (min-width: 720px) {
  #pd-product-image-slot img {
    height: 18.75rem;
  }
}

.pd-magnifier {
  position: absolute;
  right: calc(0.38rem + 0px);
  bottom: calc(1.88rem + 0px);
  margin: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(48, 51, 60);
  pointer-events: none;
}

.pd-no-zoom .pd-magnifier {
  display: none;
}

.pd-spacer-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.pd-title-row {
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.pd-title {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.785rem;
  color: var(--text);
}

.pd-spice-row {
  gap: 0.25rem;
  display: flex;
  flex-wrap: nowrap;
}

.pd-spice-dot {
  max-width: 0.875rem;
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.pd-desc {
  display: inline;
  white-space: pre-line;
  font-weight: 500;
  font-size: 1rem;
  line-height: 150%;
  color: var(--text);
}

.pd-desc-empty {
  color: var(--muted);
  font-weight: 500;
}

.pd-price-block {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

.pd-price {
  margin-right: 0.42rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 120%;
  color: var(--text);
}

.pd-waves {
  width: 100%;
  height: 1rem;
  min-height: 1rem;
  margin-bottom: 2.28rem;
  background-color: transparent;
  background-image: linear-gradient(rgb(198, 205, 212), rgb(221, 226, 235), transparent);
}

.pd-waves-inner {
  height: 100%;
  background: url("https://our-sushi-delivery.goomer.app/assets/new-waves.svg") center top repeat-x;
}

.pd-notes-wrap {
  padding: 0 1rem 4.75rem;
}

.pd-notes-head {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.pd-notes-head-inner {
  width: 100%;
  margin: 0 auto;
  max-width: var(--maxw);
}

.pd-notes-title {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.688rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.pd-notes-body {
  padding-bottom: 3.85rem;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.pd-notes-body textarea {
  width: 100%;
  margin: 0 auto;
  height: 6.42rem;
  max-width: var(--maxw);
  border-radius: 0.28rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(248, 249, 250);
  resize: none;
  font-weight: 500;
  line-height: 150%;
  font-size: 1rem;
  color: var(--muted);
  background-color: var(--surface);
  font-family: inherit;
}

.pd-notes-body textarea::placeholder {
  color: rgb(198, 205, 212);
}

.pd-char-count {
  width: 100%;
  max-width: var(--maxw);
  margin: 0.21rem auto 0;
  font-weight: 600;
  text-align: right;
  line-height: 150%;
  font-size: 0.875rem;
  color: var(--muted);
}

.pd-notes-hint {
  max-width: var(--maxw);
  margin: 0.5rem auto 0;
  font-weight: 600;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--muted);
  display: block;
}

.pd-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 310;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface);
  box-shadow: rgba(0, 0, 0, 0.1) 0px -2px 20px;
}

@media screen and (min-width: 720px) {
  .pd-footer {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
}

.pd-qty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-qty-btn {
  height: 3rem;
  border: none;
  width: 2.5rem;
  border-radius: 0.25rem;
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  user-select: none;
}

.pd-qty-minus:disabled {
  color: rgb(255, 255, 255);
  cursor: not-allowed;
  pointer-events: none;
  background-color: rgb(198, 205, 212);
}

.pd-qty-minus:disabled svg {
  color: var(--muted);
}

.pd-qty-minus:not(:disabled) {
  color: rgb(255, 255, 255);
  cursor: pointer;
  background-color: rgb(72, 84, 96);
}

.pd-qty-minus:not(:disabled) svg {
  color: rgb(255, 255, 255);
}

.pd-qty-plus {
  color: rgb(255, 255, 255);
  cursor: pointer;
  background-color: rgb(72, 84, 96);
}

.pd-qty-val {
  width: 2.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: var(--text);
}

.pd-add-btn {
  border: none;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  margin-left: 10px;
  border-radius: 0.25rem;
  gap: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  background-color: #000;
  flex: 1;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pd-add-btn:hover {
  background-color: rgb(30, 30, 30);
}

.pd-add-btn:active {
  background-color: rgb(48, 48, 48);
}

.pd-add-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pd-add-label,
.pd-add-total {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #fff;
}

.pd-lightbox[hidden] {
  display: none !important;
}

.pd-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  background: rgb(48, 51, 60);
}

.pd-lightbox-header {
  width: 100%;
  padding: 1rem;
  height: 3.25rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media screen and (min-width: 720px) {
  .pd-lightbox-header {
    max-width: 31.25rem;
    margin: 0 auto;
  }
}

.pd-lightbox-close {
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pd-lightbox-img-wrap img {
  height: auto;
  max-width: 100%;
  max-height: 25rem;
}

@media screen and (min-width: 720px) {
  .pd-lightbox-img-wrap img {
    max-width: 31.25rem;
  }
}

.pd-lightbox-info {
  margin: 0;
  width: 100%;
  padding: 1rem;
}

@media screen and (min-width: 720px) {
  .pd-lightbox-info {
    max-width: 31.25rem;
    margin: 0 auto;
  }
}

.pd-lightbox-name {
  margin: 0 0 0.75rem;
  padding: 0;
  color: rgb(255, 255, 255);
  font-size: 1rem;
  font-weight: bold;
  line-height: 120%;
}

.pd-lightbox-desc {
  margin: 0;
  padding: 0;
  color: rgb(255, 255, 255);
  font-weight: 500;
  line-height: 150%;
  font-size: 0.87rem;
}

body.pd-open {
  overflow: hidden;
}

/* ——— Confirmação pós-pagamento ——— */
.order-confirmed-overlay[hidden] {
  display: none !important;
}

.order-confirmed-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}

.order-confirmed-card {
  width: 100%;
  max-width: 26rem;
  margin: 0.5rem auto 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.order-confirmed-head {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #1a7f5a 0%, #0d5c40 100%);
}

.order-confirmed-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.order-confirmed-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.order-confirmed-lead {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
}

.order-confirmed-lead strong {
  font-size: 1.2rem;
  color: #0d5c40;
}

.order-confirmed-time {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.order-confirmed-block {
  margin-bottom: 1.25rem;
}

.order-confirmed-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

.order-confirmed-customer .order-confirmed-line {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}

.order-confirmed-customer .order-confirmed-line:last-child {
  margin-bottom: 0;
}

.order-confirmed-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.order-confirmed-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9375rem;
}

.order-confirmed-item:last-child {
  border-bottom: 0;
}

.order-confirmed-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.order-confirmed-item-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}

.order-confirmed-item-qty {
  color: #666;
  font-size: 0.875rem;
}

.order-confirmed-item-price {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
}

.order-confirmed-item-notes {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #666;
}

.order-confirmed-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 2px solid #e8e8e8;
  font-size: 1.05rem;
}

.order-confirmed-total-row .label {
  font-weight: 600;
}

.order-confirmed-total-value {
  font-size: 1.125rem;
  color: #0d5c40;
}

.order-confirmed-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.order-confirmed-btn:hover {
  opacity: 0.92;
}

/* Modal Pix (checkout WordPress) */
.pix-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.pix-payment-modal[hidden] {
  display: none !important;
}

.pix-payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pix-payment-modal-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 1.25rem 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.pix-payment-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pix-payment-modal-head h3 {
  margin: 0;
  font-size: 1.125rem;
}

.pix-payment-modal-x {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.pix-payment-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #444;
}

.pix-payment-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.pix-payment-qr-wrap[hidden] {
  display: none !important;
}

.pix-payment-qr-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
}

.pix-payment-qr-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.pix-payment-code {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
}

.pix-payment-status {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.pix-payment-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pix-payment-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pix-payment-btn-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

@media screen and (min-width: 480px) {
  .pix-payment-modal {
    align-items: center;
    padding: 1rem;
  }

  .pix-payment-modal-card {
    border-radius: 12px;
  }
}
