/* =============================================
   THEME — GLOBAL CSS VARIABLES
   Base de tema genérica e reutilizável.
   Toda a personalização visual (cores, fontes,
   espaçamentos, bordas, sombras) é controlada
   por estas variáveis e pode futuramente ser
   gerenciada por um painel (alterarLayoutEDesigner.php)
   ============================================= */

:root {
  /* === CORE COLOR PALETTE === */
  --color-primary: #e91e8c;
  --color-secondary: #8b008b;
  --color-accent: #f5a7c7;

  /* === BACKGROUND TOKENS === */
  --background-primary: #ffffff;
  --background-secondary: #fce4ec;
  --background-tertiary: #f9f9f9;
  --background-highlight: #f5a7c7;
  --background-accent-soft: #f5eeff;

  /* === TEXT TOKENS === */
  --text-primary: #1a1a1a;
  --text-secondary: #444444;
  --text-dark: #333333;
  --text-subtle: #555555;
  --text-muted: #888888;
  --text-soft: #666666;
  --text-faint: #aaaaaa;
  --text-strong: #222222;
  --text-emphasis: #111111;
  --text-inverse: #ffffff;

  /* === MENU / NAVIGATION TOKENS === */
  --menu-background: #ffffff;
  --menu-text: #777777;
  --menu-text-active: #e91e8c;
  --menu-hover: #e91e8c;

  /* === BUTTON TOKENS === */
  --button-primary-bg: #e91e8c;
  --button-primary-text: #ffffff;
  --button-primary-hover: #e91e8c;
  --button-secondary-bg: #ffffff;
  --button-secondary-text: #e91e8c;
  --button-secondary-border: #e91e8c;
  --button-secondary-hover: #e91e8c;

  /* === CARD TOKENS === */
  --card-background: #ffffff;
  --card-border: #eeeeee;

  /* === BORDER TOKENS === */
  --border-color: #eeeeee;
  --border-color-light: #f0f0f0;
  --border-color-lighter: #f5f5f5;
  --border-color-medium: #dddddd;
  --border-color-thumb: #e0e0e0;
  --border-color-accent: #ddd0ee;
  --input-border: #cccccc;

  /* === SHADOW TOKENS === */
  --shadow-small: rgba(0,0,0,0.04);
  --shadow-medium: rgba(0,0,0,0.06);
  --shadow-large: rgba(0,0,0,0.18);
  --overlay-background: rgba(0,0,0,0.55);

  /* === RADIUS TOKENS === */
  --radius-small: 5px;
  --radius-medium: 8px;
  --radius-large: 10px;
  --radius-pill: 50px;

  /* === TRANSITION TOKENS === */
  --transition-default: 0.15s;

  /* === TYPOGRAPHY TOKENS === */
  --font-primary: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 14px;
  --font-size-logo-primary: 22px;
  --font-size-logo-secondary: 9px;
  --font-size-header-icon: 20px;
  --font-size-benefits: 11px;
  --font-size-category: 12px;
  --font-size-section-title: 18px;
  --font-size-product-name: 12px;
  --font-size-product-desc: 10px;
  --font-size-product-price: 17px;
  --font-size-product-pix: 11px;
  --font-size-qty-btn: 16px;
  --font-size-qty-value: 13px;
  --font-size-btn-primary: 13px;
  --font-size-btn-secondary: 12px;
  --font-size-nav-label: 10px;

  /* === LOGO TOKENS === */
  --logo-color: #e91e8c;
  --logo-color-secondary: #e91e8c;

  /* === SPACING TOKENS === */
  --spacing-page-padding: 12px;
  --spacing-card-gap: 10px;
  --spacing-section-gap: 16px;

  /* =============================================
     COMPONENT TOKENS
     Referenciam os tokens acima. Permitem ajuste
     granular de um componente sem afetar os demais.
     ============================================= */

  /* Header */
  --header-background: var(--menu-background);
  --header-border: var(--border-color-light);
  --header-shadow: var(--shadow-medium);
  --header-icon-color: var(--text-primary);
  --header-logo-color: var(--logo-color);
  --header-logo-secondary-color: var(--logo-color-secondary);

  /* Hero banner */
  --hero-background: var(--background-secondary);

  /* Benefits bar */
  --benefits-background: var(--background-primary);
  --benefits-border: var(--border-color-light);
  --benefits-text: var(--text-dark);
  --benefits-text-highlight: var(--text-emphasis);
  --benefits-separator: var(--border-color-medium);

  /* Categories */
  --categories-background: var(--background-primary);
  --categories-border: var(--border-color-lighter);
  --category-background-active: var(--background-highlight);
  --category-text-active: var(--text-primary);
  --category-background-inactive: var(--background-primary);
  --category-text-inactive: var(--text-dark);
  --category-radius: var(--radius-pill);

  /* Section title */
  --section-title-color: var(--text-primary);

  /* Product card */
  --product-card-background: var(--card-background);
  --product-card-border: var(--card-border);
  --product-card-radius: var(--radius-medium);
  --product-card-shadow: var(--shadow-small);
  --product-image-background: var(--background-tertiary);
  --product-name-color: var(--text-primary);
  --product-short-desc-color: var(--text-muted);
  --product-price-color: var(--color-secondary);
  --product-pix-color: var(--color-secondary);
  --product-pix-border-color: transparent;
  --product-pix-border-radius: var(--radius-small);

  /* Buy / WhatsApp buttons */
  --button-buy-background: var(--button-primary-bg);
  --button-buy-text: var(--button-primary-text);
  --button-buy-radius: var(--radius-small);
  --button-buy-hover-background: var(--button-primary-hover);
  --button-whatsapp-background: var(--button-secondary-bg);
  --button-whatsapp-text: var(--button-secondary-text);
  --button-whatsapp-border: var(--button-secondary-border);
  --button-whatsapp-radius: var(--radius-small);
  --button-whatsapp-hover-background: var(--button-secondary-hover);

  /* Quantity control */
  --qty-box-background: var(--background-primary);
  --qty-box-border: var(--input-border);
  --qty-button-color: var(--text-subtle);
  --qty-value-color: var(--text-strong);

  /* Footer badges */
  --footer-background: var(--background-primary);
  --footer-banner-background: var(--background-secondary);
  --footer-badge-border: var(--border-color-light);
  --footer-badge-title-color: var(--text-strong);
  --footer-badge-desc-color: var(--text-soft);

  /* Bottom navigation */
  --bottom-nav-background: var(--menu-background);
  --bottom-nav-border: var(--card-border);
  --bottom-nav-shadow: var(--shadow-medium);
  --bottom-nav-icon-color: var(--menu-text);
  --bottom-nav-icon-active-color: var(--menu-text-active);
  --bottom-nav-text-color: var(--menu-text);
  --bottom-nav-text-active-color: var(--menu-text-active);

  /* Modal */
  --modal-overlay-background: var(--overlay-background);
  --modal-box-background: var(--background-primary);
  --modal-box-shadow: var(--shadow-large);
  --modal-box-radius: var(--radius-large);
  --modal-close-color: var(--text-subtle);
  --modal-breadcrumb-text-color: var(--text-subtle);
  --modal-breadcrumb-muted-color: var(--text-muted);
  --modal-breadcrumb-active-color: var(--color-primary);
  --modal-breadcrumb-border: var(--border-color-light);
  --modal-gallery-background: var(--background-tertiary);
  --modal-thumb-border: var(--border-color-thumb);
  --modal-thumb-active-border: var(--color-primary);
  --modal-name-color: var(--text-primary);
  --modal-code-color: var(--text-faint);
  --modal-price-color: var(--color-secondary);
  --modal-parcelas-color: var(--text-subtle);
  --modal-pix-badge-background: var(--background-accent-soft);
  --modal-pix-badge-border: var(--border-color-accent);
  --modal-pix-badge-text: var(--color-secondary);
  --modal-payment-link-color: var(--text-subtle);
  --modal-payment-link-hover-color: var(--color-primary);
  --modal-frete-border: var(--border-color-light);
  --modal-frete-title-color: var(--text-dark);
  --modal-cep-border: var(--input-border);
  --modal-cep-focus-border: var(--color-primary);
  --modal-frete-btn-background: var(--background-primary);
  --modal-frete-btn-border: var(--input-border);
  --modal-frete-btn-text: var(--text-dark);
  --modal-frete-btn-hover-color: var(--color-primary);
  --modal-desc-border: var(--card-border);
  --modal-desc-title-color: var(--text-primary);
  --modal-desc-body-color: var(--text-secondary);
}

