/*


 */

@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Noto+Serif:wght@600;700&display=swap");
/* Global */
:root {
  --silver-50: #fffaf3;
  --silver-100: #f4e7d3;
  --silver-300: #d9b58d;
  --silver-700: #6c4d32;
  --accent-dark: #4a2f1a;
  --accent-success: #1f7a3d;
  --accent-warm: #ffedd5;
  --accent-cake: #f59e0b;
  --accent-choco: #7c3f00;
  --stitch-primary: #240b05;
  --stitch-secondary: #944a00;
  --stitch-surface: #fbf9f8;
  --stitch-surface-low: #f6f3f2;
  --stitch-surface-container: #f0eded;
  --stitch-outline: #d5c3be;
  --stitch-text: #1b1c1c;
  --stitch-muted: #514441;
  --stitch-green: #61de8a;
}

html.dark {
  color-scheme: dark;
}

html.dark body,
html.dark .bg-background,
html.dark .bg-surface {
  background-color: #101414 !important;
  color: #f4f7f5 !important;
}

html.dark .bg-surface\/95 {
  background-color: rgba(16, 20, 20, 0.95) !important;
}

html.dark .bg-surface-container-lowest,
html.dark .card,
html.dark .modal-content,
html.dark .dropdown-menu {
  background-color: #151b1a !important;
  color: #f4f7f5 !important;
}

html.dark .bg-surface-container-low,
html.dark .bg-surface-container,
html.dark .bg-surface-container-high,
html.dark .bg-surface-container-highest,
html.dark .table,
html.dark .form-control,
html.dark .form-select {
  background-color: #202827 !important;
  color: #f4f7f5 !important;
}

html.dark .bg-surface-bright {
  background-color: #26302e !important;
}

html.dark .text-on-surface,
html.dark .table,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #f4f7f5 !important;
}

html.dark .text-on-surface-variant,
html.dark .text-secondary,
html.dark .text-muted,
html.dark .text-outline,
html.dark .text-outline-variant {
  color: #b9c8c1 !important;
}

html.dark .border-outline-variant,
html.dark .border-outline,
html.dark .border,
html.dark .table,
html.dark .form-control,
html.dark .form-select {
  border-color: #40504b !important;
}

html.dark input,
html.dark select,
html.dark textarea {
  background-color: #202827 !important;
  color: #f4f7f5 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #8fa19a !important;
}

html.dark .card {
  --bs-card-bg: #151b1a;
  --bs-card-color: #f4f7f5;
  border-color: #40504b !important;
  background-color: #151b1a !important;
  color: #f4f7f5 !important;
}

html.dark .card-footer,
html.dark .bg-white,
html.dark .bg-light {
  background-color: #151b1a !important;
  color: #b9c8c1 !important;
  border-color: #40504b !important;
}

html.dark .table {
  --bs-table-bg: #151b1a;
  --bs-table-color: #f4f7f5;
  --bs-table-border-color: #40504b;
  --bs-table-hover-bg: #202827;
  --bs-table-hover-color: #ffffff;
  background-color: #151b1a !important;
  color: #f4f7f5 !important;
}

html.dark .table thead th {
  background-color: #202827 !important;
  color: #d9fff0 !important;
  border-color: #40504b !important;
}

html.dark .table tbody td {
  background-color: #151b1a !important;
  color: #f4f7f5 !important;
  border-color: #40504b !important;
}

html.dark .table-hover tbody tr:hover td {
  background-color: #202827 !important;
}

html.dark tr.dark\:hover\:bg-\[\#202827\]:hover,
html.dark tr.dark\:hover\:bg-\[\#202827\]:hover td {
  background-color: #202827 !important;
  color: #f4f7f5 !important;
}

html.dark .btn-light,
html.dark .btn-outline-secondary,
html.dark .page-link {
  background-color: #202827 !important;
  border-color: #40504b !important;
  color: #d9fff0 !important;
}

html.dark .btn-light:hover,
html.dark .btn-outline-secondary:hover,
html.dark .page-link:hover {
  background-color: #26302e !important;
  border-color: #43E1D2 !important;
  color: #43E1D2 !important;
}

html.dark .page-item.disabled .page-link {
  background-color: #202827 !important;
  border-color: #40504b !important;
  color: #6f8179 !important;
}

html.dark .text-bg-light {
  background-color: #202827 !important;
  color: #d9fff0 !important;
}

html.dark .text-dark {
  color: #d9fff0 !important;
}

html.dark .badge.bg-light,
html.dark .badge.text-bg-light {
  background-color: #26302e !important;
  border-color: #43E1D2 !important;
  color: #d9fff0 !important;
}

html.dark .variant-row {
  background-color: #151b1a !important;
  border-color: #40504b !important;
  color: #f4f7f5 !important;
}

html.dark .variant-row:hover {
  border-color: #43E1D2 !important;
}

html.dark .variant-sku-input,
html.dark input[readonly].bg-light {
  background-color: #26302e !important;
  border-color: #40504b !important;
  color: #b9c8c1 !important;
}

html.dark .form-control-color {
  background-color: #26302e !important;
  border-color: #40504b !important;
}

.variant-color-btn {
  position: relative;
  outline: 0;
}

.variant-color-btn.is-selected {
  border-color: #006c51 !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #43E1D2 !important;
}

.variant-size-btn {
  min-height: 3.25rem;
  border-color: #bccac2;
  background-color: transparent;
  color: #1a1c1c;
}

.variant-size-btn:hover:not(:disabled) {
  border-color: #006c51;
  background-color: rgba(67, 225, 210, 0.12);
}

.variant-size-btn.is-selected {
  border-color: #006c51;
  background-color: #43E1D2;
  color: #002117;
  box-shadow: inset 0 0 0 1px rgba(0, 33, 23, 0.28), 0 8px 20px rgba(0, 108, 81, 0.18);
}

.variant-size-btn.is-unavailable {
  opacity: 0.42;
  text-decoration: line-through;
}

html.dark .variant-color-btn {
  border-color: #60736c !important;
  box-shadow: 0 0 0 1px rgba(16, 20, 20, 0.9), 0 6px 16px rgba(0, 0, 0, 0.34) !important;
}

html.dark .variant-color-btn.is-selected {
  border-color: #eafff7 !important;
  box-shadow: 0 0 0 3px #101414, 0 0 0 6px #43E1D2, 0 0 20px rgba(67, 225, 210, 0.5) !important;
}

html.dark .variant-size-btn {
  border-color: #60736c;
  background-color: #151b1a;
  color: #eafff7;
}

html.dark .variant-size-btn:hover:not(:disabled) {
  border-color: #43E1D2;
  background-color: #202827;
}

html.dark .variant-size-btn.is-selected {
  border-color: #d9fff0;
  background-color: #43E1D2;
  color: #002117;
  box-shadow: inset 0 0 0 2px rgba(0, 33, 23, 0.35), 0 0 0 3px rgba(67, 225, 210, 0.28);
}

html.dark .variant-size-btn.is-unavailable {
  border-color: #40504b;
  color: #7f928a;
}

html.dark .shadow-lg,
html.dark .custom-shadow {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38) !important;
}

