/* ============================================================
   OnePage Catalog & Checkout – Complete Stylesheet
   Contém as regras de layout, estrutura de componentes, modais,
   Side Drawer do Carrinho (Com Frete, Cartão, Cupom), Histórico de Pedidos e Ficha Técnica.
   As cores e identidades visuais são definidas dinamicamente nos arquivos {theme}/theme.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Reset & Box-Sizing ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Header Fixo ---------- */
.checkout-header {
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.checkout-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-header__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.checkout-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-header__info h1 {
  font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  padding-bottom: 2px;
  display: inline-block;
}

.checkout-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-header-btn {
  background: rgba(34, 197, 94, 0.14);
  border: none;
  color: #22C55E;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-header-btn:hover {
  background: #22C55E;
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
}

.cart-header-btn {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s ease;
  position: relative;
}

.cart-header-btn:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary-light);
  transform: scale(1.05);
}

.cart-header-badge {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.account-btn {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}

.account-btn:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary-light);
}

.orders-header-btn {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}

.orders-header-btn:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary-light);
  transform: scale(1.02);
}

.logout-header-btn {
  background: var(--danger-bg);
  color: var(--danger);
  border: none;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.logout-header-btn:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.05);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: scale(1.05);
}

/* ---------- Main Layout ---------- */
.checkout-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px;
  margin-top: 64px;
  box-sizing: border-box;
  position: relative;
}

.store-hero-backdrop {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1040px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.95) contrast(1.08);
}

@media (max-width: 767px) {
  .store-hero-backdrop {
    height: 1200px;
  }
}

.store-hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 20, 0.15) 0%,
    rgba(18, 18, 20, 0.45) 70%,
    rgba(18, 18, 20, 0.85) 88%,
    var(--bg-base) 100%
  );
}

[data-theme="light"] .store-hero-backdrop::after {
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.20) 0%,
    rgba(248, 250, 252, 0.55) 70%,
    rgba(248, 250, 252, 0.88) 88%,
    var(--bg-base) 100%
  );
}

.products-search,
.categories-carousel-wrapper,
.hero-banner-wrapper,
.section-title,
.products-grid {
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* ---------- Products Search ---------- */
.products-search {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.products-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: all 0.2s ease;
}

.products-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.products-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Categories Bar ---------- */
.categories-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 28px;
  gap: 12px;
}

.categories-bar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 14px 4px;
  scrollbar-width: none;
  flex: 1;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 130px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-item:hover {
  transform: translateY(-4px);
}

.category-item__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  padding: 3px;
  background: var(--bg-elevated);
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.category-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.category-item:hover .category-item__image img {
  transform: scale(1.08);
}

.category-item.active .category-item__image {
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary-glow);
  transform: scale(1.06);
}

.category-item__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  transition: color 0.2s ease;
}

.category-item.active .category-item__name {
  color: var(--primary-light);
  font-weight: 800;
}

.category-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
  z-index: 5;
}

.category-nav-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  color: var(--primary-light);
  transform: scale(1.1);
}

/* ---------- Hero Banner Carousel ---------- */
.hero-banner-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated);
}

.hero-banner-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding: 32px 76px;
  box-sizing: border-box;
  cursor: pointer;
}

.hero-banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 36, 43, 0.95) 0%, rgba(34, 36, 43, 0.7) 50%, rgba(34, 36, 43, 0.2) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-banner-tag {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.hero-banner-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.hero-banner-subtitle {
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.4;
  opacity: 0.95;
}

.banner-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 36, 43, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border-hover);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  transition: all 0.2s ease;
}

.banner-nav-btn.prev { left: 5px; }
.banner-nav-btn.next { right: 5px; }

.banner-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ---------- Products Grid & Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: var(--bg-card-hover);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

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

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

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
}

.product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 10px;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 2.6em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card__price .current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-light);
}