/* =============================================
   RESET & BASE
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  background: var(--background-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  body {
    max-width: 100%;
  }
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 100;
  background: var(--header-background);
  box-shadow: 0 1px 4px var(--header-shadow);
  height: 61px;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.site-header__row {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

@media (min-width: 900px) {
  .site-header {
    max-width: 100%;
  }
  .site-header__row {
    padding: 0 40px;
  }
}

/* Empurra o conteúdo para não ficar sob o header fixo */
body {
  padding-top: 61px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon {
  color: var(--header-icon-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}

.header-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--header-icon-color);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
}

.site-logo-primary {
  font-size: var(--font-size-logo-primary);
  font-weight: 800;
  color: var(--header-logo-color);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.site-logo-secondary {
  font-size: var(--font-size-logo-secondary);
  font-weight: 500;
  color: var(--header-logo-secondary-color);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 1px;
}

.separadorMenu {
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* =============================================
   HERO BANNER
   ============================================= */

.hero-banner {
  width: 100%;
  display: block;
  overflow: hidden;
  background: var(--hero-background);
}

.hero-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* =============================================
   BENEFITS BAR
   ============================================= */

.benefits-bar {
  background: var(--benefits-background);
  border-bottom: 1px solid var(--benefits-border);
  padding: 8px var(--spacing-page-padding);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.benefits-bar::-webkit-scrollbar {
  display: none;
}

.benefits-bar-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 6px;
}

.benefits-bar-icon svg {
  width: 16px;
  height: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: var(--font-size-benefits);
  color: var(--benefits-text);
  padding-right: 16px;
}

.benefit-item strong {
  font-weight: 700;
  color: var(--benefits-text-highlight);
}

.benefit-separator {
  width: 1px;
  height: 14px;
  background: var(--benefits-separator);
  margin: 0 10px;
  flex-shrink: 0;
}

/* =============================================
   CATEGORIES
   ============================================= */

.categories-section {
  background: var(--categories-background);
  padding: 10px var(--spacing-page-padding) 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--categories-border);
}

.categories-section::-webkit-scrollbar {
  display: none;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--category-radius);
  font-size: var(--font-size-category);
  font-weight: 600;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.category-btn.active {
  background: var(--category-background-active);
  color: var(--category-text-active);
}

.category-btn:not(.active) {
  background: var(--category-background-inactive);
  color: var(--category-text-inactive);
}

/* =============================================
   SECTION TITLE
   ============================================= */

.section-title {
  text-align: center;
  font-size: var(--font-size-section-title);
  font-weight: 700;
  color: var(--section-title-color);
  padding: 16px var(--spacing-page-padding) 8px;
}

/* =============================================
   PRODUCT GRID
   ============================================= */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-card-gap);
  padding: 0 var(--spacing-page-padding) 16px;
}

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 700px) {
  .hero-banner,
  .benefits-bar,
  .categories-section,
  .footer-banner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-title {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* =============================================
   PRODUCT CARD
   ============================================= */

.product-card {
  background: var(--product-card-background);
  border: 1px solid var(--product-card-border);
  border-radius: var(--product-card-radius);
  box-shadow: 0 1px 4px var(--product-card-shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding-bottom: 8px;
}

.product-card__image-wrap {
  width: 100%;
  background: var(--product-image-background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 0;
  position: relative;
}

.product-card__qty-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-card__qty-badge.show {
  display: flex;
}

.product-card__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: 1 / 0.85;
}

.product-card__info {
  padding: 6px 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.product-card__name {
  font-size: var(--font-size-product-name);
  font-weight: 600;
  color: var(--product-name-color);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 2px;

  /* Reserva exatamente 2 linhas em todos os cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(1.3em * 2);   /* line-height × 2 linhas */
  min-height: calc(1.3em * 2);
}

.product-card__price {
  font-size: var(--font-size-product-price);
  font-weight: 700;
  color: var(--product-price-color);
  text-align: center;
  line-height: 1.2;
}

.product-card__pix {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 2px;
  border: 1px solid var(--product-pix-border-color);
  border-radius: var(--product-pix-border-radius);
  padding: 4px 6px;
  width: 100%;
  text-align: center;
}

.product-card__pix-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-card__pix-text {
  font-size: var(--font-size-product-pix);
  color: var(--product-pix-color);
  line-height: 1.3;
  text-align: center;
}

.product-card__pix-text strong {
  font-weight: 700;
}

/* =============================================
   QUANTITY + BUY ROW
   ============================================= */

.product-card__actions {
  padding: 4px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.product-card__buy-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--qty-box-border);
  border-radius: var(--radius-small);
  background: var(--qty-box-background);
  overflow: hidden;
  flex-shrink: 0;
  height: 34px;
}

.product-card__buy-row .qty-control {
  display: none;
  flex: 1;
  width: 100%;
  justify-content: space-between;
}

.product-card__buy-row .qty-control.show {
  display: flex;
}

.product-card__buy-row .qty-control .qty-btn {
  flex: 0 0 auto;
}

.product-card__buy-row .qty-control .qty-value {
  flex: 1;
  text-align: center;
}

.product-card__buy-row .btn-comprar.hide {
  display: none;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-qty-btn);
  color: var(--qty-button-color);
  width: 26px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.qty-value {
  font-size: var(--font-size-qty-value);
  font-weight: 600;
  color: var(--qty-value-color);
  min-width: 18px;
  text-align: center;
  user-select: none;
}

.btn-comprar {
  flex: 1;
  height: 34px;
  background: var(--button-buy-background);
  color: var(--button-buy-text);
  border: none;
  border-radius: var(--button-buy-radius);
  font-size: var(--font-size-btn-primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
  transition: background var(--transition-default);
}

.btn-comprar:hover {
  background: var(--button-buy-hover-background);
}

.btn-whatsapp {
  width: 100%;
  height: 32px;
  background: var(--button-whatsapp-background);
  color: var(--button-whatsapp-text);
  border: 1px solid var(--button-whatsapp-border);
  border-radius: var(--button-whatsapp-radius);
  font-size: var(--font-size-btn-secondary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.1px;
  transition: background var(--transition-default);
}

.btn-whatsapp:hover {
  background: var(--button-whatsapp-hover-background);
}

.btn-whatsapp svg {
  width: 14px;
  height: 14px;
  fill: var(--button-whatsapp-text);
  flex-shrink: 0;
}

/* =============================================
   FOOTER BANNER (BADGES / BENEFÍCIOS)
   ============================================= */

.footer-banner {
  background: var(--footer-background);
  padding: 0 var(--spacing-page-padding) 14px;
}

.footer-badges {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid var(--footer-badge-border);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.footer-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  gap: 5px;
  border-right: 1px solid var(--footer-badge-border);
  text-align: center;
}

.footer-badge:last-child {
  border-right: none;
}

.footer-badge__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-badge__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-badge__title {
  font-size: 10px;
  font-weight: 700;
  color: var(--footer-badge-title-color);
  line-height: 1.2;
}

.footer-badge__desc {
  font-size: 9px;
  color: var(--footer-badge-desc-color);
  line-height: 1.3;
}

/* =============================================
   BOTTOM NAVIGATION
   ============================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bottom-nav-background);
  display: flex;
  flex-direction: column;
  height: 63px;
  z-index: 200;
  box-shadow: 0 -1px 6px var(--bottom-nav-shadow);
}

.bottom-nav__row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 900px) {
  .bottom-nav {
    max-width: 100%;
  }
  .bottom-nav__row {
    padding: 0 40px;
  }
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  color: var(--bottom-nav-text-color);
}

.bottom-nav__item.ativo {
  color: var(--bottom-nav-text-active-color);
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav__item.ativo svg {
  stroke: var(--bottom-nav-icon-active-color);
}

.bottom-nav__item span {
  font-size: var(--font-size-nav-label);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Ativo no item de OFERTAS — texto rosa + ícone raio rosa */
.bottom-nav__item.ativo .nav-lightning {
  stroke: var(--bottom-nav-icon-active-color);
}

/* =============================================
   PÁGINA DO CARRINHO
   ============================================= */

.cart-page {
  padding: 14px var(--spacing-page-padding) 16px;
}

@media (min-width: 700px) {
  .cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 32px;
  }
}

.cart-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-page__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.cart-page__title svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.8;
}

.cart-page__badge {
  background: var(--text-primary);
  color: var(--background-primary);
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-page__esvaziar {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-page__layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .cart-page__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .cart-page__itens {
    flex: 1;
    min-width: 0;
  }
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-medium);
  padding: 12px;
}

.cart-item__img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-small);
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__nome {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.cart-item__preco {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin: 0 0 2px;
}

.cart-item__pix {
  font-size: 12px;
  color: var(--product-pix-color);
  font-weight: 600;
  margin: 0 0 8px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__lado {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.cart-item__subtotal-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.cart-item__subtotal {
  font-size: 14px;
  color: var(--text-primary);
}

.cart-item__remover {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.cart-item__remover svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-page__continuar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
}

.cart-page__continuar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 2;
}

.cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.cart-resumo {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-medium);
}

@media (min-width: 900px) {
  .cart-resumo {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
  }
}

.cart-resumo__titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.cart-resumo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
}

.cart-resumo__linha--muted {
  color: var(--text-muted);
}

.cart-resumo__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.cart-resumo__pix {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--background-tertiary);
  border-radius: var(--radius-small);
  padding: 10px 12px;
}

.cart-resumo__pix-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.cart-resumo__pix-label svg {
  width: 16px;
  height: 16px;
}

.cart-resumo__pix strong {
  font-size: 18px;
  color: var(--product-pix-color);
}

.cart-resumo__economia {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-resumo__finalizar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  background: var(--button-buy-background);
  color: var(--button-buy-text);
  border: none;
  border-radius: var(--button-buy-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-default);
}

.cart-resumo__finalizar:hover {
  background: var(--button-buy-hover-background);
}

.cart-resumo__finalizar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--button-buy-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-resumo__whatsapp {
  height: 44px;
}

.cart-resumo__selos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cart-resumo__selo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
  min-width: 70px;
}