html.dark .bg-primary-container {
  background-color: #1b7a60 !important;
}

html.dark .text-on-primary-container {
  color: #eafff7 !important;
}

html.dark .bg-on-secondary-fixed {
  background-color: #0f1715 !important;
}

html.dark .text-primary {
  color: #43E1D2 !important;
}

html.dark .hover\:text-primary:hover {
  color: #43E1D2 !important;
}

html.dark .hover\:bg-surface-container-high:hover {
  background-color: #2b3633 !important;
}

html.dark .bg-error-container {
  background-color: #5b1f1b !important;
}

html.dark .text-on-error-container {
  color: #ffdad6 !important;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--stitch-text);
  background: var(--stitch-surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--accent-dark);
  font-weight: 700;
}

.public-home h1,
.public-home h2,
.public-home h3,
.brand-text strong,
.public-footer strong {
  font-family: "Noto Serif", Georgia, serif;
}

img {
  display: block;
  max-width: 100%;
}

/* Topbar */
.site-topbar {
  background: rgba(251, 249, 248, 0.95);
  border-bottom: 1px solid rgba(213, 195, 190, 0.55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-topbar-inner {
  min-height: 80px;
}

.brand-925 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(100%, 420px);
  min-width: 0;
  text-decoration: none;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.2rem;
  height: 4.4rem;
  flex: 0 0 6.2rem;
  padding: 0.18rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f7a52f;
  border: 1px solid rgba(213, 195, 190, 0.75);
  box-shadow: 0 10px 24px rgba(36, 11, 5, 0.1);
}

.brand-logo-frame-admin {
  width: 6.4rem;
  height: 4.5rem;
  flex-basis: 6.4rem;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  border-radius: 0.65rem;
  object-fit: contain;
  object-position: center;
  border: 0;
}

.brand-logo-image-admin {
  width: 3rem;
  height: 3rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text strong {
  color: var(--stitch-primary);
  font-size: 1.08rem;
  white-space: normal;
}

.brand-text small {
  color: var(--stitch-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.16rem;
}

.topbar-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-link {
  color: var(--stitch-muted);
  text-decoration: none;
  padding: 0.48rem 0.8rem;
  border-radius: 0.65rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar-link:hover {
  background: rgba(148, 74, 0, 0.08);
  color: var(--stitch-secondary);
}

.topbar-link-cta {
  background: var(--accent-dark);
  color: #fff;
}

.topbar-link-cta:hover {
  background: #5b371d;
  color: #fff;
}

.site-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #ead3b7;
  border-radius: 0.75rem;
  background: #fffaf3;
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 63, 0, 0.08);
}

.site-menu-button .bi {
  font-size: 1.45rem;
  line-height: 1;
}

.mobile-menu {
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-links {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 180px;
  padding: 0.5rem;
  border: 1px solid #ead3b7;
  border-radius: 0.85rem;
  background: #fffaf3;
  box-shadow: 0 16px 34px rgba(124, 63, 0, 0.16);
}

.admin-avatar-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.login-logo-image {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--silver-100);
}

/* Home */
.home-shell {
  max-width: 1420px;
}

.hero-925 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.45rem;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 40%),
    linear-gradient(135deg, #fff8ee 0%, #ffffff 100%);
  border: 1px solid var(--silver-100);
  box-shadow: 0 16px 40px rgba(124, 63, 0, 0.08);
}

.hero-cake {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-cake > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: none;
}

.hero-cake::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(124, 63, 0, 0.18), transparent 60%);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.hero-whatsapp-link {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 2.75rem;
  padding-inline: 1rem;
  pointer-events: auto;
  white-space: nowrap;
}

.hero-whatsapp-link,
.hero-whatsapp-link * {
  cursor: pointer;
}

.hero-kicker {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.hero-title {
  color: var(--accent-dark);
  font-size: clamp(1.55rem, 1.15rem + 1vw, 2.05rem);
  line-height: 1.2;
}

.hero-subtitle {
  color: #475569;
}

.featured-product-card,
.metric-card,
.financial-entry-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--silver-100);
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 14px 32px rgba(124, 63, 0, 0.06);
}

.featured-products-row {
  max-width: 980px;
}

.detail-chip,
.info-row,
.finance-line,
.low-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.detail-chip {
  border: 1px solid var(--silver-100);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #fffaf5;
}

.info-row,
.finance-line,
.low-stock-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f3e7d8;
}

.info-row:last-child,
.finance-line:last-child,
.low-stock-row:last-child {
  border-bottom: 0;
}

.finance-line-balance strong,
.dashboard-hero-badge strong,
.metric-card strong {
  color: var(--accent-dark);
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
}

.metric-label {
  display: block;
  color: #8a6240;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fff1da 0%, #fff9f1 100%);
  border: 1px solid #f0dcc2;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.dashboard-hero-badge {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #efd7bb;
  border-radius: 1rem;
  padding: 1rem;
}

.admin-shell-bg {
  min-height: calc(100vh - 88px);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid #ecd7bd;
  backdrop-filter: blur(6px);
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.admin-brand {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 0;
}

.admin-brand .brand-text small {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
}

.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.admin-nav-wrap {
  position: sticky;
  top: 76px;
  z-index: 55;
  background: rgba(255, 243, 229, 0.96);
  border-bottom: 1px solid #ecd7bd;
}

.admin-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-nav-links::-webkit-scrollbar {
  height: 6px;
}

.admin-nav-links::-webkit-scrollbar-thumb {
  background: rgba(124, 63, 0, 0.25);
  border-radius: 999px;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #fffaf3;
  border-color: #e8c9a4;
  color: var(--accent-dark);
  text-decoration: none;
}

.admin-nav-link .bi {
  font-size: 1rem;
}

.admin-shell-bg .card {
  border-radius: 0.85rem;
}

.admin-shell-bg .card-body {
  min-width: 0;
}

.admin-shell-bg .form-control,
.admin-shell-bg .form-select,
.admin-shell-bg select {
  min-height: 2.45rem;
}

.admin-shell-bg .btn {
  min-height: 2.35rem;
}

.admin-shell-bg .table {
  margin-bottom: 0;
}

.admin-shell-bg .table th,
.admin-shell-bg .table td {
  vertical-align: middle;
}

.admin-shell-bg .table td .btn,
.admin-shell-bg .table td .badge {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

.result-count {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  border: 1px solid #eedbc4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #64748b;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
}

.catalog-layout {
  align-items: flex-start;
}

.catalog-layout > aside {
  position: sticky;
  top: 6.5rem;
  align-self: flex-start;
}

.catalog-filter-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #edd9c0;
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(124, 63, 0, 0.06);
}

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-title {
  font-size: 1.45rem;
  line-height: 1.2;
}

.category-list h5 {
  font-size: 1.05rem;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: 0.65rem;
  color: #475569;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.category-link:hover {
  background: #fff2df;
  color: var(--accent-dark);
  transform: translateX(2px);
}

.category-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #7c3f00;
  font-size: 0.78rem;
}

.product-title-card {
  min-height: 3.3rem;
  margin-bottom: 0.9rem;
  color: var(--accent-dark);
  font-size: 1.25rem !important;
  line-height: 1.18;
}

