/* ===== Toko Bahan Bangunan — style "Industrial Warehouse Grid" ===== */

:root {
  --bg: #f3f4f2;
  --bg-alt: #e9eae6;
  --surface: #ffffff;
  --text: #1e2126;
  --text-muted: #5b6169;
  --border: #d8dad4;
  --accent: #f5a623;
  --accent-dark: #c9820f;
  --steel: #3a4048;
  --steel-dark: #20242b;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-sharp: 2px;
  --shadow: 0 6px 18px rgba(20, 22, 26, 0.12);
  --transition-fast: 200ms ease;
}

[data-theme="dark"] {
  --bg: #14161a;
  --bg-alt: #1b1e24;
  --surface: #20242b;
  --text: #eceef0;
  --text-muted: #9aa0a8;
  --border: #33383f;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, .brand {
  font-family: "Oswald", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== Demo banner ===== */
.demo-banner {
  background: var(--steel-dark);
  color: var(--accent);
  text-align: center;
  font-size: 0.8rem;
  padding: 6px 12px;
}
.demo-banner strong { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  border-radius: var(--radius-sharp);
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--steel-dark); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-secondary { background: var(--steel); color: #fff; }
.btn-secondary:hover { background: var(--steel-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Icon buttons / badge ===== */
.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sharp);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-alt); }
.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 3px;
}
.badge.pop { animation: pop 300ms ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand i { color: var(--accent); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.nav-links a:hover { border-color: var(--accent); color: var(--accent-dark); }
.navbar-actions { display: flex; align-items: center; gap: 6px; }
.hamburger { display: none; }

/* ===== Mobile nav ===== */
@media (max-width: 480px) {
  .navbar-inner { padding: 12px 14px; gap: 8px; }
  .brand { font-size: 1.05rem; }
  .navbar-actions { gap: 0; }
  .icon-btn { width: 34px; height: 34px; font-size: 1rem; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: var(--surface);
    flex-direction: column;
    padding: 90px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 280ms ease;
    box-shadow: var(--shadow);
    z-index: 39;
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: inline-flex; }
}

/* ===== Hero (split diagonal) ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 560px;
  background: var(--steel-dark);
  color: #fff;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 60px 90px 6vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.eyebrow {
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
}
.hero p { color: #c7cbd1; max-width: 460px; font-size: 1rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  background: var(--steel);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 60px 24px 40px; }
  .hero-image { clip-path: none; height: 260px; }
}

/* Hazard-stripe divider — motif khas style Industrial */
.hazard-divider {
  height: 14px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 18px, var(--steel-dark) 18px 36px);
}

/* ===== Marquee (promo conveyor belt) ===== */
.marquee-section {
  background: var(--steel-dark);
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 3px solid var(--accent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-item i { color: var(--accent); }

/* ===== Sections ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-sub { color: var(--text-muted); margin-top: 6px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.slide-left { transform: translateX(-40px); }
.reveal.slide-right { transform: translateX(40px); }
.reveal.in-view { opacity: 1; transform: translate(0, 0); }

/* ===== Category grid ===== */
.category-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.category-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sharp);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.category-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.category-card img { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: cover; border: 2px solid var(--border); }
.category-card h3 { font-size: 0.95rem; }
.category-card span { color: var(--text-muted); font-size: 0.75rem; }

/* ===== Katalog layout (sidebar + dense grid) — ciri khas style Industrial ===== */
.katalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sharp);
  min-width: 260px;
}
.search-box input { border: none; background: transparent; outline: none; color: var(--text); width: 100%; font-size: 0.9rem; }
.search-box i { color: var(--text-muted); }

.katalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sidebar-filter {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sharp);
  padding: 22px;
}
.sidebar-filter h3 { font-size: 0.95rem; margin-bottom: 14px; }
#filterList li {
  padding: 9px 10px;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
#filterList li:hover { color: var(--text); background: var(--bg-alt); }
#filterList li.active { border-left-color: var(--accent); color: var(--text); font-weight: 600; background: var(--bg-alt); }

.calc-widget { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--border); }
.calc-widget h3 { font-size: 0.9rem; margin-bottom: 8px; }
.calc-widget p { color: var(--text-muted); font-size: 0.78rem; margin: 0 0 10px; }
.calc-widget label { display: block; font-size: 0.78rem; margin-bottom: 6px; color: var(--text-muted); }
.calc-widget input {
  width: 100%; padding: 9px 10px; border: 2px solid var(--border); border-radius: var(--radius-sharp);
  background: var(--bg); color: var(--text); margin-bottom: 12px; font-size: 0.9rem;
}
.calc-result {
  margin-top: 12px; padding: 12px; background: var(--bg-alt); border-left: 3px solid var(--accent);
  font-size: 0.82rem; line-height: 1.6;
}

/* Product grid — padat, badge sudut, border tebal (ciri khas Industrial) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--border); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 8px; left: 0;
  background: var(--accent); color: var(--steel-dark);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 10px; letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}
.product-badge.stock-out { background: var(--danger); color: #fff; }
.wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(20,22,26,0.55); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.wishlist-btn.active { color: var(--danger); background: #fff; }
.product-info { padding: 14px; }
.product-cat { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-name { font-size: 0.92rem; margin: 6px 0 10px; min-height: 40px; }
.product-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.product-price { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--accent-dark); }
[data-theme="dark"] .product-price { color: var(--accent); }
.product-unit { font-size: 0.75rem; color: var(--text-muted); }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 9px; font-size: 0.72rem; }

/* skeleton loading */
.skeleton-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-sharp); overflow: hidden; }
.skeleton-thumb, .skeleton-line { background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 37%, var(--bg-alt) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
.skeleton-thumb { aspect-ratio: 4/3; }
.skeleton-line { height: 12px; margin: 14px; border-radius: 2px; }
.skeleton-line.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 900px) {
  .katalog-layout { grid-template-columns: 1fr; }
  .sidebar-filter { position: static; }
}

