:root {
  --color-background: #f7f4ee;
  --color-surface: #fffdf8;
  --color-surface-muted: #ebe7dc;
  --color-text: #101010;
  --color-text-muted: #68645d;
  --color-primary: #050505;
  --color-accent: #b89b5e;
  --color-border: #ded8ca;
  --rose-dark: #050505;
  --rose: #1f1f1f;
  --rose-mid: #4b4b4b;
  --logo-bg: #ffffff;
  --blush: #f1f1ee;
  --paper: #f8f7f3;
  --line: #dedbd3;
  --ink: #0f0f0f;
  --muted: #6a6a6a;
  --white: #ffffff;
  --accent: #111111;
  --bg-secondary: #eeeeea;
  --shadow-soft: 0 0.9rem 2rem rgba(0, 0, 0, 0.10);
  --z-header: 100;
  --z-mobile-overlay: 9000;
  --z-mobile-menu: 9010;
}

* { box-sizing: border-box; }

/* overflow-x: clip corta o transbordo horizontal SEM criar contêiner de rolagem,
   preservando position: sticky no header (ao contrário de overflow-x: hidden). */
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f7f3 0%, var(--white) 34%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, #f8f7f3 0%, var(--white) 34%);
  display: block;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-topbar {
  position: relative;
  z-index: var(--z-header);
  padding: 0.38rem 0;
  color: rgba(255, 255, 255, 0.86);
  background: var(--color-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}

.topbar-marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 28s linear infinite;
  padding-right: 4rem;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mobile-store-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.35rem;
  min-height: 3.65rem;
  height: 3.65rem;
  padding: 0 0.9rem;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  box-shadow: 0 0.45rem 1.6rem rgba(0, 0, 0, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 280ms ease, opacity 280ms ease,
    min-height 200ms ease, height 200ms ease, box-shadow 200ms ease;
}

.mobile-store-header.is-compact {
  min-height: 3rem;
  height: 3rem;
  box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.08);
}

.mobile-store-header.is-compact .brand-logo {
  height: 2.25rem;
}

/* Âncoras internas não ficam sob o header fixo. */
[id="pronta-entrega"],
[id="sob-encomenda"] {
  scroll-margin-top: 4.75rem;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-store-header,
body.mobile-menu-open .site-topbar {
  pointer-events: none;
}

body.drawer-open .mobile-store-header {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle, .bag-link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  flex-shrink: 0;
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}
.menu-toggle:hover,
.bag-link:hover {
  background: rgba(16, 16, 16, 0.055);
  transform: translateY(-1px);
}

.menu-toggle span {
  display: block;
  width: 1.45rem;
  height: 0.125rem;
  margin: 0.16rem 0;
  background: var(--ink);
  transition: transform 280ms ease, opacity 280ms ease;
}

body.mobile-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(0.285rem) rotate(45deg);
}

body.mobile-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-0.285rem) rotate(-45deg);
}

.menu-toggle {
  grid-column: 1;
  justify-self: start;
}

.brand-centered {
  grid-column: 2;
  justify-self: center;
  display: block;
  line-height: 0;
  min-width: 0;
  text-align: center;
}

.brand-centered img {
  height: 2.8rem;
  width: auto;
  display: inline-block;
  object-fit: contain;
  max-width: 12rem;
  margin: 0 auto;
}
.brand-logo,
.brand-centered img {
  width: auto;
  height: 2.8rem;
  max-height: 3.15rem;
  margin: 0;
  object-fit: contain;
}

.desktop-nav { display: none; }

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.header-icon-link {
  display: none;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.75rem;
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-icon-link {
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}
.header-icon-link:hover {
  background: rgba(16, 16, 16, 0.055);
  transform: translateY(-1px);
}

.bag-link { position: relative; justify-self: end; }
.bag-icon { position: relative; width: 1.25rem; height: 1.35rem; border: 2px solid var(--ink); border-radius: 0.25rem 0.25rem 0.45rem 0.45rem; }
.bag-icon::before { content: ""; position: absolute; left: 0.18rem; right: 0.18rem; top: -0.55rem; height: 0.55rem; border: 2px solid var(--ink); border-bottom: 0; border-radius: 999px 999px 0 0; }
.bag-count { position: absolute; right: -0.05rem; top: 0.15rem; min-width: 1rem; min-height: 1rem; padding: 0 0.22rem; color: var(--color-primary); background: var(--color-accent); border-radius: 999px; font-size: 0.65rem; font-weight: 900; text-align: center; }

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.42);
  z-index: var(--z-mobile-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

body.mobile-menu-open .mobile-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82vw, 22rem);
  height: 100vh;
  height: 100dvh;
  z-index: var(--z-mobile-menu);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem 1.4rem;
  background: var(--color-surface);
  transform: translateX(-100%);
  transition: transform 280ms ease;
  overflow-y: auto;
  box-shadow: 1rem 0 2.8rem rgba(0, 0, 0, 0.16);
}

body.mobile-menu-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(16, 16, 16, 0.10);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.12);
  transition: background 160ms ease, transform 160ms ease;
  z-index: 1;
}

.drawer-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.drawer-brand {
  display: grid;
  place-items: center;
  padding: 2.85rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.7rem;
}
.drawer-brand img {
  width: 86px;
  height: auto;
  margin: 0;
}

.brand-centered img,
.drawer-brand img,
.admin-topbar-logo-img,
.footer-logo {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.mobile-drawer a {
  display: block;
  padding: 0.55rem 0;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 180ms ease;
}

.mobile-drawer a:hover {
  color: var(--rose-dark);
}

.mobile-drawer a:last-child {
  border-bottom: none;
}

.drawer-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  transition: color 180ms ease;
  user-select: none;
}

.drawer-expand-toggle:hover {
  color: var(--rose-dark);
}

.drawer-expand-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 220ms ease;
  margin-left: 0.5rem;
}

.drawer-expand-toggle[aria-expanded="true"] .drawer-expand-arrow {
  transform: rotate(180deg);
}

.drawer-sub-list {
  display: none;
  list-style: none;
  padding: 0.25rem 0 0.35rem 0.8rem;
  margin: 0;
}

.drawer-expand-toggle[aria-expanded="true"] + .drawer-sub-list {
  display: block;
}

.drawer-sub-list a {
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: none;
}
.site-main { flex: 1; width: min(1180px, 100%); margin: 0 auto; }

.home-banner, .catalog-banner {
  position: relative;
  min-height: 28rem;
  padding: 1rem;
  background: linear-gradient(135deg, #050505 0%, #222 48%, #f8f7f3 100%);
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.internal-banner {
  min-height: 10rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, #050505 0%, var(--rose) 60%, var(--rose-mid) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.internal-banner-compact {
  min-height: 5rem;
  padding: 1.2rem 1rem;
  justify-content: center;
}

.internal-banner h1 {
  font-size: 1.5rem;
  color: var(--white);
}
.internal-banner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.home-banner::before { content: none; }
.home-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  pointer-events: none;
}
.home-banner-copy {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.home-banner h1, .catalog-banner h1, .product-purchase-box h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.home-banner h1 { color: var(--white); font-size: 1.8rem; }
.home-banner .eyebrow { color: rgba(255,255,255,0.9); }
.home-banner p { color: rgba(255,255,255,0.92); }
.eyebrow { margin: 0; color: var(--rose-dark); font-size: 0.75rem; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; }
.primary-cta, .button, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.5rem 1.2rem;
  color: var(--white);
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 200ms ease, transform 150ms ease;
}
.primary-cta:hover, .button:hover, button[type="submit"]:hover {
  background: rgba(17, 17, 17, 0.95);
  transform: translateY(-1px);
}
.button-danger {
  background: rgba(17, 17, 17, 0.85);
}
.button-danger:hover {
  background: rgba(17, 17, 17, 0.95);
}
.admin-bottom-bar .button-danger {
  background: rgba(17, 17, 17, 0.85);
}
.admin-bottom-bar .button-danger:hover {
  background: rgba(17, 17, 17, 0.95);
}
/* ---- Brand Carousel (Compre por marcas) ---- */
.brand-carousel-wrap {
  position: relative;
}
.brand-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  padding: 0.2rem 0.1rem 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.brand-carousel::-webkit-scrollbar {
  display: none;
}
.brand-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.brand-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  aspect-ratio: 1 / 1;
  transition: transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x;
  user-select: none;
}
.brand-card:active {
  transform: scale(0.94);
}
.brand-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 200ms ease;
}

/* Setas discretas: sem fundo, sem circulo, so o icone. */
.brand-carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 150ms ease, color 150ms ease;
}
.brand-carousel-arrow:hover {
  opacity: 1;
  color: var(--ink);
}
.brand-carousel-arrow--prev {
  left: -0.4rem;
}
.brand-carousel-arrow--next {
  right: -0.4rem;
}

@media (min-width: 760px) {
  .brand-card {
    width: 8rem;
  }
  .brand-carousel {
    gap: 2rem;
  }
  /* Setas so fazem sentido com mouse/trackpad; no touch o swipe basta. */
  .brand-carousel-arrow {
    display: grid;
    place-items: center;
  }
}