.product-meta-row,
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card-footer {
  padding-top: 0.2rem;
}

.product-price-highlight {
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 700;
}

.product-stock-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff5e8;
  border: 1px solid #f1dcc1;
  color: #8a6240;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
}

.product-stock-pill-low {
  background: #fff1f1;
  border-color: #f2c4c4;
  color: #9b3f3f;
}

.cake-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3f00 0%, #a35300 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1rem;
  box-shadow: 0 10px 20px rgba(124, 63, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cake-action-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(124, 63, 0, 0.22);
  filter: brightness(1.03);
}

.product-secondary-btn {
  border-radius: 999px;
}

.search-joias-group .form-control {
  border-right: 0;
  min-width: 0;
  border-color: #dfc8ae;
}

.search-joias-group {
  display: flex;
  flex-wrap: nowrap !important;
}

.search-joias-btn {
  min-width: 128px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Image Cards */
.card-image-product img {
    min-height: 245px;
    max-height: 245px;
    width: 100%;
    object-fit: cover;
}

.card-img-top {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.card-image-product-details img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-product {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ecd7bd;
    border-radius: 0.85rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    box-shadow: 0 12px 28px rgba(124, 63, 0, 0.06);
}

.card-image-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(124, 63, 0, 0.12);
}

/* Card Tables */
.card table th {
    border-top-style: none;
}

/* Inputs */
.form-control {
    width: 100% !important;
}

/* Cart */
.cart-floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid var(--silver-100);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.75rem;
  border-radius: 0.8rem;
  width: min(360px, calc(100vw - 2rem));
  text-align: left;
}

.cart-floating .btn {
  white-space: nowrap;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items {
  max-height: 240px;
  overflow-y: auto;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-form {
  border-top: 1px solid var(--silver-100);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.carrinho-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 8px;
}

.carrinho-item-texto {
  color: #334155;
  font-size: 0.9rem;
  min-width: 0;
}

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

.cart-quantity-input {
  width: 4.2rem !important;
  text-align: center;
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  flex: 0 0 2rem;
}

.cart-remove-btn .bi {
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.footer-link:hover {
  opacity: 0.85;
}

/* Stitch-inspired public storefront */
.public-home {
  background: var(--stitch-surface);
}

.public-topbar .topbar-links {
  gap: 1.2rem;
}

.cake-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.cake-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.cake-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(36, 11, 5, 0.74) 0%, rgba(36, 11, 5, 0.5) 42%, rgba(114, 67, 22, 0.28) 100%),
    linear-gradient(135deg, rgba(114, 67, 22, 0.82), rgba(114, 67, 22, 0.55));
}

.cake-hero-brand-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34%),
    #724316;
}

.cake-hero-brand-bg img {
  width: min(62vw, 820px);
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  opacity: 0.42;
  transform: none;
  box-shadow: 0 0 120px rgba(36, 11, 5, 0.22);
}

.cake-hero-content {
  width: 100%;
}

.cake-hero-copy {
  max-width: 680px;
  color: #fff;
  padding: 4rem 0;
}

.cake-hero-copy .hero-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.cake-hero-copy h1 {
  color: #fff;
  font-size: clamp(2.45rem, 4.4vw, 4.8rem);
  line-height: 1.04;
  margin-bottom: 1.4rem;
}

.cake-hero-copy p:not(.hero-kicker) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.cake-hero-btn,
.fresh-batch-section .cake-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--stitch-secondary);
  color: #fff;
  font-weight: 800;
  min-height: 3.35rem;
  padding: 0.85rem 1.35rem;
  box-shadow: 0 18px 36px rgba(36, 11, 5, 0.22);
}

.cake-hero-btn:hover,
.fresh-batch-section .cake-action-btn:hover {
  color: #fff;
  background: #7f3f00;
  transform: translateY(-1px);
}

.featured-cakes-section,
.catalog-section {
  padding-top: 5rem;
}

.catalog-section {
  padding-bottom: 5rem;
}

.section-heading,
.stitch-catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-heading h2,
.stitch-catalog-heading h2,
.fresh-batch-section h2 {
  color: var(--stitch-primary);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.15;
  margin: 0;
}

.stitch-catalog-heading p,
.fresh-batch-section p {
  color: var(--stitch-muted);
  margin: 0.35rem 0 0;
}

.featured-cake-card {
  position: relative;
  display: flex;
  min-height: 330px;
  overflow: hidden;
  border-radius: 0.8rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 22px 46px rgba(36, 11, 5, 0.12);
}

.featured-cake-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(36, 11, 5, 0.82) 100%);
}

.featured-cake-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-cake-card:hover {
  color: #fff;
}

.featured-cake-card:hover img {
  transform: scale(1.05);
}

.featured-cake-card > div {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  padding: 1.25rem;
}

.featured-cake-card h3 {
  color: #fff;
  font-size: 1.35rem;
}

.featured-cake-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.85rem;
}

.featured-cake-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.featured-cake-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  border-radius: 999px;
  background: #fc8f34;
  color: #663100;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  text-transform: uppercase;
}

.stitch-filter-panel {
  position: static;
  border-color: rgba(213, 195, 190, 0.55);
  background: var(--stitch-surface-low);
  box-shadow: none;
}

.search-field-wrap {
  position: relative;
}

.search-field-wrap .bi {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: #837470;
  transform: translateY(-50%);
}

.search-field-wrap .form-control {
  min-height: 3rem;
  padding-left: 2.65rem;
  border-color: rgba(213, 195, 190, 0.72);
  border-radius: 0.65rem;
  background: #fff;
}

.stitch-select {
  min-height: 3rem;
  border-color: rgba(213, 195, 190, 0.72);
  border-radius: 0.65rem;
}