/* ===== Stats ===== */
.stats-section { background: var(--steel-dark); color: #fff; max-width: none; padding: 60px 24px; }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-card i { font-size: 1.8rem; color: var(--accent); margin-bottom: 10px; }
.stat-num-row { font-family: "Oswald", sans-serif; font-size: 2.2rem; font-weight: 700; }
.stat-card p { color: #c7cbd1; margin-top: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card.bounce i { animation: bounce 500ms ease; }
@keyframes bounce { 0%,100% { transform: translateY(0);} 40% { transform: translateY(-8px);} 70% { transform: translateY(-3px);} }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.about-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.about-list i { color: var(--success); }
.about-image img { border: 3px solid var(--accent); background: var(--surface); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.testi-section { background: var(--bg-alt); max-width: none; }
.testi-section .section-title { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.testi-track { max-width: 1200px; margin: 30px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testi-card { background: var(--surface); border: 2px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sharp); padding: 20px; }
.testi-stars { color: var(--accent); margin-bottom: 10px; font-size: 0.85rem; }
.testi-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.testi-name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.75rem; color: var(--text-muted); }

/* ===== Kontak ===== */
.kontak-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin-top: 30px; }
.kontak-lead { color: var(--text-muted); margin-bottom: 22px; }
.kontak-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.kontak-item i { font-size: 1.3rem; color: var(--accent); width: 30px; }
.kontak-item span { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.kontak-item strong { font-size: 0.95rem; }
.kontak-form { background: var(--surface); border: 2px solid var(--border); padding: 26px; border-radius: var(--radius-sharp); display: flex; flex-direction: column; gap: 6px; }
.kontak-form label { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.kontak-form input, .kontak-form textarea {
  padding: 11px 12px; border: 2px solid var(--border); border-radius: var(--radius-sharp);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.9rem; resize: vertical;
}
.kontak-form button { margin-top: 16px; }
@media (max-width: 860px) { .kontak-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { background: var(--steel-dark); color: #c7cbd1; padding: 60px 24px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer a { display: block; color: #c7cbd1; padding: 4px 0; font-size: 0.85rem; }
.footer a:hover { color: var(--accent); }
.footer p { font-size: 0.85rem; color: #9aa0a8; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border: 2px solid #3a4048; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; }
.social-icons a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #3a4048; font-size: 0.78rem; text-align: center; color: #7d838b; }
.footer-bottom a { display: inline; color: var(--accent); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--steel-dark); border: none;
  cursor: pointer; box-shadow: var(--shadow); font-size: 1rem;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ===== Overlay backdrop ===== */
.overlay-backdrop {
  position: fixed; inset: 0; background: rgba(10, 11, 13, 0.6);
  z-index: 49; opacity: 0; transition: opacity var(--transition-fast);
}
.overlay-backdrop.show { opacity: 1; }

/* ===== Modal (popup modern, custom — bukan alert/confirm) ===== */
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 60;
  background: var(--surface); color: var(--text);
  width: min(460px, 90vw); max-height: 85vh; overflow: auto;
  border-radius: var(--radius-sharp); box-shadow: var(--shadow);
  padding: 34px 28px 28px;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0; pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}
.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg-alt); border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text);
}
.promo-modal { text-align: center; }
.promo-modal-stripe { height: 8px; margin: -34px -28px 20px; background: repeating-linear-gradient(135deg, var(--accent) 0 14px, var(--steel-dark) 14px 28px); }
.promo-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 10px; }
.promo-modal h3 { margin-bottom: 10px; }
.promo-modal p { color: var(--text-muted); font-size: 0.9rem; }
.promo-note { font-size: 0.72rem; margin-top: 14px !important; }

.quickview-modal { width: min(640px, 92vw); }
.quickview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quickview-body img { border: 2px solid var(--border); }
.qv-cat { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.qv-name { font-size: 1.15rem; margin: 8px 0; font-family: "Oswald", sans-serif; }
.qv-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.qv-price { font-size: 1.3rem; color: var(--accent-dark); font-family: "Oswald", sans-serif; font-weight: 700; }
[data-theme="dark"] .qv-price { color: var(--accent); }
@media (max-width: 560px) { .quickview-body { grid-template-columns: 1fr; } }

/* ===== Off-canvas cart (slide from right — bukan center modal) ===== */
.offcanvas {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw);
  background: var(--surface); z-index: 60; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 280ms ease;
}
.offcanvas.show { transform: translateX(0); }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 2px solid var(--border); }
.offcanvas-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.offcanvas-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.offcanvas-footer { padding: 20px; border-top: 2px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-family: "Oswald", sans-serif; }
.offcanvas-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 10px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 0.88rem; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 54px; height: 54px; object-fit: cover; border: 2px solid var(--border); }
.cart-line-info { flex: 1; }
.cart-line-name { font-size: 0.82rem; margin-bottom: 4px; }
.cart-line-price { font-size: 0.78rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button { width: 22px; height: 22px; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; border-radius: 2px; }
.remove-line { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.9rem; }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--steel-dark); color: #fff; padding: 12px 18px; border-radius: var(--radius-sharp);
  border-left: 4px solid var(--accent); font-size: 0.85rem; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); animation: toast-in 220ms ease;
  max-width: 300px;
}
.toast i { color: var(--accent); }
.toast.leaving { animation: toast-out 220ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px);} to { opacity: 1; transform: translateX(0);} }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px);} }

/* ===== Utility ===== */
[hidden] { display: none !important; }
