/* ==========================================================================
   CUSTOMER STOREFRONT & CATALOG STYLES
   ========================================================================== */

/* Top Info Bar (Optional Client Identification & Announcement) */
.announcement-bar {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.announcement-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.announcement-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.client-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Header & Store Branding - Sticky / Fixed Header */
.store-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all var(--transition-normal);
  width: 100%;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.25rem;
  box-sizing: border-box;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo-img {
  max-height: 62px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  display: block;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-slogan {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Actions & Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.search-box-wrapper {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.95rem;
}

.search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Desktop Cart Button & Large Icon */
.cart-btn-wrapper {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  background-color: var(--color-primary) !important;
  border-radius: var(--radius-md) !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 16px var(--color-primary-glow) !important;
  transition: all var(--transition-fast) !important;
  cursor: pointer;
}

.cart-btn-wrapper:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 22px var(--color-primary-glow) !important;
}

.cart-btn-svg {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) !important;
  display: block !important;
}

.cart-counter-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #0f172a;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  min-width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: pulseBadge 2s infinite;
  z-index: 5;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* WhatsApp Header Button & Trigger */
.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.btn-whatsapp-header:hover {
  background-color: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-header .zap-icon {
  font-size: 1.05rem;
  animation: bounceZap 2.5s infinite ease-in-out;
}

.btn-whatsapp-header.identified {
  background-color: #0f172a;
  color: #ffffff;
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-whatsapp-header.identified:hover {
  background-color: #1e293b;
  border-color: #25d366;
}

@keyframes bounceZap {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* Announcement Bar Action Buttons & Tags */
.btn-announcement-zap {
  background: rgba(37, 211, 102, 0.25);
  color: #ffffff;
  border: 1px solid rgba(37, 211, 102, 0.6);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-announcement-zap:hover {
  background: #25d366;
  color: #ffffff;
}

.btn-announcement-action {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-announcement-action:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* WhatsApp Pop-up Modal Box */
.whatsapp-popup-box {
  max-width: min(440px, calc(100vw - 1.25rem));
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 25px rgba(37, 211, 102, 0.15);
}

.whatsapp-modal-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), transparent);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-sizing: border-box;
}

.whatsapp-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: rgba(37, 211, 102, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.whatsapp-modal-body {
  padding: 1.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.modal-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.25rem;
}

.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  .announcement-bar-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
  }

  .announcement-text {
    justify-content: center;
    font-size: 0.76rem;
    gap: 0.35rem;
  }

  .announcement-client {
    display: none;
  }

  .header-container {
    flex-direction: column;
    height: auto;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.5rem;
    width: 100%;
  }

  .header-main-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-logo-img {
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    max-width: 140px !important;
    max-height: 48px !important;
    flex-shrink: 0 !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: var(--radius-sm);
  }

  .brand-text-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
  }

  .store-title {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }

  .store-slogan {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .btn-whatsapp-header {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .btn-whatsapp-header .btn-whatsapp-text {
    font-size: 0.75rem;
  }

  .cart-btn-wrapper {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cart-btn-svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }

  .cart-counter-badge {
    top: -5px !important;
    right: -5px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 0.7rem !important;
  }

  .search-box-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .search-input {
    width: 100%;
    padding: 0.5rem 0.85rem 0.5rem 2.2rem;
    font-size: 0.85rem;
  }

  .whatsapp-popup-box {
    max-width: calc(100vw - 1rem);
  }

  .whatsapp-modal-header {
    padding: 0.85rem 1rem;
  }

  .whatsapp-modal-body {
    padding: 1rem 0.85rem;
  }

  .modal-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .modal-actions-right {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap: 0.5rem;
    margin-left: 0;
  }

  .modal-form-actions .btn,
  .modal-actions-right .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }
}

/* Category Filter Tabs & Toolbar */
.catalog-toolbar {
  padding: 1.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.cat-pill {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  user-select: none;
}

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

.cat-pill.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.cat-count {
  font-size: 0.725rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.cat-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.catalog-sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color-light);
}

.products-counter-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sort-select {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.btn-mobile-grid-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-mobile-grid-toggle:hover,
.btn-mobile-grid-toggle:active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--bg-surface-hover);
}

@media (max-width: 768px) {
  .btn-mobile-grid-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   PRODUCTS GRID - DESKTOP 4 COLUMNS / MOBILE 2 COLUMNS
   ========================================================================== */

.products-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
  /* Default Desktop / PC: 4 Columns */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tablet: 3 columns (only on medium screens between 769px and 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Mobile: 2 COLUMNS (Default) or 1 COLUMN (Large Showcase) - up to 768px */
@media (max-width: 768px) {
  .products-grid,
  .products-grid[data-mobile-cols="2"],
  .products-grid.mobile-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
  }

  /* 1 Column Mode: Large Showcase Product Display */
  .products-grid[data-mobile-cols="1"],
  .products-grid.mobile-cols-1 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 3rem;
  }

  .products-grid[data-mobile-cols="1"] .product-card,
  .products-grid.mobile-cols-1 .product-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
  }

  .products-grid[data-mobile-cols="1"] .product-image-box,
  .products-grid.mobile-cols-1 .product-image-box {
    padding-top: 95%;
    min-height: 280px;
  }

  .products-grid[data-mobile-cols="1"] .product-lens-btn,
  .products-grid.mobile-cols-1 .product-lens-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
  }

  .products-grid[data-mobile-cols="1"] .product-badges,
  .products-grid.mobile-cols-1 .product-badges {
    top: 0.75rem !important;
    left: 0.75rem !important;
  }

  .products-grid[data-mobile-cols="1"] .product-content,
  .products-grid.mobile-cols-1 .product-content {
    padding: 1.25rem 1rem !important;
    gap: 0.5rem;
    align-items: center !important;
    text-align: center !important;
  }

  .products-grid[data-mobile-cols="1"] .product-category-name,
  .products-grid.mobile-cols-1 .product-category-name {
    font-size: 0.82rem !important;
    text-align: center !important;
  }

  .products-grid[data-mobile-cols="1"] .product-name,
  .products-grid.mobile-cols-1 .product-name {
    font-size: 1.1rem !important;
    height: auto !important;
    max-height: none !important;
    -webkit-line-clamp: 3;
    line-height: 1.35;
    text-align: center !important;
  }

  .products-grid[data-mobile-cols="1"] .product-summary-text,
  .products-grid.mobile-cols-1 .product-summary-text {
    display: -webkit-box !important;
    font-size: 0.875rem !important;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: center !important;
  }

  .products-grid[data-mobile-cols="1"] .product-price-promo,
  .products-grid.mobile-cols-1 .product-price-promo {
    font-size: 1.4rem !important;
    text-align: center !important;
  }

  .products-grid[data-mobile-cols="1"] .product-price-normal,
  .products-grid.mobile-cols-1 .product-price-normal {
    font-size: 0.95rem !important;
    text-align: center !important;
  }

  .products-grid[data-mobile-cols="1"] .product-card-actions,
  .products-grid.mobile-cols-1 .product-card-actions {
    grid-template-columns: 1fr auto !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  .products-grid[data-mobile-cols="1"] .product-card-actions .btn,
  .products-grid.mobile-cols-1 .product-card-actions .btn {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.95rem !important;
  }
}

