/* ================================================================
   KROW MOBILE V2 — Design System & Complete Styles
   Modo Claro / Escuro • Feed de Vídeos • Notificações
   ================================================================ */

/* ======================== CSS VARIABLES ======================== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ebebeb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-primary: #0a0a0a;
  --text-secondary: #3a3a3a;
  --text-muted: #6b6b6b;
  --text-inverse: #ffffff;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  --accent: #1a1a1a;
  --accent-hover: #333333;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --font-primary: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Poppins", sans-serif;
  --section-padding: 100px 0;
  --container-max: 1240px;
  --header-height: 72px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1e1e1e;
  --bg-card: #161616;
  --bg-glass: rgba(10, 10, 10, 0.85);
  --text-primary: #f0f0f0;
  --text-secondary: #c0c0c0;
  --text-muted: #808080;
  --text-inverse: #0a0a0a;
  --border-color: #2a2a2a;
  --border-light: #1e1e1e;
  --accent: #f0f0f0;
  --accent-hover: #d0d0d0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ======================== RESET ======================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.hidden {
  display: none !important;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.btn--primary:hover {
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn--outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}
.btn--full {
  width: 100%;
  justify-content: center;
}
.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ======================== HEADER ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.header__logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  z-index: 10;
}
.logo__krow {
  font-family: "Museo Moderno", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.logo__mobile {
  font-family: "Museo Moderno", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: lowercase;
}
.header__nav {
  display: flex;
  align-items: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.nav__close {
  display: none;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__action-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.header__action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.header__action-btn svg {
  width: 20px;
  height: 20px;
}
.mobile-toggle {
  display: none;
}

/* Theme toggle */
[data-theme="light"] .theme-icon-light {
  display: none;
}
[data-theme="light"] .theme-icon-dark {
  display: block;
}
[data-theme="dark"] .theme-icon-light {
  display: block;
}
[data-theme="dark"] .theme-icon-dark {
  display: none;
}

