.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.product-card {
  background: #fff;
  border-radius: 0 0 8px 0;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 360px;
  animation: fadeUp 0.6s ease both;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }

.product-media {
  position: relative;
  background: #f5f4f2;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media img[data-fit="contain"] {
  object-fit: contain;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.product-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 1;
}

.product-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  text-align: center;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.product-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.price {
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.price-now {
  color: #111827;
  font-weight: 700;
  font-size: 1.1rem;
}

.product-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

.size-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.size-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.size-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.size-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(420px, 92vw);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.size-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.size-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.size-option {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-option.is-disabled,
.size-option[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.size-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 520px) {
  .size-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  margin-top: auto;
}

.product-actions .btn {
  width: 100%;
  border-radius: 0;
}

.product-actions .btn-outline {
  border: 0;
}

.product-actions .btn:last-child {
  border-bottom-right-radius: 8px;
}

.badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111827;
  color: #fff;
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-sale--subtle {
  background: rgba(var(--primary-rgb), 0.18);
  color: #f05a28;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: absolute;
  top: 10px;
  left: 10px;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel-header a {
  color: var(--primary);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 12px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #94a3b8;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-breadcrumbs a {
  color: #64748b;
  font-weight: 600;
}

.product-breadcrumbs .crumb-current {
  color: #475569;
  font-weight: 600;
}

.product-breadcrumbs .crumb-sep {
  color: #cbd5f5;
}

.product-breadcrumbs .crumb-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.product-divider {
  height: 1px;
  width: 100%;
  background: var(--border);
  margin: 12px 0 18px;
}

.product-detail-box {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-label {
  font-weight: 700;
  color: #374151;
}

.detail-value {
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.detail-value.align-right {
  justify-content: flex-end;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-price .price-old {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}

.detail-price .price-label {
  color: #9ca3af;
  text-transform: lowercase;
}

.detail-price .price-now {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.promo-countdown {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(255, 255, 255, 0.9));
}

.promo-countdown-label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.promo-countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.promo-countdown-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.promo-countdown-item span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

.promo-countdown-item small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.08em;
}

.promo-countdown--compact {
  margin: 10px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border-color: rgba(var(--primary-rgb), 0.18);
  background: #fff7f2;
}

.promo-countdown--compact .promo-countdown-label {
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.promo-countdown--compact .promo-countdown-timer {
  gap: 6px;
}

.promo-countdown--compact .promo-countdown-item {
  padding: 6px;
  border-radius: 10px;
  box-shadow: none;
  background: #fff;
}

.promo-countdown--compact .promo-countdown-item span {
  font-size: 0.95rem;
}

.promo-countdown--compact .promo-countdown-item small {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.btn-whatsapp {
  background: #4caf50;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-whatsapp:hover {
  opacity: 0.92;
}

.product-meta a {
  color: var(--primary);
  font-weight: 600;
}

.product-meta .sep {
  color: #94a3b8;
}

.product-ref {
  margin-left: auto;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #334155;
}

.product-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.share-actions {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.share-actions.is-open {
  display: flex;
}

.product-sizes {
  margin-top: 12px;
  margin-bottom: 12px;
}

.product-sizes h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.size-pill {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  background: #fff;
}

.size-grid-select .size-pill {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
}

.size-grid-select .size-pill.is-selected {
  border-color: var(--primary);
  background: #fff2eb;
}

.size-grid-select .size-pill.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #e5e7eb;
  background: #f8fafc;
}

.size-pill strong {
  display: block;
  font-size: 0.9rem;
}

.size-pill small {
  color: #64748b;
  font-size: 0.75rem;
}

.product-description {
  margin-top: 12px;
  line-height: 1.8;
  color: #334155;
}

.product-description p {
  margin-bottom: 12px;
}

.product-description ul,
.product-description ol {
  padding-left: 18px;
  margin-bottom: 12px;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4 {
  margin: 12px 0;
  color: #111827;
}

.variation-box {
  background: #fff4ea;
  border: 1px solid #fde4d7;
  border-radius: 16px;
  padding: 24px;
}

.related-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.news-banner {
  margin: 40px auto 0;
}

.news-banner-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  font-weight: 600;
  color: var(--text);
  justify-content: space-between;
  flex-wrap: wrap;
}

.news-banner-box strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.news-banner-box span {
  display: block;
  color: #374151;
  margin-bottom: 2px;
}

.news-banner-box em {
  display: block;
  font-style: normal;
  color: #111827;
  font-weight: 700;
}

.news-banner-btn {
  white-space: nowrap;
}

.history-carousel {
  margin: 48px auto 0;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.history-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.history-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.history-card {
  min-width: 200px;
  max-width: 200px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
}

.history-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-info {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.history-info strong {
  font-size: 0.95rem;
  color: #111827;
}

.history-info span {
  font-size: 0.85rem;
  color: #6b7280;
}

.history-info em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}

.page-title-group {
  margin: 0 0 22px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ticket-thread-box {
  grid-column: 1;
}

.ticket-reply-box {
  grid-column: 1;
}

.ticket-side {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ticket-box {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.ticket-header {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.ticket-header strong {
  font-size: 1.05rem;
}

.ticket-form {
  display: grid;
  gap: 16px;
}

.ticket-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-field {
  display: grid;
  gap: 6px;
}

.ticket-form .input {
  border-radius: 8px;
}

.ticket-form textarea.input,
.ticket-rating textarea.input {
  border-radius: 6px;
}

.ticket-label {
  font-weight: 600;
  color: #374151;
}

.ticket-actions {
  display: flex;
  justify-content: flex-end;
}

.ticket-drop {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 6px;
  text-align: center;
  color: #475569;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ticket-drop:hover {
  border-color: #f59e0b;
  background: rgba(var(--primary-rgb), 0.08);
}

.ticket-drop-input {
  display: none;
}

.ticket-drop-title {
  font-weight: 600;
}

.ticket-drop-sub {
  font-size: 0.85rem;
  color: #94a3b8;
}

.ticket-drop.is-drag {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.ticket-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ticket-upload-item {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ticket-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-upload-item span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.ticket-info {
  position: sticky;
  top: 110px;
}

.ticket-info-list {
  display: grid;
  gap: 10px;
  color: #374151;
}

.ticket-trigger {
  min-height: 1px;
}

.ticket-view .ticket-box:first-child {
  border-color: #e2e8f0;
}

.ticket-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
}

.ticket-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 6px;
}

.ticket-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.ticket-status-badge.status-0 {
  background: rgba(234, 179, 8, 0.18);
  color: #a16207;
}

.ticket-status-badge.status-1 {
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.ticket-status-badge.status-2 {
  background: rgba(15, 23, 42, 0.12);
  color: #475569;
}

.ticket-thread {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ticket-thread-box {
  padding: 0;
  overflow: hidden;
}

.ticket-thread {
  padding: 20px;
  background: #f8fafc;
  max-height: 520px;
  overflow-y: auto;
}

.ticket-bubble {
  max-width: 85%;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

.ticket-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.ticket-bubble-body {
  font-size: 0.98rem;
  line-height: 1.6;
}

.ticket-bubble span {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

.ticket-bubble.is-admin {
  margin-left: auto;
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.ticket-bubble.is-client {
  margin-right: auto;
}

.ticket-side {
  display: grid;
  gap: 16px;
}

.ticket-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.ticket-side-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.ticket-side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticket-side-card li {
  display: grid;
  gap: 4px;
}

.ticket-side-card li span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.ticket-side-card li strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ticket-attachment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5f5;
  font-size: 0.85rem;
  color: #1f2937;
  text-decoration: none;
}

.ticket-attachment img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.ticket-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #475569;
}

.ticket-file-name {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-rating {
  display: grid;
  gap: 12px;
}

.ticket-stars {
  display: flex;
  gap: 6px;
}

.ticket-star {
  font-size: 1.4rem;
  border: 0;
  background: transparent;
  color: #cbd5f5;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ticket-star:hover,
.ticket-star.active {
  color: #f59e0b;
  transform: scale(1.05);
}

.ticket-rating-readonly {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.ticket-rating-readonly .ticket-star {
  cursor: default;
}

@media (max-width: 960px) {
  .ticket-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-thread {
    padding: 16px;
    max-height: 360px;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .ticket-side,
  .ticket-reply-box,
  .ticket-thread-box {
    grid-column: auto;
    grid-row: auto;
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  z-index: 999;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lead-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lead-modal.open {
  display: flex;
}

.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.lead-card {
  position: relative;
  width: min(520px, 94vw);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
  z-index: 1;
}

.lead-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lead-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.whatsapp-modal.open {
  display: flex;
}

.whatsapp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.whatsapp-card {
  position: relative;
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  z-index: 1;
}

.whatsapp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.whatsapp-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.whatsapp-form {
  display: grid;
  gap: 12px;
}

.whatsapp-form .btn {
  width: 100%;
}

.product-subtitle {
  margin: 12px 0 18px;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.product-subtitle-top {
  margin-top: 6px;
  margin-bottom: 14px;
}

.product-order {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.order-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

.order-label {
  font-weight: 700;
  color: #374151;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qty-stepper input {
  width: 60px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.qty-btn:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}

.order-notes textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}

.order-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.order-total strong {
  color: var(--primary);
}

.btn-cart {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}

/* Produto sem estoque: some quantidade/observação/total e o botão vira "Esgotado". */
.product-order.is-soldout .order-qty,
.product-order.is-soldout .order-notes,
.product-order.is-soldout .order-total {
  display: none;
}

.btn-cart.is-disabled,
.btn-cart:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.product-soldout-note {
  margin: 8px 0 0;
  text-align: center;
}

.product-description-block {
  margin-top: 32px;
}

.description-box {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px 24px;
}

.description-box h3 {
  margin-bottom: 12px;
}

.size-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #ef4444;
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .order-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

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

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.link-muted {
  color: var(--muted);
  font-weight: 600;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 20px 0;
}

.page-title-center {
  /* text-align: center !important; */
  width: 100%;
}

.cart-wrap {
  /* max-width: 820px; */
  margin: 0 auto;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .input {
  border-radius: 12px;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.auth-box {
  margin: 24px 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-header h2 {
  margin: 0 0 6px;
}

.auth-header p {
  margin: 0;
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.auth-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.auth-panel {
  display: none;
  animation: fadeUp .25s ease;
}

.auth-panel.is-active {
  display: block;
}

.auth-login-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.auth-login-action .btn {
  width: 100%;
  min-width: 140px;
}

.auth-link-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: #f8fafc;
}

.auth-link-block h4 {
  margin: 0 0 4px;
}

.auth-link-block p {
  margin: 0 0 12px;
  color: var(--muted);
}

.auth-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.auth-register-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-register-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.auth-label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  color: #374151;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  font-weight: 600;
  color: var(--muted);
}

.auth-feedback {
  margin-top: 16px;
}

.auth-loading {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--muted);
}

.auth-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--primary);
  animation: authSpin 0.9s linear infinite;
}

.auth-loading.is-visible {
  display: flex;
}

.auth-continue {
  width: 100%;
  margin-top: 16px;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-box.is-logged .auth-tabs,
.auth-box.is-logged .auth-panels {
  display: none;
}

.auth-logged-message {
  margin-top: 12px;
  color: var(--muted);
}

.topbar-account {
  color: #fff;
  font-weight: 700;
}

.topbar-account:hover {
  text-decoration: underline;
}

.topbar-coupon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.topbar-coupon-label strong {
  font-weight: 800;
}

.topbar-coupon-time {
  font-size: 0.75rem;
  opacity: 0.9;
}

.account-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.account-modal.open {
  display: flex;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.account-card {
  position: relative;
  width: min(720px, 94vw);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  z-index: 1;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.account-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.account-auth {
  border: 0;
  padding: 0;
  box-shadow: none;
}

.auth-welcome {
  margin: 20px 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-links a {
  margin-left: 12px;
  font-weight: 700;
  color: var(--primary);
}

.customer-area {
  display: grid;
  gap: 24px;
  margin: 24px auto 40px;
  width: 100%;
}

.customer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.customer-grid > * {
  min-width: 0;
}

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

.customer-card .product-card {
  min-height: 0;
  animation: none;
}

.customer-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.customer-card h3 {
  margin-top: 0;
}

.customer-title-bar {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.customer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-table td,
.customer-table th {
  text-align: center;
}

.customer-table a {
  color: var(--primary);
  font-weight: 700;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.ticket-status-open {
  background: rgba(234, 179, 8, 0.18);
  color: #a16207;
}

.ticket-status-wait {
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.ticket-status-closed {
  background: rgba(15, 23, 42, 0.12);
  color: #475569;
}

.customer-menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.customer-menu-wrapper {
  width: 100%;
}

.customer-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.customer-menu-toggle .hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.customer-menu-toggle .hamburger span {
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  display: block;
}

.customer-menu-toggle .hamburger-label {
  font-weight: 700;
  color: #111827;
}

.customer-tab {
  border: 0;
  background: #f8fafc;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  transition: all .2s ease;
}

.customer-tab:hover {
  background: #eef2f7;
}

.customer-tab.is-active {
  background: var(--primary);
  color: #fff;
}

.customer-panels {
  margin-top: 20px;
}

.customer-panel {
  display: none;
}

.customer-panel.is-active {
  display: block;
}

.customer-link {
  margin-top: 12px;
  font-weight: 700;
}

.customer-card-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.customer-orders-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  text-decoration: none;
}

.order-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.order-card-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.customer-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.customer-products-carousel {
  overflow: hidden;
  margin-top: 12px;
  width: 100%;
  min-width: 0;
}

.customer-products-slider {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.customer-products-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.customer-products-page {
  flex: 0 0 100%;
  padding-right: 8px;
}

.customer-products-slider .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-products-slider .product-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.customer-products-slider .product-media {
  background: transparent;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111827;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

.customer-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
  width: 260px;
  max-width: 70vw;
}

.customer-product-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.customer-product-card img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.customer-product-card img[data-fit="contain"] {
  object-fit: contain;
}

.customer-product-info strong {
  display: block;
}

.customer-product-info span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.order-detail {
  display: grid;
  gap: 24px;
  margin: 24px auto 40px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.order-status {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-weight: 700;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.order-meta {
  display: grid;
  gap: 10px;
}

.order-meta strong {
  display: block;
}

.order-summary-full {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fdf4f0 100%);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.08);
}

.order-summary-full h3 {
  margin-bottom: 6px;
}

.order-summary-full .order-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.order-summary-full .order-meta > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.order-summary-full .order-total-row {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.order-summary-full .order-total-row strong,
.order-summary-full .order-total-row span {
  color: var(--primary);
  font-weight: 700;
}

.order-items {
  display: grid;
  gap: 12px;
}

.order-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.order-item img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.order-item-total {
  font-weight: 700;
  text-align: right;
}

@media (max-width: 960px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }

  .order-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .auth-login-row {
    grid-template-columns: 1fr;
  }

  .auth-link-row {
    grid-template-columns: 1fr;
  }

  .auth-register-row {
    grid-template-columns: 1fr;
  }

  .auth-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-links a {
    margin-left: 0;
    margin-right: 12px;
  }

  .customer-menu {
    padding: 10px;
  }

  .customer-menu-toggle {
    display: inline-flex;
  }

  .customer-menu-wrapper {
    display: none;
  }

  .customer-menu-wrapper.is-open {
    display: block;
  }

  .customer-products-grid {
    grid-template-columns: 1fr;
  }

  .customer-card .card-grid {
    grid-template-columns: 1fr;
  }

  .customer-products-slider .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-card-action {
    justify-content: flex-end;
  }

  .customer-card-action .btn {
    width: auto;
  }

  .customer-product-card {
    width: 220px;
  }

  .order-item {
    grid-template-columns: 64px 1fr;
  }

  .order-item-total {
    grid-column: 1 / -1;
    text-align: left;
  }
}


.al_center {
  text-align: center;
}

.trigger {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  background: #333;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border-radius: 12px;
}

.trigger_none {
  margin-bottom: 0;
}

.trigger_success {
  background-color: #00b494;
}

.trigger_info {
  background-color: #0e96e5;
}

.trigger_alert {
  background-color: #faad50;
}

.trigger_error {
  background-color: #f45563;
}

.trigger_modal {
  position: fixed;
  right: 0;
  top: 0;
  width: 460px;
  max-width: 90%;
  padding: 20px 20px 0 0;
  z-index: 999;
}

.trigger_modal .trigger {
  margin: 0 0 12px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.notify_box_tr,
.notify_box_bl {
  position: fixed;
  width: 320px;
  max-width: 90%;
  z-index: 1000;
}

.notify_box_tr {
  top: 0;
  right: 0;
  padding-top: 15px;
  padding-right: 15px;
}

.notify_box_bl {
  bottom: 0;
  left: 0;
  padding-bottom: 15px;
  padding-left: 15px;
}

.notify_content {
  position: relative;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.notify_content.show {
  opacity: 1;
  transform: translateX(0);
}

.notify_timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4%;
  width: 0;
  background: rgba(0,0,0,0.4);
  animation: notifyTimer 4s linear forwards;
}

.notify_green {
  background-color: #00b494;
  color: #ebf2f1;
}

.notify_red {
  background-color: #f45563;
  color: #ebf2f1;
}

.notify_blue {
  background-color: #008ec0;
  color: #fff;
}

@keyframes notifyTimer {
  from { width: 0; }
  to { width: 100%; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .ticket-info {
    position: static;
  }
}

@media (max-width: 640px) {
  .ticket-row {
    grid-template-columns: 1fr;
  }
}


/* Página do pedido: pedido recebido, pagamento online (Pix/cartão) e WhatsApp — LojaCheckout */
.order-received { margin-bottom: 16px; border-left: 4px solid #1f9d55; }
.order-received h3 { margin: 0 0 6px; }
.order-received.is-paid { background: rgba(31, 157, 85, .06); }
.order-pay { margin-bottom: 16px; }
.order-pay h3 { margin: 0 0 6px; }
.order-pay .pay-doc { margin-top: 14px; max-width: 320px; }
.order-pay .pay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.order-pay .pay-actions .btn { min-height: 44px; }
.order-pay .pay-msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .05); font-size: .95em; }
.order-pay .pay-msg.is-ok { background: rgba(31, 157, 85, .12); color: #14693a; }
.order-pay .pay-msg.is-warn { background: rgba(214, 120, 0, .12); color: #8a4b00; }
.order-pay .pay-pix { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 16px; }
.order-pay .pay-qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid rgba(0, 0, 0, .1); }
.order-pay .pay-copy { flex: 1 1 260px; min-width: 0; display: grid; gap: 8px; }
.order-pay .pay-copy textarea { width: 100%; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82em; word-break: break-all; }
.order-pay .pay-alt { margin: 16px 0 0; font-size: .92em; }
@media (max-width: 560px) {
    .order-pay .pay-actions .btn { flex: 1 1 100%; }
    .order-pay .pay-qr { margin: 0 auto; }
}

/* Categoria: ordenação em botões (no lugar do select) */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.sort-bar__count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.sort-bar__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sort-bar__label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 4px;
  white-space: nowrap;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sort-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.sort-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px -10px var(--primary);
}

@media (max-width: 720px) {
  .sort-bar {
    display: block;
  }

  .sort-bar__count {
    display: block;
    margin-bottom: 10px;
  }

  .sort-bar__label {
    display: none;
  }

  .sort-bar__chips {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sort-bar__chips::-webkit-scrollbar {
    display: none;
  }
}

/* Categoria: filtros na lateral (gaveta no celular) */
.catalog {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog--plain {
  display: block;
}

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

.catalog--plain .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog .product-card[hidden],
.catalog [hidden] {
  display: none !important;
}

.catalog-backdrop {
  display: none;
}

.catalog-filters {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 18px 18px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.filters-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.filters-head strong {
  font-size: 1.05rem;
  font-weight: 800;
  flex: 1;
}

.filters-clear {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--primary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.filters-close,
.filters-apply,
.filters-open {
  display: none;
}

.filter-group {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.filter-group h3 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  cursor: pointer;
  font-size: 0.95rem;
}

.filter-check input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-check span {
  flex: 1;
  min-width: 0;
}

.filter-check em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.filter-check:hover span {
  color: var(--primary);
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.filter-range .input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.filter-range span {
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-size {
  cursor: pointer;
}

.filter-size input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-size span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-size:hover span {
  border-color: var(--primary);
}

.filter-size input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-size input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.filters-active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 18px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--primary) 12%, var(--bg));
  color: var(--primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip:hover {
  background: color-mix(in srgb, var(--primary) 20%, var(--bg));
}

.catalog-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}

.sort-chip.filters-open b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .catalog .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .catalog {
    display: block;
  }

  .catalog .card-grid,
  .catalog--plain .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sort-chip.filters-open {
    display: inline-flex;
    cursor: pointer;
    font-family: inherit;
    border-color: var(--text);
  }

  .catalog-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 96;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .catalog-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 97;
    max-height: 86vh;
    padding: 18px 18px calc(86px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .catalog.is-filtering .catalog-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .catalog.is-filtering .catalog-filters {
    transform: none;
  }

  .filters-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 8%, var(--bg));
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .filters-apply {
    display: block;
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    min-height: 52px;
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    z-index: 98;
  }

  .catalog.is-filtering .filters-apply {
    opacity: 1;
    pointer-events: auto;
  }

  html.filters-lock,
  html.filters-lock body {
    overflow: hidden;
  }

  /* O botão do WhatsApp não fica por cima da gaveta de filtros. */
  html.filters-lock .whatsapp-float {
    display: none;
  }
}

@media (max-width: 520px) {
  .catalog .card-grid,
  .catalog--plain .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filters,
  .catalog-backdrop,
  .sort-chip {
    transition: none;
  }
}

/* Busca: lista de sugestões enquanto a pessoa digita */
.search-bar.is-searching { z-index: 120; }

.ss-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 120;
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  text-align: left;
  animation: ssIn 0.18s ease both;
  scrollbar-width: thin;
}

@keyframes ssIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.ss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ss-head button {
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.ss-row,
.ss-prod,
.ss-all {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ss-row:hover,
.ss-prod:hover,
.ss-row.is-active,
.ss-prod.is-active {
  background: color-mix(in srgb, var(--primary) 9%, var(--bg));
}

.ss-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  color: var(--muted);
  font-size: 1rem;
}

.ss-row.is-fix .ss-ico {
  background: color-mix(in srgb, var(--primary) 14%, var(--bg));
  color: var(--primary);
}

.ss-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

.ss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-prod__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ss-prod__body b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-prod__body small {
  color: var(--muted);
  font-size: 0.8rem;
}

.ss-panel mark {
  background: none;
  color: var(--primary);
  font-weight: 800;
}

.ss-off {
  font-style: normal;
  color: #dc2626;
  font-weight: 700;
}

.ss-price {
  flex: none;
  display: grid;
  justify-items: end;
  font-size: 0.95rem;
}

.ss-price s {
  color: var(--muted);
  font-size: 0.75rem;
}

.ss-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 10px 10px;
}

.ss-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}

.ss-chip:hover,
.ss-chip.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

.ss-intent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.ss-intent span {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--bg));
  color: var(--primary);
  font-weight: 700;
}

.ss-all {
  justify-content: center;
  margin-top: 6px;
  min-height: 46px;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  color: var(--primary);
  font-weight: 800;
}

.ss-all:hover,
.ss-all.is-active {
  background: var(--primary);
  color: #fff;
}

.ss-note {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.ss-note b {
  color: var(--text);
}

@media (max-width: 720px) {
  /* No celular o campo já ocupa a largura da tela: a lista abre logo abaixo dele. */
  .ss-panel {
    max-height: calc(100dvh - 150px);
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-panel { animation: none; }
}