/* Product Card Design */
.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.product-image-box {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Proporção quadrada padrão para fotos de produtos */
  overflow: hidden;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Exibe 100% da imagem sem cortar nenhuma borda */
  object-position: center center;
  transition: transform var(--transition-smooth);
  padding: 0.4rem;
  box-sizing: border-box;
}

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

/* Lente de Ampliação Destacada (Lens Zoom Button) */
.product-lens-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.product-lens-btn:hover {
  background-color: var(--color-primary);
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 6px 16px var(--color-primary-glow);
}

@media (max-width: 640px) {
  .product-lens-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    top: 0.45rem;
    right: 0.45rem;
  }
}

.product-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}

.product-code-tag {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.product-quick-view-btn {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  white-space: nowrap;
  z-index: 3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.product-card:hover .product-quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-quick-view-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateX(-50%) translateY(0) scale(1.06);
}

.product-content {
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .product-content {
    padding: 0.85rem 0.65rem;
  }
}

.product-category-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  text-align: center;
}

.product-category-name {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  max-width: 100%;
}

.product-name {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
  width: 100%;
}

@media (max-width: 640px) {
  .product-name {
    font-size: 0.85rem;
    height: 2.5em;
  }
}

.product-summary-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  width: 100%;
}

@media (max-width: 640px) {
  .product-summary-text {
    display: none; /* Hide summary in mobile for sleek compact 2-column view */
  }
}

.product-pricing {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  padding-top: 0.5rem;
  width: 100%;
}

.product-price-normal {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  text-align: center;
}

.product-price-promo {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1;
  text-align: center;
}

@media (max-width: 640px) {
  .product-price-promo {
    font-size: 1.05rem;
  }
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .product-card-actions {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* Product Detail Modal (Espiar) */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.modal-product-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: contain;
  object-position: center center;
  max-height: 340px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  box-sizing: border-box;
}

.modal-product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.6rem 0;
  padding: 0.75rem;
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-light);
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-product-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.modal-action-btn {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 768px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .modal-product-img {
    max-height: 160px;
    object-fit: contain;
    padding: 4px;
    border-radius: var(--radius-md);
    margin: 0 auto;
  }

  .modal-product-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0.5rem 0.65rem;
    margin: 0.35rem 0;
    max-height: 90px;
    overflow-y: auto;
  }

  .modal-product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.5rem;
  }

  .modal-product-actions .qty-control {
    align-self: center;
    margin-bottom: 0.15rem;
  }

  .modal-product-actions .modal-action-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface);
  box-sizing: border-box;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background-color: var(--border-color-light);
  transition: background-color var(--transition-fast);
}

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

