:root {
  /* Clean Commercial Marketplace Theme (Pelando + Promobit + Mercado Livre) */
  --bg-page: #f1f5f9;
  --bg-app: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;

  --border-subtle: #e2e8f0;
  --border-card: #e5e7eb;
  --border-hover: #cbd5e1;

  --r-card: 12px;
  --r-btn: 8px;
  --r-pill: 999px;

  --price-green: #00a650;
  --price-green-hover: #008f45;
  --price-green-light: #e6f7ee;
  --price-green-border: #bbf7d0;

  --discount-bg: #fff1f2;
  --discount-text: #e11d48;
  --discount-border: #fecdd3;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  body {
    background-color: var(--bg-page);
    padding: 16px 16px 32px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* App Container */
.app-frame {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  border: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  .app-frame {
    max-width: 1280px;
    min-height: calc(100dvh - 90px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }
}

/* App Header */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

@media (min-width: 769px) {
  .app-header {
    padding: 14px 24px 12px;
    position: relative;
  }
}

.header-main-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .header-main-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffe600;
  color: #2d3277;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(255, 230, 0, 0.4);
  flex-shrink: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.desktop-nav-tabs {
  display: none;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

@media (min-width: 769px) {
  body .desktop-nav-tabs {
    display: flex;
  }
}

.top-nav-tab {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.top-nav-tab:hover {
  color: #0f172a;
}

.top-nav-tab.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.top-nav-tab .badge-count {
  background: var(--price-green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
}

@media (min-width: 769px) {
  .header-actions {
    align-self: center;
  }
}

.tool-btn-apk {
  background: var(--price-green-light);
  color: #15803d;
  border: 1px solid var(--price-green-border);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.tool-btn-apk:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--price-green-light);
  border: 1px solid var(--price-green-border);
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--price-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@media (max-width: 640px) {
  .live-pill,
  .brand-select-compact {
    display: none;
  }
}

.brand-select-compact {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.icon-action-btn {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-action-btn:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #ffffff;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-pill);
  padding: 2px 14px;
  transition: all 0.2s ease;
  width: 100%;
}

@media (min-width: 769px) {
  .search-box {
    max-width: 420px;
    flex: 1;
  }
}

.search-box:focus-within {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.search-icon {
  color: #64748b;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  padding: 8px 0;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-clear {
  background: #e2e8f0;
  border: none;
  color: #64748b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

/* Categories Bar (Pelando Style Scroll) */
.categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-chip {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: #475569;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.category-chip:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #ffffff;
}

.category-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 700;
}

/* Store Filter Chips */
.stores-scroll-wrap {
  overflow: hidden;
  margin-top: 4px;
}

.stores-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.store-chip {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #475569;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.store-chip:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f8fafc;
}

.store-chip.active {
  background: #f0fdf4;
  border-color: var(--price-green);
  color: #15803d;
  font-weight: 700;
}

.store-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* App Main Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
  padding: 12px 12px calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  .app-content {
    padding: 20px 24px 32px;
  }
}

.feed-view {
  display: none;
}

.feed-view.active {
  display: block;
}

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

.feed-count-badge {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.count-number {
  font-weight: 800;
  color: #0f172a;
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.sort-selector select {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Deals Grid & Responsive List */
.deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 641px) {
  .deals-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .deals-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* Staggered Card Entrance Animation */
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Deal Card Base */
.deal-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: cardEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 20ms);
}

/* Mobile Compact Card Architecture (Pelando / Promobit Mobile) */
@media (max-width: 640px) {
  .deal-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 10px 12px;
    gap: 12px;
    min-height: 110px;
  }

  .card-media-side {
    width: 92px;
    min-width: 92px;
    height: 92px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
  }

  .card-img {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
  }

  .card-img-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
  }

  .discount-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--discount-bg);
    color: var(--discount-text);
    border: 1px solid var(--discount-border);
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
  }

  .card-content-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 2px;
  }

  .store-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .card-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .condition-tag {
    font-size: 10px;
    font-weight: 700;
    background: #f0fdf4;
    color: #15803d;
    padding: 1px 5px;
    border-radius: 4px;
  }

  .btn-fav {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 2px;
    transition: color 0.15s;
  }

  .btn-fav.active {
    color: #e11d48;
  }

  .card-title-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-bottom: 4px;
    width: 100%;
  }

  .card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
  }

  .current-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--price-green);
    letter-spacing: -0.4px;
  }

  .old-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
  }

  .card-coupon-row {
    margin-bottom: 6px;
  }

  .coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    border: 1px dashed var(--price-green-border);
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
  }

  .coupon-copy-lbl {
    font-family: var(--font-sans);
    font-size: 9px;
    text-transform: uppercase;
    background: #dcfce7;
    padding: 0 3px;
    border-radius: 3px;
    margin-left: 2px;
  }

  .card-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-detail {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: #475569;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
  }

  .btn-action-primary {
    flex: 1;
    background: var(--price-green);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }
}