.filter-label {
  color: var(--stitch-primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.category-link.active {
  background: rgba(148, 74, 0, 0.1);
  color: var(--stitch-secondary);
  font-weight: 800;
}

#cardapio {
  scroll-margin-top: 7rem;
}

.catalog-category-strip {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.catalog-category-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-category-title {
  margin: 0;
  color: #1a1c1c;
  font-family: "Montserrat", "Manrope", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.catalog-category-title-line {
  width: 2.65rem;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #43E1D2;
}

.catalog-category-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f4f3f3;
  color: #00513d;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-category-clear:hover {
  background: rgba(67, 225, 210, 0.22);
  color: #002117;
  text-decoration: none;
}

.catalog-category-scroll-wrap {
  position: relative;
  min-width: 0;
}

.catalog-category-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 2.5rem;
  background: linear-gradient(270deg, #f9f9f9 8%, rgba(249, 249, 249, 0));
  pointer-events: none;
}

.catalog-category-scroll {
  display: flex;
  gap: 0.85rem;
  padding: 0.05rem 2rem 0.15rem 0;
  overflow-x: auto;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-category-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  min-height: 2.1rem;
  flex: 0 0 auto;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #f4f3f3;
  color: #3d4944;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  scroll-snap-align: start;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.catalog-category-chip:hover {
  background: rgba(67, 225, 210, 0.22);
  color: #002117;
  text-decoration: none;
}

.catalog-category-chip.is-active {
  background: #43E1D2;
  color: #002117;
}

html.dark .catalog-category-strip {
  background: transparent;
}

html.dark .catalog-category-title {
  color: #f4f7f5;
}

html.dark .catalog-category-title-line {
  background: #43E1D2;
}

html.dark .catalog-category-clear {
  background: #202827;
  color: #d9fff0;
}

html.dark .catalog-category-clear:hover {
  background: rgba(67, 225, 210, 0.2);
  color: #ffffff;
}

html.dark .catalog-category-scroll-wrap::after {
  background: linear-gradient(270deg, #101414 8%, rgba(16, 20, 20, 0));
}

html.dark .catalog-category-chip {
  background: #202827;
  color: #d7e4df;
}

html.dark .catalog-category-chip:hover {
  background: #26302e;
  color: #ffffff;
}

html.dark .catalog-category-chip.is-active {
  background: #43E1D2;
  color: #002117;
}

.catalog-frame {
  transition: opacity 0.16s ease;
}

.catalog-frame[busy] {
  opacity: 0.64;
}

@media (max-width: 767px) {
  .catalog-category-strip {
    margin-inline: 0;
    padding: 0;
  }

  .catalog-category-heading {
    align-items: center;
  }

  .catalog-category-title {
    font-size: 1.18rem;
  }

  .catalog-category-scroll {
    gap: 0.5rem;
  }

  .catalog-category-chip {
    min-width: 5.8rem;
    min-height: 1.9rem;
    padding-inline: 0.85rem;
    font-size: 0.68rem;
  }
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-top: 0.25rem;
}

.catalog-pagination-link,
.catalog-pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: #3d4944;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-pagination-link {
  background: #eeeeee;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.catalog-pagination-link:hover {
  background: #e2e2e2;
  color: #1a1c1c;
  text-decoration: none;
}

.catalog-pagination-link.is-active {
  background: #006c51;
  color: #ffffff;
}

.catalog-pagination-link.is-disabled {
  color: #8a9792;
  opacity: 0.55;
}

.catalog-pagination-arrow .material-symbols-outlined {
  font-size: 1.3rem;
}

.catalog-pagination-gap {
  color: #6d7a73;
}

html.dark .catalog-pagination-link {
  background: #202827;
  color: #d7e4df;
}

html.dark .catalog-pagination-link:hover {
  background: #26302e;
  color: #ffffff;
}

html.dark .catalog-pagination-link.is-active {
  background: #1b7a60;
  color: #eafff7;
}

html.dark .catalog-pagination-gap {
  color: #8fa19a;
}

.cart-overlay {
  background:
    linear-gradient(135deg, rgba(249, 249, 249, 0.96), rgba(238, 251, 249, 0.94)),
    rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(16px);
}

.cart-panel {
  min-height: 100vh;
}

.cart-panel-header {
  border: 1px solid rgba(188, 202, 194, 0.75);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 0.9rem;
  padding: 1.25rem;
  box-shadow: 0 18px 42px rgba(0, 33, 23, 0.08);
}

.cart-eyebrow-row {
  color: #006c51;
}

.cart-title {
  color: #1a1c1c;
}

.cart-subtitle {
  color: #3d4944;
}

.cart-panel-close {
  border: 1px solid rgba(0, 108, 81, 0.2);
  background: rgba(67, 225, 210, 0.14);
  color: #00513d;
}

.cart-panel-close:hover {
  border-color: #43E1D2;
  background: rgba(67, 225, 210, 0.24);
  color: #002117;
}

.cart-form-card {
  border: 1px solid rgba(188, 202, 194, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(0, 33, 23, 0.06);
}

.cart-section-title {
  color: #1a1c1c;
}

.cart-summary-panel {
  border: 1px solid rgba(0, 108, 81, 0.14);
  background: #ffffff;
  color: #1a1c1c;
  box-shadow: 0 22px 54px rgba(0, 33, 23, 0.12);
}

.cart-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(188, 202, 194, 0.72);
}

.cart-summary-head > .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #43E1D2;
  color: #002117;
}

.cart-summary-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: #006c51;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cart-summary-items {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 108, 81, 0.26) transparent;
}

.cart-line-item {
  align-items: flex-start;
  border: 1px solid rgba(188, 202, 194, 0.68);
  border-radius: 0.8rem;
  background: #f9f9f9;
  padding: 0.8rem;
}

.cart-line-thumb {
  background: rgba(67, 225, 210, 0.16);
  color: #006c51;
}

.cart-line-name {
  color: #1a1c1c;
  margin: 0;
}

.cart-line-meta {
  color: #6d7a73;
  margin: 0.18rem 0 0;
}

.cart-line-price,
.cart-accent-text {
  color: #006c51;
}

.cart-line-quantity {
  min-height: 2.15rem;
  border: 1px solid rgba(0, 108, 81, 0.18);
  background: #ffffff;
  color: #1a1c1c;
}

.cart-line-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(67, 225, 210, 0.12);
  color: #006c51;
}

.cart-line-remove:hover {
  background: rgba(67, 225, 210, 0.24);
  color: #002117;
}

.cart-total-box {
  border-top: 1px solid rgba(188, 202, 194, 0.72);
  color: #3d4944;
}

.cart-total-line {
  border-top: 1px solid rgba(188, 202, 194, 0.72);
  color: #1a1c1c;
}

.cart-primary-action {
  border: 0;
  background: #43E1D2;
  color: #002117;
  box-shadow: 0 16px 34px rgba(67, 225, 210, 0.22);
}

.cart-primary-action:hover {
  filter: brightness(0.96);
}

.cart-secondary-action {
  border: 1px solid rgba(0, 108, 81, 0.16);
  background: transparent;
  color: #006c51;
}

.cart-secondary-action:hover {
  background: rgba(67, 225, 210, 0.1);
}

.cart-action-helper {
  color: #6d7a73;
}

.cart-empty-state {
  border: 1px dashed rgba(0, 108, 81, 0.28);
  border-radius: 0.8rem;
  background: rgba(67, 225, 210, 0.08);
  color: #3d4944;
}

.cart-empty-state .material-symbols-outlined {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: #006c51;
}

.cart-empty-state strong {
  color: #1a1c1c;
}

.cart-empty-state small {
  color: #6d7a73;
}

html.dark .cart-overlay {
  background:
    linear-gradient(135deg, rgba(16, 20, 20, 0.96), rgba(20, 37, 34, 0.94)),
    rgba(16, 20, 20, 0.95);
}