.product-card__price .old {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-card__add-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.product-card__interest-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.product-card__interest-btn svg,
.product-card__add-btn svg,
.product-modal-add-btn svg {
  flex-shrink: 0;
}

/* ---------- Side Drawer do Carrinho (Com Frete, Cartão, Cupom) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-modal);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-modal);
  z-index: 990;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-header);
}

.cart-drawer__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer__close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__close:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.cart-drawer__body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.cart-drawer__body::-webkit-scrollbar {
  width: 4px;
}

.cart-drawer__body::-webkit-scrollbar-thumb {
  background: var(--glass-border-hover);
  border-radius: 4px;
}

.cart-section {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.cart-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-tertiary);
}

.cart-empty .empty-icon {
  margin-bottom: 12px;
  opacity: 0.4;
  display: flex;
  justify-content: center;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cart-item__image {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border-radius: 9999px;
  padding: 2px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.qty-value {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item__remove {
  border: none;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Frete & CEP */
.shipping-calculator {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.shipping-calculator input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg-input);
  outline: none;
}

.shipping-calculator button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-calculator button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-option:hover {
  border-color: var(--glass-border-hover);
}

.shipping-option.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.shipping-option__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipping-option__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-tertiary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.shipping-option.selected .shipping-option__radio {
  border-color: var(--primary);
}

.shipping-option.selected .shipping-option__radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.shipping-option__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shipping-option__time {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.shipping-option__price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
}

/* Formas de Pagamento */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: var(--glass-border-hover);
}

.payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.payment-option__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-tertiary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.payment-option.selected .payment-option__radio {
  border-color: var(--primary);
}

.payment-option.selected .payment-option__radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.payment-option__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-option__detail {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.payment-option__badge {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.payment-option__badge.discount {
  background: var(--success-bg);
  color: var(--success);
}

/* Formulário do Cartão de Crédito */
.credit-card-form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

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

/* Cupom */
.coupon-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.coupon-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg-input);
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.coupon-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.coupon-row button {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.coupon-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.coupon-feedback {
  margin-top: 8px;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
}

.coupon-feedback.success { background: var(--success-bg); color: var(--success); }
.coupon-feedback.error { background: var(--danger-bg); color: var(--danger); }

/* Resumo de Totais */
.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.summary-row.discount { color: var(--success); }
.summary-row.shipping { color: var(--primary-light); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total .label {
  font-size: 0.9rem;
  font-weight: 700;
}

.summary-total .value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-light);
}

/* ---------- Modais & Formulários (Auth, Histórico de Pedidos) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

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

.modal-container {
  background: var(--bg-modal);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.modal-tab {
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.form-grid-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid-modal .full-width {
  grid-column: 1 / -1;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.form-group-compact label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.form-group-compact input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group-compact input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group-compact select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-primary);
  background-color: var(--bg-input);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group-compact select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group-compact select option {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  padding: 10px;
}

.confirm-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

/* ---------- Histórico de Pedidos & Paginação ---------- */
.orders-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-history-card {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-history-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-history-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
}

/* Laranja: Pendente (3) */
.order-history-status.status-orange,
.order-history-status.Pending,
.order-history-status.pending {
  background: rgba(249, 115, 22, 0.16);
  color: #c2410c;
}

/* Amarelo: Aguardando Pagamento (0) */
.order-history-status.status-yellow,
.order-history-status.AwaitingPayment {
  background: rgba(234, 179, 8, 0.16);
  color: #a16207;
}

/* Azul Escuro: Aguardando Separação (1) & Enviado (2) */
.order-history-status.status-blue,
.order-history-status.status-indigo,
.order-history-status.AwaitingSeparation,
.order-history-status.Shipped,
.order-history-status.shipped {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

/* Verde: Concluído (4) */
.order-history-status.status-green,
.order-history-status.Completed,
.order-history-status.completed {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

/* Vermelho: Cancelado (5) */
.order-history-status.status-red,
.order-history-status.Cancelled,
.order-history-status.cancelled {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.pagination-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary-light);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Modal Detalhes do Pedido */
.order-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.order-details-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-detail-section {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
}

.order-detail-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-detail-title svg {
  color: var(--primary-light);
}

.order-item-analytic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}

.order-item-analytic:last-child {
  border-bottom: none;
}

.order-item-analytic img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

/* Modal Detalhes do Produto */
.product-detail-modal-container {
  max-width: 880px !important;
  padding: 28px !important;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.product-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-modal-carousel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.product-modal-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-modal-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}

.product-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 36, 43, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border-hover);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-carousel-btn.prev { left: 8px; }
.modal-carousel-btn.next { right: 8px; }

.modal-carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px var(--primary-glow);
}