@media (hover: hover) {
  .brand-card:hover .brand-card-logo {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-carousel {
    scroll-behavior: auto;
  }
  .brand-card:hover .brand-card-logo {
    transform: none;
  }
}

.showcase-section, .catalog-shell, .cart-page, .checkout-page, .confirmation-page { padding: 1rem 0.65rem 2rem; }
.compact-section-header, .catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.catalog-toolbar { flex-wrap: wrap; }
.grid-toggle {
  min-height: 2.2rem;
  padding: 0.45rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.catalog-filters { display: none; gap: 0.75rem; margin-bottom: 1rem; padding: 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.35rem; }
.catalog-filters.visible { display: flex; flex-wrap: wrap; align-items: end; }
.catalog-filters label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.catalog-filters label select { min-height: 2rem; padding: 0.3rem 0.5rem; font-size: 0.78rem; }
.catalog-filters .button { min-height: 2rem; padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.catalog-toolbar label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--muted); }
.catalog-toolbar label select { width: auto; min-height: 2rem; padding: 0.3rem 0.5rem; font-size: 0.78rem; }
.filter-trigger { min-height: 2rem; padding: 0.35rem 0.8rem; font-size: 0.78rem; color: var(--ink); background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
input, select, textarea { width: 100%; min-height: 2.75rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
form label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.82rem; font-weight: 800; }

.donna-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 0.65rem; padding: 0; margin: 0; list-style: none; }
.donna-product-grid > li { display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 0; }
.donna-product-grid > li:hover { z-index: 2; }
.product-card-shell { min-width: 0; perspective: 600px; }
.donna-product-card { display: flex; flex-direction: column; gap: 0.55rem; transition: transform 300ms ease; flex: 1; }
.donna-product-card:hover { transform: translateY(-3px); }
.product-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--blush); border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10); }
.product-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 320ms ease, transform 320ms ease; }
.product-card-image-secondary { opacity: 0; transform: scale(1.015); }
.donna-product-card:hover .product-card-image-secondary, .donna-product-card:focus-visible .product-card-image-secondary { opacity: 1; transform: scale(1); }
.donna-product-card:hover .product-card-image-primary, .donna-product-card:focus-visible .product-card-image-primary { opacity: 0; }
.catalog-media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--rose-dark); font-weight: 900; }
.product-card-sizes { position: absolute; left: 0.45rem; right: 0.45rem; bottom: 0.45rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; opacity: 1; transform: translateY(0); transition: opacity 220ms ease, transform 220ms ease; }
.product-card-sizes span, .product-card-unavailable {
  min-width: 1.6rem;
  padding: 0.2rem 0.3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.product-card-info { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-card-name { min-height: 2.2rem; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.product-card-description {
  font-size: 0.68rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-transform: none;
  font-weight: 400;
}
.product-card-price, .price, .product-detail-price { font-size: 1rem; font-weight: 950; color: var(--rose-dark); }

.product-card-price del {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
}

.promo-price {
  color: var(--accent);
}
.product-card-installment, .muted, .buy-hint { color: var(--muted); font-size: 0.78rem; }

.product-card-actions { display: flex; gap: 0.3rem; margin-top: auto; }
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 1.65rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}
.card-btn-bag {
  flex: 1;
  color: var(--white);
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.card-btn-bag:hover { background: rgba(17, 17, 17, 0.95); transform: translateY(-1px); }
.card-btn-buy-sm {
  flex: 0 0 auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--line);
}
.card-btn-buy-sm:hover { background: rgba(17, 17, 17, 0.12); color: var(--rose-dark); border-color: var(--rose); }
.plus-icon-svg { width: 0.7rem; height: 0.7rem; flex-shrink: 0; }
.bag-icon-svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.donna-product-page { display: grid; gap: 1rem; padding: 1rem 0.65rem 2rem; }
.product-thumbs { display: flex; gap: 0.4rem; overflow-x: auto; }
.product-thumbs a, .product-thumbs span { flex: 0 0 3.5rem; aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.product-thumbs a.active { border: 2px solid var(--rose-dark); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-stack { position: relative; min-height: 22rem; background: var(--paper); border: 1px solid var(--line); }
.product-gallery-frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.product-gallery-frame.active { opacity: 1; pointer-events: auto; position: relative; }
.product-gallery-frame img, .product-gallery-frame video { width: 100%; height: 100%; object-fit: cover; }
.product-purchase-box { display: grid; gap: 0.15rem; padding: 0.4rem 0; }
.product-reference { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.product-category-label { margin: 0; color: var(--rose-dark); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.product-name { font-size: 1.15rem; color: var(--ink); }
.variant-title { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.product-size-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.size-btn {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease;
}
.size-btn.selected {
    background: var(--rose-dark);
    color: var(--white);
    border-color: var(--rose-dark);
}
.size-btn-dimmed {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: auto;
}

#variant-selector { margin-top: 0.15rem; }

.product-purchase-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: stretch;
  margin-top: 0.5rem;
}
.purchase-form { margin: 0; }
.btn-add-bag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.85rem;
  min-width: 3.2rem;
  padding: 0.65rem 0.85rem;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
  white-space: nowrap;
}
.btn-add-bag:hover:not(:disabled) { background: rgba(17, 17, 17, 0.95); transform: translateY(-1px); }
.btn-add-bag:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  background: var(--rose-dark);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(5, 5, 5, 0.25);
}
.btn-buy-now:hover:not(:disabled) { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(5, 5, 5, 0.35); }
.btn-buy-now:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.bag-icon-btn { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.plus-icon-btn { width: 0.8rem; height: 0.8rem; flex-shrink: 0; }

@media (max-width: 380px) {
  .product-purchase-actions {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
  }
  .btn-add-bag {
    min-width: 2.85rem;
    padding: 0.65rem 0.75rem;
  }
  .bag-icon-btn { width: 1.15rem; height: 1.15rem; }
  .plus-icon-btn { width: 0.7rem; height: 0.7rem; }
}
.product-info-accordion { border-top: 1px solid var(--line); }
.product-info-accordion details { border-bottom: 1px solid var(--line); }
.product-info-accordion summary { padding: 1rem 0; font-weight: 850; cursor: pointer; }

.rose-panel, .empty-state-panel, .cart-panel, .checkout-panel, .confirmation-panel {
  padding: 1.1rem;
  background: var(--white);
  border-radius: 0.7rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(222,219,211,0.5);
}
.rose-panel h3 { margin-top: 0; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.store-footer { display: grid; gap: 0.8rem; padding: 1.2rem 1rem 1.5rem; color: rgba(255,255,255,0.7); background: linear-gradient(180deg, #050505 0%, var(--rose) 60%, var(--rose-mid) 100%); }
.store-footer h2 { margin: 0 0 0.25rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; }
.store-footer p, .store-footer a { display: block; margin: 0.12rem 0; font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); line-height: 1.4; }
.store-footer a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-credits { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 0.6rem; padding: 0.55rem 1rem; font-size: 0.65rem; color: var(--ink); background: linear-gradient(180deg, var(--rose-mid) 0%, #eeeeea 100%); text-align: center; }
.footer-credits a { color: var(--ink); text-decoration: none; }
.footer-credits a:hover { color: var(--rose-dark); }
.footer-credits-sep { opacity: 0.35; }
.messages { display: grid; gap: 0.5rem; padding: 0.75rem; margin: 0; list-style: none; }
.message { padding: 0.75rem; background: var(--paper); border-left: 0.3rem solid var(--rose); }
.admin-body .messages {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 0;
    gap: 0.4rem;
    pointer-events: none;
}
.admin-body .message {
    padding: 0.45rem 1rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border-left: none;
    white-space: nowrap;
    animation: toastIn 0.25s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.admin-shell { display: grid; gap: 1.25rem; padding: 1rem 0.75rem 2rem; }
.admin-sidebar {
  position: static;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(222,219,211,0.6);
}
.admin-sidebar .eyebrow { margin-bottom: 0.15rem; }
.admin-sidebar h2 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.admin-drawer-nav, .admin-nav { display: grid; gap: 0.35rem; }
.admin-nav a, .admin-nav button {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(17,17,17,0.06), rgba(0,0,0,0.03));
  border: 1.5px solid rgba(17,17,17,0.15);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
}
.admin-nav a:hover {
  background: linear-gradient(135deg, rgba(17,17,17,0.12), rgba(0,0,0,0.08));
  border-color: rgba(17,17,17,0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: var(--rose-dark);
}
.admin-nav a:active { transform: scale(0.96); }
.admin-nav a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.admin-main { display: grid; gap: 1rem; min-width: 0; }
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 3px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(222,219,211,0.5);
}
.admin-page-head .page-title {
  margin: 0;
  margin-right: auto;
  font-size: 1rem;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.admin-toolbar { position: relative; }
.admin-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(222,219,211,0.5);
}
.admin-topbar-logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; }
.admin-topbar-logo img, .admin-topbar-logo-img { width: auto; height: 36px; object-fit: contain; }
.admin-topbar-logo-img {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.admin-profile-trigger {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: 2px solid rgba(222,219,211,0.8);
  transition: all 200ms ease;
  background: linear-gradient(135deg, rgba(17,17,17,0.08), rgba(17,17,17,0.02));
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-profile-trigger:hover,
.admin-profile-trigger:focus-visible,
.admin-profile-trigger--active {
  border-color: var(--rose);
  box-shadow: 0 2px 8px rgba(17,17,17,0.18);
  transform: translateY(-1px);
}
.admin-profile-trigger:active { transform: scale(0.93); }
.admin-avatar { width: 100%; height: 100%; object-fit: cover; }
.admin-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--rose-dark);
  background: rgba(17, 17, 17, 0.12);
  user-select: none;
}
.admin-profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  padding: 0.45rem 0;
  background: var(--white);
  border: 1px solid rgba(222,219,211,0.6);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  transform-origin: top right;
}
.admin-profile-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.admin-profile-menu--closing {
  opacity: 0;
  visibility: visible;
  transform: translateY(-0.3rem) scale(0.97);
}
.admin-profile-menu li { margin: 0; }
.admin-menu-header {
  padding: 0.4rem 1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: default;
  pointer-events: none;
}
.admin-menu-divider {
  height: 1px;
  margin: 0.25rem 0.75rem;
  background: rgba(222,219,211,0.5);
}
.admin-profile-menu a,
.admin-profile-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  letter-spacing: 0.01em;
}
.admin-profile-menu a:hover,
.admin-profile-menu button:hover {
  background: linear-gradient(90deg, rgba(17,17,17,0.07), transparent);
  color: var(--rose-dark);
  padding-left: 1.25rem;
}
.admin-profile-menu button {
  font-family: inherit;
  font-weight: 400;
}
.admin-profile-menu button:hover { color: var(--accent); }

.profile-panel { background: linear-gradient(180deg, rgba(238,238,234,0.3) 0%, var(--white) 30%); }
.admin-main .rose-panel {
  background: var(--white);
  background: linear-gradient(180deg, rgba(238,238,234,0.15) 0%, var(--white) 20%);
}
.profile-layout { display: grid; gap: 2rem; align-items: start; }
.profile-avatar-section { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem 1rem 0.5rem; }
.profile-avatar-preview {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid rgba(17,17,17,0.3);
  background: linear-gradient(135deg, #eeeeea, #f8f7f3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: border-color 0.2s;
}
.profile-avatar-preview:hover { border-color: var(--rose); }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-fallback {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--rose-dark);
}
.profile-username { font-size: 0.9rem; color: var(--ink); font-weight: 700; margin: 0; }
.profile-role {
  margin: 0;
  font-size: 0.7rem;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.profile-form { min-width: 0; }

.file-upload-field { margin-bottom: 1.2rem; }
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid rgba(222,219,211,0.7);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--white);
}
.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.file-upload-fake {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-upload-btn {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  background: rgba(17,17,17,0.1);
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border-left: 1.5px solid rgba(222,219,211,0.7);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.file-upload-btn:hover {
  background: rgba(17,17,17,0.18);
  color: var(--accent);
}
.file-upload-btn:active { background: rgba(17,17,17,0.25); }

.home-banner-admin-panel {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

.admin-section-heading h3,
.home-banner-admin-slot h4 {
  margin: 0;
}

.admin-section-heading p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.home-banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-banner-admin-slot {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
}

.home-banner-admin-preview {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #050505 0%, #191815 48%, #d9d0bd 100%);
  color: var(--white);
  text-align: center;
}

.home-banner-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-save-btn {
  width: 100%;
  min-height: 2.6rem;
  font-weight: 700;
  border-radius: 0.6rem;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

/* ===== Gerenciador de banners da home (tela "Meu perfil") ===== */
.banner-manager {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}
.banner-manager-head h3 {
  margin: 0 0 0.3rem;
}
.banner-manager-head .form-help {
  margin: 0;
}
.banner-cards {
  display: grid;
  gap: 1rem;
}
.banner-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.banner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.banner-card-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.banner-card-pos {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
}
.banner-card-state {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.banner-card-state.is-on {
  background: rgba(22, 120, 60, 0.12);
  color: #16783c;
}
.banner-card-state.is-off {
  background: rgba(17, 17, 17, 0.08);
  color: var(--muted);
}
.banner-card-remove {
  border: 0;
  background: none;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b3261e;
  text-decoration: underline;
}
.banner-card-remove:hover {
  color: #7f1710;
}

.banner-form {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}
.banner-form--new {
  padding: 1rem;
  border: 1px dashed rgba(17, 17, 17, 0.25);
  border-radius: 0.9rem;
}
.banner-form--new h4 {
  margin: 0;
}

.banner-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.banner-media {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.banner-media-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.banner-media-label em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.banner-thumb {
  aspect-ratio: 16 / 7;
  border-radius: 0.55rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}
.banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-thumb {
  width: 4.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 0.55rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
}
.brand-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Moldura neutra e uniforme: os arquivos de logo chegam com fundos
   diferentes entre si (preto, branco, transparente...); o quadro padroniza
   tamanho e fundo pra listagem ficar consistente independente do arquivo. */
.brand-list-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-right: 0.45rem;
  overflow: hidden;
  vertical-align: middle;
}
.brand-list-logo-frame img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.banner-file {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.banner-file-name {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.banner-file-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.banner-file input[type="file"] {
  display: none;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.banner-field {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  min-width: 0;
}
.banner-field > span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}
.banner-field--full {
  grid-column: 1 / -1;
}
.banner-field--sm {
  max-width: 8rem;
}
.banner-field input,
.banner-field select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}
.banner-field input:focus,
.banner-field select:focus {
  outline: 2px solid rgba(17, 17, 17, 0.4);
  outline-offset: 1px;
}

.banner-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}
.banner-form-foot .button {
  min-height: 2.4rem;
}
.banner-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.banner-check input {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .banner-media-row,
  .banner-grid {
    grid-template-columns: 1fr;
  }
  .banner-field--sm {
    max-width: none;
  }
}
.field-help { display: block; font-size: 0.75rem; color: #888; margin-top: 0.2rem; }
.field-help ul { margin: 0.2rem 0 0 1rem; padding: 0; }
.field-help li { margin-bottom: 0.1rem; }
.admin-search-form { display: flex; gap: 0.4rem; align-items: center; }
.admin-search-form input[type="search"] {
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  border: 1.5px solid rgba(222,219,211,0.7);
  border-radius: 0.5rem;
  min-width: 13rem;
  background: var(--white);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.admin-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}
.admin-editor-grid { display: grid; gap: 1rem; }
.admin-section-full, .admin-product-list { grid-column: 1 / -1; }
.admin-section-main { grid-column: 1; }
.admin-section-side { grid-column: 2; }

.admin-form input:not([type="file"]):not([type="submit"]):not([type="checkbox"]),
.admin-form select,
.admin-form textarea {
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  border: 1.5px solid rgba(222,219,211,0.7);
  border-radius: 0.5rem;
  background: var(--white);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  width: 100%;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}
.admin-form input[type="file"] { border: none; padding: 0; min-height: auto; }
.admin-form label:not(.toggle-switch):not(.file-upload-btn):not([for]) {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-form textarea { min-height: 4.5rem; }
.admin-form p { margin: 0 0 0.6rem; }

.admin-form-row { display: flex; gap: 0.75rem; margin: 0 0 0.6rem; }
.admin-form-col { flex: 1; min-width: 0; }
.admin-form-col label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; }

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.admin-media-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--white);
    border: 1px solid var(--line);
}
.admin-media-card .admin-media-preview {
    min-height: 0;
    aspect-ratio: 1;
}
.admin-media-card .admin-media-preview img,
.admin-media-card .admin-media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-media-card .admin-card-copy {
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    padding: 0;
    display: flex;
    gap: 0.2rem;
}
.admin-media-card .admin-badge {
    padding: 0.15rem 0.35rem;
    font-size: 0.6rem;
    color: var(--ink);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}
.admin-media-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.2rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s;
}
.admin-media-card:hover .admin-media-actions,
.admin-media-card:focus-within .admin-media-actions { opacity: 1; }
.admin-media-card.media-dragging {
    opacity: 0.45;
}
.admin-media-card.media-drag-over {
    border: 2px dashed var(--rose-dark);
}
.media-sort-order {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    z-index: 1;
}
.admin-media-actions button {
    padding: 0.15rem 0.4rem;
    border: none;
    border-radius: 3px;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.admin-media-actions button:hover { background: var(--white); }
.admin-media-actions button:last-child { color: var(--rose-dark); }

.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.stock-grid label { gap: 0.15rem; }
.stock-grid label span { font-size: 0.7rem; }
.stock-grid input { padding: 0.35rem 0.5rem; min-height: 2rem; font-size: 0.78rem; }

.stock-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 0.5rem;
}
.stock-matrix-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-align: center;
}
.stock-matrix-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.stock-matrix-item input {
    width: 100%;
    min-height: 1.8rem;
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
    text-align: center;
}

.admin-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  color: var(--rose-dark);
  background: rgba(17,17,17,0.08);
  border: 1px solid rgba(17,17,17,0.15);
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.product-list-card {
  overflow: hidden;
  display: grid;
  background: var(--white);
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(222,219,211,0.5);
  transition: box-shadow 200ms ease, transform 180ms ease;
}
.product-list-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.product-list-media { min-height: 5rem; display: grid; place-items: center; background: var(--paper); }
.product-list-media img, .product-list-media video { width: 100%; height: 100%; object-fit: cover; }
.product-list-body { display: grid; gap: 0.2rem; padding: 0.35rem; }
.product-list-body h2 { margin: 0; font-size: 0.7rem; font-weight: 800; }
.product-list-body .eyebrow { font-size: 0.65rem; letter-spacing: 0.08em; }
.product-list-body .price { margin: 0; font-size: 0.72rem; font-weight: 700; color: var(--rose-dark); }
.product-stock-info {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.58rem;
    color: var(--muted);
}
.product-stock-info .stock-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-stock-chip {
    display: inline-block;
    padding: 0.06rem 0.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 0.56rem;
    font-weight: 600;
    white-space: nowrap;
}
.admin-product-list { display: grid; gap: 0.5rem; }

.stock-list { display: grid; gap: 0.75rem; }
.stock-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--white);
  border-radius: 0.6rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(222,219,211,0.5);
  transition: box-shadow 180ms ease;
}
.stock-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.07); }
.stock-thumb { width: 3.5rem; height: 3.5rem; border-radius: 0.25rem; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.stock-thumb img, .stock-thumb video { width: 100%; height: 100%; object-fit: cover; }
.stock-thumb-fallback { font-size: 0.75rem; font-weight: 700; color: var(--rose); text-transform: uppercase; }
.stock-info { display: grid; gap: 0.2rem; min-width: 0; }
.stock-info strong { font-size: 0.9rem; }
.stock-meta { font-size: 0.75rem; color: var(--muted); }
.stock-variants { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.stock-chip { display: inline-block; padding: 0.15rem 0.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
.stock-chip--zero { color: var(--rose-dark); background: rgba(17, 17, 17, 0.08); border-color: rgba(17, 17, 17, 0.25); }
.stock-chip--low { color: var(--rose-mid); background: rgba(75, 75, 75, 0.06); border-color: rgba(75, 75, 75, 0.2); }

.finance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; }
.finance-card {
  padding: 1.1rem;
  background: var(--white);
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(222,219,211,0.5);
  display: grid;
  gap: 0.25rem;
}
.finance-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.finance-value { font-size: 1.4rem; font-family: Georgia, serif; color: var(--rose-dark); }
.finance-value--hidden {
  filter: blur(0.45rem);
  user-select: none;
  transition: filter 0.15s;
}
.finance-value-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.eye-toggle {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s;
  position: relative;
}
.eye-toggle::before {
  content: "👁";
  font-size: 0.85rem;
  line-height: 1;
}
.eye-toggle:hover { opacity: 0.8; }
.finance-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.finance-filter-group {
  display: grid;
  gap: 0.2rem;
}
.finance-filter-group label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.finance-filter select {
  min-height: 2.35rem;
  min-width: 6rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  border: 1.5px solid rgba(222,219,211,0.7);
  border-radius: 0.5rem;
  background: var(--white);
}
.finance-filter .button {
  min-height: 2.35rem;
  align-self: flex-end;
}
.finance-period-header { margin: 0.75rem 0; font-size: 0.9rem; }
.finance-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.finance-status-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid rgba(222,219,211,0.5);
  border-radius: 0.55rem;
  font-size: 0.8rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  text-decoration: none;
  color: var(--ink);
}
.finance-status-chip:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  border-color: var(--rose);
}
.finance-status-chip strong { margin-left: auto; font-size: 0.9rem; color: var(--rose-dark); }
.status-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0; }
.status-dot--paid { background: #050505; }
.status-dot--canceled { background: #1f1f1f; }
.status-dot--waiting_payment { background: #4b4b4b; }
.status-dot--preparing { background: #6a6a6a; }
.status-dot--shipped { background: #8a8a8a; }
.status-dot--picked_up { background: #dedbd3; }

.toggle-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.25rem 0;
  padding: 0;
}
.product-list-body .toggle-btn { flex: 1; justify-content: center; min-height: 1.45rem; padding: 0.12rem 0.25rem; font-size: 0.6rem; border-radius: 4px; }
.toggle-form { margin: 0; display: inline-flex; }
.admin-bottom-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.65rem;
  border: 1px solid rgba(222,219,211,0.5);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 50;
}
.admin-bottom-bar .button,
.admin-bottom-bar .primary-cta {
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    min-height: 2rem;
    width: auto;
}
.section-submit { margin-top: 0.75rem; }
.admin-form-actions .section-submit { margin-top: 0; }

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.admin-form-actions .button {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  min-height: 2.2rem;
  background: var(--white);
  border: 1.5px solid rgba(222,219,211,0.6);
  border-radius: 0.5rem;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.admin-form-actions .button:hover {
  background: rgba(17,17,17,0.05);
  border-color: var(--rose);
  color: var(--rose-dark);
}

.status-form { display: grid; gap: 0.5rem; }
.total-line { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; }

.dashboard-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.85rem; }
.kpi-card {
  padding: 1.15rem;
  background: var(--white);
  border-radius: 0.7rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(222,219,211,0.5);
  display: grid;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 180ms ease;
}
.kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--rose-mid));
  opacity: 0.7;
}
.kpi-card--alert {
  border-color: rgba(17,17,17,0.18);
  background: linear-gradient(180deg, rgba(17,17,17,0.03), var(--white));
}
.kpi-card--alert::before { background: var(--accent); opacity: 0.8; }
.kpi-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.kpi-value { font-size: 1.6rem; font-family: Georgia, serif; color: var(--rose-dark); font-weight: 700; }
.kpi-compare { font-size: 0.7rem; color: var(--muted); }

.dashboard-stock-alerts { display: grid; gap: 0.5rem; }
.dash-stock-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  border: 1px solid rgba(222,219,211,0.5);
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms ease;
}
.dash-stock-item:hover { border-color: var(--rose); box-shadow: 0 3px 10px rgba(0,0,0,0.08); transform: translateX(2px); }
.dash-stock-item--low { border-left: 3.5px solid var(--rose-mid); }
.dash-stock-item--zero { border-left: 3.5px solid var(--accent); background: rgba(17,17,17,0.03); }
.dash-stock-thumb { width: 2.6rem; height: 2.6rem; border-radius: 0.25rem; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.dash-stock-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-stock-info { display: grid; gap: 0.1rem; min-width: 0; }
.dash-stock-info strong { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-stock-info span { font-size: 0.72rem; color: var(--muted); }
.text-danger { color: var(--rose); font-weight: 800; }
.dash-stock-arrow { font-size: 1rem; color: var(--muted); }
.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-height: 1.2rem;
    line-height: 1.3;
    background: var(--bg-secondary);
    color: var(--muted);
}
.toggle-btn.toggle-on { color: #fff; background: var(--accent); border-color: var(--accent); }
.toggle-btn.toggle-off { color: var(--muted); background: var(--bg-secondary); }
.toggle-btn:hover { opacity: 0.85; }

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid rgba(222,219,211,0.6);
  border-radius: 0.5rem;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.toggle-switch:hover { border-color: rgba(17,17,17,0.3); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.toggle-switch:has(input:focus-visible) {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: relative;
    width: 2.2rem;
    height: 1.2rem;
    background: #ccc;
    border-radius: 999px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-slider::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.12rem;
    width: 0.96rem;
    height: 0.96rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(1rem); }
.toggle-switch:has(input:checked) {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}
.toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.card-actions {
    display: flex;
    gap: 0.25rem;
}
.card-actions .button,
.card-actions button,
.card-actions .button-ghost,
.card-actions .button-danger {
    flex: 1;
    min-height: 1.45rem;
    padding: 0.12rem 0.25rem;
    font-size: 0.6rem;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.card-actions form { display: flex; flex: 1; }
.card-actions form button { width: 100%; }

/* ---- Category list chips ---- */
.category-list { display: flex; flex-direction: column; gap: 0; }
/* Flex com wrap em vez de grid de colunas fixas: se a linha nao couber
   (painel estreito, muitos badges), os itens quebram pra proxima linha
   em vez de se espremer/sobrepor. */
.category-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid rgba(222,219,211,0.4);
}
.category-list-item > * { min-width: 0; }
.category-list-item:last-child { border-bottom: none; }
.category-list-heading {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(222,219,211,0.6);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.category-list-heading ~ .category-list-item { border-bottom-color: transparent; }
.category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0.3rem;
  white-space: nowrap;
  border: 1px solid rgba(222,219,211,0.5);
  background: var(--white);
  color: var(--ink);
}
.name-chip {
  flex: 1 1 9rem;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-chip { color: var(--muted); font-size: 0.65rem; }
.active-chip { background: rgba(17,17,17,0.06); color: #050505; border-color: rgba(17,17,17,0.15); }
.inactive-chip { background: rgba(75,75,75,0.05); color: #4b4b4b; border-color: rgba(75,75,75,0.12); }
/* Seletor composto (.category-chip.edit-chip / .category-chip.delete-chip)
   de propósito: existe um `button[type="submit"] { ... }` global (pílula
   preta grande, ~linha 471 e de novo ~linha 4291) com especificidade
   (0,1,1) — maior que uma classe solta (0,1,0). Como .delete-chip é um
   <button type="submit">, aquele reset genérico sempre vencia o nosso,
   nao importa a ordem no arquivo. .category-chip.edit-chip/.delete-chip
   tem especificidade (0,2,0), que bate (0,1,1) em qualquer ordem.
   Resetamos aqui tambem min-height/border-radius/text-transform pra
   garantir que nada daquela regra global sobreviva. */
.category-chip.edit-chip,
.category-chip.delete-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: transparent;
  border: 1.5px solid rgba(17,17,17,0.25);
  border-radius: 0.3rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  transition: all 0.15s;
  /* Reset de <button>: garante o mesmo box do <a> "Editar". */
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin: 0;
}
.category-chip.edit-chip {
  color: var(--rose-dark);
  /* Empurra pra direita quando e o unico item de acao na linha (ex: Categorias,
     que nao tem Excluir). Dentro de .category-list-actions nao tem efeito,
     ja que o container em si ja fica encostado a direita. */
  margin-left: auto;
}
.category-chip.edit-chip:hover { background: rgba(17,17,17,0.08); border-color: var(--rose); }
.category-chip.delete-chip {
  color: #b3261e;
  border-color: rgba(179,38,30,0.35);
}
.category-chip.delete-chip:hover { background: rgba(179,38,30,0.08); border-color: #b3261e; }
.category-list-heading .category-chip {
  background: transparent;
  border-color: transparent;
  font-weight: 800;
  color: var(--muted);
}
.category-list-heading .edit-chip { margin-left: auto; border-color: transparent; }
/* O bloco de acoes nunca encolhe/clipa: se nao couber ao lado dos badges,
   quebra pra linha de baixo por inteiro (fica alinhado a direita nela). */
.category-list-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.category-list-actions form { display: contents; }

/* ---- Toast banner ---- */
#toast-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
}
.toast-banner {
    padding: 0.45rem 1rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}
.toast-banner.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.variant-list { display: grid; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.variant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: var(--white);
    border: 1px solid rgba(17,17,17,0.18);
    border-radius: 0.4rem;
    font-size: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.variant-item:hover { border-color: rgba(17,17,17,0.35); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.variant-info { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.variant-detail { font-size: 0.73rem; color: var(--ink); font-weight: 500; }
.variant-label { font-size: 0.65rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 0.15rem; }
.variant-stock {
    background: linear-gradient(135deg, rgba(17,17,17,0.1), rgba(17,17,17,0.05));
    color: var(--rose-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(17,17,17,0.15);
    font-size: 0.68rem;
    font-weight: 700;
}
.variant-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #999;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.variant-delete-btn:hover { background: rgba(0,0,0,.06); color: var(--danger); }

.cart-list, .detail-list, .admin-list { display: grid; gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.cart-list li, .detail-list li, .admin-list li { display: grid; gap: 0.5rem; padding: 0.85rem; background: var(--white); border: 1px solid var(--line); }
.order-item-row { display: grid !important; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; }
.order-item-thumb { width: 3rem; height: 3rem; border-radius: 0.25rem; object-fit: cover; }
.order-item-thumb-fallback { width: 3rem; height: 3rem; border-radius: 0.25rem; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--rose); text-transform: uppercase; }
.order-item-info { display: grid; gap: 0.1rem; min-width: 0; }
.order-item-info strong { font-size: 0.82rem; }
.order-item-info small { font-size: 0.72rem; color: var(--muted); }
.order-item-price { font-weight: 800; font-size: 0.85rem; color: var(--rose-dark); white-space: nowrap; }

@media (min-width: 761px) {
  .mobile-store-header {
    height: 4.2rem;
    padding: 0 1rem;
  }
  .home-banner { min-height: 24rem; }
  .donna-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .product-card-sizes { opacity: 0; transform: translateY(0.5rem); }
  .donna-product-card:hover .product-card-sizes, .donna-product-card:focus-visible .product-card-sizes { opacity: 1; transform: translateY(0); }
  .donna-product-page { grid-template-columns: 5rem minmax(0, 1.2fr) minmax(20rem, 0.8fr); align-items: start; padding: 2rem 1.4rem 3rem; }
  .product-thumbs { flex-direction: column; overflow: visible; }
  .product-purchase-box { position: sticky; top: 5rem; }
  .admin-shell { grid-template-columns: minmax(12rem, 0.22fr) minmax(0, 1fr); padding: 1.4rem; }
  .admin-sidebar { position: sticky; top: 5rem; }
  .admin-editor-grid { grid-template-columns: 3fr 2fr; }
  .admin-section-full, .admin-product-list { grid-column: 1 / -1; }
  .admin-section-main { grid-column: 1; }
  .admin-section-side { grid-column: 2; }
  .admin-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .store-footer { grid-template-columns: repeat(3, 1fr); }
}

.social-floats {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.social-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.14);
  transition: transform 150ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
.social-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.22);
}
.social-float svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--white);
}
.social-float--whatsapp {
  background: rgba(17, 17, 17, 0.72);
}
.social-float--whatsapp:hover {
  background: rgba(17, 17, 17, 0.95);
}
.social-float--instagram {
  background: linear-gradient(135deg, #050505 0%, #222 48%, #4b4b4b 100%);
  opacity: 0.72;
}
.social-float--instagram:hover {
  opacity: 1;
}
.social-float--facebook {
  background: rgba(75, 75, 75, 0.72);
}
.social-float--facebook:hover {
  background: rgba(75, 75, 75, 0.95);
}

.admin-body .social-floats {
  display: none;
}

.admin-body .site-topbar,
.admin-body .mobile-store-header,
.admin-body .mobile-drawer,
.admin-body .mobile-drawer-overlay,
.admin-body .store-footer {
  display: none;
}
.admin-body .site-main {
  width: 100%;
  margin: 0;
  flex: none;
  padding-top: 2.75rem;
}

@media (max-width: 760px) {
  .catalog-shell, .internal-banner, .store-footer, .footer-credits { max-width: 100%; overflow-x: clip; }
  .button, button:not(.card-btn):not(.size-btn), .primary-cta { width: 100%; }
  .size-btn { width: auto; min-width: 2rem; }
  .admin-sidebar .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { padding: 0.75rem 0.5rem 2rem; gap: 1rem; max-width: 100%; }
  .admin-page-head { position: static; }
  .admin-main { min-width: 0; }
  .admin-section-main, .admin-section-side, .admin-section-full, .admin-product-list { grid-column: 1 / -1 !important; min-width: 0; }
  .admin-form-row { flex-direction: column; gap: 0.5rem; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-bottom-bar { flex-direction: column; justify-content: stretch; }
  .admin-bottom-bar .button, .admin-bottom-bar .primary-cta { width: 100%; }
  .slide-column { max-height: 14rem; }
  .slide-showcase { padding: 0.65rem 0.4rem 1rem; gap: 0.35rem; }
  .slide-showcase::before { inset: 0.35rem 0.25rem 0.7rem; }
  .rose-panel { width: 100%; min-width: 0; max-width: 100%; overflow: visible; padding: 0.65rem; }
  .sereias-admin-table {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    white-space: nowrap;
    scrollbar-width: thin;
    border-radius: 0;
  }
  .sereias-admin-table table {
    width: max-content;
    min-width: 900px;
    table-layout: fixed;
    border-collapse: collapse;
  }
  .sereias-admin-table thead th {
    padding: 0.55rem 1.2rem;
    font-size: 0.62rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .sereias-admin-table tbody td {
    padding: 0.5rem 1.2rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .sereias-admin-table .col-id { min-width: 240px; width: 240px; overflow: hidden; text-overflow: ellipsis; }
  .sereias-admin-table .col-name { min-width: 240px; width: 240px; }
  .sereias-admin-table .col-pay { min-width: 80px; }
  .sereias-admin-table .col-status { min-width: 110px; }
  .sereias-admin-table .col-total { min-width: 90px; }
  .sereias-admin-table .col-date { min-width: 120px; }
  .track-input-row { flex-direction: column; }
  .track-submit { width: 100%; }
  .sereias-order-item { flex-wrap: wrap; }
  .sereias-order-price { min-width: auto; text-align: left; }
  .sereias-order-line-total { min-width: auto; text-align: left; }
  .checkout-item-row { flex-wrap: wrap; }
  .checkout-item-price { min-width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- Variant drawer ---- */
.variant-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

body.variant-drawer-open .variant-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.variant-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--white);
  z-index: 1210;
  transform: translateX(100%);
  transition: transform 280ms ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.variant-drawer-open .variant-drawer {
  transform: translateX(0);
}

.variant-drawer-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  z-index: 1;
}

.variant-drawer-body {
  flex: 1;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.variant-drawer-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.variant-drawer-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.variant-drawer-price {
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--rose-dark);
}

.variant-drawer-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: var(--blush);
}

.variant-drawer-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.variant-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.variant-option-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.variant-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.variant-drawer-footer {
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.drawer-action-row { display: flex; align-items: stretch; gap: 0.5rem; }
.drawer-action-row .btn-bag-plus {
  flex: 0 0 3.1rem;
  width: 3.1rem;
  min-width: 3.1rem;
  max-width: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.75rem;
  padding: 0;
  color: var(--white);
  background: var(--color-primary);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.drawer-action-row .btn-bag-plus:disabled { opacity: 0.45; cursor: not-allowed; }
.drawer-action-row .btn-bag-plus[data-loading="true"] { opacity: 0.7; }
.drawer-action-row .bag-icon-md { width: 1.05rem; height: 1.05rem; }
.drawer-action-row .plus-icon-sm { width: 0.62rem; height: 0.62rem; }
.drawer-action-row .btn-buy-sm {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  color: var(--white);
  background: var(--color-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

/* ---- Toast ---- */
.toast-message {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 2000;
  animation: toast-in 0.3s ease;
}

.toast-error {
  background: #1f1f1f;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .variant-drawer,
  .variant-drawer-overlay {
    transition-duration: 0.001ms !important;
  }
  .toast-message {
    animation-duration: 0.001ms !important;
  }
}

/* ---- Cart ---- */
.cart-panel {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-inner {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.cart-thumb {
  width: 3.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: var(--blush);
}

.cart-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.cart-item-body strong {
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 800;
}

.cart-meta {
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 600;
}

.cart-price {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--rose-dark);
}

/* Quantity controls */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cart-quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.qty-btn {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 7px;
  background: var(--paper);
  color: var(--rose-dark);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  border-color: var(--rose-dark);
  background: var(--blush);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-input {
  width: 2rem;
  height: 1.65rem;
  text-align: center;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

@media (max-width: 620px) {
  .cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cart-item-qty {
    width: 100%;
    padding-left: 4.15rem;
    justify-content: space-between;
  }
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove-btn {
  margin-left: auto;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 200ms ease;
}

.cart-remove-btn:hover {
  background: rgba(17, 17, 17, 0.08);
}

.cart-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  text-align: right;
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-empty {
  text-align: center;
  padding: 2rem 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-page h1, .checkout-page h1, .confirmation-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---- Confirmation ---- */
.confirmation-hero {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(160deg, #f8f7f3 0%, #eeeeea 40%, #fff 100%);
  border: 1.5px solid rgba(17,17,17,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  border-radius: var(--panel-radius);
}
.confirmation-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-dark);
}
.confirmation-title {
  margin: 0;
  font-family: "Courier New", "SF Mono", "Fira Code", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.confirmation-date {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.confirmation-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}
.confirmation-status {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.confirmation-status.status-waiting_payment { background: #eeeeea; color: #4b4b4b; border: 1.5px solid #dedbd3; }
.confirmation-status.status-paid { background: #f8f7f3; color: #050505; border: 1.5px solid #dedbd3; }
.confirmation-status.status-preparing { background: #eeeeea; color: #1f1f1f; border: 1.5px solid #dedbd3; }
.confirmation-status.status-shipped { background: #f8f7f3; color: #4b4b4b; border: 1.5px solid #dedbd3; }
.confirmation-status.status-picked_up { background: #ffffff; color: #050505; border: 1.5px solid #dedbd3; }
.confirmation-status.status-canceled { background: #eeeeea; color: #1f1f1f; border: 1.5px solid #4b4b4b; }
.confirmation-thanks {
  margin: 0.5rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rose-dark);
  letter-spacing: 0.01em;
  opacity: 0.85;
}
.confirmation-warning {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--rose-dark);
  letter-spacing: 0.01em;
}
.confirmation-summary {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.confirmation-payment {
  font-size: 0.72rem;
  color: var(--muted);
}
.confirmation-payment strong { color: var(--ink); font-weight: 700; }
.confirmation-installments {
  font-size: 0.68rem;
  color: var(--rose);
  font-weight: 600;
  margin-left: 0.3rem;
}
.confirmation-payment-msg {
  margin: 0.3rem 0 0.1rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}
.pix-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem auto 0;
  max-width: 320px;
}
.pix-qr-code {
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  background: #fff;
  width: 160px;
  height: 160px;
}
.pix-copy-row {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  align-items: center;
}
.pix-copy-input {
  flex: 1;
  font-size: 0.58rem;
  font-family: monospace;
  padding: 0.3rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--warm-50);
  color: var(--ink);
  resize: none;
  user-select: all;
  height: 2.6em;
  white-space: nowrap;
  overflow-x: auto;
}
.pix-copy-btn {
  flex-shrink: 0;
  font-size: 0.65rem;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.track-pix h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--rose-dark);
}
.track-pix-deadline {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}
.track-pix-deadline strong {
  color: var(--rose-dark);
  font-weight: 700;
}
.track-pix-deadline.expired {
  color: var(--danger);
}
.track-pix-expired {
  padding: 0.6rem 0.8rem;
}
.track-pix-expired p {
  margin: 0;
  font-size: 0.72rem;
}
.confirmation-total {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  text-align: right;
}
.confirmation-total strong {
  font-size: 1.15rem;
  color: var(--rose-dark);
  font-weight: 900;
}
.confirmation-infobox {
  margin: 0.35rem 0 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(160deg, rgba(17,17,17,0.07) 0%, rgba(0,0,0,0.03) 50%, rgba(255,255,255,0.6) 100%);
  border: 1.5px solid rgba(17,17,17,0.13);
  border-radius: var(--panel-radius);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  text-align: center;
}
.confirmation-infobox h3 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.confirmation-infobox p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}
.confirmation-infobox p + p { margin-top: 0.3rem; }

.cart-actions {
  display: grid;
  gap: 0.5rem;
}

.button-ghost {
  background: transparent;
  color: var(--rose-dark);
  border: 1px solid var(--rose);
  font-size: 0.7rem;
  min-height: 2rem;
  padding: 0.35rem 0.9rem;
}

.button-ghost:hover {
  background: var(--blush);
  transform: translateY(-1px);
}

/* ---- Checkout ---- */
.checkout-item-list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.checkout-item-row:last-child {
  border-bottom: none;
}

.checkout-thumb {
  width: 3.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--blush);
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.checkout-item-info strong {
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 800;
}

.checkout-item-desc {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: italic;
}

.checkout-item-meta {
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 600;
}

.checkout-item-qty {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.checkout-item-price {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--rose-dark);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.checkout-form .form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-row-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
}
.form-field input.error, .form-field textarea.error, .form-field select.error { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(17,17,17,0.15); }
.field-error { font-size: 0.65rem; color: var(--rose); font-weight: 600; margin-top: -0.15rem; }

.pickup-info-box {
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(17,17,17,0.08), rgba(0,0,0,0.05));
    border: 1.5px solid rgba(17,17,17,0.2);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
}
.pickup-info-box strong { display: block; font-size: 0.72rem; color: var(--rose-dark); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
.pickup-info-box p { margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--ink); line-height: 1.45; }
.pickup-info-box p:last-child { margin-bottom: 0; }

.payment-info {
  margin-top: 0.25rem;
}
.payment-info-pix p,
.payment-info-card p.credit-card-note {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--rose-dark);
  line-height: 1.4;
}
.installment-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.installment-row .form-field {
  max-width: 5rem;
}
.installment-hint {
  font-size: 0.62rem;
  font-style: italic;
  color: var(--rose-dark);
  white-space: nowrap;
  margin-top: 0.9rem;
}

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

.radio-group {
  display: flex;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.radio-group > div {
  display: inline-flex;
}
.radio-group label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
  white-space: nowrap;
}
.radio-group label:hover { background: var(--blush); border-color: var(--rose); color: var(--rose-dark); }
.radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.radio-group label:has(input:checked) {
  background: var(--blush);
  border-color: var(--rose);
  color: var(--rose-dark);
  box-shadow: inset 0 0 0 1px var(--rose);
}

/* ===== Opções de frete (mesma linguagem visual dos pills de pagamento) ===== */
.shipping-options-field {
  margin-bottom: 0.4rem;
}
.shipping-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.shipping-options {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
.shipping-options:not(:empty) {
  padding-bottom: 0.2rem;
}
.shipping-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.checkout-form .shipping-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  pointer-events: none;
}
.shipping-option-mark {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--rose-mid);
  border-radius: 999px;
  background: var(--paper);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.shipping-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.shipping-option-carrier {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  color: var(--ink);
}
.shipping-option-service {
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--muted);
}
.shipping-option-price {
  margin-left: auto;
  padding-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--rose-dark);
}
.shipping-option:hover {
  border-color: var(--rose);
  background: var(--paper);
}
.shipping-option:has(input:focus-visible) {
  outline: none;
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.shipping-option:has(input:checked) {
  border-color: var(--rose);
  background: var(--blush);
  box-shadow: inset 0 0 0 1px var(--rose);
}
.shipping-option:has(input:checked) .shipping-option-mark {
  border-color: var(--rose-dark);
  box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 1rem var(--rose-dark);
}
@media (prefers-reduced-motion: reduce) {
  .shipping-option,
  .shipping-option-mark {
    transition: none;
  }
}

.form-label {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 0.85rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.checkout-form textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  margin-top: 0.8rem;
  min-height: 2.8rem;
  font-size: 0.9rem;
}

@media (min-width: 761px) {
  .checkout-form .form-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---- Catalog filters collapsed ---- */
.catalog-filters {
  display: none;
  gap: 0.65rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
}

.filter-trigger:hover {
  background: var(--blush);
  color: var(--rose-dark);
}

.filter-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.catalog-filters select {
  min-height: 2.2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.78rem;
  background: var(--white);
}

.catalog-filters button,
.catalog-filters .button {
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  border-radius: 999px;
}

/* ---- Admin: modern table ---- */
.sereias-admin-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  background: var(--white);
}
.sereias-admin-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.sereias-admin-table thead th {
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.6rem 0.7rem;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.sereias-admin-table thead th.col-id { width: 10%; }
.sereias-admin-table thead th.col-name { width: 18%; }
.sereias-admin-table thead th.col-pay { width: 16%; }
.sereias-admin-table thead th.col-status { width: 16%; }
.sereias-admin-table thead th.col-total { width: 11%; }
.sereias-admin-table thead th.col-items { width: 7%; }
.sereias-admin-table thead th.col-date { width: 12%; }
.sereias-admin-table tbody td {
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(222,219,211,0.5);
  vertical-align: middle;
}
.sereias-admin-table tbody tr:hover {
  background: rgba(238,238,234,0.18);
}
.sereias-admin-table .col-id {
  font-weight: 700;
  color: var(--rose-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sereias-admin-table .col-id a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sereias-admin-table .col-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sereias-admin-table .col-pay,
.sereias-admin-table .col-status {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sereias-admin-table .col-total {
  font-weight: 700;
  color: var(--rose-dark);
  white-space: nowrap;
}
.sereias-admin-table .col-items {
  text-align: center;
}
.sereias-admin-table .col-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.sereias-admin-table tbody td small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
}

/* Admin: detail cards */
.sereias-admin-cards {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 760px) {
  .sereias-admin-cards { grid-template-columns: 1fr 1fr; }
}
.sereias-admin-card {
  background: var(--paper);
  border: 1px solid rgba(222,219,211,0.7);
  border-radius: 8px;
  padding: 1rem;
}
.sereias-admin-card h4 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}
.sereias-admin-card dl {
  margin: 0;
  display: grid;
  gap: 0.3rem;
}
.sereias-admin-card dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.76rem;
}
.sereias-admin-card dt {
  font-weight: 600;
  color: var(--muted);
  min-width: 80px;
}
.sereias-admin-card dt::after { content: ":"; }
.sereias-admin-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* Admin: order items (checkout style) */
.sereias-items-header {
  margin: 1.5rem 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sereias-order-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid rgba(222,219,211,0.45);
  font-size: 0.78rem;
}
.sereias-order-item:last-child { border-bottom: none; }

.sereias-order-thumb {
  width: 42px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(222,219,211,0.5);
  background: var(--paper);
  flex-shrink: 0;
}
.sereias-order-thumb-fallback {
  width: 42px;
  height: 52px;
  border-radius: 4px;
  border: 1px solid rgba(222,219,211,0.5);
  background: linear-gradient(135deg, var(--paper), #eeeeea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.sereias-order-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.sereias-order-info strong {
  font-size: 0.8rem;
  color: var(--ink);
}
.sereias-order-meta {
  font-size: 0.7rem;
  color: var(--muted);
}
.sereias-order-qty {
  font-size: 0.7rem;
  color: var(--muted);
}

.sereias-order-price {
  font-weight: 700;
  color: var(--rose-dark);
  white-space: nowrap;
  font-size: 0.78rem;
  text-align: right;
  min-width: 55px;
  padding-top: 0.15rem;
}
.sereias-order-line-total {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-size: 0.76rem;
  text-align: right;
  min-width: 60px;
  padding-top: 0.15rem;
}

.sereias-order-grand-total {
  margin-top: 0.5rem;
  padding: 0.6rem 0.6rem;
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
  color: var(--rose-dark);
  border-top: 2px solid var(--line);
  background: rgba(238,238,234,0.12);
  border-radius: 0 0 6px 6px;
}

/* Admin: status badge improved */
.sereias-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--paper);
  color: var(--rose-dark);
  border: 1px solid rgba(17,17,17,0.35);
  white-space: nowrap;
}
.sereias-badge--paid {
  background: #f8f7f3;
  color: #050505;
  border-color: #dedbd3;
}
.sereias-badge--waiting {
  background: #eeeeea;
  color: #4b4b4b;
  border-color: #dedbd3;
}
.sereias-badge--canceled {
  background: #eeeeea;
  color: #1f1f1f;
  border-color: #4b4b4b;
}
.cancel-reason {
  display: block;
  font-size: 0.7rem;
  color: #4b4b4b;
  margin-top: 0.2rem;
  font-style: italic;
}
.sereias-badge--shipped,
.sereias-badge--preparing,
.sereias-badge--picked_up {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #dedbd3;
}

/* Admin: payment method badge */
.sereias-pay-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}
.sereias-pay-badge span {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
}

/* --- Admin: discount percentage --- */
.percent-field {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.percent-suffix {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose-dark);
}
.product-card-discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rose-dark);
  margin-left: 0.3rem;
}
.product-discount-tag {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rose-dark);
}
.form-help {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* --- Track order page --- */
.track-page {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.track-hero {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, #f8f7f3 0%, #eeeeea 40%, #fff 100%);
  border: 1.5px solid rgba(17,17,17,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-radius: var(--panel-radius);
}
.track-title {
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.track-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-dark);
  margin-bottom: 0.4rem;
  text-align: left;
}
.track-input-row {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}
.track-input {
  flex: 1;
  min-width: 0;
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.track-input::placeholder {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}
.track-input:focus {
  outline: none;
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
}
.track-submit {
  white-space: nowrap;
}
.track-error {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  color: #4b4b4b;
  text-align: left;
  font-weight: 600;
}
.track-result {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.track-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.track-summary-row:first-child {
  margin-bottom: 0.3rem;
}
.track-order-code {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-dark);
  letter-spacing: 0.06em;
}
.track-order-date {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Timeline steps */
.track-timeline h3 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose-dark);
}
.timeline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 2rem;
  bottom: -0.15rem;
  width: 2px;
}
.timeline-step--done:not(:last-child)::after {
  background: var(--rose-dark);
}
.timeline-step--active:not(:last-child)::after,
.timeline-step--pending:not(:last-child)::after {
  background: var(--line);
}
.timeline-dot {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  margin-top: 0.1rem;
}
.timeline-step--done .timeline-dot {
  background: var(--rose-dark);
  border: 2px solid var(--rose-dark);
}
.timeline-step--active .timeline-dot {
  background: var(--rose-dark);
  border: 2px solid var(--rose-dark);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.18);
}
.timeline-step--pending .timeline-dot {
  background: var(--white);
  border: 2px solid var(--line);
}
.timeline-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.timeline-step--done .timeline-label {
  color: var(--rose-dark);
  font-weight: 600;
}
.timeline-step--active .timeline-label {
  color: var(--ink);
  font-weight: 700;
}

/* Track items */
.track-items h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose-dark);
}
.track-order-total {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: right;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

/* Receipt upload */
.receipt-upload-section {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.receipt-upload-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.receipt-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.receipt-form input[type="file"] {
  display: none;
}
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.receipt-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 2px dashed var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  transition: border-color 0.2s;
}
.receipt-file-label:hover {
  border-color: var(--rose-dark);
  color: var(--rose-dark);
}
.receipt-file-icon {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.receipt-file-name {
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
}
.receipt-submit-btn {
  background: var(--rose-dark);
  color: var(--white);
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.receipt-submit-btn:hover {
  opacity: 0.9;
}

/* Receipt info tooltip */
.receipt-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: var(--muted);
}
.receipt-info-icon {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--rose-dark);
  line-height: 1;
}
.receipt-info-text {
  font-size: 0.68rem;
  text-decoration: underline;
  color: var(--muted);
}
.receipt-tooltip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 10;
}
.receipt-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}
.receipt-info:hover .receipt-tooltip,
.receipt-info:focus .receipt-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Receipt validation warning */
.receipt-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  background: #f8f7f3;
  border: 1px solid #dedbd3;
  border-left: 4px solid #4b4b4b;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
  font-size: 0.82rem;
  color: #1f1f1f;
  line-height: 1.45;
}
.receipt-warning-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1.3;
  color: #4b4b4b;
}
.receipt-warning-text {
  flex: 1;
}

/* PIX approved banner */
.pix-approved-banner {
  background: #f8f7f3;
  color: #050505;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pix-approved-icon {
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .pix-copy-row {
    flex-direction: column;
    gap: 0.4rem;
  }
  .pix-copy-input {
    width: 100%;
    flex: none;
    font-size: 0.62rem;
    text-align: center;
  }
  .pix-copy-btn {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.4rem 0;
    text-align: center;
  }
}

/* --- Riich premium identity refresh --- */
body {
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(184, 155, 94, 0.09), transparent 26rem),
    linear-gradient(180deg, var(--color-background) 0%, #fffdf8 32%, #ffffff 100%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.marquee-content { animation-duration: 42s; }

.site-main {
  width: min(1280px, 100%);
  padding: 0 clamp(0rem, 1vw, 0.8rem);
  overflow-x: clip;
}

.home-banner {
  min-height: clamp(22rem, 58vh, 34rem);
  margin: clamp(0.75rem, 2vw, 1.35rem) auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(1rem, 2.8vw, 2rem);
  background:
    linear-gradient(135deg, #050505 0%, #191815 48%, #d9d0bd 100%);
  box-shadow: 0 1.2rem 3.5rem rgba(5, 5, 5, 0.18);
  isolation: isolate;
}

.home-banner-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #050505 0%, #191815 48%, #d9d0bd 100%);
}

.home-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 620ms ease;
  will-change: transform;
}

.home-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #050505 0%, #191815 48%, #d9d0bd 100%);
}

.home-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(0.8rem, 2vw, 1.2rem);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.home-banner-dot {
  width: 0.52rem;
  height: 0.52rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.home-banner-dot.is-active {
  width: 1.35rem;
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .home-banner-track {
    transition: none;
  }
}

.home-banner-overlay {
  /* Sem texto sobre o card: só um leve escurecimento na base para os controles do carrossel. */
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 0) 42%);
  z-index: 1;
}

.home-banner-copy {
  left: clamp(1rem, 6vw, 5.5rem);
  right: clamp(1rem, 42vw, 40rem);
  bottom: clamp(2rem, 8vw, 6rem);
  max-width: 42rem;
  padding: 0;
  gap: 0.85rem;
  text-shadow: none;
  z-index: 2;
}

/* As imagens do carrossel são a identidade do card principal (desktop e mobile):
   esconde olho, descrição e os botões; o h1 fica só para leitor de tela / SEO.
   Seletores com .home-banner-copy para vencer regras posteriores por especificidade. */
.home-banner-copy .eyebrow,
.home-banner-copy p:not(.eyebrow),
.home-banner-copy .hero-actions {
  display: none;
}

.home-banner-copy h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.home-banner h1,
.catalog-banner h1,
.product-purchase-box h1,
.section-header h2,
.campaign-band h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.055em;
}

.home-banner h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 950;
  line-height: 0.84;
  text-transform: uppercase;
}

.home-banner-copy p:not(.eyebrow) {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.primary-cta,
.button,
button[type="submit"],
.secondary-cta {
  min-height: 2.65rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.primary-cta,
.button,
button[type="submit"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fffdf8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.primary-cta:hover,
.button:hover,
button[type="submit"]:hover,
.secondary-cta:hover {
  transform: translateY(-1px);
}

.home-section,
.showcase-section,
.catalog-shell,
.related-products-section {
  padding: clamp(2.1rem, 5vw, 4.6rem) clamp(0.9rem, 3vw, 2.8rem);
}

.compact-section-header {
  margin-bottom: clamp(1.1rem, 2vw, 1.8rem);
}

.section-header h2,
.campaign-band h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-header a {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.slide-showcase {
  padding: clamp(1rem, 3vw, 2.2rem) clamp(0.9rem, 3vw, 2.8rem);
  gap: clamp(0.45rem, 1.4vw, 1rem);
}

.slide-column {
  max-height: 28rem;
  border-radius: 1rem;
  box-shadow: none;
}

.campaign-band {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  margin: clamp(1rem, 3vw, 2rem) clamp(0.9rem, 3vw, 2.8rem);
  padding: clamp(1.4rem, 4vw, 3rem);
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(184, 155, 94, 0.24), transparent 38%),
    #050505;
  border-radius: 1.2rem;
}

.campaign-band p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.campaign-band h2 { color: #fffdf8; }
.campaign-band .eyebrow { color: rgba(255, 255, 255, 0.72); }
.campaign-band .primary-cta { background: #fffdf8; color: var(--color-primary); border-color: #fffdf8; }

.donna-product-grid {
  gap: clamp(1rem, 2vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
}

.product-card-media {
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: 0.9rem;
  background: var(--color-surface-muted);
  box-shadow: none;
}

.product-card-image { object-fit: cover; }

.product-card-badge,
.product-card-unavailable {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: auto;
  bottom: auto;
  display: inline-flex;
  min-width: auto;
  padding: 0.34rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--color-primary);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-card-sizes {
  justify-content: flex-start;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
}

.product-card-sizes span {
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  font-size: 0.62rem;
}

.product-card-info { gap: 0.25rem; }

.product-card-category {
  color: var(--color-text-muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card-name {
  min-height: 2.35rem;
  color: var(--color-text);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-description { display: none; }

.product-card-price,
.price,
.product-detail-price {
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.product-card-discount {
  width: fit-content;
  margin: 0.1rem 0;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(184, 155, 94, 0.17);
  color: #6d5628;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card-actions { gap: 0.45rem; }
.card-btn { min-height: 2rem; font-size: 0.64rem; }
.card-btn-bag { background: var(--color-primary); }
.card-btn-buy-sm { background: var(--color-surface); }

.internal-banner {
  min-height: 12rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  border-radius: 0 0 1.2rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(184, 155, 94, 0.2), transparent 38%),
    #050505;
}

.internal-banner h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.internal-banner p:not(.eyebrow) {
  max-width: 36rem;
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.catalog-toolbar {
  align-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.78);
}

.catalog-count {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-filters {
  border-radius: 1rem;
  background: var(--color-surface);
}

.donna-product-page {
  grid-template-columns: 4.8rem minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.2rem, 4vw, 3rem) clamp(0.9rem, 3vw, 2.8rem);
}

.product-thumbs {
  flex-direction: column;
  position: sticky;
  top: 5rem;
}

.product-thumbs a,
.product-thumbs span {
  border-radius: 0.75rem;
  overflow: hidden;
}

.product-gallery-stack {
  min-height: clamp(26rem, 58vw, 43rem);
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1.1rem;
  background: var(--color-surface-muted);
}

.product-purchase-box {
  position: sticky;
  top: 5rem;
  gap: 0.6rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 253, 248, 0.86);
}

.product-name {
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.product-detail-price { font-size: 1.35rem; }
.product-detail-price del { color: var(--color-text-muted); font-size: 1rem; }
.product-pix-note { margin: 0; color: var(--color-text-muted); font-size: 0.82rem; }

.quantity-control {
  max-width: 7.5rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quantity-control input {
  min-height: 2.35rem;
  border-radius: 0.55rem;
}

.detail-action-btns { gap: 0.55rem; }
.action-form:first-child { flex: 1; }
.btn-bag-plus { width: 100%; background: var(--color-primary); }
.btn-buy-sm { min-height: 2.6rem; }

.product-info-accordion {
  margin-top: 0.4rem;
  border-color: rgba(16, 16, 16, 0.09);
}

.product-info-accordion summary { color: var(--color-text); }
.product-info-accordion p { color: var(--color-text-muted); font-size: 0.86rem; }

.empty-state-panel {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  background: var(--color-surface);
  border: 1px solid rgba(16, 16, 16, 0.08);
  box-shadow: none;
}

.compact-empty-state { max-width: 36rem; }

.store-footer {
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 155, 94, 0.16), transparent 32%),
    linear-gradient(180deg, #050505 0%, #111111 56%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 0;
  border-radius: clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 3vw, 2.2rem) 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 -1rem 3rem rgba(5, 5, 5, 0.08);
  overflow: hidden;
}

.footer-logo {
  width: 58px;
  height: auto;
  margin-bottom: 0.6rem;
  filter: invert(1);
}

.store-footer h2 {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-footer p,
.store-footer a {
  font-size: 0.78rem;
  line-height: 1.65;
}

.footer-credits {
  background: #050505;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
}

.footer-credits a { color: rgba(255, 255, 255, 0.66); }

@media (min-width: 760px) {
  .mobile-store-header {
    display: flex;
    justify-content: space-between;
    height: 4.35rem;
    padding: 0 1.2rem;
  }

  .header-actions { }
  .header-icon-link { display: inline-flex; }
  .brand-logo,
  .brand-centered img { width: clamp(90px, 8vw, 125px); max-height: 3.8rem; }
  .campaign-band { grid-template-columns: 1fr auto; }
  .donna-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .site-main { padding: 0; }
  .home-banner {
    min-height: 0;
    height: auto;
    /* A altura do card acompanha o aspecto da imagem ativa (definido em JS),
       entao a foto aparece inteira, sem faixas e sem zoom. */
    aspect-ratio: var(--home-banner-ar, 3 / 2);
    margin: 0.65rem 0.65rem 0;
    border-radius: 1.1rem;
    transition: aspect-ratio 320ms ease;
  }
  .home-banner-slide img { object-fit: contain; }
  .home-banner-carousel,
  .home-banner-slide { background: #050505; }
  .home-banner-overlay { background: linear-gradient(0deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0) 55%); }
  .home-banner-copy {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    padding: 0;
    gap: 0;
  }
  .home-banner-admin-grid { grid-template-columns: 1fr; }
  .header-actions .header-icon-link { display: none; }
  .donna-product-page { grid-template-columns: 1fr; }
  .product-thumbs { order: 2; flex-direction: row; position: static; }
  .product-gallery-stack { order: 1; min-height: 25rem; border-radius: 0; border-left: 0; border-right: 0; }
  .product-purchase-box { order: 3; position: static; margin: 0 0.85rem; }
  .store-footer { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .donna-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1366px) {
  .donna-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==== Home reorg: vitrines, banner intermediário, linhas ==== */

.shelf-section {
  padding-top: clamp(2.6rem, 6vw, 5.4rem);
  padding-bottom: clamp(2.6rem, 6vw, 5.4rem);
}

.home-shelf-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-shelf-grid .product-card-media {
  box-shadow: none;
  border: 1px solid rgba(16, 16, 16, 0.05);
}

.home-shelf-grid .product-card-category {
  display: none;
}

.shelf-note {
  margin: clamp(0.9rem, 2vw, 1.4rem) 0 0;
  max-width: 44rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.product-card-madeorder {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--color-primary);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Selo de desconto sobre a imagem — tira a variação de altura do fluxo do card. */
.product-card-discount-flag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  max-width: calc(100% - 1rem);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fffdf8;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Card de produto na home: mesma altura, ações sempre na base ===== */
.home-shelf-grid > li {
  align-self: stretch;
}
.home-shelf-grid .donna-product-card {
  height: 100%;
  gap: 0.4rem;
}
.home-shelf-grid .product-card-media {
  aspect-ratio: 4 / 5;
}
.home-shelf-grid .product-card-image {
  object-fit: cover;
}
.home-shelf-grid .product-card-info {
  flex: 1;
  gap: 0.2rem;
}
.home-shelf-grid .product-card-name {
  min-height: 2.4em;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-shelf-grid .product-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  min-height: 1.5rem;
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
}
.home-shelf-grid .product-card-price del {
  font-size: 0.72rem;
}
.home-shelf-grid .product-card-actions {
  margin-top: auto;
  padding-top: 0.55rem;
}

.home-banner-slot {
  position: relative;
  display: block;
  margin: clamp(1.6rem, 5vw, 3.4rem) clamp(0.9rem, 3vw, 2.8rem);
  border-radius: clamp(0.9rem, 2.4vw, 1.6rem);
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.06);
  background: var(--color-surface-muted);
  isolation: isolate;
  text-decoration: none;
}

.home-banner-slot picture {
  display: block;
}

.home-banner-slot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.home-banner-slot.has-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 60%);
  pointer-events: none;
}

.home-banner-slot-copy {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(0.9rem, 3.5vw, 2.4rem);
  z-index: 1;
  color: #fffdf8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-banner-slot-copy h2 {
  margin: 0;
  color: #fffdf8;
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.home-banner-slot-copy p {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
}

.product-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 2vw, 1.2rem);
}

.product-line-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: clamp(0.8rem, 2vw, 1.3rem);
  overflow: hidden;
  background: var(--color-surface-muted);
  isolation: isolate;
  text-decoration: none;
}

.product-line-media,
.product-line-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-line-media img {
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-line-card:hover .product-line-media img {
  transform: scale(1.04);
}

.product-line-media > span {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-weight: 900;
}

.product-line-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 62%);
}

.product-line-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(0.7rem, 2vw, 1.15rem);
  color: #fffdf8;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-availability {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-availability--ready {
  color: #2e7d32;
  font-weight: 700;
}

.product-availability--order {
  color: var(--color-text-muted);
}

.product-availability--order strong {
  color: var(--color-text);
}

@media (max-width: 759px) {
  /* ===== HOME mobile: experiência de app ===== */
  :root {
    --pad-inline: 1rem;        /* gutter único do container mobile */
    --home-section-pad: 1.75rem;
    --home-card-gap: 0.75rem;
    --home-card-w: clamp(9.25rem, 43vw, 11.5rem); /* produtos: ~2 visíveis + espia */
    --home-line-w: clamp(14rem, 80vw, 22rem);  /* linhas: card editorial maior */
  }

  /* Ritmo vertical e margem lateral uniformes para todas as seções da home. */
  .home-section,
  .brand-section,
  .shelf-section,
  .product-lines-section {
    padding-top: var(--home-section-pad);
    padding-bottom: var(--home-section-pad);
    padding-left: var(--pad-inline);
    padding-right: var(--pad-inline);
  }
  .home-section .compact-section-header {
    margin-bottom: 1.15rem;
  }
  .home-section .section-header a {
    white-space: nowrap;
  }

  /* Padrão único de carrossel horizontal. */
  .home-shelf-grid,
  .product-lines-grid {
    display: flex;
    grid-template-columns: none;
    gap: var(--home-card-gap);
    margin-left: calc(var(--pad-inline) * -1);
    margin-right: calc(var(--pad-inline) * -1);
    padding: 0.2rem var(--pad-inline) 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad-inline);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-shelf-grid::-webkit-scrollbar,
  .product-lines-grid::-webkit-scrollbar {
    display: none;
  }
  .home-shelf-grid > li,
  .product-line-card {
    flex-grow: 0;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Largura fixa e previsível por tipo de vitrine (nunca definida pelo conteúdo). */
  .home-shelf-grid > li {
    flex-basis: var(--home-card-w);
  }
  .product-line-card {
    flex-basis: var(--home-line-w);
    aspect-ratio: 4 / 3;
  }

  /* Ações do card empilhadas e com largura do card (bloco fixo). */
  .home-shelf-grid .product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .home-shelf-grid .card-btn {
    width: 100%;
    min-height: 2.15rem;
    flex: none;
  }
  .home-shelf-grid .donna-product-card {
    gap: 0.35rem;
  }
  .home-shelf-grid .product-card-name {
    font-size: 0.76rem;
  }

  .home-banner-slot {
    margin-left: var(--pad-inline);
    margin-right: var(--pad-inline);
  }
  .home-banner-slot img {
    aspect-ratio: 16 / 8;
  }

  /* WhatsApp é a única ação flutuante no mobile; Instagram fica no menu e no rodapé. */
  .social-float--instagram,
  .social-float--facebook {
    display: none;
  }
  .social-floats {
    bottom: calc(0.9rem + env(safe-area-inset-bottom));
    right: calc(0.9rem + env(safe-area-inset-right));
  }
  .social-float--whatsapp {
    width: 2.6rem;
    height: 2.6rem;
  }
}

@media (min-width: 1366px) {
  .home-shelf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Help page ---- */
/* ---- Help centers ---- */
.help-page {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 1rem 3rem;
}
.help-hero {
  text-align: center;
  padding: 1.25rem 0 1rem;
}
.help-kicker {
  margin: 0 0 0.35rem;
  color: var(--rose-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.help-hero h1 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  line-height: 1.08;
}
.help-hero p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}
.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.help-back-link,
.help-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.2rem rgba(143, 79, 90, 0.08);
}
.help-back-button {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  color: var(--white);
  border-color: transparent;
}
.help-back-link:hover,
.help-back-link:focus-visible,
.help-back-button:hover,
.help-back-button:focus-visible {
  outline: 2px solid rgba(143, 79, 90, 0.25);
  outline-offset: 2px;
  transform: translateY(-1px);
}
.help-search {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}
.help-search-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--rose-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.help-search-row {
  display: flex;
  gap: 0.6rem;
}
.help-search-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 0.8rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
}
.help-search-input:focus {
  outline: 3px solid rgba(198, 132, 141, 0.22);
  border-color: var(--rose);
}
.help-search-clear {
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--white);
  color: var(--rose-dark);
  font-weight: 800;
  cursor: pointer;
}
.help-search-hint,
.help-result-count {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.help-empty-state {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px dashed var(--rose);
  border-radius: 0.9rem;
  background: rgba(245, 215, 216, 0.5);
  color: var(--rose-dark);
  text-align: center;
  font-weight: 700;
}
.about-page {
  max-width: 50rem; /* ~800px */
  margin: 0 auto;
  padding: 2.5rem 1rem 3.5rem;
  display: grid;
  gap: 3rem;
  justify-items: center;
  text-align: center;
}
.about-content {
  display: grid;
  gap: 1.1rem;
  text-align: center;
}
.about-content p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  font-size: 0.95rem;
}
.about-content .about-closing {
  margin-top: 0.4rem;
  font-weight: 800;
  color: var(--rose-dark);
}

/* ~90% no mobile, ~75% no desktop, centralizada, sem crop (mantem a proporcao
   natural da foto) e sem sombra. */
.about-photo {
  width: 90%;
  max-width: 30rem;
  margin: 0 auto;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}
@media (min-width: 760px) {
  .about-photo {
    width: 75%;
  }
}

.help-section {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.help-section h2 {
  margin: 0 0 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}
.help-topic {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(234, 215, 217, 0.7);
}
.help-topic:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.help-topic h3 {
  margin: 0 0 0.3rem;
  color: var(--rose-dark);
  font-size: 0.92rem;
}
.help-topic p,
.help-faq-item p,
.help-steps li {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.6;
}
.help-topic a,
.help-faq-item a,
.help-steps a {
  color: var(--rose-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.help-faq-item {
  margin-bottom: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--paper);
}
.help-faq-item summary {
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.help-faq-item summary::-webkit-details-marker { display: none; }
.help-faq-item summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--rose-dark);
  font-weight: 900;
}
.help-faq-item[open] summary::before { content: "-"; }
.help-faq-item p {
  padding: 0 0.9rem 0.85rem;
}
.is-help-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .help-search-row {
    flex-direction: column;
  }
  .help-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .help-back-link,
  .help-back-button {
    width: 100%;
  }
}

/* ---- Cover adjuster in profile ---- */
.cover-adjuster {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.cover-adjuster-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.cover-adjuster-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
  line-height: 1.4;
}
.cover-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  background: var(--blush);
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.cover-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.cover-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}
.cover-preview-crosshair {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}
.cover-preview-crosshair::before,
.cover-preview-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.7);
}
.cover-preview-crosshair::before {
  width: 1px;
  height: 0.5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cover-preview-crosshair::after {
  width: 0.5rem;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cover-position-controls {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}
.cover-pos-slider label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.cover-pos-value {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}
.cover-pos-slider input[type="range"] {
  width: 100%;
  height: 0.35rem;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
.cover-pos-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--rose-dark);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cover-pos-slider input[type="range"]::-moz-range-thumb {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--rose-dark);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
@media (max-width: 760px) {
  .cover-preview-frame {
    aspect-ratio: 16 / 9;
  }
}