/* Badges */
.cart-badge,
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}
.cart-badge.bump,
.notif-badge.bump {
  animation: cartBump 0.4s ease;
}
@keyframes cartBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: -1;
}
.search-bar.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.search-bar__container {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.search-bar__icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
}
.search-bar__input::placeholder {
  color: var(--text-muted);
}
.search-bar__close {
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.search-bar__close:hover {
  background: var(--bg-tertiary);
}

/* ======================== NOTIFICATION PANEL ======================== */
.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.notif-overlay.active {
  opacity: 1;
  visibility: visible;
}
.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-left: 1px solid var(--border-color);
}
.notif-panel.active {
  transform: translateX(0);
}
.notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}
.notif-panel__header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notif-panel__header h2 svg {
  width: 22px;
  height: 22px;
}
.notif-panel__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.notif-panel__close:hover {
  background: var(--bg-tertiary);
}
.notif-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.notif-panel__footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 12px;
  color: var(--text-muted);
}
.notif-empty svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.notif-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
  transition: all var(--transition-fast);
  animation: slideInRight 0.3s ease;
  cursor: pointer;
}
.notif-item:hover {
  background: var(--bg-secondary);
}
.notif-item.unread {
  border-left: 3px solid var(--text-primary);
}
.notif-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.notif-item__type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.notif-item__time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.notif-item__title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.notif-item__message {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ======================== HERO ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__title {
  font-family: "Museo Moderno", sans-serif;
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__title-line {
  display: block;
}
.hero__title-line.accent {
  font-family: "Museo Moderno", sans-serif;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.5em;
  letter-spacing: 0.15em;
  text-transform: lowercase;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 48px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ======================== SECTION HEADERS ======================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ======================== EMPTY STATES ======================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  color: var(--text-muted);
  gap: 12px;
  text-align: center;
  grid-column: 1 / -1;
}
.empty-state svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}
.empty-state p {
  font-weight: 500;
  font-size: 1.05rem;
}
.empty-state span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ======================== VIDEO FEED ======================== */
.feed {
  padding: var(--section-padding);
  background: var(--bg-primary);
}
.feed__container {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}
.feed__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.feed__empty svg {
  width: 56px;
  height: 56px;
  opacity: 0.3;
}
.feed__empty p {
  font-weight: 600;
  font-size: 1.1rem;
}
.feed__empty span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.feed-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/16;
  max-height: 80vh;
}
.feed-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.feed-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  pointer-events: none;
}
.feed-card__overlay > * {
  pointer-events: auto;
}
.feed-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.feed-card__desc {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}
.feed-card__old-price {
  font-size: 0.85rem;
  opacity: 0.6;
  text-decoration: line-through;
  margin-right: 8px;
}
.feed-card__buy {
  padding: 10px 24px;
  background: #fff;
  color: #000;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}
.feed-card__buy:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.feed-card__buy svg {
  width: 16px;
  height: 16px;
}

.feed-card__controls {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-card__ctrl-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: #fff;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}
.feed-card__ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.feed-card__ctrl-btn svg {
  width: 20px;
  height: 20px;
}
.feed-card__ctrl-btn.active {
  background: rgba(255, 255, 255, 0.3);
}

.feed-card__play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.feed-card__play-indicator.visible {
  opacity: 1;
}
.feed-card__play-indicator svg {
  width: 28px;
  height: 28px;
}

/* ======================== DEALS ======================== */
.deals {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}
.deals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ======================== PRODUCT CARDS ======================== */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card__image img {
  transform: scale(1.08);
}
.product-card__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product-tag--bestseller {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.product-tag--choice {
  background: #2563eb;
  color: #fff;
}
.product-tag--value {
  background: #16a34a;
  color: #fff;
}
.product-tag--deal {
  background: #dc2626;
  color: #fff;
}
.product-tag--tested {
  background: #7c3aed;
  color: #fff;
}
.product-card__info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.product-card__stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}
.product-card__stars svg {
  width: 14px;
  height: 14px;
}
.product-card__rating-value {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.product-card__price {
  margin-top: auto;
  margin-bottom: 16px;
}
.product-card__old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.product-card__current-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.product-card__actions {
  display: flex;
  gap: 8px;
}
.product-card__actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.82rem;
  justify-content: center;
}
.product-card__actions .btn svg {
  width: 16px;
  height: 16px;
}

/* ======================== COMBOS ======================== */
.combos {
  padding: var(--section-padding);
  background: var(--bg-primary);
}
.combos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.combo-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.combo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--text-primary);
}
.combo-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.combo-card__badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.combo-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.combo-card__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.combo-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.combo-card__item svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.combo-card__price {
  margin-bottom: 20px;
}
.combo-card__old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.combo-card__current-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

/* ======================== GIFT BANNER ======================== */
.gift-banner {
  padding: 60px 0;
  background: var(--bg-secondary);
}
.gift-banner__content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}
.gift-banner__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.gift-banner__icon svg {
  width: 28px;
  height: 28px;
}
.gift-banner__text {
  flex: 1;
  min-width: 250px;
}
.gift-banner__text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.gift-banner__text p {
  font-size: 0.95rem;
  opacity: 0.85;
}
.gift-banner .btn--primary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--bg-primary);
  flex-shrink: 0;
}
.gift-banner .btn--primary:hover {
  background: transparent;
  color: var(--bg-primary);
  border-color: var(--bg-primary);
}
[data-theme="dark"] .gift-banner__content {
  background: #f0f0f0;
  color: #0a0a0a;
}
[data-theme="dark"] .gift-banner__icon {
  background: rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .gift-banner .btn--primary {
  background: #0a0a0a;
  color: #f0f0f0;
  border-color: #0a0a0a;
}
[data-theme="dark"] .gift-banner .btn--primary:hover {
  background: transparent;
  color: #0a0a0a;
  border-color: #0a0a0a;
}

/* ======================== PRODUCTS SECTION ======================== */
.products {
  padding: var(--section-padding);
  background: var(--bg-primary);
}
.products__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color);
}
.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