.cart-resumo__selo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   PÁGINA DE LOGIN
   ============================================= */

.login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 48px;
  min-height: calc(100vh - 61px - 71px);
  background: linear-gradient(180deg, var(--background-secondary) 0%, var(--background-primary) 220px);
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-large);
  box-shadow: 0 10px 30px rgba(139, 0, 139, 0.08), 0 2px 8px var(--shadow-medium);
  padding: 32px 26px 28px;
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% 100%;
  animation: loginGlow 3s ease-in-out infinite;
}

@keyframes loginGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-icon {
  width: 62px;
  height: 62px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(233, 30, 140, 0.28);
}

.login-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.login-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-subtitle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 2;
  flex-shrink: 0;
}

.login-erro {
  background: #fdecea;
  color: #c0392b;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-small);
  margin-bottom: 14px;
  text-align: center;
  border: 1px solid #f5c6cb;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 12px 0 6px;
  letter-spacing: 0.1px;
}

.login-input {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border-color-medium);
  border-radius: var(--radius-medium);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--background-tertiary);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--background-primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
}

.login-input:disabled {
  color: var(--text-muted);
  background: var(--background-tertiary);
  cursor: not-allowed;
}

.login-submit {
  width: 100%;
  margin-top: 22px;
  height: 46px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.25);
}

