/* ════════════════════════════════════════════════════════════════
   Flux Shop — Design System
   Dark Premium Theme · Inter + Space Grotesk
════════════════════════════════════════════════════════════════ */

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

/* ──────────────────────────────────────────────────────────────
   Custom Properties
────────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #07070a;
  --surface:     rgba(15, 15, 26, 0.4);
  --card:        rgba(19, 19, 31, 0.3);
  --card-hover:  rgba(23, 23, 43, 0.5);
  --border:      rgba(255, 255, 255, 0.05);
  --border-light:rgba(var(--accent-rgb, 124, 58, 237), 0.3);

  /* Accent Gradient */
  --accent-1:    #7c3aed;
  --accent-2:    rgba(var(--accent-rgb, 124, 58, 237), 0.6);
  --gradient:    linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-r:  linear-gradient(135deg, var(--accent-2), var(--accent-1));

  /* Text */
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;

  /* Status */
  --green:       #10b981;
  --green-bg:    rgba(16,185,129,.12);
  --yellow:      #f59e0b;
  --yellow-bg:   rgba(245,158,11,.12);
  --red:         #ef4444;
  --red-bg:      rgba(239,68,68,.12);
  --blue:        #3b82f6;

  /* Spacing */
  --radius:      12px;
  --radius-lg:   20px;
  --radius-sm:   8px;

  /* Transition */
  --ease:        cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse at top left, rgba(var(--accent-rgb, var(--accent-rgb)), 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(var(--accent-rgb, var(--accent-rgb)), 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ──────────────────────────────────────────────────────────────
   Scrollbar
────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }

/* ──────────────────────────────────────────────────────────────
   Layout
────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ──────────────────────────────────────────────────────────────
   Header / Navigation
────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,14,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.header-search input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.15);
}

.header-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s var(--ease);
}

.cart-btn:hover {
  border-color: var(--accent-1);
  background: rgba(var(--accent-rgb),.1);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────
   Hero Banner
────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb),.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--gradient);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────
   Category Filter
────────────────────────────────────────────────────────────── */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 24px;
}

.category-chip {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.category-chip:hover,
.category-chip.active {
  background: rgba(var(--accent-rgb),.15);
  border-color: var(--accent-1);
  color: #a78bfa;
}

/* ──────────────────────────────────────────────────────────────
   Product Grid
────────────────────────────────────────────────────────────── */
.products-section { padding: 0 0 80px; }

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ──────────────────────────────────────────────────────────────
   Product Card
────────────────────────────────────────────────────────────── */
.product-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(var(--accent-rgb),.15);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-sale { background: var(--gradient); color: #fff; }
.badge-new { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16,185,129,.3); }
.badge-out { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,.3); }

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-original-price {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.product-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 8px;
  border-radius: 50px;
}