/* ======================== CART SIDEBAR ======================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-left: 1px solid var(--border-color);
}
.cart-sidebar.active {
  transform: translateX(0);
}
.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}
.cart-sidebar__header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-sidebar__header h2 svg {
  width: 22px;
  height: 22px;
}
.cart-sidebar__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.cart-sidebar__close:hover {
  background: var(--bg-tertiary);
}
.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-muted);
}
.cart-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-item__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}
.cart-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.cart-qty-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.cart-item__qty {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}
.cart-item__remove {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.cart-item__remove:hover {
  color: #dc2626;
}
.cart-item__remove svg {
  width: 16px;
  height: 16px;
}
.cart-sidebar__footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
}
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

/* ======================== MODALS ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 24px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal--large {
  max-width: 700px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--text-muted);
  z-index: 2;
}
.modal__close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.modal__header {
  text-align: center;
  margin-bottom: 32px;
}
.modal__header svg {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.modal__header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal__header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-group label small {
  font-weight: 400;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.modal__switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.modal__switch a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
}
.account-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.account-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ======================== ADMIN TABS ======================== */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 4px;
}
.admin-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}
.admin-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.admin-tab:hover:not(.active) {
  color: var(--text-primary);
}
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

/* ======================== ADMIN FORM ======================== */
.admin-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-group--full {
  grid-column: 1 / -1;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}
.upload-area:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}
.upload-area.dragging {
  border-color: var(--text-primary);
  background: var(--bg-tertiary);
}
.upload-area svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  opacity: 0.5;
}
.upload-area p {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.upload-area small {
  font-size: 0.75rem;
  opacity: 0.6;
}
.upload-area.uploading {
  pointer-events: none;
  opacity: 0.6;
}

.upload-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.upload-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  line-height: 1;
}
.upload-preview__remove:hover {
  background: #dc2626;
}

.admin-form__tags {
  margin-bottom: 20px;
}
.admin-form__tags > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.tag-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--text-primary);
}
.admin-form__rating {
  margin-bottom: 20px;
}
.admin-form__rating label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.admin-form__rating input {
  width: 120px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
}
.admin-form__actions {
  display: flex;
  gap: 12px;
}
.admin-products {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.admin-products h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.admin-products__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}
.admin-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.admin-product-item__image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-tertiary);
}
.admin-product-item__info {
  flex: 1;
}
.admin-product-item__name {
  font-weight: 600;
  font-size: 0.88rem;
}
.admin-product-item__price {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.admin-product-item__actions {
  display: flex;
  gap: 6px;
}
.admin-product-item__actions button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: var(--text-muted);
}
.admin-product-item__actions button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.admin-product-item__actions button.delete:hover {
  color: #dc2626;
}
.admin-product-item__actions svg {
  width: 16px;
  height: 16px;
}

/* ======================== FOOTER ======================== */
.footer {
  padding: 80px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer__links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer__links li {
  margin-bottom: 10px;
}
.footer__links li a,
.footer__links li {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__links li a:hover {
  color: var(--text-primary);
}
.footer__links li svg {
  width: 16px;
  height: 16px;
}
.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ======================== TOAST ======================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 24px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation:
    toastIn 0.3s ease,
    toastOut 0.3s ease forwards;
  animation-delay: 0s, 2.7s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --section-padding: 64px 0;
  }
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    border-left: 1px solid var(--border-color);
  }
  .header__nav.active {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .nav__link {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .nav__close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-primary);
  }
  .mobile-toggle {
    display: flex;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 16px;
  }
  .deals__grid,
  .products__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .combos__grid {
    grid-template-columns: 1fr;
  }
  .gift-banner__content {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cart-sidebar,
  .notif-panel {
    width: 100%;
  }
  .admin-form__grid {
    grid-template-columns: 1fr;
  }
  .products__filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 12px 20px;
  }
  .feed__container {
    max-width: 100%;
    padding: 0 12px;
  }

  /* Melhoria no input de cupom para mobile */
  #coupon-input {
    font-size: 1rem !important;
    padding: 12px !important;
  }
  #apply-coupon-btn {
    padding: 12px 20px !important;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .deals__grid,
  .products__grid {
    grid-template-columns: 1fr;
  }
  .product-card__actions {
    flex-direction: column;
  }
  .product-card__actions .btn {
    width: 100%;
  }
  .modal {
    padding: 24px;
  }
  .toast-container {
    left: 16px;
    right: 16px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}