.login-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
}

.login-hint a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.login-hint a:hover {
  text-decoration: underline;
}

.login-selos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color-light);
}

.login-selo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.2px;
}

.login-selo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Padding para conteúdo não ficar atrás do bottom nav */
.page-bottom-spacer {
  height: 71px;
}

/* =============================================
   PIX ICON SVG (inline)
   ============================================= */

.pix-icon {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* =============================================
   CARD — NOME LINHA 1 + DESCRIÇÃO CURTA LINHA 2
   ============================================= */

.product-card__name {
  font-size: var(--font-size-product-name) !important;
  font-weight: 700 !important;
  color: var(--product-name-color) !important;
  text-align: center !important;
  line-height: 1.3 !important;
  margin-bottom: 0 !important;
  height: calc(1.3em * 1) !important;
  min-height: calc(1.3em * 1) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  display: block !important;
}

.product-card__short-desc {
  font-size: var(--font-size-product-desc);
  font-weight: 400;
  color: var(--product-short-desc-color);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 3px;
  height: calc(1.3em * 1);
  min-height: calc(1.3em * 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

/* =============================================
   BADGE DE CONTAGEM DO CARRINHO
   ============================================= */

.header-icon__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.header-icon {
  position: relative;
}

.bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* =============================================
   TOAST DE NOTIFICAÇÃO
   ============================================= */

.toast {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(30, 30, 30, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast__icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   MENU LATERAL (DRAWER)
   ============================================= */

.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
}

.side-menu-overlay.active {
  display: block;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 78%;
  max-width: 300px;
  background: var(--background-primary);
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.side-menu-overlay.active .side-menu {
  transform: translateX(0);
}

.side-menu__header {
  background: #000;
  color: #fff;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.side-menu__close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.side-menu__close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.side-menu__list {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
}

.side-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
}

.side-menu__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =============================================
   MODAL OVERLAY
   ============================================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-background);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 0;
}

.modal-overlay.active {
  display: flex;
}

/* =============================================
   MODAL BOX
   ============================================= */

.modal-box {
  position: relative;
  background: var(--modal-box-background);
  width: 100%;
  max-width: 860px;
  margin: auto;
  border-radius: 0;
  min-height: 100vh;
  padding: 0 0 32px;
  box-shadow: 0 8px 40px var(--modal-box-shadow);
}

@media (min-width: 600px) {
  .modal-overlay {
    padding: 24px 12px;
    align-items: flex-start;
  }
  .modal-box {
    border-radius: var(--modal-box-radius);
    min-height: unset;
    margin: auto;
  }
}

/* =============================================
   MODAL — FECHAR
   ============================================= */

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 4px;
  color: var(--modal-close-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close svg {
  width: 22px;
  height: 22px;
}

/* =============================================
   MODAL — BREADCRUMB
   ============================================= */

.modal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--modal-breadcrumb-muted-color);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--modal-breadcrumb-border);
}