.btn-add-cart {
  width: 100%;
  padding: 12px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.btn-add-cart:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-add-cart:active { transform: scale(.98); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ──────────────────────────────────────────────────────────────
   Product Detail Page
────────────────────────────────────────────────────────────── */
.product-detail {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

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

.product-info { padding: 12px 0; }

.product-info .product-category {
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.product-info h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-info .product-price { font-size: 2rem; }

.product-info .product-price-wrap { margin-bottom: 24px; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  transition: background .2s;
}

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

.qty-input {
  width: 60px;
  height: 44px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  outline: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s var(--ease);
}

.btn-primary:hover { opacity: .85; transform: translateY(-2px); }
.btn-primary:active { transform: scale(.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s var(--ease);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  color: var(--text);
  background: rgba(var(--accent-rgb),.08);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.product-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.product-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item span:first-child { color: var(--accent-2); font-size: 1.1rem; }

/* ──────────────────────────────────────────────────────────────
   Cart Page
────────────────────────────────────────────────────────────── */
.cart-page { padding: 60px 0; }
.page-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-sub { color: var(--text-muted); margin-bottom: 40px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

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

.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s;
}

.cart-item:hover { border-color: var(--border-light); }

.cart-item-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}

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

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty-wrap { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cart-qty-btn { width: 36px; height: 36px; background: var(--surface); border: none; color: var(--text); font-size: 1.1rem; transition: background .2s; }
.cart-qty-btn:hover { background: var(--card-hover); }
.cart-qty-input { width: 48px; height: 36px; background: transparent; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text); text-align: center; font-family: inherit; font-size: 0.9rem; outline: none; }

.cart-remove-btn { background: none; border: none; color: var(--text-dim); font-size: 1.1rem; padding: 6px; border-radius: 6px; transition: all .2s; }
.cart-remove-btn:hover { background: var(--red-bg); color: var(--red); }

.cart-item-subtotal { font-size: 1.1rem; font-weight: 700; text-align: right; min-width: 90px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Order Summary */
.cart-summary {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.summary-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.summary-total-val {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 20px;
  transition: all .2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-checkout:hover { opacity: .85; transform: translateY(-2px); }
.btn-checkout:active { transform: scale(.98); }

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: .4; }
.cart-empty h2 { font-size: 1.5rem; margin-bottom: 8px; }

/* ──────────────────────────────────────────────────────────────
   Checkout + PIX
────────────────────────────────────────────────────────────── */
.checkout-page { padding: 60px 0; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.checkout-form-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.checkout-form-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all .2s var(--ease);
}
.form-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* PIX Panel */
.pix-panel {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 90px;
}

.pix-header { text-align: center; margin-bottom: 28px; }

.pix-logo {
  width: 56px;
  height: 56px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.8rem;
}

.pix-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; }
.pix-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.pix-qr-wrap {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.pix-qr-wrap img { max-width: 190px; }

.pix-copypaste {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 12px;
  max-height: 80px;
  overflow-y: auto;
  font-family: monospace;
}

.btn-copy {
  width: 100%;
  padding: 12px;
  background: var(--green-bg);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-copy:hover { background: rgba(16,185,129,.2); }
.btn-copy.copied { background: var(--green); color: #fff; }

.pix-status {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  color: var(--yellow);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pix-status.paid {
  background: var(--green-bg);
  border-color: rgba(16,185,129,.3);
  color: var(--green);
}

.pix-loader {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ──────────────────────────────────────────────────────────────
   Order Success Page
────────────────────────────────────────────────────────────── */
.order-page { padding: 80px 0; }

.order-success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.4); }
  70% { box-shadow: 0 0 0 20px rgba(var(--accent-rgb),0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); }
}

.order-success-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.order-success-card p { color: var(--text-muted); margin-bottom: 36px; }

.order-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0 auto 36px;
  max-width: 500px;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
  transform: translateY(-50%);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all .3s;
}

.timeline-dot.active {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(var(--accent-rgb),.4);
}

.timeline-label { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; }
.timeline-step.active .timeline-label { color: var(--text); }

.order-items-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-item-row:last-child { border-bottom: none; }
.order-item-row .name { color: var(--text); }
.order-item-row .price { color: var(--text-muted); }

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ──────────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }

.footer-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  border: 1px solid rgba(16,185,129,.25);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 16px;
}

/* ──────────────────────────────────────────────────────────────
   Toast Notifications
────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  animation: slide-up .3s var(--ease);
  transition: all .3s;
}

.toast.toast-success { border-color: rgba(16,185,129,.4); }
.toast.toast-error { border-color: rgba(239,68,68,.4); }
.toast.toast-info { border-color: var(--border-light); }

.toast.hiding { opacity: 0; transform: translateX(100%); }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────────
   Loading Skeleton
────────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--card-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ──────────────────────────────────────────────────────────────
   Utility
────────────────────────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

.fade-in { animation: fadeIn .4s var(--ease); }
.scale-in { animation: scaleIn .3s var(--ease); }

/* ──────────────────────────────────────────────────────────────
   Responsive
────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .pix-panel { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .header-search { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-subtotal { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
}
