/*


 */

@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;
}

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-cart-button {
  position: relative;
  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);
}

.topbar-cart-button .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.topbar-cart-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.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-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  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;
}

.cart-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--stitch-secondary);
  color: #fff;
  box-shadow: 0 18px 36px rgba(36, 11, 5, 0.22);
}

.cart-launcher .bi {
  font-size: 1.35rem;
  line-height: 1;
}

.cart-launcher-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--stitch-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.25rem;
}

/* 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;
}

.top-contact-section {
  padding: 1.25rem 0 0;
}

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

.top-contact-copy {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.top-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border: 1px solid #efd7bb;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--stitch-secondary);
  font-size: 1.35rem;
}

.top-contact-copy strong {
  display: block;
  color: var(--stitch-primary);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.top-contact-copy small {
  display: block;
  color: var(--stitch-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.featured-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: 999px;
  background: #fff;
  color: #116b35;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 26px rgba(36, 11, 5, 0.08);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-whatsapp-btn:hover {
  background: #25d366;
  color: #062d17;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.2);
}

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

.catalog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.catalog-category-dropdown {
  position: relative;
  min-width: 230px;
}

.catalog-category-toggle {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(213, 195, 190, 0.72);
  border-radius: 0.8rem;
  color: var(--stitch-primary);
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.catalog-category-toggle:hover,
.catalog-category-toggle:focus,
.catalog-category-dropdown[data-state="open"] .catalog-category-toggle {
  border-color: rgba(148, 74, 0, 0.45);
  box-shadow: 0 12px 28px rgba(36, 11, 5, 0.08);
}

.catalog-category-toggle:hover {
  transform: translateY(-1px);
}

.catalog-category-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgba(252, 143, 52, 0.12);
  color: var(--stitch-secondary);
}

.catalog-category-toggle-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.1;
}

.catalog-category-toggle-copy small {
  color: var(--stitch-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-category-toggle-copy strong {
  overflow: hidden;
  color: var(--stitch-primary);
  font-size: 0.92rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-category-chevron {
  color: var(--stitch-muted);
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-chevron {
  transform: rotate(180deg);
}

.catalog-category-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 20;
  pointer-events: none;
  min-width: 230px;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top center;
  border: 1px solid rgba(213, 195, 190, 0.72);
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.4rem;
  box-shadow: 0 18px 38px rgba(36, 11, 5, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.catalog-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-radius: 0.55rem;
  color: var(--stitch-primary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.62rem 0.75rem;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.18s ease, transform 0.18s ease;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item {
  opacity: 1;
  transform: translateX(0);
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item:nth-child(1) {
  transition-delay: 0.03s;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item:nth-child(2) {
  transition-delay: 0.06s;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item:nth-child(3) {
  transition-delay: 0.09s;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item:nth-child(4) {
  transition-delay: 0.12s;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item:nth-child(5) {
  transition-delay: 0.15s;
}

.catalog-category-dropdown[data-state="open"] .catalog-category-item:nth-child(n+6) {
  transition-delay: 0.18s;
}

.catalog-category-item.active,
.catalog-category-item:active {
  background: rgba(148, 74, 0, 0.1);
  color: var(--stitch-secondary);
}

.catalog-category-item:hover {
  background: rgba(252, 143, 52, 0.1);
  color: var(--stitch-primary);
}

.product-carousel {
  position: relative;
  padding: 0 1.7rem;
}

.product-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.1rem 1.1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.product-carousel-track {
  display: flex;
  margin-left: -1rem;
}

.product-carousel-item {
  min-width: 0;
  flex: 0 0 100%;
  padding-left: 1rem;
  scroll-snap-align: start;
}

.product-carousel-item .stitch-product-card {
  height: 100%;
}

.product-carousel-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.product-carousel-btn {
  position: absolute;
  top: 43%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(213, 195, 190, 0.82);
  border-radius: 999px;
  background: #fff;
  color: var(--stitch-primary);
  box-shadow: 0 10px 24px rgba(36, 11, 5, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  pointer-events: auto;
}

.product-carousel-btn:first-child {
  left: 0;
}

.product-carousel-btn:last-child {
  right: 0;
}

.product-carousel-btn:hover:not(:disabled) {
  border-color: rgba(148, 74, 0, 0.5);
  background: var(--stitch-primary);
  color: #fff;
  transform: translateY(-1px);
}

.product-carousel-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}

@media (min-width: 768px) {
  .product-carousel-item {
    flex-basis: 50%;
  }
}

@media (min-width: 1200px) {
  .product-carousel {
    padding: 0;
  }

  .product-carousel-viewport {
    overflow: visible;
    padding: 0;
  }

  .product-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-left: 0;
  }

  .product-carousel-item {
    padding-left: 0;
  }

  .product-carousel-controls {
    display: none;
  }
}

.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;
}

.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;
  }

  .cart-launcher {
    right: 1rem;
    bottom: 1rem;
    width: 3.4rem;
    height: 3.4rem;
  }

  .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;
  }

  .featured-cakes-section {
    overflow: hidden;
  }

  .featured-cakes-track {
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 1rem;
    margin-right: -1rem;
    margin-left: -1rem;
    overflow-x: auto;
    padding: 0 1rem 0.85rem;
    scroll-padding-left: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .featured-cakes-track::-webkit-scrollbar {
    display: none;
  }

  .featured-cakes-item {
    flex: 0 0 62%;
    max-width: 62%;
    padding-right: 0.75rem;
    padding-left: 0;
    scroll-snap-align: start;
  }

  .featured-cake-card {
    min-height: 210px;
    border-radius: 0.65rem;
    box-shadow: 0 16px 32px rgba(36, 11, 5, 0.12);
  }

  .featured-cake-card > div {
    padding: 0.95rem;
  }

  .featured-cake-card h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
  }

  .featured-cake-card p {
    display: none;
  }

  .featured-cake-card strong {
    font-size: 1rem;
  }

  .featured-cake-badge {
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.58rem;
    padding: 0.32rem 0.55rem;
  }

  .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;
  }

  .top-contact-inner {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 0.9rem;
    padding: 0.95rem;
  }

  .top-contact-copy {
    align-items: flex-start;
  }

  .top-contact-icon {
    width: 2.65rem;
    height: 2.65rem;
    flex-basis: 2.65rem;
  }

  .top-contact-inner .featured-whatsapp-btn {
    width: 100%;
  }

  .catalog-actions {
    width: 100%;
    justify-content: space-between;
  }

  .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;
  }

  .catalog-actions,
  .catalog-category-dropdown {
    width: 100%;
  }

  .catalog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-carousel {
    padding: 0;
  }

  .product-carousel-controls {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.35rem;
  }

  .product-carousel-btn {
    position: static;
  }

  .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;
  }

  .featured-cakes-item {
    flex-basis: 66%;
    max-width: 66%;
  }

  .featured-cake-card {
    min-height: 190px;
  }

  .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;
  }
}