.modal-breadcrumb span {
  color: var(--modal-breadcrumb-text-color);
  font-size: 12px;
}

.modal-breadcrumb span:last-child {
  color: var(--modal-breadcrumb-active-color);
}

/* =============================================
   MODAL — TOP (galeria + info)
   ============================================= */

.modal-top {
  display: flex;
  flex-direction: column;
  padding: 0;
}

@media (min-width: 600px) {
  .modal-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

/* =============================================
   MODAL — GALERIA
   ============================================= */

.modal-gallery {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 14px 16px;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .modal-gallery {
    width: 52%;
    flex-direction: row;
    align-items: flex-start;
  }
}

.modal-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: -1;
}

.modal-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid var(--modal-thumb-border);
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: border-color var(--transition-default);
  display: block;
}

.modal-thumb.active,
.modal-thumb:hover {
  border-color: var(--modal-thumb-active-border);
}

.modal-gallery__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modal-gallery-background);
  border-radius: var(--radius-medium);
  overflow: hidden;
  min-height: 200px;
}

.modal-gallery__main img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

@media (min-width: 600px) {
  .modal-gallery__main img {
    max-height: 340px;
  }
}

/* =============================================
   MODAL — INFO DIREITA
   ============================================= */

.modal-info {
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 600px) {
  .modal-info {
    flex: 1;
    padding: 20px 20px 0 8px;
    border-left: 1px solid var(--modal-frete-border);
  }
}