.product-modal-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.product-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-modal-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.product-modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-modal-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.product-modal-thumb.active, .product-modal-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--primary-glow);
}

.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-modal-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-modal-category {
  background: var(--primary-glow);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-modal-sku {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: monospace;
}

.product-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-modal-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-modal-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-light);
}

.product-modal-old-price {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-modal-badge {
  background: var(--secondary);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-modal-short-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.product-modal-tech-specs {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-value {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.spec-value.highlight {
  color: var(--success);
}

.product-modal-full-desc-box {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
}

.desc-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.product-modal-full-desc-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.product-modal-qty-selector {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 4px;
}

.product-modal-qty-selector button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.product-modal-qty-selector button:hover {
  background: var(--bg-card-hover);
}

.product-modal-qty-selector span {
  width: 32px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: toastSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 340px;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ---------- Botão e Gaveta do Menu Sanduíche Mobile ---------- */
.mobile-menu-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mobile-menu-btn:hover {
  background: var(--primary-light);
  color: white;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  display: none;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu-drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 280px; height: 100vh;
  background: var(--bg-card);
  color: var(--text-primary);
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1045;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}
.mobile-menu-drawer.open { right: 0; }

.mobile-menu-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}
.mobile-menu-close {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 1.2rem; cursor: pointer;
}

.mobile-menu-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  text-align: left;
}
.mobile-menu-item:hover {
  background: var(--primary-glow);
  color: var(--primary-light);
}
.mobile-menu-item.logout {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}

/* ---------- Responsividade ---------- */
@media (max-width: 1024px) {
  .checkout-container { padding: 20px 16px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .hero-banner-wrapper { height: 240px; }
  .hero-banner-slide { padding: 20px 60px; }
  .hero-banner-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .checkout-header { padding: 0 12px; height: 56px; gap: 8px; justify-content: space-between; }
  .checkout-header__left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    margin-right: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .checkout-header__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .checkout-header__info h1 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    line-height: 1.3;
  }
  .checkout-header__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

/* ---------- Botão Meus Pedidos ---------- */
.orders-header-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.orders-header-btn:hover {
  background: var(--primary-glow);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

  /* Oculta os botões diretos de desktop no mobile */
  .whatsapp-header-btn,
  .account-btn,
  .orders-header-btn,
  .logout-header-btn,
  .theme-toggle-btn {
    display: none !important;
  }

  /* Exibe apenas o botão do carrinho e o botão do menu sanduíche */
  .cart-header-btn,
  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .cart-header-btn {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .checkout-container { margin-top: 56px; }
  .product-modal-grid { grid-template-columns: 1fr; gap: 16px; }
  .cart-drawer { width: 100%; }
}

@media (max-width: 480px) {
  .checkout-container { padding: 12px 10px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .modal-container { width: 96%; padding: 16px 12px; }
  .form-grid-modal { grid-template-columns: 1fr; }
  .product-card__interest-btn,
  .product-card__add-btn {
    font-size: 0.76rem;
    padding: 8px 6px;
    gap: 4px;
  }
}

/* ---------- APP LOADER OVERLAY ---------- */
.app-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.4s ease;
}

.app-loader__spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid var(--glass-border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.app-loader__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

/* ---------- TOAST CONTAINER & ANIMATION ---------- */
.toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 360px;
  width: calc(100% - 40px);
}

.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); background: var(--bg-elevated); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); background: var(--bg-elevated); }
.toast.info { border-color: rgba(59, 130, 246, 0.4); background: var(--bg-elevated); }

.toast-icon {
  font-weight: 800;
  font-size: 1rem;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--primary-light); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- STORE FOOTER ---------- */
.store-footer {
  margin-top: 60px;
  background: var(--bg-header);
  border-top: 1px solid var(--glass-border);
  padding: 32px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.store-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.store-footer__left h3,
.footer-store-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-aperture-icon {
  color: var(--primary-light);
  flex-shrink: 0;
}

.footer-copy-text {
  font-size: 0.74rem;
  opacity: 0.8;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-link-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-link-text a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-link-text a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.footer-link-btn {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22C55E;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-link-btn:hover {
  background: #22C55E;
  color: #FFFFFF;
}