/* Desktop Multi-column Grid Architecture (Pelando / Promobit Desktop) */
@media (min-width: 641px) {
  .deal-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 0;
  }

  .deal-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .card-media-side {
    width: 100%;
    height: 165px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    cursor: pointer;
  }

  .card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
  }

  .deal-card:hover .card-img {
    transform: scale(1.04);
  }

  .card-img-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
  }

  .discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--discount-bg);
    color: var(--discount-text);
    border: 1px solid var(--discount-border);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
  }

  .card-content-side {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .store-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .card-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .condition-tag {
    font-size: 10px;
    font-weight: 700;
    background: #f0fdf4;
    color: #15803d;
    padding: 1px 6px;
    border-radius: 4px;
  }

  .btn-fav {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 2px;
    transition: color 0.15s;
  }

  .btn-fav:hover {
    color: #e11d48;
  }

  .btn-fav.active {
    color: #e11d48;
  }

  .card-title-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-bottom: 8px;
    width: 100%;
  }

  .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
  }

  .card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
  }

  .current-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--price-green);
    letter-spacing: -0.5px;
  }

  .old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
  }

  .card-coupon-row {
    margin-bottom: 12px;
  }

  .coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px dashed var(--price-green-border);
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-mono);
  }

  .coupon-copy-lbl {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    background: #dcfce7;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 2px;
  }

  .card-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }

  .btn-detail {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: #475569;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--r-btn);
    cursor: pointer;
    transition: all 0.15s;
  }

  .btn-detail:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #94a3b8;
  }

  .btn-action-primary {
    flex: 1;
    background: var(--price-green);
    color: #ffffff;
    border: none;
    border-radius: var(--r-btn);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 166, 80, 0.2);
    transition: all 0.15s;
  }

  .btn-action-primary:hover {
    background: var(--price-green-hover);
    box-shadow: 0 3px 8px rgba(0, 166, 80, 0.3);
  }
}

/* Coupon Tickets (Cupons Tab) */
.coupons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 641px) {
  .coupons-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }
}

.coupon-card {
  background: #ffffff;
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.coupon-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.coupon-ticket-box {
  background: #f0fdf4;
  border: 1.5px dashed var(--price-green-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-code-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.8px;
}

.btn-copy-ticket {
  background: #15803d;
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-ticket:hover {
  background: #166534;
}

.coupon-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

/* Bottom Navigation (iFood / Mobile Native) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  flex-shrink: 0;
  user-select: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
  body .bottom-nav {
    display: none;
  }
}

.nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.nav-tab:hover {
  color: #0f172a;
}

.nav-tab.active {
  color: var(--price-green);
  font-weight: 700;
}

.nav-tab svg {
  stroke-width: 2.2;
}

.nav-counter {
  position: absolute;
  top: -2px;
  right: calc(50% - 16px);
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Detail Sheet Dialog */
.detail-sheet {
  border: none;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: 90vw;
  margin: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  outline: none;
}

.detail-sheet::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.sheet-container {
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-close-btn {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
  color: #475569;
  cursor: pointer;
}

.sheet-body {
  padding: 18px;
  overflow-y: auto;
}

.sheet-image-box {
  width: 100%;
  height: 200px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #f1f5f9;
  padding: 8px;
}

.sheet-product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
}

.sheet-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-coupon-card {
  background: #f0fdf4;
  border: 1.5px dashed var(--price-green-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.sheet-coupon-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 8px;
}

.sheet-coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-code-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #15803d;
}

.sheet-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sheet-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 18px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.sheet-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--price-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 166, 80, 0.25);
  transition: all 0.15s;
}

.sheet-cta-btn:hover {
  background: var(--price-green-hover);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 769px) {
  .toast {
    bottom: 24px;
  }
}