.modal-info__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--modal-name-color);
  line-height: 1.3;
  margin-bottom: 0;
}

.modal-info__codigo {
  font-size: 11px;
  color: var(--modal-code-color);
  margin-top: -4px;
}

.modal-info__price {
  font-size: 26px;
  font-weight: 800;
  color: var(--modal-price-color);
  line-height: 1.1;
  margin-top: 2px;
}

.modal-info__parcelas {
  font-size: 12px;
  color: var(--modal-parcelas-color);
  margin-top: -4px;
}

.modal-info__pix-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--modal-pix-badge-background);
  border: 1px solid var(--modal-pix-badge-border);
  border-radius: var(--radius-small);
  padding: 7px 10px;
  font-size: 12px;
  color: var(--modal-pix-badge-text);
  font-weight: 600;
}

.modal-info__pagamento {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--modal-payment-link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: -2px;
}

.modal-info__pagamento:hover {
  color: var(--modal-payment-link-hover-color);
}

.modal-info__buy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.modal-info__buy-row .qty-control {
  display: none;
  flex: 1;
  width: 100%;
  justify-content: space-between;
}

.modal-info__buy-row .qty-control.show {
  display: flex;
}

.modal-info__buy-row .qty-control .qty-btn {
  flex: 0 0 auto;
}

.modal-info__buy-row .qty-control .qty-value {
  flex: 1;
  text-align: center;
}

.modal-info__buy-row .btn-comprar.hide {
  display: none;
}

.btn-comprar--modal {
  flex: 1;
  height: 38px;
  font-size: 14px;
}

.btn-whatsapp--modal {
  width: 100%;
  height: 36px;
  font-size: 13px;
}

/* =============================================
   MODAL — FRETE
   ============================================= */

.modal-info__frete {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--modal-frete-border);
}

.modal-info__frete-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--modal-frete-title-color);
  margin-bottom: 8px;
}

.modal-info__frete-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-info__cep {
  flex: 1;
  height: 38px;
  border: 1px solid var(--modal-cep-border);
  border-radius: var(--radius-small);
  padding: 0 10px;
  font-size: 13px;
  color: var(--modal-frete-title-color);
  outline: none;
}