html.dark .cart-panel-header,
html.dark .cart-form-card,
html.dark .cart-summary-panel {
  border-color: rgba(64, 80, 75, 0.82);
  background: #151b1a;
  color: #f4f7f5;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}

html.dark .cart-title,
html.dark .cart-section-title,
html.dark .cart-summary-head h2,
html.dark .cart-line-name,
html.dark .cart-total-line,
html.dark .cart-empty-state strong {
  color: #f4f7f5;
}

html.dark .cart-subtitle,
html.dark .cart-line-meta,
html.dark .cart-total-box,
html.dark .cart-action-helper,
html.dark .cart-empty-state,
html.dark .cart-empty-state small {
  color: #b9c8c1;
}

html.dark .cart-eyebrow-row,
html.dark .cart-summary-kicker,
html.dark .cart-line-price,
html.dark .cart-accent-text {
  color: #43E1D2;
}

html.dark .cart-panel-close,
html.dark .cart-line-remove {
  border-color: rgba(67, 225, 210, 0.24);
  background: rgba(67, 225, 210, 0.1);
  color: #43E1D2;
}

html.dark .cart-panel-close:hover,
html.dark .cart-line-remove:hover {
  background: rgba(67, 225, 210, 0.18);
  color: #ffffff;
}

html.dark .cart-summary-head,
html.dark .cart-total-box,
html.dark .cart-total-line {
  border-color: rgba(64, 80, 75, 0.82);
}

html.dark .cart-line-item {
  border-color: rgba(64, 80, 75, 0.82);
  background: #202827;
}

html.dark .cart-line-thumb,
html.dark .cart-empty-state {
  background: rgba(67, 225, 210, 0.08);
  color: #43E1D2;
}

html.dark .cart-line-quantity {
  border-color: rgba(67, 225, 210, 0.18);
  background: #151b1a;
  color: #f4f7f5;
}

html.dark .cart-secondary-action {
  border-color: rgba(67, 225, 210, 0.2);
  color: #43E1D2;
}

html.dark .cart-secondary-action:hover {
  background: rgba(67, 225, 210, 0.1);
}

.loyalty-card {
  border-radius: 0.8rem;
  background: #3d1f16;
  color: #eebbad;
  padding: 1.35rem;
}

.loyalty-card .bi {
  color: #fc8f34;
  font-size: 1.6rem;
}

.loyalty-card h3 {
  color: #ffdbd1;
  font-size: 1.2rem;
  margin: 0.65rem 0 0.35rem;
}

.loyalty-card p {
  margin: 0;
  color: rgba(255, 219, 209, 0.78);
  font-size: 0.92rem;
}

.stitch-product-card {
  border-color: rgba(213, 195, 190, 0.35);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: none;
}

.stitch-product-card:hover {
  box-shadow: 0 22px 44px rgba(36, 11, 5, 0.09);
}

.product-image-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.stitch-product-card .card-img-top {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
  transition: transform 0.45s ease;
}

.stitch-product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-stock-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border-radius: 999px;
  background: var(--stitch-green);
  color: #00210c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.7rem;
  text-transform: uppercase;
}

.product-stock-badge.low {
  background: #fc8f34;
  color: #663100;
}

.product-stock-badge.out {
  background: #e4e2e1;
  color: #514441;
}

.stitch-product-card .card-body {
  padding: 1.2rem;
}

.stitch-product-card .product-title-card {
  min-height: 0;
  margin-bottom: 0.45rem;
  color: var(--stitch-primary);
  font-size: 1.16rem !important;
}

.product-card-description {
  min-height: 3rem;
  color: var(--stitch-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.stitch-product-card .product-price-highlight {
  color: var(--stitch-secondary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.35rem;
}

.stitch-product-card .product-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stitch-product-card .product-card-footer .btn {
  min-height: 2.75rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.stitch-product-card .cake-action-btn {
  gap: 0.35rem;
  background: var(--stitch-primary);
  box-shadow: none;
}

.stitch-product-card .cake-action-btn:disabled {
  background: #837470;
  opacity: 0.72;
}

.stitch-product-card .product-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stitch-secondary);
  color: var(--stitch-secondary);
  background: #fff;
}

.stitch-product-card .product-secondary-btn:hover {
  background: rgba(148, 74, 0, 0.06);
}

.fresh-batch-section {
  border-top: 1px solid rgba(213, 195, 190, 0.55);
  background: var(--stitch-surface-container);
  padding: 4.5rem 0;
}

.fresh-batch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.fresh-batch-inner > div {
  max-width: 620px;
}

.public-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid rgba(213, 195, 190, 0.55);
  color: var(--stitch-muted);
}

.public-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.public-footer strong {
  color: var(--stitch-primary);
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.public-footer .footer-link {
  color: var(--stitch-muted);
  font-weight: 700;
  text-decoration: none;
}

.public-footer .footer-link:hover {
  color: var(--stitch-secondary);
}

.public-footer p {
  margin: 0;
  opacity: 0.72;
}

.cart-floating {
  top: auto;
  right: 1.5rem;
  bottom: 1.5rem;
  border-color: rgba(213, 195, 190, 0.65);
  box-shadow: 0 24px 54px rgba(36, 11, 5, 0.18);
}

/* Product detail */
.product-detail-page {
  background: var(--stitch-surface);
  padding: 3rem 0 5rem;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--stitch-muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.product-breadcrumb a {
  color: var(--stitch-muted);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--stitch-secondary);
}

.product-breadcrumb .bi {
  color: #837470;
  font-size: 0.78rem;
}

.product-breadcrumb span {
  color: var(--stitch-primary);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 5rem;
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-gallery-main,
.product-gallery-thumb {
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--stitch-surface-container);
  box-shadow: 0 18px 42px rgba(36, 11, 5, 0.08);
}

.product-gallery-main {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.product-gallery-thumb {
  aspect-ratio: 1 / 1;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.product-gallery-main:hover img,
.product-gallery-thumb:hover img {
  transform: scale(1.05);
}

.product-info-panel {
  position: sticky;
  top: 7rem;
}

.product-info-heading {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-info-heading > span {
  color: var(--stitch-secondary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-info-heading h1 {
  color: var(--stitch-primary);
  font-size: clamp(2.2rem, 4vw, 3.85rem);
  line-height: 1.06;
  margin: 0;
}

.product-price-stock-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.product-price-stock-row strong {
  color: var(--stitch-secondary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.55rem;
}

.product-detail-stock {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  background: rgba(97, 222, 138, 0.18);
  color: #005228;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
}

.product-detail-stock.low {
  background: rgba(252, 143, 52, 0.18);
  color: #713700;
}

.product-detail-stock.out {
  background: #e4e2e1;
  color: #514441;
}

.product-detail-divider {
  height: 1px;
  background: rgba(213, 195, 190, 0.65);
  margin: 1.6rem 0;
}

.product-description-block h2 {
  color: var(--stitch-primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.product-description-block p {
  color: var(--stitch-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
  white-space: pre-line;
}

.product-purchase-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  min-height: 3.35rem;
  border: 1px solid #837470;
  border-radius: 0.7rem;
  overflow: hidden;
}

.quantity-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3.35rem;
  border: 0;
  background: transparent;
  color: var(--stitch-primary);
}

.quantity-control button:hover {
  color: var(--stitch-secondary);
  background: rgba(148, 74, 0, 0.06);
}

.quantity-control span {
  min-width: 3rem;
  text-align: center;
  color: var(--stitch-primary);
  font-weight: 800;
}

.product-detail-add-btn {
  flex: 1 1 auto;
  min-height: 3.35rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--stitch-primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(36, 11, 5, 0.18);
}

.product-detail-add-btn:hover {
  color: #fff;
  background: #3d1f16;
}

.product-detail-add-btn:disabled {
  background: #837470;
  box-shadow: none;
  opacity: 0.72;
}

.product-detail-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 1rem;
  border: 1px solid var(--stitch-secondary);
  border-radius: 0.7rem;
  color: var(--stitch-secondary);
  font-weight: 800;
}

.product-detail-whatsapp-btn:hover {
  border-color: var(--stitch-secondary);
  background: rgba(148, 74, 0, 0.06);
  color: var(--stitch-secondary);
}

.product-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.product-benefit-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  border-radius: 0.8rem;
  background: var(--stitch-surface-low);
  padding: 0.85rem;
}

.product-benefit-card .bi {
  color: var(--stitch-secondary);
  font-size: 1.35rem;
}

.product-benefit-card strong,
.product-benefit-card span {
  display: block;
}

.product-benefit-card strong {
  color: var(--stitch-primary);
  font-size: 0.88rem;
}

.product-benefit-card span {
  color: var(--stitch-muted);
  font-size: 0.76rem;
}

.related-products-section {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid rgba(213, 195, 190, 0.65);
}

.related-products-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.related-products-heading h2 {
  color: var(--stitch-primary);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  margin: 0;
}

.related-products-heading p {
  color: var(--stitch-muted);
  margin: 0.35rem 0 0;
}

.related-products-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--stitch-secondary);
  font-weight: 800;
  text-decoration: none;
}

.related-products-link:hover {
  color: #713700;
  text-decoration: underline;
}

.related-product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-product-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(36, 11, 5, 0.1);
}

.related-product-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--stitch-surface-container);
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.06);
}

.related-product-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
}

