:root {
  --experiment-rail: clamp(84px, 18.9vw, 138px);
  --experiment-burgundy: #511d32;
  --experiment-paper: #f7f6f5;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--experiment-paper);
}

.experiment-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--experiment-rail);
  padding: 9px 5px max(10px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #e7e4e2;
  background: #fbfaf9;
  scrollbar-width: thin;
}

.experiment-logo-crop {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 2px auto 11px;
  overflow: hidden;
  border-radius: 50%;
  background: #f6e9ca;
}

.experiment-logo-crop img {
  display: block;
  width: auto;
  max-width: none;
  height: 76px;
  margin: -2px 0 0;
}

.experiment-nav {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
}

.experiment-nav-link {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 1px 5px;
  border-radius: 12px;
  color: #667085;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s ease, color .15s ease;
}

.experiment-nav-link:hover,
.experiment-nav-link:focus-visible,
.experiment-nav-link.is-active {
  color: var(--experiment-burgundy);
  background: #f5eff1;
}

.experiment-icon {
  display: grid;
  place-items: center;
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
  border-radius: 13px;
  background: #eef0f3;
}

.experiment-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experiment-whatsapp {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: auto;
  padding: 9px 4px 10px;
  border-radius: 13px;
  background: #178f4b;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
}

.experiment-whatsapp:hover,
.experiment-whatsapp:focus-visible {
  background: #11743c;
}

.experiment-whatsapp svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experiment-whatsapp small {
  font-size: 9px;
  font-weight: 600;
}

.experiment-page {
  min-width: 0;
  margin-left: var(--experiment-rail);
}

.experiment-page main {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 34px;
}

.experiment-page .welcome {
  padding: 6px 3px 15px;
}

.experiment-mode-label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0ecee;
  color: var(--experiment-burgundy);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .015em;
}

.experiment-page .welcome h1 {
  margin-bottom: 7px;
}

.experiment-page #catalog,
.experiment-page #home-extras {
  scroll-margin-top: 14px;
}

.experiment-page #basket-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.experiment-page .basket-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.experiment-page .basket-title {
  font-size: clamp(.82rem, 2.4vw, .96rem);
}

.experiment-page .card-button {
  min-height: 40px;
  padding-inline: 7px;
  font-size: clamp(.72rem, 2vw, .9rem);
}

.experiment-page .home-extra-category {
  scroll-margin-top: 14px;
}

.experiment-page .experiment-footer {
  margin: 0 auto;
  padding: 16px 8px 26px;
  color: #756d63;
  font-size: .78rem;
  text-align: center;
}

.experiment-page .site-footer {
  display: none;
}

@media (max-width: 380px) {
  :root { --experiment-rail: 78px; }
  .experiment-sidebar { padding-right: 3px; padding-left: 3px; }
  .experiment-logo-crop { width: 64px; height: 64px; }
  .experiment-logo-crop img { height: 68px; }
  .experiment-nav-link { font-size: 10px; }
  .experiment-page main { width: calc(100% - 16px); }
  .experiment-page #basket-grid { gap: 8px; }
  .experiment-page .basket-body { padding: 9px; }
}

