/* An evolution of the existing marketplace. All commercial features remain visible. */
@font-face {
  font-family: Sora;
  src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
#app-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #faf8f5;
  transition: opacity 0.25s ease;
  animation: delivery-timeout 0.2s ease 10s forwards;
}
#app-loading.al-out {
  opacity: 0;
  pointer-events: none;
}
.delivery-scene {
  width: min(900px, 98vw);
  text-align: center;
  padding-bottom: 36px;
}
.delivery-stage {
  width: 100%;
  height: auto;
  overflow: hidden;
}
.delivery-title {
  font-family: Sora, Arial, sans-serif;
  font-size: clamp(15px, 2.5vw, 21px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 8px;
  color: #1a0a02;
}
#al-status {
  display: block;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  margin: 10px 16px;
  color: #746354;
}
.delivery-progress {
  height: 3px;
  width: 120px;
  margin: 20px auto 0;
  background: #e5dcd0;
  border-radius: 4px;
  overflow: hidden;
}
.delivery-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #c41200;
  transform-origin: left;
  animation: delivery-progress 3.6s ease both;
}
.delivery-truck {
  animation: delivery-drive-truck 1.7s ease-in-out both;
}
.delivery-pickup {
  animation: delivery-drive-pickup 1.8s 0.85s ease-in-out both;
}
.delivery-moto {
  animation: delivery-drive-moto 1.8s 1.75s ease-out both;
}
.delivery-brand {
  animation: delivery-brand 3.6s ease both;
  transform-origin: 450px 88px;
}
.delivery-received {
  animation: delivery-received 3.6s ease both;
}
@keyframes delivery-drive-truck {
  0% {
    transform: translateX(-290px);
  }
  40% {
    transform: translateX(270px);
  }
  60% {
    transform: translateX(285px);
  }
  100% {
    transform: translateX(960px);
  }
}
@keyframes delivery-drive-pickup {
  0% {
    transform: translateX(-290px);
  }
  40% {
    transform: translateX(280px);
  }
  60% {
    transform: translateX(295px);
  }
  100% {
    transform: translateX(960px);
  }
}
@keyframes delivery-drive-moto {
  0% {
    transform: translateX(-230px);
  }
  60% {
    transform: translateX(540px);
  }
  100% {
    transform: translateX(565px);
  }
}
@keyframes delivery-brand {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  15%,
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes delivery-received {
  0%,
  85% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes delivery-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes delivery-timeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
#products-grid {
  gap: 14px !important;
}
#products-grid .product-card {
  border: 1px solid #e8e1d9;
  border-radius: 11px;
  box-shadow: 0 2px 6px #1a0a0206;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
#products-grid .product-card:hover {
  border-color: #c9b9a8;
  box-shadow: 0 5px 18px #1a0a0210;
}
#products-grid .product-card .img-square {
  background: #fff;
}
#products-grid .product-card button {
  border-radius: 7px;
  min-height: 32px;
}
#products-grid .product-card p.line-clamp-2 {
  font-size: 12px;
  line-height: 1.5;
}
#products-grid .product-card button.bg-brand-red {
  min-height: 36px;
}
#category-strip-wrap {
  background: #faf8f5 !important;
  border-top: 1px solid #e9e2db;
  border-bottom: 1px solid #ded5cb;
  overflow: hidden;
  max-height: 320px;
  opacity: 1;
  transition:
    max-height 0.2s ease,
    opacity 0.15s;
}
#category-strip {
  padding-top: 10px;
  padding-bottom: 10px;
}
#category-strip button {
  border-radius: 18px;
  border: 1px solid #e2d8cd;
  color: #453329;
  background: #fff;
  min-height: 30px;
}
#category-strip button.bg-brand-red {
  background: #c41200;
  color: #fff;
  border-color: #c41200;
}
#category-strip button.bg-brand-dark {
  background: #1a0a02;
  color: #fff;
  border-color: #1a0a02;
}
#category-strip .bg-brand-gold {
  background: #c9940a;
  color: #1a0a02;
  border-color: #c9940a;
}
#store-filter-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  width: 100%;
  border: 0;
  border-top: 1px solid #e9e2db;
  background: #faf8f5;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  min-height: 34px;
}
#store-filter-toggle span:first-child {
  font-weight: 400;
  color: #77675b;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#top-bar.store-scrolled #store-filter-toggle {
  display: flex;
}
#top-bar.store-scrolled:not(.store-filters-open) #category-strip-wrap {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  border: 0;
  pointer-events: none;
}
#top-bar.store-scrolled.store-filters-open
  #store-filter-toggle
  > span:last-child {
  transform: rotate(180deg);
}
#screen-vitrine > .hero-gradient {
  min-height: 165px !important;
  border-radius: 12px;
  background: linear-gradient(
    110deg,
    #240b02 0%,
    #9c1000 50%,
    #c41200 78%,
    #c9940a 110%
  );
  box-shadow: none;
}
#screen-vitrine > .hero-gradient h1 {
  font-size: clamp(23px, 3vw, 35px) !important;
  letter-spacing: -0.035em;
}
#screen-produto .rounded-2xl,
#screen-carrinho .rounded-2xl,
#screen-checkout .rounded-2xl {
  border-radius: 12px;
  box-shadow: 0 2px 12px #1a0a0206;
  border: 1px solid #eee6dd;
}
#screen-produto button.bg-brand-red,
#screen-checkout button.bg-brand-red {
  border-radius: 8px;
}
.store-local-badge {
  position: fixed;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  padding: 5px 10px;
  background: #1a0a02;
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
@media (min-width: 1024px) {
  #screen-vitrine {
    padding-top: 22px;
  }
  #products-grid {
    gap: 16px !important;
  }
  #category-strip {
    padding-inline: 28px;
  }
}
@media (max-width: 640px) {
  #products-grid {
    gap: 9px !important;
  }
  #products-grid .product-card {
    border-radius: 9px;
  }
  #screen-vitrine > .hero-gradient {
    min-height: 145px !important;
  }
  #screen-vitrine > .hero-gradient h1 {
    max-width: 86%;
  }
  #store-filter-toggle {
    padding: 6px 12px;
    min-height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app-loading * {
    animation: none !important;
  }
  #app-loading {
    transition: none;
  }
  #category-strip-wrap,
  .product-card {
    transition: none !important;
  }
}
.store-demo-confirmation {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #1a0a0270;
  display: grid;
  place-items: center;
  padding: 20px;
}
.store-demo-confirmation > div {
  background: #faf8f5;
  padding: 32px;
  border-radius: 16px;
  max-width: 460px;
  text-align: center;
}
.store-demo-confirmation h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.store-demo-confirmation p {
  font-size: 14px;
  line-height: 1.6;
}
.store-demo-confirmation button {
  background: #c41200;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 14px 24px;
  margin-top: 24px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .delivery-truck {
    transform: translateX(70px);
  }
  .delivery-pickup {
    transform: translateX(350px);
  }
  .delivery-moto {
    transform: translateX(620px);
  }
  .delivery-received {
    opacity: 1;
  }
  .delivery-progress i {
    transform: scaleX(1);
  }
}
#store-filter-toggle[hidden] {
  display: none !important;
}
.store-select {
  display: inline-block;
  color: #f5d478;
  margin-left: 5px;
  font-weight: 600;
}
/* The filter panel never changes the header or page height during scroll. */
#category-strip-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: none !important;
  box-shadow: 0 8px 14px #1a0a020a;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease;
  will-change: transform, opacity;
}
#store-filter-toggle,
#top-bar.store-scrolled #store-filter-toggle {
  display: flex;
}
#top-bar:not(.store-filters-open) #category-strip-wrap,
#top-bar.store-scrolled:not(.store-filters-open) #category-strip-wrap {
  max-height: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  border: 1px solid #ded5cb;
}
#top-bar.store-filters-open #category-strip-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#screens {
  padding-top: calc(
    var(--app-header-offset, 96px) + var(--store-filter-space, 0px)
  );
}
@media (prefers-reduced-motion: reduce) {
  #category-strip-wrap {
    transition: none;
  }
}
.variation-dialog {
  border: 1px solid #e8dfd3;
  border-radius: 18px;
  background: #faf8f5;
  color: #1a0a02;
  padding: 26px;
  width: min(960px, calc(100vw - 36px));
  max-height: 86dvh;
  overflow: auto;
  box-shadow: 0 28px 100px #1a0a0230;
  overscroll-behavior: contain;
}
.variation-dialog::backdrop {
  background: #1a0a0275;
  animation: variation-shade 0.2s ease;
}
.variation-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.variation-dialog-heading span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a6c35;
}
.variation-dialog-heading h2 {
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 7px 0;
}
.variation-dialog-heading p {
  font-size: 12px;
  color: #78695c;
}
.variation-close {
  flex: none;
  align-self: start;
  background: #fff;
  border: 1px solid #e3d8ca;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 25px;
  line-height: 1;
}
.variation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.variation-options > div {
  width: 100% !important;
  min-width: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px #1a0a0208;
}
.variation-options > div > div:last-child {
  padding: 14px;
}
.variation-options p.line-clamp-2 {
  font-size: 12px;
  line-height: 1.5;
}
.variation-options button {
  min-height: 38px;
  font-size: 12px;
}
.variation-close:focus-visible {
  outline: 3px solid #c9940a;
  outline-offset: 3px;
}
@keyframes variation-shade {
  from {
    background: transparent;
  }
  to {
    background: #1a0a0275;
  }
}
@media (min-width: 640px) {
  .variation-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .variation-dialog {
    padding: 18px;
    width: calc(100vw - 20px);
  }
  .variation-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .variation-options > div > div:last-child {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .variation-dialog::backdrop {
    animation: none;
  }
}
.variation-product-link {
  display: block;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #9b1709;
  border-bottom: 1px solid #eee6dd;
}
.variation-product-link:focus-visible {
  outline: 3px solid #c9940a;
  outline-offset: -3px;
}
html {
  scrollbar-gutter: stable;
}
@media (min-width: 640px) {
  .variation-options {
    grid-template-columns: repeat(var(--variation-columns, 3), minmax(0, 1fr));
  }
}
/* Classic breadcrumbs, independent of the collapsible filter controls. */
.store-breadcrumb{width:100%;padding:1px 0}.store-breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;list-style:none;margin:0;padding:0;font-size:12px;line-height:1.5}.store-breadcrumb li{display:flex;align-items:center;min-width:0;--breadcrumb-color:#1a0a02;color:var(--breadcrumb-color)}.store-breadcrumb li[data-depth='1']{--breadcrumb-color:#a57808}.store-breadcrumb li[data-depth='2']{--breadcrumb-color:#c41200}.store-breadcrumb li[data-depth='3']{--breadcrumb-color:#1a0a02}.store-breadcrumb a,.store-breadcrumb [aria-current]{color:var(--breadcrumb-color);text-decoration:none;overflow-wrap:anywhere}.store-breadcrumb a:hover{text-decoration:underline}.store-breadcrumb [aria-current]{font-weight:750}.store-breadcrumb-separator{color:#aa9c8d;padding:0 9px;user-select:none}.store-breadcrumb a:focus-visible{outline:2px solid #c9940a;outline-offset:3px}#category-strip:has(.store-breadcrumb){padding-top:10px;padding-bottom:10px}#modal-produto-breadcrumb{background:#faf8f5;border-bottom:1px solid #e8dfd4;padding-top:8px}

/* ─── Compras Atacado (/loja/atacado): mesmo desenho dos cards da loja ───── */
#b2b-grid {
  gap: 14px !important;
}
#b2b-grid .product-card {
  width: auto;
  border: 1px solid #e8e1d9;
  border-radius: 11px;
  box-shadow: 0 2px 6px #1a0a0206;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
#b2b-grid .product-card:hover {
  border-color: #c9b9a8;
  box-shadow: 0 5px 18px #1a0a0210;
}
#b2b-grid .product-card .img-square {
  background: #fff;
}
#b2b-grid .product-card button {
  border-radius: 7px;
}
#b2b-grid .product-card details > summary::-webkit-details-marker {
  display: none;
}
@media (max-width: 640px) {
  #b2b-grid {
    gap: 9px !important;
  }
  #b2b-grid .product-card {
    border-radius: 9px;
  }
}