.qty-input {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Cart Drawer */
.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.2rem;
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
}

.cart-item-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.cart-item-delete:hover {
  color: var(--color-danger);
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* PIX Modal UI */
.pix-box-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.pix-qrcode-wrapper {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: inline-flex;
}

.pix-copia-cola-box {
  width: 100%;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
  text-align: left;
  max-height: 80px;
  overflow-y: auto;
  user-select: all;
}

/* ==========================================================================
   INSTITUTIONAL FOOTER
   ========================================================================== */

.store-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 4rem 0 2rem;
  transition: all var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 1rem;
  }
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  max-width: 160px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 28px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--border-color-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.social-icon-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--color-primary-glow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-admin-link {
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-admin-link:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   ROTARY HERO BANNERS CAROUSEL
   ========================================================================== */

.hero-carousel-wrapper {
  margin: 1rem 0 1.5rem 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0f172a;
  user-select: none;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.hero-carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 6;
  max-height: 400px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-carousel-slide {
    aspect-ratio: 16 / 8;
    max-height: 260px;
  }
}

@media (max-width: 480px) {
  .hero-carousel-slide {
    aspect-ratio: 16 / 9;
    max-height: 210px;
  }
}

.hero-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Banner Content Overlay & Typography */
.hero-carousel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem 2.25rem 2.5rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.50) 50%, rgba(15, 23, 42, 0.05) 100%);
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-text-box {
  max-width: 700px;
  pointer-events: auto;
  animation: heroBannerTextFade 0.35s ease-out;
}

@keyframes heroBannerTextFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-carousel-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.02em;
}

.hero-carousel-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.85rem 0;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-primary, #f97316);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast, 0.2s);
  width: fit-content;
  text-shadow: none;
}

.hero-carousel-slide:hover .hero-carousel-cta {
  transform: translateX(4px);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .hero-carousel-content {
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
  }
  .hero-carousel-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  .hero-carousel-subtitle {
    font-size: 0.825rem;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-carousel-cta {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-carousel-content {
    padding: 0.85rem 0.85rem 1.6rem 0.85rem;
  }
  .hero-carousel-title {
    font-size: 1.05rem;
  }
  .hero-carousel-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  .hero-carousel-cta {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.hero-carousel-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev { left: 0.75rem; }
.hero-carousel-next { right: 0.75rem; }

.hero-carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
  background: rgba(15, 23, 42, 0.4);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-carousel-dot.active {
  background: var(--color-primary);
  width: 22px;
  border-radius: 8px;
}

/* ==========================================================================
   LENS ZOOM & LIGHTBOX MODAL
   ========================================================================== */

.product-lens-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 4;
  box-shadow: var(--shadow-sm);
}

.product-lens-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: scale(1.12);
}

.lightbox-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-modal-overlay.active {
  display: flex;
}

.lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.lightbox-img-wrapper {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  max-height: 75vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.2s ease-out;
}

/* ==========================================================================
   PRODUCT ATTRIBUTE SELECTORS (MODAL DETALHES)
   ========================================================================== */

.product-attributes-picker {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.attr-picker-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.attr-picker-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attr-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.attr-option-chip {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

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

.attr-option-chip.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px var(--color-primary-glow);
}

/* Stock Status Indicators in Catalog & Modal */
.product-stock-status {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.product-stock-status.stock-ok {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.product-stock-status.stock-low {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 600;
}

.product-stock-status.stock-out {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 600;
}

.product-card.is-out-of-stock {
  opacity: 0.85;
}

.product-card.is-out-of-stock .product-img {
  filter: grayscale(25%);
}

/* ==========================================================================
   MAINTENANCE SCREEN OVERLAY
   ========================================================================== */

.maintenance-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.maintenance-box {
  max-width: 540px;
  width: 100%;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.maintenance-icon-badge {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.maintenance-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.maintenance-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.maintenance-status-tag {
  background: rgba(249, 115, 22, 0.2);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.maintenance-message {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.maintenance-date {
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.maintenance-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.maintenance-admin-link {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  text-decoration: underline;
}

.maintenance-admin-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   SIZE GUIDE (GUIA DE TAMANHOS & MEDIDAS) STYLES
   ========================================================================== */

.btn-size-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(249, 115, 22, 0.08);
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-size-guide-trigger:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.size-guide-modal-box {
  max-width: 860px;
  width: 95vw;
}

.size-guide-img-wrapper {
  background: #090d16;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 70vh;
}

.size-guide-modal-img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease;
}

.size-guide-info-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.45;
}