@media (min-width: 640px) {
  .experiment-page main { width: min(1080px, calc(100% - 40px)); padding-top: 24px; }
  .experiment-page #basket-grid { gap: 16px; }
  .experiment-sidebar { padding-right: 8px; padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .experiment-nav-link,
  .experiment-checkout-button { transition: none; }
}


/* Make every custom sheet cover and block the background while open. */
.sheet-backdrop {
  inset: 0;
  z-index: 50;
  overscroll-behavior: contain;
}

.sheet {
  width: min(640px, 100%);
  max-width: 100%;
}


/* Sidebar navigation: compact square text buttons. */
.experiment-nav {
  justify-items: center;
  gap: 4px;
}

.experiment-nav-link {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: min(100%, clamp(58px, calc(var(--experiment-rail) - 12px), 66px));
  height: 48px;
  min-height: 48px;
  gap: 0;
  padding: 4px;
  border: 1px solid #e5e2e1;
  border-radius: 16px;
  background: #f0f0f2;
  color: #667085;
  font-size: 10px;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  overflow-wrap: normal;
  hyphens: none;
}

.experiment-icon {
  display: none;
}

.experiment-nav-link:hover,
.experiment-nav-link:focus-visible {
  border-color: #d9cbd0;
  background: #eee7ea;
  color: var(--experiment-burgundy);
}

.experiment-nav-link.is-active {
  border-color: var(--experiment-burgundy);
  background: var(--experiment-burgundy);
  color: #fff;
}

.experiment-sidebar-actions {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: auto;
}
.experiment-checkout-button {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: min(100%, clamp(54px, calc(var(--experiment-rail) - 20px), 64px));
  height: 62px;
  min-height: 62px;
  padding: 0;
  border: 1px solid #b71c1c;
  border-radius: 18px;
  background: #c62828;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(130, 25, 25, .24);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.experiment-checkout-button:hover {
  border-color: #a91f1f;
  background: #b52020;
  box-shadow: 0 4px 11px rgba(130, 25, 25, .3);
  transform: translateY(-1px);
}
.experiment-checkout-button:focus-visible {
  outline: 3px solid #e0bd73;
  outline-offset: 3px;
}
.experiment-checkout-icon {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.experiment-checkout-count {
  position: absolute;
  top: -6px;
  right: -6px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border: 2px solid #fbfaf9;
  border-radius: 999px;
  background: #fff;
  color: #b71c1c;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(36, 24, 20, .24);
}
.experiment-checkout-count[hidden] { display: none; }
.experiment-sidebar-actions .experiment-whatsapp { margin: 0 auto; }

.experiment-nav-link[data-experiment-nav="basket"] {
  border-color: #bf9955;
  background: #fffaf0;
}

.experiment-nav-link[data-experiment-nav="basket"].is-active {
  border-color: #e0bd73;
  background: var(--experiment-burgundy);
  color: #fff;
}

.experiment-whatsapp {
  box-sizing: border-box;
  width: min(100%, clamp(58px, calc(var(--experiment-rail) - 12px), 66px));
  height: 48px;
  min-height: 48px;
  align-content: center;
  justify-items: center;
  gap: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 6px;
  border-radius: 16px;
  font-size: 10px;
  line-height: 1.12;
  overflow-wrap: normal;
  hyphens: none;
}

.experiment-whatsapp svg {
  display: block;
  width: 16px;
  height: 16px;
}

.experiment-whatsapp small {
  display: none;
}

@media (min-width: 900px) {
  .experiment-page #basket-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .experiment-page #basket-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* A seção de ofertas fica destacada no menu e usa os mesmos cards de produto. */
.experiment-nav-link.experiment-nav-offers {
  color: #fff;
  background: #842f28;
  border-color: #842f28;
  font-weight: 800;
}
.experiment-nav-link.experiment-nav-offers .experiment-icon {
  color: #fff;
}
.experiment-nav-link.experiment-nav-offers .experiment-icon svg {
  stroke: currentColor;
}
.experiment-nav-link.experiment-nav-offers:hover,
.experiment-nav-link.experiment-nav-offers:focus-visible {
  background: #69221d;
  border-color: #69221d;
}
.experiment-section-link,
.home-extra-category-link {
  color: inherit;
  text-decoration: none;
}
.experiment-section-link:hover,
.home-extra-category-link:hover {
  color: #842f28;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public-offers {
  scroll-margin-top: 18px;
  margin: 0 0 28px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #e8d8c7;
  border-radius: 18px;
  background: #fffdf9;
}
.public-offers-heading {
  margin-bottom: 14px;
}
.public-offers-heading h2 {
  margin: 0 0 8px;
}
.public-offers-heading p:last-child {
  margin: 0;
}
.public-offers-status {
  margin: 10px 0 14px;
}
.public-offers-status[data-error="true"] {
  color: #842f28;
}
.public-offers-grid {
  margin-top: 14px;
}
#catalog,
#home-extras,
[data-home-extra-section] {
  scroll-margin-top: 18px;
}