.modal-info__cep:focus {
  border-color: var(--modal-cep-focus-border);
}

.modal-info__frete-btn {
  height: 38px;
  padding: 0 16px;
  background: var(--modal-frete-btn-background);
  border: 1px solid var(--modal-frete-btn-border);
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 600;
  color: var(--modal-frete-btn-text);
  cursor: pointer;
  white-space: nowrap;
}

.modal-info__frete-btn:hover {
  border-color: var(--modal-frete-btn-hover-color);
  color: var(--modal-frete-btn-hover-color);
}

/* =============================================
   MODAL — DESCRIÇÃO LONGA
   ============================================= */

.modal-desc {
  margin: 20px 16px 0;
  border-top: 1px solid var(--modal-desc-border);
  padding-top: 18px;
}

.modal-desc__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--modal-desc-title-color);
  text-align: center;
  margin-bottom: 14px;
}

.modal-desc__body {
  font-size: 12px;
  color: var(--modal-desc-body-color);
  line-height: 1.7;
}

.modal-desc__body p {
  margin-bottom: 10px;
}

.modal-desc__body p:last-child {
  margin-bottom: 0;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 950;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.cart-empty button.btn-comprar {
  background: #000000;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
}

.login-sucesso {
  background: #e6f7ea;
  color: #1e7e34;
}

.pedido-modal {
  max-width: 480px;
  padding: 24px;
}

.pedido-modal__titulo {
  font-size: 18px;
  text-align: center;
  margin-bottom: 6px;
}

.pedido-modal__ok {
  text-align: center;
  color: #1e7e34;
  font-weight: 600;
  margin-bottom: 16px;
}

.pedido-modal__subtitulo {
  font-size: 14px;
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.pedido-modal__linha {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.pedido-modal__linha--total {
  font-size: 15px;
  font-weight: 700;
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
  padding-top: 8px;
}

.checkout-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkout-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #bdbdbd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-step--active {
  background: #000000;
}

.checkout-step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  max-width: 220px;
}

.checkout-summary {
  background: var(--background-primary);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-large);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px var(--shadow-small);
}

.checkout-itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 6px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--background-tertiary);
  border-radius: var(--radius-medium);
}

.checkout-item__img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-small);
  flex-shrink: 0;
  background: var(--background-secondary);
}

.checkout-item__info {
  flex: 1;
  min-width: 0;
}

.checkout-item__nome {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item__qty {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkout-item__subtotal {
  font-size: 13px;
  color: var(--color-secondary);
  white-space: nowrap;
}

.checkout-summary__selo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color-light);
  font-size: 11px;
  font-weight: 600;
  color: #1e7e34;
}

.checkout-summary__selo svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.checkout-endereco {
  display: flex;
  gap: 10px;
}

.checkout-endereco__rua {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.checkout-endereco__numero {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.checkout-summary__titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-secondary);
}

.checkout-summary__titulo svg {
  width: 20px;
  height: 20px;
}

.checkout-summary__numero {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.checkout-summary__linha {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.checkout-summary__divisor {
  border-top: 1px dashed var(--border-color-medium);
  margin: 8px 0;
}

.checkout-summary__linha--total {
  font-size: 18px;
  font-weight: 700;
}

.checkout-form {
  display: flex;
  flex-direction: column;
}

.checkout-select {
  width: 100%;
  border-color: var(--color-accent);
  border-radius: var(--radius-medium);
  height: 46px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.checkout-form .login-input {
  border-color: var(--color-accent);
  border-radius: var(--radius-medium);
  height: 46px;
}

.checkout-confirmar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #000000, #2a2a2a);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  transition: transform var(--transition-default);
}

.checkout-confirmar:active {
  transform: scale(0.98);
}

.checkout-confirmar svg {
  width: 18px;
  height: 18px;
  background: #25d366;
  border-radius: 50%;
  padding: 2px;
}

.pedido-modal__acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.pedido-modal__whats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pedido-modal__whats svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.pedido-modal__voltar {
  height: 46px;
  border: 1px solid var(--border-color-medium);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* =============================================
   ADMIN — PRODUTOS
   ============================================= */

.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

@media (min-width: 900px) {
  .admin-page {
    padding: 32px 40px 60px;
  }
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.25);
  transition: transform var(--transition-default);
}

.admin-btn:active {
  transform: scale(0.97);
}

.admin-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search {
  flex: 1;
  min-width: 180px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border-color-medium);
  border-radius: var(--radius-medium);
  font-size: 13px;
  background: var(--background-tertiary);
  color: var(--text-primary);
}

.admin-search:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--background-primary);
}