.related-product-body strong {
  color: var(--stitch-primary);
}

.related-product-body small {
  color: var(--stitch-muted);
  line-height: 1.35;
}

.related-product-body b {
  color: var(--stitch-secondary);
  margin-top: auto;
}

/* Checkout cart */
.checkout-cart {
  width: min(420px, calc(100vw - 2rem));
  max-height: min(82vh, 720px);
  overflow-y: auto;
  padding: 1.15rem;
  border-radius: 0.9rem;
  background: #fff;
}

.checkout-cart.checkout-expanded {
  width: min(1160px, calc(100vw - 2rem));
  max-height: min(88vh, 820px);
}

.checkout-cart .cart-header {
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-eyebrow {
  display: block;
  color: var(--stitch-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-cart .cart-header h5 {
  color: var(--stitch-primary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.22rem;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-counter {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  background: var(--stitch-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.cart-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(213, 195, 190, 0.75);
  border-radius: 0.65rem;
  background: var(--stitch-surface);
  color: var(--stitch-primary);
}

.cart-close-btn:hover {
  color: var(--stitch-secondary);
}

.checkout-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.checkout-expanded .checkout-shell {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
}

.checkout-summary-panel {
  border: 1px solid rgba(213, 195, 190, 0.5);
  border-radius: 0.85rem;
  background: var(--stitch-surface-low);
  padding: 1rem;
}

.checkout-cart .cart-items {
  max-height: 320px;
  padding-right: 0.2rem;
}

.checkout-expanded .cart-items {
  max-height: 260px;
}

.checkout-cart .carrinho-item {
  align-items: flex-start;
  padding: 0.9rem 0;
  margin: 0;
  border-bottom: 1px solid rgba(213, 195, 190, 0.45);
}

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

.checkout-cart .carrinho-item-texto {
  color: var(--stitch-text);
}

.checkout-cart .carrinho-item-texto strong,
.checkout-cart .carrinho-item-texto small {
  display: block;
}

.checkout-cart .carrinho-item-texto strong {
  color: var(--stitch-primary);
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.checkout-cart .carrinho-item-texto small {
  color: var(--stitch-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.checkout-cart .cart-quantity-input {
  width: 3.8rem !important;
  min-height: 2rem;
  border-color: rgba(213, 195, 190, 0.75);
  border-radius: 0.55rem;
}

.checkout-cart .cart-remove-btn {
  border-radius: 0.55rem;
}

.checkout-cart .cart-summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(213, 195, 190, 0.65);
  color: var(--stitch-primary);
  font-size: 1.04rem;
}

.checkout-cart .cart-summary strong {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.35rem;
}

.checkout-open-btn,
.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--stitch-secondary);
  color: #fff;
  font-weight: 800;
}

.checkout-open-btn:hover,
.checkout-submit-btn:hover {
  background: #713700;
  color: #fff;
}

.checkout-helper-text {
  color: var(--stitch-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.8rem 0 0;
}

.checkout-quality-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px dashed rgba(131, 116, 112, 0.7);
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.9rem;
}

.checkout-quality-card .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  background: #002e13;
  color: var(--stitch-green);
  flex: 0 0 auto;
}

.checkout-quality-card strong,
.checkout-quality-card span {
  display: block;
}

.checkout-quality-card strong {
  color: var(--stitch-primary);
  font-size: 0.88rem;
}

.checkout-quality-card span {
  color: var(--stitch-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.checkout-form {
  border: 0;
  margin: 0;
  padding: 0;
}

.checkout-form-header {
  margin-bottom: 1.25rem;
}

.checkout-form-header h2 {
  color: var(--stitch-primary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
}

.checkout-form-header p {
  color: var(--stitch-muted);
  margin: 0.35rem 0 0;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--stitch-muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--stitch-outline);
  border-radius: 999px;
}

.checkout-step.active {
  color: var(--stitch-secondary);
}

.checkout-step.active span {
  border-color: var(--stitch-secondary);
  background: var(--stitch-secondary);
  color: #fff;
}

.checkout-steps > i {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  background: rgba(213, 195, 190, 0.85);
}

.checkout-section {
  border: 1px solid rgba(213, 195, 190, 0.55);
  border-radius: 0.85rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(36, 11, 5, 0.04);
}

.checkout-section + .checkout-section {
  margin-top: 1rem;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.checkout-section-title .bi {
  color: var(--stitch-secondary);
  font-size: 1.25rem;
}

.checkout-section-title h3 {
  color: var(--stitch-primary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.28rem;
  margin: 0;
}

.checkout-field-grid,
.checkout-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.checkout-field label,
.checkout-city-state label {
  display: block;
  color: var(--stitch-muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.checkout-field .form-control,
.checkout-city-state .form-control,
.checkout-form select.form-control,
.checkout-form textarea.form-control {
  min-height: 2.95rem;
  border-color: rgba(213, 195, 190, 0.8);
  border-radius: 0.65rem;
  background: var(--stitch-surface);
  color: var(--stitch-text);
}

.checkout-form textarea.form-control {
  min-height: 6.5rem;
}

.checkout-field .form-control:focus,
.checkout-city-state .form-control:focus,
.checkout-form select.form-control:focus,
.checkout-form textarea.form-control:focus {
  border-color: var(--stitch-secondary);
  box-shadow: 0 0 0 0.2rem rgba(148, 74, 0, 0.12);
}

.checkout-feedback {
  display: block;
  color: var(--stitch-muted);
  font-size: 0.76rem;
  margin-top: 0.25rem;
}

.checkout-choice-grid,
.checkout-payment-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-choice,
.checkout-payment-choice {
  cursor: pointer;
}

.checkout-choice {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(213, 195, 190, 0.85);
  border-radius: 0.8rem;
  padding: 1rem;
}

.checkout-choice:has(input:checked),
.checkout-payment-choice:has(input:checked) {
  border-color: var(--stitch-secondary);
  background: rgba(148, 74, 0, 0.06);
}

.checkout-choice input,
.checkout-payment-choice input {
  accent-color: var(--stitch-secondary);
}

.checkout-choice span strong,
.checkout-choice span small {
  display: block;
}

.checkout-choice span strong {
  color: var(--stitch-primary);
}

.checkout-choice span small {
  color: var(--stitch-muted);
  font-size: 0.8rem;
}

.checkout-payment-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid rgba(213, 195, 190, 0.85);
  border-radius: 0.8rem;
  color: var(--stitch-muted);
  font-weight: 800;
}

.checkout-payment-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-payment-choice .bi {
  font-size: 1.8rem;
}

.checkout-payment-choice:has(input:checked) {
  color: var(--stitch-secondary);
}

.checkout-hidden-select {
  position: absolute;
  width: 1px !important;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.checkout-address-grid {
  margin-top: 1rem;
}

.checkout-city-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 0.75rem;
}

/* About */
.about-page {
  flex: 1 0 auto;
  background: var(--stitch-surface);
  padding: 3rem 0 4rem;
}

.about-shell {
  max-width: 1180px;
}

.about-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(213, 195, 190, 0.55);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 242, 0.86)),
    radial-gradient(circle at top right, rgba(252, 143, 52, 0.12), transparent 38%);
  box-shadow: 0 18px 44px rgba(36, 11, 5, 0.06);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.about-copy {
  max-width: 760px;
}

.about-copy h1 {
  color: var(--stitch-primary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 0.8rem;
}

.about-copy p:not(.hero-kicker) {
  color: var(--stitch-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.about-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  border: 1px solid rgba(131, 116, 112, 0.55);
  border-radius: 0.65rem;
  color: var(--stitch-primary);
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.about-back-link:hover {
  border-color: var(--stitch-secondary);
  color: var(--stitch-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-card {
  border: 1px solid rgba(213, 195, 190, 0.55);
  border-radius: 0.85rem;
  background: #fff;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(36, 11, 5, 0.04);
}

.about-card .bi {
  color: var(--stitch-secondary);
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}

.about-card h2 {
  color: var(--stitch-primary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

.about-card p {
  color: var(--stitch-muted);
  line-height: 1.6;
  margin: 0;
}

/* Login */
.devise-body {
  min-height: 100vh;
  background-color: var(--stitch-surface);
  background-image: radial-gradient(rgba(213, 195, 190, 0.8) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 2rem 1rem;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid rgba(213, 195, 190, 0.45);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(61, 31, 22, 0.09);
  padding: 2rem;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--stitch-muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.login-back-link:hover {
  color: var(--stitch-secondary);
}

.login-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--stitch-primary);
  box-shadow: 0 12px 28px rgba(36, 11, 5, 0.14);
  margin-bottom: 1rem;
}

.login-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brand h1 {
  color: var(--stitch-primary);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
}

.login-brand p {
  color: var(--stitch-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0;
}

.login-alert {
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.login-alert-danger {
  background: #ffdad6;
  color: #93000a;
}

.login-alert-success {
  background: rgba(97, 222, 138, 0.18);
  color: #005228;
}

.login-card #error_explanation {
  border-radius: 0.7rem;
  background: #ffdad6;
  color: #93000a;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.login-card #error_explanation h2 {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
}

.login-card #error_explanation ul {
  margin: 0;
  padding-left: 1.1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-field label,
.login-label-row a,
.login-remember label {
  font-size: 0.86rem;
  font-weight: 800;
}

.login-field > label,
.login-label-row label {
  color: var(--stitch-primary);
  margin-bottom: 0.4rem;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.login-label-row a {
  color: var(--stitch-secondary);
  text-decoration: none;
}

.login-label-row a:hover {
  text-decoration: underline;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap .bi {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: #837470;
  transform: translateY(-50%);
}

.login-input-wrap input {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid rgba(213, 195, 190, 0.85);
  border-radius: 0.7rem;
  background: var(--stitch-surface);
  color: var(--stitch-text);
  padding: 0.8rem 1rem 0.8rem 2.9rem;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input-wrap input::placeholder {
  color: rgba(131, 116, 112, 0.65);
}

.login-input-wrap input:focus {
  border-color: var(--stitch-secondary);
  box-shadow: 0 0 0 0.2rem rgba(148, 74, 0, 0.12);
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--stitch-primary);
}

.login-remember label {
  color: var(--stitch-muted);
  cursor: pointer;
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.45rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--stitch-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(36, 11, 5, 0.13);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.login-submit-btn:hover {
  background: #3d1f16;
}

.login-submit-btn:active {
  transform: translateY(1px);
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(213, 195, 190, 0.55);
  color: #837470;
  font-size: 0.84rem;
  font-weight: 800;
}

.login-copyright {
  position: relative;
  z-index: 1;
  color: rgba(131, 116, 112, 0.75);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 1.5rem 0 0;
  text-align: center;
}

.login-background {
  position: fixed;
  z-index: 0;
  width: min(32vw, 420px);
  opacity: 0.055;
  pointer-events: none;
}

.login-background img {
  width: 100%;
  border-radius: 1.2rem;
  object-fit: cover;
}

.login-background-top {
  top: 1.5rem;
  right: 1.5rem;
}

.login-background-bottom {
  left: 1.5rem;
  bottom: 1.5rem;
}

@media (max-width: 991px) {
  .catalog-layout > aside {
    position: static;
  }

  .checkout-cart.checkout-expanded {
    width: auto;
  }

  .checkout-expanded .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-summary-panel {
    position: static;
  }

  .checkout-cart .cart-items,
  .checkout-expanded .cart-items {
    max-height: 220px;
  }

  .product-detail-page {
    padding-top: 2rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-info-panel {
    position: static;
  }

  .product-breadcrumb {
    margin-bottom: 1.5rem;
  }

  .dashboard-hero,
  .hero-925 {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero-badge {
    min-width: 0;
    width: 100%;
  }

  .navbar-brand {
    min-width: 0;
  }

  .navbar-brand .fw-semibold {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: normal;
  }

  .admin-avatar-logo {
    width: 44px;
    height: 44px;
  }

  .admin-topbar-inner {
    min-height: 68px;
  }

  .admin-nav-wrap {
    top: 68px;
  }

  .admin-brand .brand-text strong {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .admin-brand .brand-text small {
    max-width: 190px;
    font-size: 0.68rem;
  }

  .brand-logo-frame-admin {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .topbar-links {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .hero-925 {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .navbar-classic .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-topbar .site-topbar-inner {
    flex-direction: row;
    align-items: center;
  }

  .mobile-menu-links {
    display: flex;
    width: auto;
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-925 {
    width: auto;
    flex: 1 1 auto;
  }

  .search-joias-btn {
    min-width: 48px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .search-joias-btn span {
    display: none;
  }

  .search-joias-btn .bi {
    margin-right: 0 !important;
  }

  .product-meta-row,
  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .card-image-product img {
    min-height: 230px;
    max-height: 230px;
  }

  .detail-chip {
    justify-content: space-between;
    width: 100%;
  }

  .cart-floating {
    top: auto;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-height: min(78vh, 640px);
    overflow-y: auto;
    border-radius: 1rem;
  }

  .checkout-form .btn,
  .product-card-footer .btn,
  .product-card-footer button,
  .d-flex.gap-2 .btn {
    width: 100%;
  }

  .card-body {
    overflow-wrap: anywhere;
  }

  .table-responsive {
    border-radius: 0.8rem;
  }

  .admin-shell-bg {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .admin-shell-bg .table {
    min-width: 720px;
  }

  .admin-shell-bg .table th,
  .admin-shell-bg .table td {
    padding: 0.72rem 0.85rem;
  }

  .admin-shell-bg .card.border,
  .admin-shell-bg .card.border-0 {
    margin-bottom: 1rem !important;
  }

  .admin-shell-bg form.row > [class*="col-"] {
    margin-bottom: 0.65rem;
  }

  .admin-shell-bg form.row .d-flex {
    gap: 0.5rem;
  }

  .admin-shell-bg form.row .d-flex .btn {
    flex: 1 1 0;
  }

  .pagy-bootstrap-nav .pagination {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 5.5rem;
  }

  .about-page {
    padding: 2rem 0 3rem;
  }

  .about-hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    flex-direction: column;
  }

  .about-back-link {
    width: 100%;
  }

  .devise-body {
    padding-bottom: 0;
  }

  .login-page {
    padding: 1.25rem 1rem;
  }

  .login-card {
    padding: 1.35rem;
  }

  .login-background {
    width: 52vw;
  }

  .checkout-cart {
    padding: 1rem;
  }

  .checkout-steps {
    align-items: flex-start;
  }

  .checkout-step {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
  }

  .checkout-step strong {
    display: none;
  }

  .checkout-field-grid,
  .checkout-address-grid,
  .checkout-choice-grid,
  .checkout-payment-grid {
    grid-template-columns: 1fr;
  }

  .checkout-section {
    padding: 1rem;
  }

  .cake-hero {
    min-height: 520px;
  }

  .cake-hero-brand-bg {
    justify-content: center;
    padding: 0;
  }

  .cake-hero-brand-bg img {
    width: 100%;
    opacity: 0.18;
    transform: none;
  }

  .cake-hero-copy {
    padding: 3rem 0;
  }

  .cake-hero-copy h1,
  .product-info-heading h1 {
    font-size: 2.25rem;
  }

  .featured-cakes-section,
  .catalog-section,
  .related-products-section {
    padding-top: 3.5rem;
  }

  .catalog-section,
  .product-detail-page {
    padding-bottom: 3.5rem;
  }

  .section-heading,
  .stitch-catalog-heading,
  .fresh-batch-inner,
  .related-products-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-gallery {
    gap: 0.85rem;
  }

  .product-gallery-thumb {
    display: none;
  }

  .product-purchase-box,
  .product-benefits-grid {
    grid-template-columns: 1fr;
  }

  .product-purchase-box {
    align-items: stretch;
    flex-direction: column;
  }

  .quantity-control {
    justify-content: space-between;
    width: 100%;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .admin-topbar-inner {
    gap: 0.65rem;
  }

  .admin-logout-btn {
    width: 2.65rem;
    min-width: 2.65rem;
    padding-left: 0;
    padding-right: 0;
  }

  .admin-logout-btn span {
    display: none;
  }

  .admin-nav-wrap .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .admin-nav-links {
    gap: 0.45rem;
    padding: 0.55rem 0;
  }

  .admin-nav-link {
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
  }

  .admin-shell-bg .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .admin-shell-bg .card-body {
    padding: 1rem;
  }

  .admin-shell-bg h3 {
    font-size: 1.25rem;
  }

  .admin-shell-bg h4 {
    font-size: 1.12rem;
  }

  .admin-shell-bg h5,
  .admin-shell-bg h6 {
    font-size: 1rem;
  }

  .admin-shell-bg .badge {
    white-space: normal;
  }

  .hero-925 {
    gap: 1rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-subtitle,
  .carrinho-item-texto {
    font-size: 0.9rem;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-count {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
  }

  .search-joias-group {
    flex-wrap: wrap !important;
    gap: 0.5rem;
  }

  .search-joias-group .form-control {
    border-right: 1px solid #ced4da;
    border-radius: 0.5rem !important;
  }

  .search-joias-btn {
    width: 100%;
    min-width: 0;
    border-radius: 0.5rem;
  }

  .search-joias-btn span {
    display: inline;
  }

  .search-joias-btn .bi {
    margin-right: 0.25rem !important;
  }

  .featured-product-card,
  .metric-card,
  .financial-entry-card,
  .card,
  .hero-925,
  .dashboard-hero {
    border-radius: 0.8rem;
  }

  .product-title-card {
    min-height: 0;
  }

  .product-price-highlight {
    font-size: 1rem;
  }

  .product-stock-pill {
    justify-content: center;
  }

  .finance-line,
  .info-row,
  .low-stock-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero .btn,
  .card-body > .d-flex.justify-content-between .btn,
  .card-body > .d-flex.align-items-center .btn {
    width: 100%;
  }

  .card-body > .d-flex.justify-content-between,
  .card-body > .d-flex.align-items-center,
  .card-body .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .admin-nav-links li {
    margin-bottom: 0 !important;
  }

  .card-footer .d-flex {
    flex-direction: column;
    align-items: center !important;
    gap: 0.75rem;
  }
}

@media (max-width: 575px) {
  .cart-header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 0.4rem;
  }

  .checkout-city-state {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-gallery-main,
  .product-gallery-thumb {
    aspect-ratio: 4 / 3;
  }

  .product-benefits-grid {
    display: flex;
    flex-direction: column;
  }

  .login-logo-image {
    width: 76px;
    height: 76px;
  }

  .brand-logo-image {
    border-radius: 0.7rem;
  }

  .brand-logo-frame {
    width: 4.7rem;
    height: 3.45rem;
    flex-basis: 4.7rem;
    border-radius: 0.75rem;
  }

  .admin-brand .brand-logo-frame {
    width: 4.4rem;
    height: 3.25rem;
    flex-basis: 4.4rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text small {
    font-size: 0.65rem;
  }

  .admin-brand .brand-text strong {
    max-width: 190px;
  }

  .admin-brand .brand-text small {
    max-width: 185px;
  }

  .admin-shell-bg .table {
    min-width: 640px;
  }

  .admin-shell-bg .table th,
  .admin-shell-bg .table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
  }

  .admin-shell-bg .btn-sm {
    min-width: 2.35rem;
  }

  .card-image-product img {
    min-height: 220px;
    max-height: 220px;
  }

  .cake-action-btn,
  .product-secondary-btn,
  .topbar-link,
  .topbar-link-cta {
    width: 100%;
    justify-content: center;
  }

  .topbar-links {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .carrinho-item {
    gap: 0.5rem;
  }

  .carrinho-item .btn {
    flex-shrink: 0;
  }
}