.admin-filter {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border-color-medium);
  border-radius: var(--radius-medium);
  font-size: 13px;
  background: var(--background-tertiary);
  color: var(--text-primary);
}

.admin-alert {
  padding: 12px 16px;
  border-radius: var(--radius-medium);
  font-size: 13px;
  margin-bottom: 14px;
}

.admin-alert--sucesso {
  background: #e6f7ea;
  color: #1e7e34;
  border: 1px solid #b8e6c4;
}

.admin-alert--erro {
  background: #fde8ea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.admin-table-wrap {
  display: none;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-small);
}

@media (min-width: 900px) {
  .admin-table-wrap {
    display: block;
  }
  .admin-cards {
    display: none;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: var(--background-tertiary);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color-lighter);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr.is-inativo {
  opacity: 0.55;
}

.admin-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-small);
  object-fit: cover;
  background: var(--background-tertiary);
  border: 1px solid var(--border-color-light);
}

.admin-prod-nome {
  font-weight: 600;
  color: var(--text-primary);
}

.admin-prod-codigo {
  font-size: 11px;
  color: var(--text-faint);
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.admin-status--ativo {
  background: #e6f7ea;
  color: #1e7e34;
}

.admin-desconto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #fdecea;
  color: #c0392b;
  margin-bottom: 6px;
}

.admin-status--inativo {
  background: #f1f1f1;
  color: #777777;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--border-color-medium);
  background: var(--background-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color var(--transition-default), color var(--transition-default);
}

.admin-icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.admin-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.admin-icon-btn--danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.admin-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-large);
  box-shadow: 0 2px 10px var(--shadow-small);
}

.admin-card.is-inativo {
  opacity: 0.55;
}

.admin-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-medium);
  object-fit: cover;
  background: var(--background-tertiary);
  border: 1px solid var(--border-color-light);
  flex-shrink: 0;
}

.admin-card__body {
  flex: 1;
  min-width: 0;
}

.admin-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.admin-card__nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card__codigo {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
}

.admin-card__preco {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-top: 6px;
}

.admin-card__categoria {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-empty svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-faint);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 10px;
}

.admin-modal-box {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--modal-box-background);
  border-radius: var(--modal-box-radius);
  box-shadow: 0 8px 40px var(--modal-box-shadow);
  padding: 22px;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--background-tertiary);
  color: var(--modal-close-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-form-grid .span-2 {
    grid-column: 1 / -1;
  }
}

.admin-form-group {
  display: flex;
  flex-direction: column;
}

.admin-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.admin-form-group textarea.login-input {
  height: auto;
  min-height: 70px;
  padding: 10px 14px;
  resize: vertical;
  font-family: var(--font-primary);
}

.admin-upload-box {
  border: 1.5px dashed var(--border-color-medium);
  border-radius: var(--radius-medium);
  background: var(--background-tertiary);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color var(--transition-default);
}

.admin-upload-box:hover {
  border-color: var(--color-primary);
}

.admin-upload-box svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.admin-upload-box span {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-upload-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-small);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
}

.admin-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-thumb__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}

.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--background-tertiary);
  border-radius: var(--radius-medium);
}

.admin-switch-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch__track {
  position: absolute;
  inset: 0;
  background: var(--border-color-medium);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-default);
}

.admin-switch__track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-default);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.admin-switch input:checked + .admin-switch__track {
  background: var(--color-primary);
}

.admin-switch input:checked + .admin-switch__track::before {
  transform: translateX(20px);
}

.admin-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.admin-btn-secundario {
  flex: 1;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color-medium);
  background: var(--background-primary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-btn-salvar {
  flex: 2;
  height: 46px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.25);
}

.admin-confirm-box {
  width: 100%;
  max-width: 340px;
  background: var(--modal-box-background);
  border-radius: var(--modal-box-radius);
  box-shadow: 0 8px 40px var(--modal-box-shadow);
  padding: 24px;
  text-align: center;
}

.admin-confirm-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 8px 0 18px;
}

.admin-form-erro {
  font-size: 11.5px;
  color: #c0392b;
  margin-top: 4px;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.admin-tab {
  border: none;
  background: none;
  padding: 10px 4px;
  margin-right: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.admin-tab.is-active {
  color: var(--color-primary);
}

.admin-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}